Compare commits

..
Author SHA1 Message Date
Lars bc2b175556 Merge branch 'theme/seebad' (Seebad 0.1.1)
Deploy / test (push) Failing after 2s
Deploy / deploy (push) Skipped
2026-10-23 08:39:22 +02:00
LarsandClaude Opus 5.5 5416b37dfc Theme Seebad 0.1.1: header no longer overlaps, readable amenities and prices
- Header: full menu from 1280 px, menu button below; site name never shrinks into the menu
- Hero: photo and text side by side from 1024 px
- Own amenities (serif area headings, check marks) and prices (extras as list, larger table, mobile layout)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 08:39:12 +02:00
Lars StommerandClaude Opus 5.5 30e9aa7b26 Git auto-sync script (fast-forward only), lockfile resynced so npm ci works again
Deploy / test (push) Failing after 2s
Deploy / deploy (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 08:32:32 +02:00
Lars 4951f227f1 Merge branch 'theme/seebad' (Theme Seebad, first version)
Deploy / test (push) Failing after 3s
Deploy / deploy (push) Skipped
2026-10-23 08:25:20 +02:00
LarsandClaude Opus 5.5 a9ad4dbf0b Theme Seebad: first version of design direction A
- New child theme "seebad": Newsreader + Atkinson Hyperlegible Next (self-hosted), larger base size,
  tokens chalk white / ink blue / brick / evening blue
- Picture world "Ostsee" as inline SVG slots (partials/motif): villa mark, wave bands, shell, gulls, vignettes
- Own layout, header (mobile menu as dark panel with call button), footer, banner, mobile booking bar
- Sections: hero with arch photo and search box, facts, text_image, location, host, cta in cartouche
- Wishes to the application recorded in ZUSAMMENARBEIT.md §5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 08:22:23 +02:00
LarsandClaude Opus 5.5 e276cd0548 Design concept, multi-tenancy requirements, graphic set 3 (originals + hand-drawn SVGs)
Deploy / test (push) Failing after 2s
Deploy / deploy (push) Skipped
- docs/DESIGN-KONZEPT.md: target group couples, three design directions, configurator extensions
- docs/MANDANTEN-ANFORDERUNGEN.md: requirements for tenants (SaaS landlord websites), roles per tenant
- styles/satz3: AI-generated originals and clean SVG redraws (villa mark, vignettes, bands, ornaments)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 08:07:20 +02:00
Lars StommerandClaude Opus 5.5 0c98d82cf2 Addresses of the internal communication in the admin (notification recipients, contact/reply-to, sender)
Deploy / test (push) Failing after 2s
Deploy / deploy (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 07:14:25 +02:00
Lars StommerandClaude Opus 5.5 749537342e Status: switch contact address to info@fewo-stommer.de at go-live
Deploy / test (push) Failing after 3s
Deploy / deploy (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 07:09:12 +02:00
Lars StommerandClaude Opus 5.5 b681327d3a Sender address info@fewo-stommer.de (SMTP login with that mailbox)
Deploy / test (push) Failing after 11s
Deploy / deploy (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 07:01:23 +02:00
Lars StommerandClaude Opus 5.5 bde99657cf mail:test: clear message for the log mailer
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 23:04:58 +02:00
Lars StommerandClaude Opus 5.5 d018c97be4 Operating mode in the admin (test mode sends all mail to a test recipient until switched live), bot protection for booking requests, mail rendering tests, mail:test command
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 23:01:44 +02:00
Lars StommerandClaude Opus 5.5 fdcb68d578 Documentation: project README, status, rules for parallel sessions (theme branch), updated operations/concept/theme guide
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 22:50:35 +02:00
Lars StommerandClaude Opus 5.5 70a8c5072b Minimum stay exceptions (gap filled, ends on changeover day, offers, absolute minimum); copy seasons aligned to a weekday
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 22:38:27 +02:00
Lars StommerandClaude Opus 5.5 20235b9139 Front controller: remove the internal release prefix Strato puts into REQUEST_URI (signed links)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 22:28:43 +02:00
Lars StommerandClaude Opus 5.5 565eee4325 Fix signed links behind the Strato release rewrite (base URL), mail redirect for test environments
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 22:24:31 +02:00
Lars StommerandClaude Opus 5.5 fd744edf8c Prices & offers page (seasons, special offers/promo codes, extras) and photos in the simple admin mode
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 22:19:08 +02:00
97 changed files with 3028 additions and 154 deletions

No files matched your search

+4 -2
View File
@@ -35,14 +35,16 @@ MAIL_MAILER=smtp
MAIL_HOST=smtp.strato.de
MAIL_PORT=465
MAIL_SCHEME=smtps
MAIL_USERNAME=fewo@stommer.de
MAIL_USERNAME=info@fewo-stommer.de
MAIL_PASSWORD=
MAIL_FROM_ADDRESS="fewo@stommer.de"
MAIL_FROM_ADDRESS="info@fewo-stommer.de"
MAIL_FROM_NAME="${APP_NAME}"
FEWO_OWNER_NAME="Brigitte Stommer"
FEWO_OWNER_EMAIL=fewo@stommer.de
FEWO_NOTIFICATION_EMAIL=fewo@stommer.de
# Harte Umleitung aller E-Mails (gilt immer). Normal leer lassen – Testbetrieb/Scharfschalten: Admin › System › Betrieb
FEWO_MAIL_REDIRECT_TO=
FEWO_BANK_ACCOUNT_HOLDER=
FEWO_BANK_IBAN=
FEWO_BANK_BIC=
+4 -1
View File
@@ -1,6 +1,6 @@
# Ferienwohnung Stommer
Website + booking management for a holiday apartment in Kühlungsborn. Concept and roadmap: `docs/KONZEPT.md`.
Website + booking management for a holiday apartment in Kühlungsborn. Concept and roadmap: `docs/KONZEPT.md`. **Current state and next steps: `docs/STATUS.md` – start there and update it after larger changes.** Parallel sessions (e.g. theme design on another machine): follow `docs/ZUSAMMENARBEIT.md` (branches, file ownership, deploy only from an up-to-date `main`).
- Hosting target: Strato shared webhosting (PHP + MySQL, no Node at runtime) – build assets locally.
- UI and all user-facing texts are German; code, identifiers and PHPDoc are English.
@@ -10,11 +10,14 @@ # Ferienwohnung Stommer
- Portals must be integrated through a pluggable channel-connector system (see concept §7), never hard-coded.
- Bookings/blocks use nights: `arrival <= night < departure`; same-day changeover is allowed. Reservations with an elapsed hold never occupy the calendar (scope `Booking::occupying()`), cron only updates status.
- Business operations live in `app/Actions` (CreateReservation, ConfirmBooking, …); Filament pages and Livewire components call them instead of changing bookings directly.
- Booking path 1 (KONZEPT §6a): request (`Reserved`, hold) → `SendOffer` (`OfferSent`, versioned, contract draft, signed link `offers.show`) → guest `AcceptOffer` (acceptance record, then `ConfirmBooking`) or `RejectOffer`; `ExpireReservations` handles both holding statuses (`BookingStatus::holding()`). Manual price changes are `QuoteLineType::Adjustment` lines.
- Minimum stay: season `min_nights`, relaxed in `PriceCalculator::minimumStayRelaxed` (offer `waives_min_stay`, gap filled completely, departure on the property's `changeover_weekday`, never below `min_stay_absolute`).
- Special offers are evaluated automatically by `PriceCalculator`; discounts are `QuoteLineType::Discount` lines with negative amounts. Kinds (`OfferKind`): rule, fixed dates, gap filler (`App\Availability\GapFinder`). Which offers the website advertises is decided by `App\Pricing\OfferShowcase` (not by appearances); it prices fixed dates/gaps with `PriceCalculator`.
- Portal sync lives in `app/Channels` (connector interface + registry in `config/channels.php`, iCal connector/parser/feed). Our system leads; `SyncChannel` imports portal occupations as `BlockedPeriod` rows with `channel_id`; each channel's export feed excludes its own blocks. Observers on Booking/BlockedPeriod create `ChannelTask`s for portals with `requires_manual_blocking`. Portal booking e-mails are a fast path (`app/Channels/Mail`, `ProcessPortalMail`): they create blocks with source `email`, which `SyncChannel` later confirms/replaces and never removes as stale. Portal analysis: `docs/PORTALE.md`.
- Website = theme system (`docs/THEMES.md`): themes live in `resources/themes/<key>` (theme.json, theme.css, theme.js, views); views resolve via the `theme::` namespace (theme → parent → base `ostsee-licht`). Pages are lists of sections (`app/Themes/Sections`, catalogue in `config/themes.php`); seasonal `Appearance`s override tokens/texts/hero photo/photos per section (stable `data.id` per placed section) and sections can be limited to appearances. Theme views use only token colour classes (`bg-accent`, `text-muted`, …). New designs are **additional** themes: `php artisan themes:make <key>`, `themes:check`, `themes:preview` – never edit `ostsee-licht` for a new design; authoring rules in `docs/THEME-ERSTELLUNG.md`. Resolve `Theme` lazily (`app(Theme::class)`), never in constructors – middleware `ResolveTheme` replaces it per request.
- Operations (environments, Strato access, server .env, admin accounts, 2FA, known pitfalls): `docs/BETRIEB.md` – read it before touching a server. Admin accounts: `php artisan users:create`; 2FA (Filament app authentication) is mandatory for every account. Admin modes (`App\Enums\AdminMode`: simple/expert per user, user menu switch) only shape the menu via the `FollowsAdminMode` trait on every resource/page (simple menu = `AdminMode::SIMPLE_NAVIGATION`); permissions stay with roles/policies. New admin resources must use `FollowsAdminMode`.
- Deployment: `scripts/deploy.sh <env> setup|deploy [ref]|rollback|releases|artisan` (atomic releases on Strato, docs/DEPLOYMENT.md; the server keeps only the active release because of Strato's file quota – history = Git tags `deploy/<env>/<timestamp>`); CI `.gitea/workflows/deploy.yml`. Production has no dev packages (no factories/Faker) – production seeding via `ProductionSeeder`.
- Strato specifics: `public/index.php` strips the internal `/releases/<v>/public` prefix from `REQUEST_URI` (signed URLs); `URL::forceRootUrl(APP_URL)` outside local/testing; mail routing: `App\Support\Settings` (admin page System › Betrieb) – test mode (default) sends every mail to the test recipient only, live delivers normally; `FEWO_MAIL_REDIRECT_TO` is a hard override. Internal addresses are admin settings too: send notifications to `Settings::notificationRecipients()` (never `config('fewo.notification_email')` directly); contact/reply-to (`fewo.owner.email`) and sender (`mail.from`) are overridden at boot by `Settings::applyAddressOverrides()`. The booking form is protected against bots (`config('fewo.spam')`: honeypot, time trap, rate limits, max open holds per e-mail) – tests that submit it instantly set `fewo.spam.min_seconds` to 0.
- Vite fonts plugin is removed on purpose (corporate proxy breaks remote font downloads, and fonts must be self-hosted for GDPR).
- PHP/Composer on this machine: winget package dir `%LOCALAPPDATA%\Microsoft\WinGet\Packages\PHP.PHP.8.4_*` (Composer as `composer\composer.phar` there).
- Git remote: Gitea `https://gitea.stommer.de/Lars/fewo-stommer.git`, branch `main`.
+4 -1
View File
@@ -1,6 +1,6 @@
# Ferienwohnung Stommer
Website + booking management for a holiday apartment in Kühlungsborn. Concept and roadmap: `docs/KONZEPT.md`.
Website + booking management for a holiday apartment in Kühlungsborn. Concept and roadmap: `docs/KONZEPT.md`. **Current state and next steps: `docs/STATUS.md` – start there and update it after larger changes.** Parallel sessions (e.g. theme design on another machine): follow `docs/ZUSAMMENARBEIT.md` (branches, file ownership, deploy only from an up-to-date `main`).
- Hosting target: Strato shared webhosting (PHP + MySQL, no Node at runtime) – build assets locally.
- UI and all user-facing texts are German; code, identifiers and PHPDoc are English.
@@ -10,11 +10,14 @@ # Ferienwohnung Stommer
- Portals must be integrated through a pluggable channel-connector system (see concept §7), never hard-coded.
- Bookings/blocks use nights: `arrival <= night < departure`; same-day changeover is allowed. Reservations with an elapsed hold never occupy the calendar (scope `Booking::occupying()`), cron only updates status.
- Business operations live in `app/Actions` (CreateReservation, ConfirmBooking, …); Filament pages and Livewire components call them instead of changing bookings directly.
- Booking path 1 (KONZEPT §6a): request (`Reserved`, hold) → `SendOffer` (`OfferSent`, versioned, contract draft, signed link `offers.show`) → guest `AcceptOffer` (acceptance record, then `ConfirmBooking`) or `RejectOffer`; `ExpireReservations` handles both holding statuses (`BookingStatus::holding()`). Manual price changes are `QuoteLineType::Adjustment` lines.
- Minimum stay: season `min_nights`, relaxed in `PriceCalculator::minimumStayRelaxed` (offer `waives_min_stay`, gap filled completely, departure on the property's `changeover_weekday`, never below `min_stay_absolute`).
- Special offers are evaluated automatically by `PriceCalculator`; discounts are `QuoteLineType::Discount` lines with negative amounts. Kinds (`OfferKind`): rule, fixed dates, gap filler (`App\Availability\GapFinder`). Which offers the website advertises is decided by `App\Pricing\OfferShowcase` (not by appearances); it prices fixed dates/gaps with `PriceCalculator`.
- Portal sync lives in `app/Channels` (connector interface + registry in `config/channels.php`, iCal connector/parser/feed). Our system leads; `SyncChannel` imports portal occupations as `BlockedPeriod` rows with `channel_id`; each channel's export feed excludes its own blocks. Observers on Booking/BlockedPeriod create `ChannelTask`s for portals with `requires_manual_blocking`. Portal booking e-mails are a fast path (`app/Channels/Mail`, `ProcessPortalMail`): they create blocks with source `email`, which `SyncChannel` later confirms/replaces and never removes as stale. Portal analysis: `docs/PORTALE.md`.
- Website = theme system (`docs/THEMES.md`): themes live in `resources/themes/<key>` (theme.json, theme.css, theme.js, views); views resolve via the `theme::` namespace (theme → parent → base `ostsee-licht`). Pages are lists of sections (`app/Themes/Sections`, catalogue in `config/themes.php`); seasonal `Appearance`s override tokens/texts/hero photo/photos per section (stable `data.id` per placed section) and sections can be limited to appearances. Theme views use only token colour classes (`bg-accent`, `text-muted`, …). New designs are **additional** themes: `php artisan themes:make <key>`, `themes:check`, `themes:preview` – never edit `ostsee-licht` for a new design; authoring rules in `docs/THEME-ERSTELLUNG.md`. Resolve `Theme` lazily (`app(Theme::class)`), never in constructors – middleware `ResolveTheme` replaces it per request.
- Operations (environments, Strato access, server .env, admin accounts, 2FA, known pitfalls): `docs/BETRIEB.md` – read it before touching a server. Admin accounts: `php artisan users:create`; 2FA (Filament app authentication) is mandatory for every account. Admin modes (`App\Enums\AdminMode`: simple/expert per user, user menu switch) only shape the menu via the `FollowsAdminMode` trait on every resource/page (simple menu = `AdminMode::SIMPLE_NAVIGATION`); permissions stay with roles/policies. New admin resources must use `FollowsAdminMode`.
- Deployment: `scripts/deploy.sh <env> setup|deploy [ref]|rollback|releases|artisan` (atomic releases on Strato, docs/DEPLOYMENT.md; the server keeps only the active release because of Strato's file quota – history = Git tags `deploy/<env>/<timestamp>`); CI `.gitea/workflows/deploy.yml`. Production has no dev packages (no factories/Faker) – production seeding via `ProductionSeeder`.
- Strato specifics: `public/index.php` strips the internal `/releases/<v>/public` prefix from `REQUEST_URI` (signed URLs); `URL::forceRootUrl(APP_URL)` outside local/testing; mail routing: `App\Support\Settings` (admin page System › Betrieb) – test mode (default) sends every mail to the test recipient only, live delivers normally; `FEWO_MAIL_REDIRECT_TO` is a hard override. Internal addresses are admin settings too: send notifications to `Settings::notificationRecipients()` (never `config('fewo.notification_email')` directly); contact/reply-to (`fewo.owner.email`) and sender (`mail.from`) are overridden at boot by `Settings::applyAddressOverrides()`. The booking form is protected against bots (`config('fewo.spam')`: honeypot, time trap, rate limits, max open holds per e-mail) – tests that submit it instantly set `fewo.spam.min_seconds` to 0.
- Vite fonts plugin is removed on purpose (corporate proxy breaks remote font downloads, and fonts must be self-hosted for GDPR).
- PHP/Composer on this machine: winget package dir `%LOCALAPPDATA%\Microsoft\WinGet\Packages\PHP.PHP.8.4_*` (Composer as `composer\composer.phar` there).
- Git remote: Gitea `https://gitea.stommer.de/Lars/fewo-stommer.git`, branch `main`.
+27 -48
View File
@@ -1,58 +1,37 @@
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p>
# Ferienwohnung Stommer – Webseite und Vermietungsverwaltung
<p align="center">
<a href="https://github.com/laravel/framework/actions"><img src="https://github.com/laravel/framework/workflows/tests/badge.svg" alt="Build Status"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>
</p>
Webseite mit Buchungsanfrage und eine Verwaltung (Admin) für die Ferienwohnung Stommer, Strandstraße 15, 18225 Kühlungsborn. Ersetzt die bisherige WordPress-Seite www.fewo-stommer.de. Laravel 13, Filament 5, Livewire 4, Tailwind 4; Hosting bei Strato (Shared Webhosting, Hosting Pro).
## About Laravel
**Testbetrieb:** https://stommer.info · Verwaltung: https://stommer.info/admin (Konto + Zwei-Faktor-Anmeldung, siehe docs/BETRIEB.md §7)
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
## Wo steht was?
- [Simple, fast routing engine](https://laravel.com/docs/routing).
- [Powerful dependency injection container](https://laravel.com/docs/container).
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
- [Robust background job processing](https://laravel.com/docs/queues).
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
| Dokument | Inhalt |
|---|---|
| [docs/STATUS.md](docs/STATUS.md) | **Aktueller Stand**: was fertig ist, was offen ist, nächste Schritte – hier anfangen |
| [docs/ZUSAMMENARBEIT.md](docs/ZUSAMMENARBEIT.md) | Regeln für parallele Arbeit (z. B. Theme-Entwicklung auf einem anderen Rechner) – Branches, Dateibereiche, Ausliefern |
| [docs/KONZEPT.md](docs/KONZEPT.md) | Fachliches Konzept und alle Entscheidungen (Buchungswege §6a, Festlegungen §6b) |
| [docs/BETRIEB.md](docs/BETRIEB.md) | Server, Zugänge, Konfiguration, Konten/2FA, Backups, Löschfristen, bekannte Eigenheiten |
| [docs/DEPLOYMENT.md](docs/DEPLOYMENT.md) | Auslieferung auf Strato (Skript, Versionen, Gitea Actions) |
| [docs/THEMES.md](docs/THEMES.md) | Theme-System: Architektur, Bausteine und ihre Daten (Vorlagen-Vertrag) |
| [docs/THEME-ERSTELLUNG.md](docs/THEME-ERSTELLUNG.md) | **Verbindliche Anleitung für ein neues Theme** (Design-Sitzung) |
| [docs/PORTALE.md](docs/PORTALE.md) | Buchungsportale, Kalenderabgleich, Portal-E-Mails |
| [styles/README.md](styles/README.md) | Markenelemente (Logo, Favicon, Symbole, Wellenband) |
| docs/DATENSCHUTZ-*, GAP-DELTA, GO-LIVE-CHECKLISTE, LOESCHKONZEPT, BUCHUNGSPROZESS, DATENMODELL-KONZEPT | Analyse eines Datenschutz-Agenten (Annahmen markiert; maßgeblich ist KONZEPT.md) |
| [CLAUDE.md](CLAUDE.md) / [AGENTS.md](AGENTS.md) | Technische Leitplanken für KI-Assistenten (identisch) |
Laravel is accessible, powerful, and provides tools required for large, robust applications.
## Learning Laravel
Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
In addition, [Laracasts](https://laracasts.com) contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
You can also watch bite-sized lessons with real-world projects on [Laravel Learn](https://laravel.com/learn), where you will be guided through building a Laravel application from scratch while learning PHP fundamentals.
## Agentic Development
Laravel's predictable structure and conventions make it ideal for AI coding agents like Claude Code, Cursor, and GitHub Copilot. Install [Laravel Boost](https://laravel.com/docs/ai) to supercharge your AI workflow:
## Lokal starten
```bash
composer require laravel/boost --dev
php artisan boost:install
composer install && npm ci
cp .env.example .env && php artisan key:generate
touch database/database.sqlite # PowerShell: New-Item database/database.sqlite
php artisan migrate:fresh --seed # Testdaten: Wohnung, Preise 2026, Seiten, Erscheinungsbilder
npm run build # oder npm run dev
php artisan serve # http://localhost:8000 · /admin: admin@example.com / password (2FA beim ersten Login)
php artisan test --compact # alle Tests müssen grün sein
```
Boost provides your agent 15+ tools and skills that help agents build Laravel applications while following best practices.
## Ausliefern
## Contributing
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
## Code of Conduct
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).
## Security Vulnerabilities
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
## License
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
`bash scripts/deploy.sh staging deploy` – baut den **letzten Commit** und spielt ihn auf stommer.info (Details und Regeln: docs/DEPLOYMENT.md, docs/ZUSAMMENARBEIT.md).
+2 -1
View File
@@ -7,6 +7,7 @@
use App\Mail\OfferAnswered;
use App\Models\Booking;
use App\Support\Content;
use App\Support\Settings;
use Illuminate\Support\Facades\Mail;
use Throwable;
@@ -41,7 +42,7 @@ public function handle(Booking $booking, int $offerVersion): void
$this->confirm->handle($booking);
try {
Mail::to(config('fewo.notification_email'))->send(new OfferAnswered($booking, accepted: true));
Mail::to(Settings::notificationRecipients())->send(new OfferAnswered($booking, accepted: true));
} catch (Throwable $exception) {
report($exception);
}
+35 -6
View File
@@ -3,26 +3,40 @@
namespace App\Actions;
use App\Models\Property;
use Carbon\CarbonImmutable;
/**
* Copies all seasons starting in a given year to the following year with the same calendar dates,
* so a new price year only needs adjusting instead of re-entering.
* Copies all seasons starting in a given year to the following year, so a new price year only needs adjusting
* instead of re-entering. Optionally every season start is moved to the nearest given weekday (e.g. Saturday
* as changeover day); seasons that were adjacent stay adjacent.
*/
class CopySeasonsToNextYear
{
/**
* @param int|null $alignToWeekday ISO weekday (1 = Monday … 7 = Sunday) or null for the same calendar dates
* @return array{created: int, skipped: int}
*/
public function handle(Property $property, int $year): array
public function handle(Property $property, int $year, ?int $alignToWeekday = null): array
{
$created = 0;
$skipped = 0;
$seasons = $property->seasons()->whereYear('starts_on', $year)->get();
$seasons = $property->seasons()->whereYear('starts_on', $year)->orderBy('starts_on')->get();
// New start per old start date; an end that equals another season's start follows that start.
$moved = [];
foreach ($seasons as $season) {
$moved[$season->starts_on->toDateString()] = $this->shift($season->starts_on, $alignToWeekday);
}
foreach ($seasons as $season) {
$startsOn = $season->starts_on->addYearNoOverflow();
$endsOn = $season->ends_on->addYearNoOverflow();
$startsOn = $moved[$season->starts_on->toDateString()];
$endsOn = $moved[$season->ends_on->toDateString()] ?? $this->shift($season->ends_on, $alignToWeekday);
if ($endsOn->lessThanOrEqualTo($startsOn)) {
$skipped++;
continue;
}
if ($property->seasons()->overlapping($startsOn, $endsOn)->exists()) {
$skipped++;
@@ -40,4 +54,19 @@ public function handle(Property $property, int $year): array
return ['created' => $created, 'skipped' => $skipped];
}
/**
* One year later; with a weekday, moved to the nearest such day (at most 3 days earlier or later).
*/
private function shift(CarbonImmutable $date, ?int $weekday): CarbonImmutable
{
$next = $date->addYearNoOverflow();
if ($weekday === null) {
return $next;
}
$difference = ($weekday - $next->isoWeekday() + 7) % 7;
return $difference <= 3 ? $next->addDays($difference) : $next->subDays(7 - $difference);
}
}
+2 -1
View File
@@ -7,6 +7,7 @@
use App\Models\Channel;
use App\Models\ChannelTask;
use App\Models\Property;
use App\Support\Settings;
use Carbon\CarbonInterface;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Mail;
@@ -45,7 +46,7 @@ public function handle(Property $property, CarbonInterface $startsOn, CarbonInte
return [];
}
rescue(fn () => Mail::to(config('fewo.notification_email'))->send(new ChannelTasksNotification($tasks)));
rescue(fn () => Mail::to(Settings::notificationRecipients())->send(new ChannelTasksNotification($tasks)));
foreach ($tasks as $task) {
$this->sendToAutomation($task);
+2 -1
View File
@@ -13,6 +13,7 @@
use App\Pricing\PriceCalculator;
use App\Pricing\QuoteException;
use App\Pricing\StayRequest;
use App\Support\Settings;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Mail;
@@ -119,7 +120,7 @@ private function sendMails(Booking $booking): void
{
try {
Mail::to($booking->guest->email, $booking->guest->full_name)->send(new ReservationReceived($booking));
Mail::to(config('fewo.notification_email'))->send(new NewReservation($booking));
Mail::to(Settings::notificationRecipients())->send(new NewReservation($booking));
} catch (Throwable $exception) {
report($exception);
}
+2 -1
View File
@@ -5,6 +5,7 @@
use App\Enums\BookingStatus;
use App\Mail\ReservationExpired;
use App\Models\Booking;
use App\Support\Settings;
use Illuminate\Support\Facades\Mail;
/**
@@ -24,7 +25,7 @@ public function handle(): int
foreach ($expired as $booking) {
$booking->update(['status' => BookingStatus::Expired]);
Mail::to(config('fewo.notification_email'))->send(new ReservationExpired($booking));
Mail::to(Settings::notificationRecipients())->send(new ReservationExpired($booking));
}
return $expired->count();
+3 -2
View File
@@ -6,6 +6,7 @@
use App\Mail\ChannelSyncAlert;
use App\Mail\MailboxAlert;
use App\Models\Channel;
use App\Support\Settings;
use Carbon\CarbonImmutable;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Mail;
@@ -24,7 +25,7 @@ public function handle(): int
->filter(fn (Channel $channel): bool => $channel->isStale());
foreach ($channels as $channel) {
Mail::to(config('fewo.notification_email'))->send(new ChannelSyncAlert($channel));
Mail::to(Settings::notificationRecipients())->send(new ChannelSyncAlert($channel));
$channel->forceFill(['alerted_at' => now()])->save();
}
@@ -55,7 +56,7 @@ private function monitorMailbox(): int
return 0;
}
Mail::to(config('fewo.notification_email'))->send(new MailboxAlert(Cache::get(MailboxReader::LAST_ERROR_KEY)));
Mail::to(Settings::notificationRecipients())->send(new MailboxAlert(Cache::get(MailboxReader::LAST_ERROR_KEY)));
Cache::forever(self::MAILBOX_ALERTED_KEY, true);
return 1;
+3 -2
View File
@@ -13,6 +13,7 @@
use App\Models\BlockedPeriod;
use App\Models\Channel;
use App\Models\PortalEmail;
use App\Support\Settings;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Mail;
@@ -68,11 +69,11 @@ public function handle(PortalMail $mail): ?PortalEmail
});
if (in_array($record->status, [PortalEmailStatus::Blocked, PortalEmailStatus::Released, PortalEmailStatus::NeedsReview], true)) {
rescue(fn () => Mail::to(config('fewo.notification_email'))->send(new PortalMailNotification($record)));
rescue(fn () => Mail::to(Settings::notificationRecipients())->send(new PortalMailNotification($record)));
}
if ($conflicts !== []) {
rescue(fn () => Mail::to(config('fewo.notification_email'))->send(new ChannelConflict($channel, $conflicts)));
rescue(fn () => Mail::to(Settings::notificationRecipients())->send(new ChannelConflict($channel, $conflicts)));
}
return $record;
+2 -1
View File
@@ -6,6 +6,7 @@
use App\Exceptions\ReservationException;
use App\Mail\OfferAnswered;
use App\Models\Booking;
use App\Support\Settings;
use Illuminate\Support\Facades\Mail;
use Throwable;
@@ -34,7 +35,7 @@ public function handle(Booking $booking, int $offerVersion): void
]);
try {
Mail::to(config('fewo.notification_email'))->send(new OfferAnswered($booking, accepted: false));
Mail::to(Settings::notificationRecipients())->send(new OfferAnswered($booking, accepted: false));
} catch (Throwable $exception) {
report($exception);
}
+2 -1
View File
@@ -4,6 +4,7 @@
use App\Mail\ChannelTasksNotification;
use App\Models\ChannelTask;
use App\Support\Settings;
use Illuminate\Support\Facades\Mail;
/**
@@ -24,7 +25,7 @@ public function handle(): int
return 0;
}
Mail::to(config('fewo.notification_email'))->send(new ChannelTasksNotification($tasks->all(), reminder: true));
Mail::to(Settings::notificationRecipients())->send(new ChannelTasksNotification($tasks->all(), reminder: true));
ChannelTask::whereKey($tasks->modelKeys())->update(['reminded_at' => now()]);
return $tasks->count();
+2 -1
View File
@@ -7,6 +7,7 @@
use App\Mail\NewReview;
use App\Models\Booking;
use App\Models\Review;
use App\Support\Settings;
use Illuminate\Support\Facades\Mail;
use RuntimeException;
@@ -32,7 +33,7 @@ public function handle(Booking $booking, array $data): Review
'stayed_on' => $booking->arrival,
]);
Mail::to(config('fewo.notification_email'))->send(new NewReview($review));
Mail::to(Settings::notificationRecipients())->send(new NewReview($review));
return $review;
}
+2 -1
View File
@@ -9,6 +9,7 @@
use App\Models\BlockedPeriod;
use App\Models\Channel;
use App\Models\ChannelSyncLog;
use App\Support\Settings;
use Carbon\CarbonImmutable;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Mail;
@@ -109,7 +110,7 @@ public function handle(Channel $channel): ChannelSyncLog
])->save();
if ($conflicts !== []) {
rescue(fn () => Mail::to(config('fewo.notification_email'))->send(new ChannelConflict($channel, $conflicts)));
rescue(fn () => Mail::to(Settings::notificationRecipients())->send(new ChannelConflict($channel, $conflicts)));
}
return $channel->syncLogs()->create([
+51
View File
@@ -0,0 +1,51 @@
<?php
namespace App\Console\Commands;
use App\Support\Settings;
use Illuminate\Console\Attributes\Description;
use Illuminate\Console\Attributes\Signature;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Mail;
use Throwable;
#[Signature('mail:test {to? : Empfänger (Standard: Benachrichtigungsadresse)}')]
#[Description('Send a test e-mail through the configured mailer and report delivery errors (e.g. SMTP login)')]
class SendTestMail extends Command
{
/**
* Execute the console command.
*/
public function handle(): int
{
$to = (string) ($this->argument('to') ?: Settings::notificationRecipients()[0] ?? config('fewo.owner.email'));
$mailer = (string) config('mail.default');
$redirect = Settings::mailRedirect();
$this->line("Versandweg: {$mailer}".($mailer === 'smtp' ? ' ('.config('mail.mailers.smtp.host').':'.config('mail.mailers.smtp.port').')' : '').' · Absender: '.config('mail.from.address'));
if (filled($redirect)) {
$this->line("Umleitung aktiv: die Mail geht an {$redirect} statt an {$to}.");
}
if ($mailer === 'log') {
$this->warn('Versandweg "log": es wird nichts zugestellt. Zum echten Versand MAIL_MAILER=smtp und MAIL_PASSWORD setzen (docs/BETRIEB.md §5a).');
}
try {
Mail::raw("Testmail der Ferienwohnung Stommer\n\nGesendet am ".now()->format('d.m.Y H:i:s').' von '.config('app.url').".\nWenn diese Mail ankommt, funktioniert der Versand.", function ($message) use ($to): void {
$message->to($to)->subject('Testmail Ferienwohnung Stommer – '.now()->format('d.m.Y H:i'));
});
} catch (Throwable $exception) {
$this->error('Versand fehlgeschlagen: '.$exception->getMessage());
return self::FAILURE;
}
if ($mailer === 'log') {
$this->line('Mail erzeugt, aber nicht zugestellt (Versandweg "log").');
} else {
$this->info('Übergeben an den Mailserver – bitte Posteingang (und Spam-Ordner) prüfen.');
}
return self::SUCCESS;
}
}
+5 -1
View File
@@ -2,10 +2,12 @@
namespace App\Enums;
use App\Filament\Pages\PricesAndOffers;
use App\Filament\Resources\BlockedPeriods\BlockedPeriodResource;
use App\Filament\Resources\Bookings\BookingResource;
use App\Filament\Resources\ChannelTasks\ChannelTaskResource;
use App\Filament\Resources\Guests\GuestResource;
use App\Filament\Resources\Photos\PhotoResource;
use App\Filament\Resources\Reviews\ReviewResource;
use Filament\Support\Contracts\HasDescription;
use Filament\Support\Contracts\HasLabel;
@@ -26,9 +28,11 @@ enum AdminMode: string implements HasDescription, HasLabel
public const SIMPLE_NAVIGATION = [
BookingResource::class,
BlockedPeriodResource::class,
PricesAndOffers::class,
GuestResource::class,
ChannelTaskResource::class,
ReviewResource::class,
PhotoResource::class,
];
public function getLabel(): string
@@ -42,7 +46,7 @@ public function getLabel(): string
public function getDescription(): string
{
return match ($this) {
self::Simple => 'Nur das Tägliche: Anfragen, Buchungen und Verträge, Sperrzeiten, Gäste, Portal-Aufgaben, Bewertungen',
self::Simple => 'Das Tägliche: Anfragen, Buchungen und Verträge, Sperrzeiten, Preise & Angebote, Gäste, Portal-Aufgaben, Bewertungen, Fotos',
self::Expert => 'Alle Einstellungen: Preise, Angebote, Portale, Webseite, System',
};
}
+152
View File
@@ -0,0 +1,152 @@
<?php
namespace App\Filament\Pages;
use App\Enums\UserRole;
use App\Filament\Concerns\FollowsAdminMode;
use App\Support\Settings;
use BackedEnum;
use Filament\Actions\Action;
use Filament\Forms\Components\Radio;
use Filament\Forms\Components\TagsInput;
use Filament\Forms\Components\TextInput;
use Filament\Notifications\Notification;
use Filament\Pages\Page;
use Filament\Schemas\Components\Actions;
use Filament\Schemas\Components\EmbeddedSchema;
use Filament\Schemas\Components\Form;
use Filament\Schemas\Components\Section;
use Filament\Schemas\Components\Text;
use Filament\Schemas\Components\Utilities\Get;
use Filament\Schemas\Schema;
use Filament\Support\Icons\Heroicon;
use UnitEnum;
/**
* Operating mode (test mode sends every e-mail to one test recipient only; live delivers to the real recipients)
* and the addresses of the internal communication (notifications, contact/reply-to, sender). Administrators only.
*/
class Operations extends Page
{
use FollowsAdminMode;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedPower;
protected static string|UnitEnum|null $navigationGroup = 'System';
protected static ?string $navigationLabel = 'Betrieb';
protected static ?string $title = 'Betrieb';
protected static ?string $slug = 'betrieb';
protected static ?int $navigationSort = 1;
/** @var array<string, ?string> */
public array $data = [];
public static function canAccess(): bool
{
return (bool) auth()->user()?->hasRole(UserRole::Admin);
}
public function mount(): void
{
$this->form->fill([
'mode' => Settings::get(Settings::MODE, Settings::MODE_TEST),
'test_recipient' => Settings::get(Settings::TEST_RECIPIENT) ?? auth()->user()?->email,
'notification_recipients' => Settings::notificationRecipients(),
'contact_email' => config('fewo.owner.email'),
'sender_name' => config('mail.from.name'),
'sender_email' => config('mail.from.address'),
]);
}
public function form(Schema $schema): Schema
{
return $schema
->statePath('data')
->components([
Section::make('E-Mail-Versand')
->description('Im Testbetrieb gehen alle E-Mails – Eingangsbestätigungen, Angebote, Bestätigungen, Erinnerungen, Benachrichtigungen – ausschließlich an die Testadresse, egal welche Adresse auf der Webseite eingetragen wurde.')
->schema([
Radio::make('mode')
->label('Betriebsart')
->options([
Settings::MODE_TEST => 'Testbetrieb – alle E-Mails an die Testadresse',
Settings::MODE_LIVE => 'Scharf geschaltet – E-Mails an Gäste und Vermieterin',
])
->required()
->live(),
TextInput::make('test_recipient')
->label('Testadresse')
->email()
->required(fn (Get $get): bool => $get('mode') === Settings::MODE_TEST)
->visible(fn (Get $get): bool => $get('mode') === Settings::MODE_TEST),
Text::make(fn (): string => filled(config('fewo.mail_redirect_to'))
? 'Hinweis: Auf diesem Server ist zusätzlich FEWO_MAIL_REDIRECT_TO='.config('fewo.mail_redirect_to').' gesetzt – diese Umleitung gilt immer, auch wenn hier scharf geschaltet ist.'
: ''),
]),
Section::make('Adressen der internen Kommunikation')
->description('Gelten sofort für alle E-Mails, die Webseite und den Mietvertrag. Im Testbetrieb gehen trotzdem alle E-Mails nur an die Testadresse.')
->columns(2)
->schema([
TagsInput::make('notification_recipients')
->label('Benachrichtigungen an')
->helperText('Neue Anfragen, angenommene/abgelehnte Angebote, abgelaufene Fristen, Bewertungen, Portal-Mails und -Aufgaben, Kopie der Zahlungserinnerungen. Mehrere Adressen möglich (Enter nach jeder Adresse).')
->placeholder('adresse@beispiel.de')
->nestedRecursiveRules(['email'])
->required()
->columnSpanFull(),
TextInput::make('contact_email')
->label('Kontakt- und Antwortadresse')
->helperText('Steht auf der Webseite und im Mietvertrag; Antworten der Gäste auf unsere E-Mails gehen hierhin.')
->email()
->required(),
TextInput::make('sender_name')
->label('Absendername')
->required()
->maxLength(100),
TextInput::make('sender_email')
->label('Absenderadresse')
->helperText(fn (): string => 'Muss das Postfach sein, mit dem der Server versendet (SMTP-Anmeldung: '.(config('mail.mailers.smtp.username') ?: 'nicht gesetzt').') – sonst lehnt Strato den Versand ab.')
->email()
->required(),
Text::make(fn (Get $get): string => filled(config('mail.mailers.smtp.username')) && filled($get('sender_email')) && strcasecmp((string) $get('sender_email'), (string) config('mail.mailers.smtp.username')) !== 0
? '⚠ Die Absenderadresse weicht vom SMTP-Postfach ('.config('mail.mailers.smtp.username').') ab. Strato stellt solche E-Mails in der Regel nicht zu.'
: '')
->columnSpanFull(),
]),
]);
}
public function content(Schema $schema): Schema
{
return $schema->components([
Form::make([EmbeddedSchema::make('form')])
->id('form')
->livewireSubmitHandler('save')
->footer([Actions::make([Action::make('save')->label('Speichern')->submit('save')])]),
]);
}
public function save(): void
{
$data = $this->form->getState();
if ($data['mode'] === Settings::MODE_LIVE && Settings::get(Settings::MODE) !== Settings::MODE_LIVE) {
Notification::make()->title('Scharf geschaltet')->body('Ab jetzt erhalten Gäste und Vermieterin die E-Mails direkt.')->warning()->send();
} else {
Notification::make()->title('Gespeichert')->success()->send();
}
Settings::save([
Settings::MODE => $data['mode'],
Settings::TEST_RECIPIENT => $data['test_recipient'] ?? Settings::get(Settings::TEST_RECIPIENT),
Settings::NOTIFICATION_RECIPIENTS => implode(', ', Settings::addressList(implode(',', $data['notification_recipients'] ?? []))),
Settings::CONTACT_EMAIL => $data['contact_email'],
Settings::SENDER_NAME => $data['sender_name'],
Settings::SENDER_EMAIL => $data['sender_email'],
]);
}
}
+88
View File
@@ -0,0 +1,88 @@
<?php
namespace App\Filament\Pages;
use App\Enums\UserRole;
use App\Filament\Concerns\FollowsAdminMode;
use App\Filament\Resources\Properties\Pages\EditProperty;
use App\Filament\Resources\Properties\RelationManagers\ExtrasRelationManager;
use App\Filament\Resources\Properties\RelationManagers\SeasonsRelationManager;
use App\Filament\Resources\Properties\RelationManagers\SpecialOffersRelationManager;
use App\Models\Property;
use BackedEnum;
use Filament\Forms\Components\Select;
use Filament\Pages\Page;
use Filament\Schemas\Components\Livewire;
use Filament\Schemas\Components\Tabs;
use Filament\Schemas\Components\Tabs\Tab;
use Filament\Schemas\Components\Text;
use Filament\Schemas\Schema;
use Filament\Support\Icons\Heroicon;
use Livewire\Attributes\Url;
use UnitEnum;
/**
* The yearly price work in one place, without the other apartment settings: seasons & prices,
* special offers & promo codes, extras. Reuses the relation managers of the apartment.
*/
class PricesAndOffers extends Page
{
use FollowsAdminMode;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedCurrencyEuro;
protected static string|UnitEnum|null $navigationGroup = 'Vermietung';
protected static ?string $navigationLabel = 'Preise & Angebote';
protected static ?string $title = 'Preise & Angebote';
protected static ?string $slug = 'preise-und-angebote';
protected static ?int $navigationSort = 3;
#[Url(as: 'wohnung')]
public ?int $propertyId = null;
public static function canAccess(): bool
{
return (bool) auth()->user()?->hasRole(UserRole::Admin, UserRole::Rentals);
}
public function mount(): void
{
$this->propertyId ??= Property::query()->where('is_active', true)->value('id') ?? Property::query()->value('id');
}
public function content(Schema $schema): Schema
{
$property = Property::find($this->propertyId);
if ($property === null) {
return $schema->components([Text::make('Es ist noch keine Wohnung angelegt (Expertenansicht › Wohnungen).')]);
}
$context = ['ownerRecord' => $property, 'pageClass' => EditProperty::class];
return $schema->components([
Select::make('propertyId')
->label('Wohnung')
->options(fn (): array => Property::query()->orderBy('name')->pluck('name', 'id')->all())
->live()
->afterStateUpdated(fn () => $this->redirect(static::getUrl(['wohnung' => $this->propertyId])))
->visible(fn (): bool => Property::query()->count() > 1),
Tabs::make('prices')
->persistTabInQueryString()
->tabs([
Tab::make('Saisons & Preise')->icon(Heroicon::OutlinedCalendar)->schema([
Livewire::make(SeasonsRelationManager::class, $context)->key("seasons-{$property->id}"),
]),
Tab::make('Sonderangebote & Rabattcodes')->icon(Heroicon::OutlinedSparkles)->schema([
Livewire::make(SpecialOffersRelationManager::class, $context)->key("offers-{$property->id}"),
]),
Tab::make('Extras')->icon(Heroicon::OutlinedGift)->schema([
Livewire::make(ExtrasRelationManager::class, $context)->key("extras-{$property->id}"),
]),
]),
]);
}
}
@@ -23,6 +23,7 @@
use Filament\Forms\Components\DatePicker;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Toggle;
use Filament\Notifications\Notification;
use Filament\Resources\RelationManagers\RelationManager;
use Filament\Schemas\Components\Utilities\Get;
@@ -35,6 +36,8 @@
class SeasonsRelationManager extends RelationManager
{
public const WEEKDAYS = [1 => 'Montag', 2 => 'Dienstag', 3 => 'Mittwoch', 4 => 'Donnerstag', 5 => 'Freitag', 6 => 'Samstag', 7 => 'Sonntag'];
protected static string $relationship = 'seasons';
protected static ?string $title = 'Saisons & Preise';
@@ -111,6 +114,7 @@ public function table(Table $table): Table
->headerActions([
CreateAction::make(),
$this->copyToNextYearAction(),
$this->minimumStayRulesAction(),
$this->priceCalculatorAction(),
])
->recordActions([
@@ -179,22 +183,52 @@ private function seasonYears(): array
return $years->combine($years)->all();
}
/**
* The relaxations of the seasons' minimum stay, edited where the seasons are maintained.
*/
private function minimumStayRulesAction(): Action
{
return Action::make('minimumStayRules')
->label('Regeln Mindestaufenthalt')
->icon(Heroicon::OutlinedAdjustmentsHorizontal)
->color('gray')
->modalHeading('Mindestaufenthalt – Ausnahmen')
->modalDescription('Jede Saison hat ihre Mindestnächte. Diese Regeln erlauben kürzere Aufenthalte, wenn sie den Kalender nicht zerstückeln. Sonderangebote können den Mindestaufenthalt zusätzlich aufheben.')
->fillForm(fn (): array => $this->getOwnerRecord()->only(['changeover_weekday', 'min_stay_fill_gaps', 'min_stay_until_changeover', 'min_stay_absolute']))
->schema([
Select::make('changeover_weekday')->label('Typischer An- und Abreisetag')->options(self::WEEKDAYS)->placeholder('keiner'),
Toggle::make('min_stay_fill_gaps')->label('Kalenderlücken: kürzer erlaubt, wenn die Buchung eine Lücke zwischen zwei Belegungen vollständig füllt'),
Toggle::make('min_stay_until_changeover')->label('Kürzer erlaubt, wenn die Buchung am typischen Anreisetag endet (die Woche danach bleibt frei buchbar)'),
TextInput::make('min_stay_absolute')->label('Untergrenze für alle Ausnahmen')->integer()->minValue(1)->maxValue(14)->suffix('Nächte')->required(),
])
->action(function (array $data): void {
$this->getOwnerRecord()->update($data);
Notification::make()->title('Regeln gespeichert')->success()->send();
});
}
private function copyToNextYearAction(): Action
{
return Action::make('copyToNextYear')
->label('In Folgejahr kopieren')
->icon(Heroicon::OutlinedDocumentDuplicate)
->color('gray')
->modalDescription('Alle Saisons, die im gewählten Jahr beginnen, werden mit gleichen Kalenderdaten und Preisen ins Folgejahr übernommen. Bereits belegte Zeiträume werden übersprungen.')
->modalDescription('Alle Saisons, die im gewählten Jahr beginnen, werden mit Preisen und Mindestnächten ins Folgejahr übernommen. Bereits belegte Zeiträume werden übersprungen.')
->schema([
Select::make('year')
->label('Jahr kopieren')
->options(fn (): array => $this->seasonYears())
->default((string) now()->year)
->required(),
Select::make('weekday')
->label('Saisonbeginn legen auf')
->helperText('Jeder Saisonbeginn wird auf den nächstgelegenen Wochentag verschoben (höchstens 3 Tage); aneinandergrenzende Saisons bleiben lückenlos.')
->options(self::WEEKDAYS)
->placeholder('gleiche Kalenderdaten wie im Vorjahr')
->default(fn (): ?int => $this->getOwnerRecord()->changeover_weekday),
])
->action(function (array $data, CopySeasonsToNextYear $copySeasons): void {
$result = $copySeasons->handle($this->getOwnerRecord(), (int) $data['year']);
$result = $copySeasons->handle($this->getOwnerRecord(), (int) $data['year'], filled($data['weekday'] ?? null) ? (int) $data['weekday'] : null);
Notification::make()
->title("{$result['created']} Saisons nach ".((int) $data['year'] + 1).' kopiert')
@@ -121,6 +121,9 @@ public function form(Schema $schema): Schema
Toggle::make('is_combinable')
->label('Mit anderen kombinierbaren Angeboten kombinierbar')
->helperText('Sonst erhält der Gast automatisch das für ihn beste Einzelangebot.'),
Toggle::make('waives_min_stay')
->label('Mindestaufenthalt der Saison aufheben')
->helperText('Wenn das Angebot gilt, darf der Aufenthalt kürzer sein als die Mindestnächte der Saison (z. B. Special Weekend mit 2 Nächten, kurze Lücke).'),
]),
Section::make('Bewerbung auf der Webseite')
->description('Welche Angebote gerade erscheinen, ergibt sich automatisch: aktiv, ohne Aktionscode, im Buchungszeitraum, feste Termine nur solange frei, Lückenfüller je gefundener Lücke. Mehrere gleichzeitig werden im Baustein „Sonderangebote“ nebeneinander, als Liste oder rollierend gezeigt.')
@@ -144,10 +147,7 @@ public function form(Schema $schema): Schema
->visible(fn (Get $get): bool => $this->kind($get) === OfferKind::GapFiller)
->schema([
TextInput::make('max_gap_nights')->label('Lücken bis höchstens … Nächte')->integer()->minValue(1)->default(4)->required(),
Toggle::make('waives_min_stay')
->label('Mindestaufenthalt der Saison aufheben')
->helperText('Damit auch kurze Lücken (z. B. 2 Nächte bei 5 Nächten Mindestaufenthalt) buchbar werden.')
->default(true),
]),
Section::make('Bedingungen')
->description('Leere Felder bedeuten: keine Einschränkung.')
+55 -7
View File
@@ -5,6 +5,7 @@
use App\Actions\CreateReservation;
use App\Actions\RequestMarketingConsent;
use App\Availability\AvailabilityChecker;
use App\Enums\BookingStatus;
use App\Enums\ReferralSource;
use App\Exceptions\ReservationException;
use App\Models\Booking;
@@ -77,12 +78,17 @@ class BookingRequest extends Component
/** Honeypot, must stay empty. */
public string $website = '';
/** When the form was opened (time trap against bots); cannot be changed by the browser. */
#[Locked]
public int $openedAt = 0;
#[Locked]
public ?int $bookingId = null;
public function mount(?Property $property = null): void
{
$this->propertyId = ($property ?? Property::query()->where('is_active', true)->firstOrFail())->id;
$this->openedAt = now()->getTimestamp();
$this->month = CarbonImmutable::today()->format('Y-m');
$this->prefillFromSearch();
$this->utm = collect(request()->only(['utm_source', 'utm_medium', 'utm_campaign']))
@@ -215,17 +221,22 @@ public function submit(CreateReservation $createReservation): void
{
$this->validate();
if ($this->website !== '') {
// Bots: honeypot filled or submitted faster than a human can fill the form – silently ignored.
if ($this->website !== '' || now()->getTimestamp() - $this->openedAt < config('fewo.spam.min_seconds')) {
return;
}
$rateLimitKey = 'booking-request:'.request()->ip();
if (RateLimiter::tooManyAttempts($rateLimitKey, 5)) {
if ($this->tooManyRequests()) {
$this->addError('email', 'Zu viele Anfragen. Bitte versuchen Sie es später erneut oder rufen Sie uns an.');
return;
}
RateLimiter::hit($rateLimitKey, 3600);
if ($this->openRequestsOfEmail() >= config('fewo.spam.open_requests_per_email')) {
$this->addError('email', 'Zu dieser E-Mail-Adresse liegen bereits offene Anfragen vor. Wir melden uns in Kürze – bei Fragen rufen Sie uns gern an.');
return;
}
try {
$booking = $createReservation->handle(
@@ -260,6 +271,39 @@ public function submit(CreateReservation $createReservation): void
/**
* @return array<string, list<string>>
*/
/**
* Rate limits per IP address, per e-mail address and for all requests together (counted when they pass).
*/
private function tooManyRequests(): bool
{
$limits = [
'booking-request:'.request()->ip() => [config('fewo.spam.per_ip_per_hour'), 3600],
'booking-request-email:'.sha1(mb_strtolower($this->email)) => [config('fewo.spam.per_email_per_day'), 86400],
'booking-request-all' => [config('fewo.spam.total_per_hour'), 3600],
];
foreach ($limits as $key => [$max]) {
if (RateLimiter::tooManyAttempts($key, $max)) {
return true;
}
}
foreach ($limits as $key => [, $decay]) {
RateLimiter::hit($key, $decay);
}
return false;
}
private function openRequestsOfEmail(): int
{
return Booking::query()
->whereIn('status', BookingStatus::holding())
->where('hold_expires_at', '>', now())
->whereHas('guest', fn ($query) => $query->where('email', mb_strtolower($this->email)))
->count();
}
protected function rules(): array
{
return [
@@ -268,14 +312,18 @@ protected function rules(): array
'guests' => ['required', 'integer', 'min:1', 'max:'.$this->property->max_guests],
'extras.*' => ['nullable', 'integer', 'min:0', 'max:10'],
'promoCode' => ['nullable', 'string', 'max:50'],
'firstName' => ['required', 'string', 'max:255'],
'lastName' => ['required', 'string', 'max:255'],
'firstName' => ['required', 'string', 'max:255', 'not_regex:/https?:|www\.|<|>/i'],
'lastName' => ['required', 'string', 'max:255', 'not_regex:/https?:|www\.|<|>/i'],
'email' => ['required', 'email', 'max:255'],
'phone' => ['nullable', 'string', 'max:50'],
'street' => ['nullable', 'string', 'max:255'],
'postalCode' => ['nullable', 'string', 'max:20'],
'city' => ['nullable', 'string', 'max:255'],
'message' => ['nullable', 'string', 'max:5000'],
'message' => ['nullable', 'string', 'max:5000', function (string $attribute, mixed $value, \Closure $fail): void {
if (preg_match_all('~https?://|www\.~i', (string) $value) > config('fewo.spam.max_links')) {
$fail('Bitte schreiben Sie Ihre Nachricht ohne Links.');
}
}],
'referralSource' => ['nullable', Rule::enum(ReferralSource::class)],
'privacyAccepted' => ['accepted'],
];
+2 -1
View File
@@ -3,6 +3,7 @@
namespace App\Mail;
use App\Models\Booking;
use App\Support\Settings;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Address;
@@ -33,7 +34,7 @@ public function envelope(): Envelope
default => "Zahlungserinnerung zu Ihrer Buchung {$this->booking->reference}",
},
replyTo: [new Address(config('fewo.owner.email'), config('fewo.owner.name'))],
bcc: $this->kind === self::BALANCE_REQUEST ? [] : [new Address(config('fewo.notification_email'))],
bcc: $this->kind === self::BALANCE_REQUEST ? [] : array_map(fn (string $address): Address => new Address($address), Settings::notificationRecipients()),
);
}
+19
View File
@@ -27,6 +27,10 @@
'hold_hours',
'check_in_time',
'check_out_time',
'changeover_weekday',
'min_stay_fill_gaps',
'min_stay_until_changeover',
'min_stay_absolute',
'is_active',
])]
class Property extends Model
@@ -39,10 +43,25 @@ class Property extends Model
*
* @return array<string, string>
*/
/**
* Defaults of the minimum stay rules (as in the migration), also before the model is reloaded.
*
* @var array<string, mixed>
*/
protected $attributes = [
'min_stay_fill_gaps' => true,
'min_stay_until_changeover' => false,
'min_stay_absolute' => 2,
];
protected function casts(): array
{
return [
'is_active' => 'boolean',
'min_stay_fill_gaps' => 'boolean',
'min_stay_until_changeover' => 'boolean',
'changeover_weekday' => 'integer',
'min_stay_absolute' => 'integer',
];
}
+12
View File
@@ -0,0 +1,12 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Model;
/**
* One operational setting (key → value), read through App\Support\Settings.
*/
#[Fillable(['key', 'value'])]
class Setting extends Model {}
+25 -2
View File
@@ -40,8 +40,7 @@ public function calculate(Property $property, StayRequest $stay, ?CarbonImmutabl
$offers = $this->applicableOffers($property, $stay, $nightSeasons, $bookedAt);
$arrivalSeason = $nightSeasons[0];
$minimumStayWaived = $offers->contains(fn (SpecialOffer $offer): bool => $offer->waives_min_stay && $offer->kind === OfferKind::GapFiller);
if ($nights < $arrivalSeason->min_nights && ! $minimumStayWaived) {
if ($nights < $arrivalSeason->min_nights && ! $this->minimumStayRelaxed($property, $stay, $offers)) {
throw QuoteException::minimumStay($arrivalSeason->min_nights, $arrivalSeason->name);
}
@@ -125,6 +124,30 @@ private function accommodationLines(array $nightSeasons): array
), $runs);
}
/**
* Whether a stay shorter than the season's minimum is still allowed: an applicable offer waives it, or –
* never below the property's absolute minimum – the stay fills a calendar gap completely, or it ends on the
* typical changeover day (so the following week stays bookable).
*
* @param Collection<int, SpecialOffer> $offers
*/
private function minimumStayRelaxed(Property $property, StayRequest $stay, Collection $offers): bool
{
if ($offers->contains(fn (SpecialOffer $offer): bool => $offer->waives_min_stay)) {
return true;
}
if ($stay->nights() < max(1, (int) $property->min_stay_absolute)) {
return false;
}
if ($property->min_stay_until_changeover && $property->changeover_weekday !== null && $stay->departure->isoWeekday() === $property->changeover_weekday) {
return true;
}
return $property->min_stay_fill_gaps && $this->gaps->gapContaining($property, $stay->arrival, $stay->departure) === $stay->nights();
}
/**
* Active offers whose conditions the stay meets. The calendar gap is only looked up if a gap filler exists.
*
+5
View File
@@ -2,6 +2,7 @@
namespace App\Providers;
use App\Support\Settings;
use App\Support\StripImageMetadata;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\URL;
@@ -23,6 +24,10 @@ public function register(): void
*/
public function boot(): void
{
// Test mode (System › Betrieb, default until switched live): every e-mail goes to the test recipient only.
Settings::applyAddressOverrides();
Settings::applyMailRouting();
// Photos: remove metadata (GPS position, camera data) from uploaded originals, which stay downloadable.
Event::listen(MediaHasBeenAddedEvent::class, fn (MediaHasBeenAddedEvent $event) => StripImageMetadata::strip($event->media));
@@ -16,7 +16,9 @@
use Filament\PanelProvider;
use Filament\Support\Colors\Color;
use Filament\Support\Icons\Heroicon;
use Filament\View\PanelsRenderHook;
use Filament\Widgets\AccountWidget;
use Illuminate\Contracts\View\View;
use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse;
use Illuminate\Cookie\Middleware\EncryptCookies;
use Illuminate\Foundation\Http\Middleware\PreventRequestForgery;
@@ -58,6 +60,8 @@ public function panel(Panel $panel): Panel
}),
])
->brandName('FeWo Stommer · Verwaltung')
// As long as the site is not switched live, every page shows where the e-mails go.
->renderHook(PanelsRenderHook::BODY_START, fn (): View => view('filament.test-mode-banner'))
->navigationGroups(['Vermietung', 'Webseite', 'System'])
->colors([
'primary' => Color::Sky,
+142
View File
@@ -0,0 +1,142 @@
<?php
namespace App\Support;
use App\Models\Setting;
use Illuminate\Mail\MailManager;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Mail;
use Throwable;
/**
* Operational settings from the admin (System › Betrieb), cached. The most important one: the operating mode.
* In **test mode** (the default until the site is switched live) every e-mail goes to the test recipient only,
* whatever address was entered on the website.
*/
class Settings
{
public const MODE = 'operations.mode';
public const TEST_RECIPIENT = 'operations.test_recipient';
/** Comma-separated: who is informed about new requests, answered offers, portal events … */
public const NOTIFICATION_RECIPIENTS = 'addresses.notifications';
/** Contact address shown on the website and in the contract; reply-to of guest mails. */
public const CONTACT_EMAIL = 'addresses.contact';
public const SENDER_EMAIL = 'addresses.sender_email';
public const SENDER_NAME = 'addresses.sender_name';
public const MODE_TEST = 'test';
public const MODE_LIVE = 'live';
private const CACHE_KEY = 'settings.all';
public static function get(string $key, ?string $default = null): ?string
{
try {
$values = Cache::rememberForever(self::CACHE_KEY, fn (): array => Setting::query()->pluck('value', 'key')->all());
} catch (Throwable) {
return $default; // e.g. before the migrations ran
}
return $values[$key] ?? $default;
}
/**
* @param array<string, ?string> $values
*/
public static function save(array $values): void
{
foreach ($values as $key => $value) {
Setting::query()->updateOrCreate(['key' => $key], ['value' => $value]);
}
Cache::forget(self::CACHE_KEY);
self::applyAddressOverrides();
self::applyMailRouting();
}
/**
* The recipients of internal notifications (admin setting, else FEWO_NOTIFICATION_EMAIL).
*
* @return list<string>
*/
public static function notificationRecipients(): array
{
return self::addressList(self::get(self::NOTIFICATION_RECIPIENTS) ?: (string) config('fewo.notification_email'));
}
/**
* "a@x.de, b@y.de; c@z.de" → valid addresses only.
*
* @return list<string>
*/
public static function addressList(?string $value): array
{
return array_values(array_filter(
array_map('trim', preg_split('/[,;\s]+/', (string) $value) ?: []),
fn (string $address): bool => filter_var($address, FILTER_VALIDATE_EMAIL) !== false,
));
}
/**
* Admin settings for the contact address and the sender override the .env values for this request.
*/
public static function applyAddressOverrides(): void
{
$overrides = array_filter([
'fewo.owner.email' => self::get(self::CONTACT_EMAIL),
'mail.from.address' => self::get(self::SENDER_EMAIL),
'mail.from.name' => self::get(self::SENDER_NAME),
]);
if ($overrides !== []) {
config($overrides);
}
}
public static function isLive(): bool
{
return self::get(self::MODE, self::MODE_TEST) === self::MODE_LIVE;
}
/**
* Where all e-mails go instead of their real recipients, or null when mails are delivered normally.
* FEWO_MAIL_REDIRECT_TO in .env always wins (hard override for test servers).
*/
public static function mailRedirect(): ?string
{
$override = config('fewo.mail_redirect_to');
if (filled($override)) {
return (string) $override;
}
if (self::isLive()) {
return null;
}
return self::get(self::TEST_RECIPIENT) ?: (self::notificationRecipients()[0] ?? null);
}
/**
* Applies the redirect to the mailer; called at boot and after saving.
*/
public static function applyMailRouting(): void
{
$manager = Mail::getFacadeRoot();
if (! $manager instanceof MailManager) {
return; // Mail::fake() in tests
}
$redirect = self::mailRedirect();
$manager->purge();
if (filled($redirect)) {
$manager->alwaysTo($redirect);
}
}
}
+19
View File
@@ -50,6 +50,25 @@
| Further retention periods (docs/LOESCHKONZEPT.md). The defaults are PROPOSALS – please have them
| confirmed according to the general legal opinion (tax advisor / legal advice) and adjust here.
*/
// Hard override: every e-mail goes to this address only, regardless of the operating mode in the admin
// (System › Betrieb). Empty = the admin setting decides (test mode → test recipient, live → real recipients).
'mail_redirect_to' => env('FEWO_MAIL_REDIRECT_TO'),
// Protection of the booking form against bots (no external captcha service – GDPR). Every request holds
// the dates for the hold time, so automated requests could block the calendar.
'spam' => [
// Faster than this after opening the page = bot; silently ignored.
'min_seconds' => (int) env('FEWO_SPAM_MIN_SECONDS', 4),
'per_ip_per_hour' => (int) env('FEWO_SPAM_PER_IP_PER_HOUR', 5),
'per_email_per_day' => (int) env('FEWO_SPAM_PER_EMAIL_PER_DAY', 3),
// Requests/offers of one e-mail address that hold dates at the same time.
'open_requests_per_email' => (int) env('FEWO_SPAM_OPEN_REQUESTS_PER_EMAIL', 2),
// All website requests together (flood protection).
'total_per_hour' => (int) env('FEWO_SPAM_TOTAL_PER_HOUR', 30),
// Links allowed in the message.
'max_links' => (int) env('FEWO_SPAM_MAX_LINKS', 1),
],
// Daily database backup (php artisan backup:database): number of dumps kept in storage/app/private/backups.
'backup' => [
'keep' => (int) env('FEWO_BACKUP_KEEP', 14),
@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Relaxations of the seasons' minimum stay (see Property::minimumStayRules / PriceCalculator).
*/
public function up(): void
{
Schema::table('properties', function (Blueprint $table) {
$table->unsignedTinyInteger('changeover_weekday')->nullable()->after('check_out_time');
$table->boolean('min_stay_fill_gaps')->default(true)->after('changeover_weekday');
$table->boolean('min_stay_until_changeover')->default(false)->after('min_stay_fill_gaps');
$table->unsignedTinyInteger('min_stay_absolute')->default(2)->after('min_stay_until_changeover');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('properties', function (Blueprint $table) {
$table->dropColumn(['changeover_weekday', 'min_stay_fill_gaps', 'min_stay_until_changeover', 'min_stay_absolute']);
});
}
};
@@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Operational settings changed in the admin (System › Betrieb), e.g. test mode and test recipient.
*/
public function up(): void
{
Schema::create('settings', function (Blueprint $table) {
$table->id();
$table->string('key')->unique();
$table->text('value')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('settings');
}
};
+19 -5
View File
@@ -72,15 +72,25 @@ ## 5. Konfiguration auf dem Server (`shared/.env`)
| `FEWO_BANK_*` | leer | für Verträge/Angebote noch einzutragen |
| `FEWO_HEALTH_TOKEN`, `FEWO_SCHEDULER_TOKEN`, `FEWO_AUTOMATION_SECRET` | gesetzt | für n8n (Überwachung, Scheduler-Ersatz, Webhooks) |
## 5a. E-Mail: Testbetrieb und scharf schalten
- **Betriebsart** in der Verwaltung: **System › Betrieb** (nur Administratoren). Jede Installation beginnt im **Testbetrieb**: alle E-Mails (an Gäste, Vermieterin, Benachrichtigungen) gehen ausschließlich an die dort eingetragene **Testadresse** (ohne Eintrag: `FEWO_NOTIFICATION_EMAIL`), egal was auf der Webseite eingetragen wurde. Ein gelber Hinweis oben in der Verwaltung zeigt das an. Erst „Scharf geschaltet“ liefert an die echten Empfänger.
- **Adressen der internen Kommunikation** ebenfalls unter System › Betrieb: *Benachrichtigungen an* (mehrere Adressen: neue Anfragen, Angebotsantworten, Fristabläufe, Bewertungen, Portal-Mails/-Aufgaben, Kopie der Zahlungserinnerungen), *Kontakt- und Antwortadresse* (Webseite, Mietvertrag, Antwortadresse der Gäste-Mails), *Absendername/-adresse* (muss zum SMTP-Postfach `MAIL_USERNAME` passen – das Formular warnt). Ohne Eintrag gelten `FEWO_NOTIFICATION_EMAIL`, `FEWO_OWNER_EMAIL`, `MAIL_FROM_*` aus `shared/.env`.
- `FEWO_MAIL_REDIRECT_TO` in `shared/.env` ist eine **harte Überschreibung** für Testserver (gilt auch bei „scharf“); normalerweise leer lassen.
- **Versandweg:** Standard `MAIL_MAILER=log` – dann wird gar nichts zugestellt (auch nicht im Protokoll gespeichert). Für echten Versand in `shared/.env` `MAIL_MAILER=smtp` und `MAIL_PASSWORD=<Passwort des Postfachs info@fewo-stommer.de>` (nur selbst eintragen; Absender und SMTP-Anmeldung: `info@fewo-stommer.de`, Antwortadresse und Benachrichtigungen weiter `FEWO_OWNER_EMAIL`/`FEWO_NOTIFICATION_EMAIL` = fewo@stommer.de), dann `bash scripts/deploy.sh staging artisan optimize`.
- **Versand prüfen:** `bash scripts/deploy.sh staging artisan mail:test` – zeigt Versandweg, Umleitung und Fehler (z. B. SMTP-Anmeldung) und schickt eine Testmail.
- Dass jede Mail-Vorlage fehlerfrei aufgebaut wird (17 Mail-Typen, in ihrem echten Zustand), prüft `tests/Feature/MailRenderingTest.php`.
## 6. Erledigt / offen im Testbetrieb
Erledigt (22.10.2026): Ordnerstruktur, `shared/.env`, Migrationen, Grunddaten (`ProductionSeeder`: Wohnung, Saisons 2026, Inhalte, Seiten, Erscheinungsbilder), HTTPS unter stommer.info, Gesundheitscheck mit automatischem Rollback.
Erledigt (22.10.2026): Ordnerstruktur, `shared/.env`, Migrationen, Grunddaten (`ProductionSeeder`: Wohnung, Saisons 2026, Inhalte, Seiten, Erscheinungsbilder), HTTPS unter stommer.info, Gesundheitscheck mit automatischem Rollback, Admin-Konto `lars@stommer.com` mit 2FA, 39 Fotos importiert und von Metadaten bereinigt, Ende-zu-Ende-Durchlauf Anfrage → Angebot → Annahme (Testbuchung 2026-0002, darf gelöscht werden).
Offen:
- **Admin-Benutzer anlegen** (§7) und 2FA einrichten.
- **Konto für Brigitte** anlegen: System › Benutzer, Rolle Administrator, Ansicht Einfach (§7).
- **E-Mail im Testbetrieb** einschalten (§5a): Versandweg SMTP + Passwort; Betriebsart steht auf Testbetrieb mit Testadresse lars@stommer.com.
- **Cronjob** (Kundenlogin › Cronjobs), jede Minute:
`/opt/RZphp84/bin/php-cli /mnt/web508/e3/26/51539426/htdocs/test.fewo-stommer.de/current/artisan schedule:run`
Falls Strato nicht minütlich erlaubt: n8n ruft jede Minute `https://stommer.info/automation/scheduler?token=<FEWO_SCHEDULER_TOKEN>` auf.
Falls Strato nicht minütlich erlaubt: n8n ruft jede Minute `https://stommer.info/automation/scheduler` mit Header `Authorization: Bearer <FEWO_SCHEDULER_TOKEN>` auf.
- Bankdaten, Vertrags- und AGB-Texte, Rechtstexte prüfen.
### Fotos aus dem alten WordPress übernehmen
@@ -103,9 +113,9 @@ ## 7. Zugang zur Verwaltung (`/admin`)
"cd test.fewo-stommer.de/current && /opt/RZphp84/bin/php-cli artisan users:create lars@stommer.com --name='Lars Stommer' --role=admin"
```
Weitere Benutzer legt ein Administrator in der Verwaltung an (System › Benutzer): Name, E-Mail, **Rolle** (was die Person darf) und **Ansicht** (was das Menü zeigt), Passwort. Rollen: `admin` (alles inkl. Benutzer), `rentals` (Vermietung), `content` (Inhalte); ohne Rolle kein Zugang. Empfehlung: Lars `admin`, Brigitte `rentals` mit einfacher Ansicht.
Weitere Benutzer legt ein Administrator in der Verwaltung an (System › Benutzer): Name, E-Mail, **Rolle** (was die Person darf) und **Ansicht** (was das Menü zeigt), Passwort. Rollen: `admin` (alles inkl. Benutzer), `rentals` (Vermietung), `content` (Inhalte); ohne Rolle kein Zugang. Festlegung 22.10.2026: Lars und Brigitte beide `admin` (dürfen alles); Brigitte mit **einfacher Ansicht** (beim Anlegen „Ansicht: Einfach“ wählen, sonst erhalten Administratoren die Expertenansicht).
**Ansichten:** *Einfache Ansicht* – nur Anfragen & Buchungen (inkl. Bestätigen, Mietvertrag, Zahlungen), Sperrzeiten, Gäste, Portal-Aufgaben, Bewertungen. *Expertenansicht* – alle Einstellungen, die die Rolle erlaubt (Preise, Angebote, Portale, Webseite, System). Ohne Auswahl: Administratoren Experten-, alle anderen einfache Ansicht. Umschalten jederzeit über das Benutzermenü oben rechts („Zur … Ansicht wechseln“). Die Ansicht blendet nur Menüpunkte aus; Rechte regelt allein die Rolle.
**Ansichten:** *Einfache Ansicht* – Anfragen & Buchungen (Angebot senden, Mietvertrag, Zahlungen), Sperrzeiten, **Preise & Angebote** (Saisons, Sonderangebote/Rabattcodes, Extras), Gäste, Portal-Aufgaben, Bewertungen, Bilder. *Expertenansicht* – alle Einstellungen, die die Rolle erlaubt (Preise, Angebote, Portale, Webseite, System). Ohne Auswahl: Administratoren Experten-, alle anderen einfache Ansicht. Umschalten jederzeit über das Benutzermenü oben rechts („Zur … Ansicht wechseln“). Die Ansicht blendet nur Menüpunkte aus; Rechte regelt allein die Rolle.
**Passwort vergessen:** Ein Administrator vergibt unter System › Benutzer › Bearbeiten ein neues Passwort (eine Selbst-Zurücksetzung per E-Mail gibt es bewusst nicht). **Handy verloren:** dort Aktion „2FA zurücksetzen“ – die Person richtet die 2FA bei der nächsten Anmeldung neu ein.
@@ -129,6 +139,7 @@ ## 7a. Datensicherung, Löschfristen, Automationen
```
Regelmäßig z. B. per Aufgabenplanung des NAS/PC ausführen (braucht den SSH-Schlüssel aus §4).
- **Löschfristen** (Vorschläge, rechtlich zu bestätigen – `config/fewo.php` bzw. `.env`): Gästedaten 10 Jahre nach letztem Aufenthalt (`FEWO_GUEST_RETENTION_YEARS`), nie verbindlich gewordene Anfragen/Angebote 6 Monate (`FEWO_RETENTION_INQUIRY_MONTHS`), Textauszüge von Portal-Mails 90 Tage (`FEWO_RETENTION_PORTAL_EMAIL_EXCERPT_DAYS`), Herkunftsangaben/UTM 24 Monate (`FEWO_RETENTION_ATTRIBUTION_MONTHS`). Läuft täglich 03:00. Anonymisierung ersetzt Name, Kontaktdaten, Nachrichten, Notizen, Herkunft und Bewertungs-Anzeigenamen; Buchung, Preise und Zahlungen bleiben als Beleg.
- **Bot-Schutz der Buchungsanfrage** (ohne externen Captcha-Dienst, `config/fewo.php › spam`): verstecktes Köderfeld, Zeitsperre (Absenden schneller als 4 s nach dem Öffnen = Bot, wird still ignoriert), höchstens 5 Anfragen/Stunde je IP, 3/Tag je E-Mail-Adresse, 30/Stunde insgesamt, höchstens 2 gleichzeitig vorgemerkte Anfragen je E-Mail-Adresse (sonst könnten Bots den Kalender blockieren), keine Links in Namen und höchstens 1 Link in der Nachricht.
- **Automationen (n8n):** Token bitte als Header `Authorization: Bearer <token>` senden (landet nicht in Server-Logs); `?token=` funktioniert übergangsweise weiter.
- **Fotos:** Beim Hochladen werden Metadaten (GPS, Kamera) aus dem Original entfernt; bestehende Fotos einmalig: `php artisan photos:strip-metadata` (`--force` bearbeitet auch bereits markierte erneut). Hinweis: bewusst mit GD – Imagick (auf Strato installiert) behält EXIF beim Speichern.
@@ -144,6 +155,9 @@ ## 8. Bekannte Eigenheiten und Lösungen
| Ersteinrichtung mit Factories schlägt fehl | Produktion ohne Dev-Pakete | `ProductionSeeder` |
| Kein SSL für Subdomain | Paket erlaubt SSL nur für Hauptdomains | Testbetrieb auf `stommer.info` |
| `Disk quota exceeded` beim Hochladen / Hinweis „zu viele Dateien“ | Webspace-Kontingent voll (geteilt mit allen anderen Seiten/Backups im Paket); jede Version belegt ~136 MB | Es ist die **Anzahl der Dateien** (Inode-Limit), nicht der Platz. Der Server behält nur die aktive Version (Geschichte als Git-Tags in Gitea), `vendor` wird beim Build ausgedünnt (~15.000 statt ~19.500 Dateien je Version); Reste abgebrochener Läufe räumt das nächste Deployment selbst weg. **Ordner außerhalb des Deploy-Ordners entscheidet nur Lars** (teils produktiv). |
| Signierte Links (Angebot, Bewertung, Newsletter, Vorschau) mit 403 | Strato meldet nach der `.htaccess`-Weiterleitung den internen Pfad `/releases/<version>/public/…` in `REQUEST_URI` | `public/index.php` entfernt dieses Präfix vor dem Start von Laravel |
| Keine E-Mails im Testbetrieb, auch nicht im Protokoll | `MAIL_MAILER=log` schreibt auf Stufe *debug*, `LOG_LEVEL=info` verwirft das | Zum Testen SMTP einschalten; `FEWO_MAIL_REDIRECT_TO` leitet dann **alle** Mails an eine Adresse (gesetzt: lars@stommer.com) |
| Foto-Metadaten (GPS) blieben erhalten | Spatie Image nutzt Imagick, wenn installiert (Strato), und Imagick behält EXIF | `StripImageMetadata` erzwingt GD |
| Windows: Symlinks, `php` nicht im PATH | Git Bash | Deploy nur gegen Strato testen; `export PATH="<php-ordner>:$PATH"` |
## 9. Nützliche Befehle
+170
View File
@@ -0,0 +1,170 @@
# Designkonzept – neues Website-Theme
Stand: 23.10.2026 · Entwurf zur Entscheidung · Umsetzung: [THEME-ERSTELLUNG.md](THEME-ERSTELLUNG.md), Architektur: [THEMES.md](THEMES.md), Zusammenarbeit: [ZUSAMMENARBEIT.md](ZUSAMMENARBEIT.md)
> **Kurz:** Die Website richtet sich an **Paare**, vor allem ältere und gut situierte Paare mittleren Alters. Sie soll ruhig, hochwertig, sehr gut lesbar und persönlich wirken. Das neue Design entsteht als zusätzliches Theme. Was Vermieter und später ein KI-Vermarktungsassistent saisonal ändern wollen (Farben, Bilder, Texte, Angebote, Banner, Gestaltungsvarianten), wird im Admin gepflegt, nicht im Code. Dafür braucht der Konfigurator einige Erweiterungen (§7). Drei Designrichtungen stehen zur Wahl (§6). Empfehlung: **A „Brigittes Kühlungsborn“**.
---
## 1. Auftrag
| | |
|---|---|
| **Was** | Ferienwohnung im Erdgeschoss einer Wohnanlage in Kühlungsborn, 53 m², 1–3 Gäste, Terrasse mit Garten, Sauna im Haus |
| **Für wen** | Paare: ältere Paare und gut situierte Paare mittleren Alters. Keine Familien, keine Haustiere |
| **Hauptaufgabe der Website** | Vertrauen schaffen und zur **Anfrage** führen (Buchungsweg 1: Anfrage → Angebot → Annahme). Telefonischer Kontakt ist ausdrücklich erwünscht |
| **Nebenaufgaben** | Saisonale Aktionen und Lückenfüller bewerben, Nebensaison füllen, Stammgäste binden |
## 2. Zielgruppe und was daraus folgt
| Erwartung der Gäste | Folge für Gestaltung und Inhalt |
|---|---|
| Mühelos lesen und finden | Fließtext ≥ 18 px (Desktop 19–20 px), Zeilenhöhe ≥ 1,6, Zeilen ≤ 70 Zeichen. Kein dünnes Hellgrau, Kontrast ≥ 7:1 für Fließtext angestrebt (AA verlangt 4,5:1). Schaltflächen ≥ 48 px hoch, klare Beschriftung statt Symbolen. Kein Inhalt nur bei Hover oder Wischgeste |
| Persönlich und vertrauenswürdig | Gastgeberin mit Namen, persönliche Tipps, echte Fotos. Telefonnummer in Kopf und Fuß sowie in der mobilen Buchungsleiste |
| Keine Überraschungen | Gesamtpreis inkl. Endreinigung und Extras, Mindestaufenthalt, Storno, An- und Abreisezeiten, Hausregeln gut auffindbar („Gut zu wissen“) |
| Ehrliche Angaben zum Zugang | Klar und ohne Beschönigung: **Erdgeschoss; eine Stufe am Eingang, über den Garten stufenlos; keine Treppen; flache Dusche mit kleiner Kante; nicht rollstuhlgerecht.** (Stufe und Duschkante vor Veröffentlichung vor Ort bestätigen) |
| Zeit zu zweit, Ruhe, Genuss | Bilder und Texte ohne Familienszenen. Themen: Spaziergänge, Strand außerhalb der Saison, Bäderarchitektur, Restaurants, Kultur, Sauna, Terrasse |
| Qualität wie in einem guten kleinen Hotel | Wenige, große, gute Fotos. Viel Ruhe im Layout. Bewegung nur sparsam (§5) |
| Reisen auch im Frühjahr, Herbst und Winter | Jede Jahreszeit hat eine eigene Stimmung (Erscheinungsbilder). Aktionen und Banner reagieren auf Saison und Auslastung |
**Tonalität:** „Sie“, ruhig, konkret, ohne Werbesprache. Lieber „Vom Sofa sehen Sie in den Garten“ als „Erleben Sie unvergessliche Momente“. Bestehende Texte prüfen, ob sie noch von zwei Gastgebern sprechen.
## 3. Was die Wohnung erzählt (Inhalte, die schon da sind)
Aus den 39 vorhandenen Fotos und Daten:
- **Rückzug zu zweit:** Schlafzimmer mit Boxspringbett und Leseecke, Ledersofa vor der Terrassentür, Relaxsessel
- **Draußen:** überdachte Terrasse mit Hortensien, Garten mit Rhododendren, Gartenteich, Sitzplatz im Grünen
- **Wohlfühlen:** Sauna im Haus, flache Glasdusche, Arbeitsplatz (für längere Aufenthalte)
- **Kühlungsborn:** Strandkörbe, Bootshafen, Molli, Gespensterwald, Villen der Bäderarchitektur, Ostseeallee, Backsteinkirche
- **Überblick:** Grundriss (Foto), Luftbilder von Anlage, Wald und Ostsee
**Fehlt noch / wünschenswert:** Herbst- und Winterbilder (Strand, Promenade, Sauna-Abend), Detailbilder (Frühstück auf der Terrasse, Bücher, zwei Gläser – Stimmung ohne Personen), Brigittes Lieblingsorte für die Tipps. Detail- und Ortsbilder kann Brigitte selbst mit dem Handy machen. Die Website wirkt dabei über Bildausschnitt und Aufbereitung, nicht über Modelle.
**Gastgeberin:** Brigitte möchte nicht im Mittelpunkt stehen. Der Gastgeber-Baustein funktioniert deshalb auch **ohne Porträt**: Text in ihrer Stimme, Unterschrift, wahlweise ein Stimmungs- oder Detailbild. Ob ältere Fotos der Familie (z. B. im Strandkorb) gezeigt werden, entscheidet allein Brigitte. Das Theme braucht sie nicht.
## 4. Grundsätze für jedes Design
1. **Lesbarkeit vor Effekt** – alle Regeln aus §2, in **allen** Erscheinungsbildern (auch dunklen).
2. **Anfrage immer in Reichweite** – „Verfügbarkeit prüfen“ und Telefonnummer auf jeder Seite, mobil als feste Leiste.
3. **Vertrauen sichtbar machen** – Bewertungen mit Echtheitshinweis, „Gut zu wissen“, Preise transparent, Impressum leicht erreichbar.
4. **Eigenständig, nicht austauschbar** – Gestaltung aus Kühlungsborn ableiten: Bäderarchitektur, Backstein, Sanddorn, Kiefern und Buchen, Strandkorb, Ostseelicht. Den verbreiteten „KI-Standard-Look“ vermeiden: Cremegrund mit Serifen-Headline und Terrakotta-Akzent, Großbuchstaben-Etiketten über jeder Überschrift, nummerierte Abschnitte ohne Reihenfolge, gleich aussehende Karten überall.
5. **Saisonfähig** – alles, was sich mit Saison und Kampagne ändert, ist Daten im Admin, nicht Code (§7). Das ist die Grundlage für den späteren KI-Vermarktungsassistenten.
6. **Mehrsprachig vorbereiten** – Layout verträgt längere deutsche und kürzere englische Texte; Platz für einen Sprachumschalter im Kopf (§8).
7. **Datensparsam** – nichts von fremden Servern, Schriften selbst gehostet, kein Cookie-Banner nötig.
## 5. Bewegung
Höchstens **ein** ruhiger Moment pro Seite, z. B. das Titelbild blendet beim Laden langsam auf, oder die Grundriss-Räume heben sich beim Antippen hervor. Keine Einflug-Animationen pro Abschnitt, kein Parallax-Rausch, kein Autoplay-Slider. `prefers-reduced-motion` schaltet alles ab. Rollierende Angebote nur mit Pause-Knopf und langsam.
## 6. Drei Designrichtungen
Alle drei nutzen die vorhandenen Bausteine und Erscheinungsbilder. Farbwerte sind Standard-Tokens. Erscheinungsbilder überschreiben sie (Kontraste der Startwerte geprüft: Fließtext ≥ 13:1, gedämpfter Text ≥ 6:1, Akzent ≥ 5,4:1).
### A – „Brigittes Kühlungsborn“ (Empfehlung)
**Idee:** Ein ruhiges, persönliches Magazin über eine Wohnung und einen Ort. Brigitte erzählt und empfiehlt. Große, gut lesbare Typografie, Fotos wie in einem Reisemagazin, ihre Tipps als roter Faden. Passt zur Zielgruppe (Vertrauen, Genuss, Kultur) und braucht kein Porträt.
| Token | Wert | Herkunft |
|---|---|---|
| ground | `#F7F8F6` | Kreideweiß, kühl (bewusst kein Creme) |
| ink | `#1F2B38` | Tintenblau |
| muted | `#4F5B66` | Schiefer |
| accent | `#9A3B2E` | Backstein (Backsteinkirche, Backsteingotik) |
| band | `#23384A` | Ostsee am Abend |
**Schrift:** *Newsreader* (Überschriften und Fließtext, Zeitungs-Serife mit optischen Größen, sehr gut lesbar) + *Atkinson Hyperlegible Next* (Navigation, Formulare, Preise – entwickelt für Menschen mit eingeschränktem Sehvermögen).
```
┌────────────────────────────────────────────────────────┐
│ Ferienwohnung Stommer Wohnung Kühlungsborn Preise│
│ ☎ 038293 … [Anfragen]│
├──────────────────────────────┬─────────────────────────┤
│ │ Ihr Zuhause zwischen │
│ großes Foto (Terrasse) │ Garten und Meer │
│ │ kurzer Text │
│ │ [Anreise][Abreise][2 P.] │
├──────────────────────────────┴─────────────────────────┤
│ „Mein Lieblingsplatz ist morgens die Terrasse …“ │
│ – Brigitte │
├────────────────────────────────────────────────────────┤
│ Die Wohnung Text links, 2 Fotos versetzt rechts │
│ Grundriss zum Antippen, Fotos je Raum │
│ Brigittes Tipps Liste: Ort · zu Fuß 8 Min · warum │
│ Gut zu wissen Zugang, An-/Abreise, keine Haustiere │
└────────────────────────────────────────────────────────┘
```
**Unverwechselbares Element:** Brigittes Tipps mit Gehzeiten ab der Wohnung, als Liste gesetzt wie in einem Reiseführer.
**Ausrichtung:** linksbündig, asymmetrisch, viel Weißraum.
### B – „Weiße Villa“ (Bäderarchitektur, elegant)
**Idee:** Die Seite wirkt wie eine Villa an der Ostseeallee: hell, symmetrisch, feine Linien. Ein Ornament aus den Balkongittern der Bäderarchitektur dient als Trenner, Fotos haben oben leicht gerundete Ecken wie Fensterbögen. Wirkt am „hochwertigsten“, aber weniger persönlich.
| Token | Wert | Herkunft |
|---|---|---|
| ground | `#FFFFFF` | weiße Fassade |
| ink | `#22313B` | Schiefer |
| muted | `#56636D` | |
| accent | `#2F5D50` | Verandagrün |
| band | `#2F5D50` | |
**Schrift:** *Marcellus* (Überschriften, an Inschriften angelehnt) + *Hanken Grotesk* (Text).
**Unverwechselbares Element:** Balkon-Ornament als Linie (eigene SVG im Theme-Ordner).
**Ausrichtung:** zentriert, symmetrisch.
### C – „Sanddorn & Kiefer“ (natürlich, jahreszeitlich)
**Idee:** Natur rund um Kühlungsborn: Kiefernwald, Sanddorn, Buchen im Gespensterwald. Große Fotos über die ganze Breite, kräftige Farbbänder, die mit den Jahreszeiten am deutlichsten wechseln (Sommer Sanddorn, Herbst Buchenlaub, Winter Kiefer und Schnee). Am stärksten saisonal, am wenigsten klassisch.
| Token | Wert | Herkunft |
|---|---|---|
| ground | `#F3F5F0` | heller Dünensand, grünlich |
| ink | `#1E2A24` | Kiefer, sehr dunkel |
| muted | `#4B5850` | |
| accent | `#A9460F` | Sanddorn |
| band | `#2E4A3C` | Kiefernwald |
**Schrift:** *Alegreya* (Überschriften) + *Alegreya Sans* (Text) – humanistisch, warm, gut lesbar.
**Unverwechselbares Element:** saisonale Farbbänder hinter großen Fotos.
**Ausrichtung:** linksbündig, vollflächige Bildstrecken.
### Entscheidungshilfe
| | A Brigittes Kühlungsborn | B Weiße Villa | C Sanddorn & Kiefer |
|---|---|---|---|
| Persönlich | ●●● | ● | ●● |
| Hochwertig | ●● | ●●● | ●● |
| Lesbarkeit | ●●● | ●● | ●●● |
| Saisonal wandelbar | ●● | ● | ●●● |
| Ohne neue Fotos stark | ●●● | ●● | ● |
Kombinationen sind möglich (z. B. A mit den saisonalen Farbbändern aus C). Vor der Entscheidung: Vorbilder ansehen (Awwwards › Hotel & Restaurant, Sawday's, kleine Boutique-Hotels an Nord- und Ostsee) und notieren, was gefällt und was nicht.
## 7. Erweiterungen des Konfigurators
Ziel: kein freier Seiten-Editor, sondern **Stellschrauben, die das Theme anbietet** – jede Kombination sieht gut aus. Pflege in der **Expertenansicht**; die einfache Ansicht bleibt bei Inhalten.
| # | Erweiterung | Admin | Nutzen |
|---|---|---|---|
| 1 | **Theme-Optionen** in `theme.json › options` (Auswahl/Schalter, z. B. Titelbereich vollflächig/geteilt, Bewegung an/aus, Bildrahmen) | Websites › Theme (Standard) und Erscheinungsbilder (Überschreiben) – erscheinen automatisch wie die Farbfelder | Saisonale Wirkung ohne Code; Grundlage für KI-Assistent |
| 2 | **Darstellungsvarianten je Baustein** (`theme.json › variants`, z. B. Galerie: Mosaik/Filmstreifen; Text mit Bild: ruhig/Magazin) | Seiten-Baukasten: Feld „Darstellung“ mit den Varianten des aktiven Themes | Mehr Abwechslung bei gleicher Qualität |
| 3 | **Baustein „Grundriss“** – SVG-Grundriss + Räume (Name, Text, Fotos) | Seiten-Baukasten | Orientierung, Zugang verständlich machen |
| 4 | **Baustein „Tipps der Gastgeberin“** – Orte mit Kategorie, Gehzeit/Entfernung, Text, Foto, OpenStreetMap-Link; saisonal filterbar | eigene Liste (Webseite › Tipps), Baustein wählt Kategorien | Persönlichkeit ohne Porträt, Inhalte für Nebensaison |
| 5 | **Baustein „Gut zu wissen“** – Zugang/Barrieren, An- und Abreise, Haustiere, Rauchen, Parken; strukturiert statt Fließtext | Wohnung › Eigenschaften + Baustein | Vertrauen, weniger Rückfragen; Daten wiederverwendbar (Angebot, Mails, JSON-LD) |
| 6 | Gastgeber-Baustein: **Porträt optional**, Unterschrift/Name, Bild beliebig | bestehender Baustein | passt zu Brigittes Wunsch |
| 7 | *später:* Video-Baustein (selbst gehostet), Wetter/Wassertemperatur (Lizenz klären), Erzählstrecke „Ein Tag an der Ostsee“ | | |
Kampagnen sind schon gut abgedeckt (Erscheinungsbilder mit Farben/Bildern/Texten, Sonderangebote mit Hervorhebung, Banner). Das Theme gestaltet diese Flächen als vollwertige Elemente: Angebot im Titelbereich, Banner, Angebotsbaustein in allen drei Darstellungen.
## 8. Mehrsprachigkeit (Vorbereitung)
Primär Deutsch. Englisch (und weitere Sprachen) erst, wenn auch die Gästekommunikation (Mails, Angebot, Vertrag, später KI-Antworten) in der Sprache funktioniert. Fürs Design jetzt schon: Sprachumschalter-Platz im Kopf, keine Texte in Grafiken, Layout mit ±30 % Textlänge testen. Für die Anwendung später: übersetzbare Inhalte je Seite/Baustein, Sprach-URLs (`/en/…`), `hreflang`, Sprache am Gast für Mails.
## 9. Nächste Schritte
1. **Lars/Brigitte:** Vorbilder ansehen, Richtung wählen (A, B, C oder Kombination); Stufe und Duschkante bestätigen; Brigittes Tipps sammeln (Name, warum, Gehzeit).
2. **Entwurf:** für die gewählte Richtung Startseite und Wohnungsseite als Theme auf Branch `theme/<key>`, Vorschau per `themes:preview`, Screenshots auf Handy/Tablet/Desktop.
3. **Konfigurator:** Erweiterungen 1, 2, 5, 6 (Grundlage), dann 3 und 4 – auf `feature/theme-options`, mit Tests, Vertragsänderungen in ZUSAMMENARBEIT.md §6.
4. **Feinschliff:** alle Bausteine, alle Erscheinungsbilder, Angebots- und Bewertungsseite, Checkliste THEME-ERSTELLUNG.md §10.
+8 -6
View File
@@ -57,7 +57,8 @@ ## 5. Verwaltungssystem (Admin)
- **Dashboard:** nächste An-/Abreisen, offene Anfragen, fällige Zahlungen, Auslastung/Umsatz pro Jahr.
- **Kalender:** alle Buchungen + Portal-Blockierungen + manuelle Sperrzeiten (Eigennutzung, Renovierung).
- **Saisons & Preise:** pro Saison Zeitraum, Preis/Nacht, Mindestaufenthalt, optional An-/Abreisetage. Jahr kopieren („Preise 2027 = 2026“) mit einem Klick.
- **Saisons & Preise:** pro Saison Zeitraum, Preis/Nacht, Mindestaufenthalt, optional An-/Abreisetage. Jahr kopieren („Preise 2027 = 2026“) mit einem Klick – optional mit **Saisonbeginn auf einen Wochentag** (z. B. Samstag; aneinandergrenzende Saisons bleiben lückenlos).
- **Ausnahmen vom Mindestaufenthalt** (je Wohnung, „Preise & Angebote › Saisons › Regeln Mindestaufenthalt“): kürzer erlaubt, wenn die Buchung eine Kalenderlücke vollständig füllt oder am typischen Anreisetag endet; Sonderangebote jeder Art können ihn aufheben; absolute Untergrenze für alle Ausnahmen (Standard 2 Nächte).
- **Preisbestandteile (konfigurierbar):** Endreinigung/Service (108 €), Zusatzperson ab 3. Person (7,50 €/Nacht), Extras (Bettwäsche 14 €, Handtücher 11 €, Paket 23 €), Kurtaxe (Hinweis, vor Ort), Anzahlungsquote 35 %, Restzahlungsfrist 4 Wochen.
- Darstellung wahlweise wie heute („erste Nacht inkl. Endreinigung“) oder transparent getrennt – die Berechnung ist identisch.
- **Sonderangebote & Sonderkonditionen:** werden bei jeder Preisberechnung automatisch geprüft (siehe 5a).
@@ -126,6 +127,7 @@ ### 6b. Weitere Festlegungen (22.10.2026)
- **Lösch- und Aufbewahrungsfristen** nach allgemeiner Rechtsauffassung festlegen (fachkundig bestätigen lassen); technisch als Einstellungen umsetzen (Vorschläge: docs/LOESCHKONZEPT.md).
- **Auftragsverarbeitung mit Strato:** Strato stellt dafür nach unserem Kenntnisstand einen Standardvertrag im Kundenbereich bereit – dort prüfen/abschließen.
- **Portalgäste** = Gäste, die über ein Buchungsportal (FeWo-direkt u. a.) buchen; ihre Daten erreichen uns nur über die Portal-Benachrichtigungen. Wir betreiben selbst kein Portal.
- **Testbetrieb vs. scharf geschaltet** (System › Betrieb): bis zum Scharfschalten gehen alle E-Mails nur an eine einstellbare Testadresse. **Bot-Schutz** der Anfrage ohne externe Dienste (DSGVO).
- **Verwaltung:** mehrere Verwalter-Konten (mindestens Lars und Brigitte Stommer); **einfache Ansicht** (Anfragen/Buchungen/Verträge, Sperrzeiten, Gäste, Portal-Aufgaben, Bewertungen) und **Expertenansicht** (alle Einstellungen), umschaltbar je Benutzer – umgesetzt.
- Die Dokumente BUCHUNGSPROZESS, DATENMODELL-KONZEPT, GAP-DELTA, GO-LIVE-CHECKLISTE, LOESCHKONZEPT und DATENSCHUTZ-* wurden von einem Analyse-Agenten erstellt; die dort genannten „verbindlichen Entscheidungen E1–E7“ sind **dessen Annahmen**. Maßgeblich sind die Festlegungen in diesem Dokument.
@@ -177,11 +179,11 @@ ## 9. Hosting & Deployment (Strato)
## 10. Umsetzungsphasen
1. **Fundament:** Laravel + Filament, Datenmodell, Saisons/Preise, Preisberechnung (mit Tests). ✅
2. **Kalender & Anfrage:** Belegung, Anfrageformular, Auto-Angebot per Mail, Vorreservierung mit Haltezeit, Sonderangebote, Sperrzeiten, Buchungsverwaltung. ✅
3. **Buchungsworkflow:** Bestätigung, Mietvertrag-PDF, Zahlungsfristen & Erinnerungen, Anreiseinfos. ✅ (Mietbedingungen/Storno noch als Muster)
4. **Webseite:** Theme-System, Bausteine, Erscheinungsbilder, Seiten, SEO ✅ · Basis-Theme „Ostsee-Licht“ funktionsfähig; gestalterische Überarbeitung offen (Übergabe: docs/THEMES.md §10).
5. **Connectoren:** iCal-Import/-Export, Sync-Log, Konfliktwarnung.
6. **Go-Live:** Strato-Deployment, Umleitungen, Inhalte/Rechtstexte, Testbuchungen.
2. **Kalender & Anfrage:** Belegung, Anfrageformular, Vorreservierung mit Haltezeit, Sonderangebote (Rabattaktion, fester Termin, Lückenfüller), Mindestaufenthalt mit Ausnahmen, Sperrzeiten, Buchungsverwaltung. ✅
3. **Buchungsworkflow:** Buchungsweg 1 Anfrage → Angebot → Annahme durch den Gast (§6a), Mietvertrag-PDF, Zahlungsfristen & Erinnerungen, Anreiseinfos. ✅ (Mietbedingungen/Storno/Angebotstexte noch als Muster)
4. **Webseite:** Theme-System, Bausteine, Erscheinungsbilder (Bilder je Baustein, saisonale Bausteine), Seiten, SEO, Markengrafiken ✅ · neues Design-Theme in eigener Session (docs/ZUSAMMENARBEIT.md, docs/THEME-ERSTELLUNG.md).
5. **Connectoren:** iCal-Import/-Export, Sync-Log, Konfliktwarnung, Portal-E-Mails. ✅ (echte Portal-Mails zur Feinabstimmung des Parsers fehlen)
6. **Go-Live:** Strato-Deployment und Testbetrieb ✅ · offen: Cronjob, Produktion, Umleitungen, Rechtstexte, echte Testbuchungen (Stand: docs/STATUS.md).
## 11. Offene Punkte / benötigte Inhalte
+121
View File
@@ -0,0 +1,121 @@
# Mandantenfähigkeit – Anforderungen
Stand: 23.10.2026 · Anforderungen, noch keine Planung · Planung und Umbau in einer eigenen Sitzung · Grundlage: [KONZEPT.md](KONZEPT.md) („Mehrfähigkeit offen halten“), [DESIGN-KONZEPT.md](DESIGN-KONZEPT.md) §7
> **Kurz:** Kein Portal und kein Marktplatz. Das Produkt ist **„die individuelle Website mit Vermieter-Funktionen“**. Einige Vermieter aus dem Bekanntenkreis sollen das System für ihre **eigene** Website nutzen können, mit eigenem Admin-Bereich und eigenen Diensten. Außerdem sollen weitere **eigene** Wohnungen unter fewo-stommer.de angeboten werden können. Das Datenmodell ist dafür nur zur Hälfte vorbereitet (§4). Der Umbau soll jetzt sauber geplant werden, solange es nur einen Vermieter gibt.
---
## 1. Szenarien
| # | Szenario | Beispiel | Zeitpunkt |
|---|---|---|---|
| S1 | **Ein Vermieter, eine Website, eine Wohnung** | heute: Brigitte, fewo-stommer.de, Strandstraße 15 | jetzt |
| S2 | **Ein Vermieter, eine Website, mehrere Wohnungen** | weitere Wohnung der Familie unter fewo-stommer.de, evtl. an einem anderen Ort (z. B. Berge) | möglich |
| S3 | **Weitere Vermieter mit eigener Website und Domain** | Bekannte in Kühlungsborn nutzen das System als SaaS für ihre eigene Website | möglich, wenige Mandanten |
| – | *Kein Ziel:* gemeinsame Suche über alle Vermieter, Portal, Provisionsmodell | | |
## 2. Begriffe
| Begriff | Bedeutung |
|---|---|
| **Mandant (Vermieter)** | rechtlich und organisatorisch eigenständiger Vermieter. Besitzt Daten, Benutzer, Einstellungen, Dienste |
| **Website** | Domain mit Theme, Bildwelt, Seiten, Erscheinungsbildern; gehört genau einem Mandanten. Ein Mandant kann mehrere Websites haben |
| **Wohnung** | vermietbare Einheit; gehört genau einem Mandanten und wird auf einer (oder mehreren) seiner Websites gezeigt |
| **Betreiber** | wir (Lars): betreiben das System für alle Mandanten |
## 3. Anforderungen
### 3.1 Trennung der Daten
- A1 Jeder Mandant sieht und bearbeitet **nur seine eigenen** Daten: Wohnungen, Preise, Kalender, Buchungen, Zahlungen, Gäste, Bewertungen, Portale, Texte, Fotos, Seiten, Einstellungen.
- A2 **Gästekartei je Mandant.** Jeder Vermieter ist datenschutzrechtlich selbst Verantwortlicher; dieselbe Person kann bei zwei Mandanten zwei getrennte Gästeeinträge haben.
- A3 Die Trennung ist **technisch erzwungen** (automatische Filter, Richtlinien, Tests), nicht nur durch die Oberfläche.
- A4 Öffentliche Website, Buchungsformular, Angebots- und Bewertungslinks, iCal-Feeds und Cronjobs arbeiten jeweils im Kontext des richtigen Mandanten.
### 3.2 Admin-Bereich
- A5 **Eigener Admin-Bereich je Mandant**, mit dem gewohnten Aufbau (einfache Ansicht und Expertenansicht, 2FA für alle).
- A6 **Rollen je Mandant**, wie heute: **Mandanten-Administrator**, Vermietung, Inhalte. Der Mandanten-Administrator verwaltet seinen Mandanten vollständig, aber nur diesen.
- A6a Der **Mandanten-Administrator legt selbst Benutzer** für seinen Admin-Bereich an, vergibt und ändert Rollen, sperrt Konten, setzt 2FA zurück und vergibt Passwörter neu (wie heute Admin › Benutzer). Er kann **keine** Rechte über seinen Mandanten hinaus vergeben.
- A6b **Benutzer können mehreren Mandanten angehören**, mit einer eigenen Rolle je Mandant (Beispiel: Lars ist Administrator bei Stommer und Vermietung bei einem Bekannten). Ein Konto, eine 2FA; Mandantenwechsel im Benutzermenü.
- A6c Die **einfache/Expertenansicht** bleibt eine Einstellung je Benutzer (ggf. je Mandant), unabhängig von der Rolle; Rechte entscheiden weiterhin Rollen und Richtlinien.
- A6d Rollen sind so angelegt, dass später **weitere Rollen** ergänzt werden können (z. B. Reinigung/Hausmeister mit Lesezugriff auf den Belegungskalender, Steuerberater mit Lesezugriff auf Zahlungen), ohne den Umbau zu wiederholen.
- A7 **Betreiber-Bereich** für uns (Rolle **Betreiber**, außerhalb der Mandanten): Mandanten anlegen und sperren, den ersten Mandanten-Administrator anlegen, Dienste je Mandant freischalten, Domains zuordnen, in einen Mandanten wechseln (Support, protokolliert), Systemzustand (Cron, Mail, Backups) über alle Mandanten.
- A8 Mandanten können Themes nur **auswählen**, nicht hochladen (Vorlagen sind ausführbarer Code). Logos dürfen sie hochladen (PNG oder geprüftes SVG).
### 3.3 Pro Mandant einstellbar (heute global)
- A9 **Vermieterdaten:** Name, Anschrift, Telefon, E-Mail, Impressum, Bankverbindung, Steuerangaben. Heute in der `.env` (`FEWO_OWNER_*`, `FEWO_BANK_*`).
- A10 **Texte:** Mietbedingungen, Storno, Datenschutz, Mailtexte, Vertragsvorlage, FAQ, Hinweis-Banner.
- A11 **Kommunikation:** Absenderadresse, Benachrichtigungsadressen, Postfach für Portal-Mails, Betriebsart (Test / scharf).
- A12 **Regeln:** Fristen, Mindestaufenthalt-Regeln, Anzahlung, Löschfristen (innerhalb gesetzlicher Grenzen), Bot-Schutz-Grenzen.
- A13 **Buchungsnummern** je Mandant (eigener Nummernkreis, z. B. `2026-0001` je Vermieter).
- A14 **Marke:** Logo, Favicon, Logo für Mails und Vertrags-PDF – je Mandant, optional je Website abweichend.
### 3.4 Dienste
- A15 Dienste sind **je Mandant ein- und ausschaltbar**, z. B. KI-Angebotsentwürfe, KI-Vermarktungsassistent, KI-Gästekommunikation (mehrsprachig), Portal-Synchronisation, Mail-Schnellweg.
- A16 Verbrauchsabhängige Dienste (KI) sind **je Mandant messbar** (Grundlage für spätere Abrechnung); eigene API-Schlüssel je Mandant sollen möglich sein.
- A17 Abrechnung ist **kein** Teil des ersten Umbaus, die Datengrundlage soll aber entstehen.
### 3.5 Website und Design
- A18 Jede Website wählt **Theme** und **Bildwelt** (Grafik-Set: Bänder, Vignetten, Ornamente). Bildwelten sind Pakete wie Themes (Ordner mit Manifest und SVGs), z. B. „Ostsee“, später „Berge“.
- A19 Themes sind **ortsneutral**: sie greifen nur auf Bildwelt-Plätze zu (Trenner, Abschlussband, Vignette je Tipp-Kategorie …), nie direkt auf eine Ostsee-Grafik.
- A20 Bildwelt **je Wohnung überschreibbar** (S2: Berg-Wohnung unter fewo-stommer.de).
- A21 Für S2: Bausteine können eine **Wohnung wählen** (heute immer die Hauptwohnung), die Suche kann mehrere Wohnungen anbieten, die Startseite kann eine Übersicht zeigen.
- A22 Markengrafiken liegen nicht mehr global in `public/brand/`, sondern bei Mandant/Website (Marke) bzw. in der Bildwelt.
### 3.6 Betrieb
- A23 **Strato bleibt vorerst** (wenige Mandanten). Eigene Domains der Mandanten werden von Hand bei Strato eingerichtet (Domain, SSL, Weiterleitung auf die Anwendung). Die Anwendung erkennt den Mandanten über die Domain (wie heute die Website).
- A24 Bei Wachstum **Umzug auf einen eigenen Server**. Nichts im Umbau darf Strato-Besonderheiten fest einbauen; Umzug ohne Datenmodelländerung.
- A25 **Eine Datenbank für alle Mandanten** (Spalte je Mandant), kein eigener Datenbankserver je Mandant. Backups weiterhin gesamt; Export und Löschung **eines** Mandanten müssen möglich sein (Kündigung, DSGVO).
- A26 Bestehende Daten werden **ohne Ausfall** dem Mandanten „Stommer“ zugeordnet; für Brigitte ändert sich in der Bedienung nichts.
### 3.7 Recht (nicht technisch, aber Voraussetzung für S3)
- A27 Vertrag zur Auftragsverarbeitung (AVV) mit jedem Mandanten; Nutzungsbedingungen; Unterauftragsverarbeiter (Strato, ggf. KI-Anbieter) benennen.
- A28 Impressum und Datenschutzerklärung jeder Website sind die des Mandanten; der Betreiber erscheint nur als Dienstleister.
## 4. Ist-Stand (Prüfung vom 23.10.2026)
**Schon vorbereitet:** Tabelle `sites` (Domain, Theme); `pages` und `appearances` mit `site_id`; `properties.site_id`; Saisons, Extras, Buchungen, Sperrzeiten, Angebote, Fotos, Ausstattung, Bewertungen, Kanäle hängen an der Wohnung. Themes und Portal-Anbindung sind als austauschbare Pakete gebaut. Filament bietet eingebaute Mandantenfähigkeit (Mandantenwechsel, automatische Filter).
**Noch global (umzubauen):**
| Bereich | Ort |
|---|---|
| Benutzer und Rollen | `users.role` (eine Rolle systemweit; `App\Enums\UserRole`), Benutzerverwaltung nur für systemweite Administratoren |
| Gästekartei | `guests` |
| Einstellungen | `settings` (Schlüssel/Wert, ohne Zuordnung) |
| Texte, FAQ, Hinweis-Banner | `content_blocks`, `faqs`, `notices` |
| Vermieterdaten, Bank, Mail-Umleitung | `config/fewo.php` ← `.env` |
| Portal-Postfach, Absender | `.env` / `config` |
| Portal-Mails, Sync-Logs, Aufgaben | `portal_emails` (global), `channel_sync_logs`, `channel_tasks` (über Kanal → Wohnung, prüfen) |
| Zahlungen | `payments` (über Buchung, prüfen) |
| Buchungsnummern | ein Nummernkreis |
| Markengrafiken | `public/brand/` |
| Bausteine | nutzen immer `$theme->property()` (Hauptwohnung) |
## 5. Abgrenzung
- Kein Portal, keine gemeinsame Suche, keine Provisionen, keine Selbstregistrierung von Mandanten (der Betreiber legt sie an).
- Keine Abrechnung im ersten Schritt (A17).
- Kein eigener Server je Mandant (A25).
## 6. Abhängigkeiten zur Design-Arbeit
- Theme A (Designkonzept) kann **parallel** entstehen; es muss nur A19 einhalten (Bildwelt-Plätze statt fester Grafiken).
- **Marke** (A14, A22) und **Bildwelt** (A18, A20) bauen auf dem Mandanten bzw. der Website auf und kommen nach dem Grundumbau.
- Bis dahin liegen die neuen Grafiken als Quelle in `styles/satz3/svg/`.
## 7. Offene Fragen für die Planung
1. Mandant und Website trennen oder anfangs 1:1 zusammenlegen?
2. Wohnungen mehreren Websites eines Mandanten zuordnen (n:m) oder genau einer?
3. Welche Einstellungen bleiben bewusst global (z. B. Sicherheitsgrenzen, Backup)?
4. Portal-Postfach je Mandant: eigenes Postfach oder ein Sammelpostfach mit Zuordnung?
5. KI-Dienste: zentraler API-Schlüssel des Betreibers mit Verbrauchszählung, eigene Schlüssel der Mandanten oder beides?
6. Reihenfolge: Mandant → Marke/Bildwelt → mehrere Wohnungen je Website (S2)?
+103
View File
@@ -0,0 +1,103 @@
# Projektstand
Stand: 22.10.2026, spätabends · ausgelieferter Stand: siehe neuester Git-Tag `deploy/staging/*` · 200 Tests grün
> Dieses Dokument ist der Einstieg für jede neue Arbeitssitzung. Bitte bei größeren Änderungen fortschreiben (Abschnitte „Fertig“, „Offen“, „Nächste Schritte“).
## 1. Fertig (umgesetzt, getestet, auf stommer.info)
**Vermietung**
- **Preise:** Saisons mit Preis/Nacht und Mindestnächten; Preisrechner; Extras (Bettwäsche, Handtücher); Endreinigung, Zusatzperson, Anzahlungsquote, Restzahlungsfrist je Wohnung. In Folgejahr kopieren, optional mit Saisonbeginn auf einem Wochentag. *(Code: `app/Pricing`, `CopySeasonsToNextYear`)*
- **Mindestaufenthalt mit Ausnahmen:** Kalenderlücke vollständig gefüllt; Abreise am typischen Anreisetag; Sonderangebot hebt auf; absolute Untergrenze. *(`PriceCalculator::minimumStayRelaxed`, Einstellungen „Regeln Mindestaufenthalt“)*
- **Sonderangebote:** Rabattaktion, fester Termin (auch Pauschalpreis) und Lückenfüller (erkennt Lücken selbst). Dazu Aktionscodes, Priorität und „Hervorheben“. Die Webseite bewirbt Angebote nach eigenen Regeln (`OfferShowcase`), nebeneinander, als Liste oder rollierend. *(KONZEPT §5a)*
- **Buchungsweg 1 – Anfrage → Angebot → Annahme** (KONZEPT §6a):
1. Der Gast fragt unverbindlich an; der Zeitraum ist für die Haltezeit vorgemerkt.
2. Die Vermieterin öffnet „Angebot senden“ und passt bei Bedarf Termin, Personen, Rabattcode, Preis, Gültigkeit, Nachricht und Gastdaten an.
3. Der Gast erhält eine E-Mail mit Vertragsentwurf (PDF) und einem signierten Link.
4. Auf der Angebotsseite nimmt er an (Annahmenachweis ohne IP) oder lehnt ab.
5. Nach der Annahme: Bestätigung und Mietvertrag, Zahlungsfristen laufen.
Die Angebotsfrist verfällt automatisch. „Direkt bestätigen“ gibt es für telefonisch vereinbarte Buchungen. *(`SendOffer`, `AcceptOffer`, `RejectOffer`, `OfferController`, `resources/views/offer.blade.php`)*
- **Zahlungen:** manuell erfassen, Erinnerungen an Anzahlung und Rest, Anreiseinformationen, Bewertungsanfrage nach Abreise.
- **Gästekartei:** Notizen, Tags, CSV-Export, Werbe-Einwilligung mit Bestätigung per E-Mail (Double-Opt-in). Eine neue Anfrage überschreibt keine Stammdaten.
- **Portale:** iCal-Import und -Export, Überwachung, Portal-E-Mails als schneller Weg, Aufgaben für manuelle Sperren. *(PORTALE.md)*
- **Bewertungen:** Einladung per E-Mail, Freigabe im Admin, Anzeige mit Pflichthinweis zur Echtheit.
**Verwaltung (Admin)**
- **Rollen:** Administrator, Vermietung, Inhalte.
- **Ansichten:** Die **einfache Ansicht** zeigt Anfragen & Buchungen, Sperrzeiten, **Preise & Angebote**, Gäste, Portal-Aufgaben, Bewertungen und Bilder. Die **Expertenansicht** zeigt alles. Umschalten im Benutzermenü.
- **Sicherheit:** 2FA ist für **alle** Konten Pflicht; Administratoren können die 2FA eines anderen Kontos zurücksetzen und Passwörter neu vergeben.
**Webseite**
- **Theme-System:** Basis-Theme „Ostsee-Licht“, 15 Bausteine, Seiten-Baukasten.
- **Erscheinungsbilder** für Standard, Sommer, Winter, Weihnachten und Silvester:
- Bilder je Baustein, Bausteine nur in bestimmten Erscheinungsbildern,
- Vorschau-Links, Bildauswahl mit Vorschaubild.
- **Markengrafiken** im Theme: Logo, Favicon, Symbole, Wellenband, Illustration. *(`public/brand`, `partials/brand`)*
- **Theme-Werkzeuge:** `themes:make`, `themes:check`, `themes:preview`; Anleitung in THEME-ERSTELLUNG.md.
- **Fotos:** 39 Fotos aus dem alten WordPress importiert, GPS- und Kameradaten entfernt.
**Betrieb und Datenschutz**
- **Deployment:** atomare Versionen auf Strato, Gesundheitscheck mit automatischem Zurückschalten; Versionsgeschichte als Git-Tags. Nur die aktive Version liegt auf dem Server (Strato-Dateilimit).
- **Datenbank-Backup:** täglich; `scripts/backup-pull.sh` holt es samt Dateien aufs NAS.
- **Datenschutz:**
- Anonymisierung und Löschfristen (Vorschläge) laufen täglich.
- Sicherheits-Header sind gesetzt; Automations-Tokens werden per Header übergeben.
- Keine externen Quellen (Schriften selbst gehostet).
- **Betriebsart** (System › Betrieb): Testbetrieb (Standard) schickt alle Mails nur an eine Testadresse, „scharf geschaltet“ an die echten Empfänger; Hinweisbanner in der Verwaltung. `mail:test` prüft den Versand; alle 17 Mail-Typen werden in Tests vollständig aufgebaut.
- **Bot-Schutz der Buchungsanfrage:** Köderfeld, Zeitsperre, Begrenzungen je IP/E-Mail/gesamt, höchstens 2 gleichzeitige Vormerkungen je E-Mail, keine Links (ohne externen Captcha-Dienst).
- **Testbetrieb:** `noindex`.
## 2. Stand auf stommer.info (Testbetrieb)
| | |
|---|---|
| Konten | `lars@stommer.com` (Administrator); Konto für Brigitte noch anzulegen (Administrator, **einfache Ansicht**) |
| Daten | Wohnung, Preise 2026, 39 Fotos, Seiten, 5 Erscheinungsbilder; **Testbuchung 2026-0002** („E2E Testgast“, angenommenes Angebot) – darf gelöscht werden |
| E-Mail | Betriebsart **Testbetrieb** (System › Betrieb), Testadresse `lars@stommer.com` – alle Mails gingen nur dorthin. Versandweg aber noch `log` (nichts wird zugestellt): `MAIL_MAILER=smtp` + `MAIL_PASSWORD` (Postfach **info@fewo-stommer.de** = Absender) in `shared/.env` selbst eintragen, dann `artisan mail:test` (BETRIEB.md §5a) |
| Cronjob | **noch nicht eingerichtet** – ohne ihn laufen Fristabläufe, Erinnerungen, Kalenderabgleich, Backups nicht automatisch (BETRIEB.md §6) |
| Typischer Anreisetag | noch nicht eingetragen (Preise & Angebote › Saisons › Regeln Mindestaufenthalt) |
## 3. Offen
**Entscheidungen und Inhalte (Betreiber)**
- Impressum und Datenschutzerklärung werden separat erstellt; dann unter Webseite › Texte › Rechtliches eintragen.
- Mietbedingungen, Storno-Regeln, AGB; Texte zu Angebot und Annahme, einschließlich der Beschriftung des Annahme-Buttons, fachkundig freigeben lassen (Webseite › Texte).
- Löschfristen nach allgemeiner Rechtsauffassung bestätigen (BETRIEB.md §7a); Auftragsverarbeitung mit Strato im Kundenbereich prüfen.
- Bankverbindung (`FEWO_BANK_*`), Preise 2027, Meldeschein: Ob der Ferienservice Balu ihn übernimmt, ist noch zu klären; die Kurabgabe erledigt Balu vor Ort.
- Sprachen: nur Deutsch oder auch Englisch?
**Technik**
- Cronjob auf Strato einrichten (BETRIEB.md §6).
- Neues Design-Theme: läuft in einer eigenen Session auf dem privaten Rechner (ZUSAMMENARBEIT.md, THEME-ERSTELLUNG.md).
- Logo in E-Mails und im Vertrags-PDF (`public/brand/logo-600.png` liegt bereit).
- Content-Security-Policy: braucht wegen Livewire/Filament Nonces und einen sorgfältigen Test.
- Produktion `www.fewo-stommer.de` vorbereiten:
- eigener Deploy-Ordner, Datenbank und `.env`,
- Umleitungen von der alten WordPress-Seite,
- echte Testbuchungen (GO-LIVE-CHECKLISTE.md).
- Später:
- Buchungsweg 2 (verbindliche Direktbuchung), erst bei verlässlicher Synchronisation mit FeWo-direkt,
- Portalbuchungen als vollwertige Buchungen (DATENMODELL-KONZEPT.md),
- Stornoformular für Gäste, KI-Angebotsentwürfe, Marketing und Social Media.
- SSH-Schlüssel des Firmen-Laptops vom Server entfernen, sobald der private PC eingerichtet ist (BETRIEB.md §4).
## 4. Nächste Schritte (Vorschlag)
1. Cronjob einrichten; SMTP einschalten und mit `mail:test` prüfen (Mails landen wegen Testbetrieb nur bei Lars); Konto für Brigitte anlegen.
1a. Vor dem Go-Live: System › Betrieb auf „scharf geschaltet“ stellen – erst dann erhalten Gäste die Mails. Beim Go-Live außerdem unter System › Betrieb › Adressen Kontakt-/Antwortadresse und Benachrichtigungen von fewo@stommer.de auf **info@fewo-stommer.de** umstellen (Entscheidung 23.10.2026; Absender ist bereits info@fewo-stommer.de).
2. Brigitte probt Anfrage → Angebot → Annahme mit einem eigenen Test (Angebotslink über die Aktion „Angebotslink“).
3. Design-Theme auf dem privaten Rechner (eigene Session, siehe ZUSAMMENARBEIT.md).
4. Rechtstexte und Bedingungen einpflegen, Produktion einrichten, Umzug von WordPress.
## 5. Schnellreferenz Code
| Bereich | Ort |
|---|---|
| Geschäftsabläufe | `app/Actions/*` (CreateReservation, SendOffer, AcceptOffer, RejectOffer, ConfirmBooking, DeclineBooking, ExpireReservations, RecordPayment, SyncChannel, ProcessPortalMail, AnonymizeGuests …) |
| Preise/Angebote | `app/Pricing/*` (PriceCalculator, OfferShowcase, AdvertisedOffer), `app/Availability/*` (AvailabilityChecker, GapFinder) |
| Verwaltung | `app/Filament/**` (Ansichten: `App\Enums\AdminMode`, Trait `FollowsAdminMode`) |
| Webseite | `app/Themes/**`, `resources/themes/ostsee-licht/**`, `config/themes.php` |
| 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) |
+17 -2
View File
@@ -2,6 +2,8 @@ # Neues Theme erstellen – verbindliche Bauanleitung
Stand: 22.10.2026 · gilt für jede Design-Sitzung (z. B. auf dem privaten Rechner mit dem Skill/Plugin `frontend-design`) · Architektur und Datenverträge: [THEMES.md](THEMES.md)
> **Vor dem Start:** [ZUSAMMENARBEIT.md](ZUSAMMENARBEIT.md) lesen – die Design-Session arbeitet auf dem Branch `theme/<key>` und nur im eigenen Theme-Ordner; Wünsche an die Anwendung gehen in ZUSAMMENARBEIT.md §5, Änderungen am Vorlagen-Vertrag stehen in §6.
> **Kurz:** Ein neues Design entsteht als **zusätzliches Theme** in einem eigenen Ordner `resources/themes/<key>/`. Das vorhandene Theme **„Ostsee-Licht“ wird nicht verändert**. Das neue Theme erbt alles, was es nicht selbst mitbringt, wird mit `php artisan themes:check <key>` geprüft, per Vorschau-Link angesehen und erst dann im Admin für die Website ausgewählt. Zurück geht es jederzeit durch Auswahl des alten Themes.
---
@@ -19,7 +21,7 @@ ## 1. Grundregeln (nicht verhandelbar)
## 2. Schnellstart
```bash
git pull # aktuellen Stand holen
git checkout main && git pull && git checkout -b theme/<key> # eigener Branch (ZUSAMMENARBEIT.md §2)
composer install && npm ci # einmalig auf dem Rechner
cp .env.example .env && php artisan key:generate # einmalig, lokale SQLite-Datenbank …
touch database/database.sqlite # … als leere Datei anlegen (PowerShell: New-Item database/database.sqlite)
@@ -199,6 +201,18 @@ ## 7. Schriften, Bilder, Icons, Bewegung
- **Icons:** Inline-SVG; Heroicons sind über Blade verfügbar (`<x-heroicon-o-sparkles class="size-5" />`, kommt mit Filament).
- **Bewegung:** nur mit Zweck; `@media (prefers-reduced-motion: no-preference)` und `@supports (animation-timeline: view())` als Verbesserung. Ohne Animation und ohne JS muss alles vollständig funktionieren. Kein Autoplay-Video mit Ton; Video nur stumm, mit Standbild und nicht bei `prefers-reduced-data`.
## 7a. Markengrafiken
Logo, Favicon, Symbole und Wellenband liegen als saubere SVGs in `public/brand/` (Beschreibung und Farben: `styles/README.md`). In Vorlagen inline einbinden – dann färben sie sich über CSS-Variablen:
```blade
@include('theme::partials.brand', ['name' => 'mark', 'class' => 'h-11 w-auto']) {{-- Bildmarke --}}
@include('theme::partials.brand', ['name' => 'wave-divider', 'class' => 'w-full h-auto']) {{-- Trenner --}}
@include('theme::partials.brand', ['name' => 'icon-location', 'class' => 'size-10', 'label' => 'Lage'])
```
Verfügbar: `mark`, `logo`, `wave-divider`, `icon-apartment`, `icon-sea`, `icon-terrace`, `icon-location`. Farben: `--brand-navy` (Standard = Textfarbe `--ink`, damit dunkle Erscheinungsbilder funktionieren), `--brand-teal`, `--brand-wave`, `--brand-sun` – im eigenen `theme.css` oder lokal (`class="[--brand-navy:var(--band-ink)]"`) überschreibbar. Favicon/App-Symbol bindet das Layout ein (`asset('brand/favicon.svg')`). Grafiken nicht verändern (Marke); eigene dekorative Grafiken gehören in den Theme-Ordner.
## 8. Qualität
Es gelten [THEMES.md](THEMES.md) §8:
@@ -213,7 +227,7 @@ ## 9. Prüfen, ansehen, einbinden
1. **Prüfen:** `php artisan themes:check <key>`. Rote Punkte (✗) sind Fehler und müssen behoben werden, gelbe (!) sind Hinweise.
2. **Ansehen, ohne etwas umzuschalten:** `php artisan themes:preview <key>` gibt für jede Seite signierte Links aus: „heute“ und je Erscheinungsbild (Standard, Sommer, Winter, Weihnachten, Silvester). Im Admin geht das auch unter System › Websites › Theme: Theme wählen, dann **„Vorschau“** (öffnet einen neuen Tab), noch nicht speichern. Vorschauseiten sind `noindex`. Klickt man in der Vorschau auf einen Menülink, verlässt man sie; deshalb für jede Seite den eigenen Link verwenden.
3. **Bauen und testen:** `npm run build` und `php artisan test --compact`. Der Test `test_installed_themes_fulfil_the_theme_contract` lässt die Suite rot werden, wenn ein Theme die Prüfung nicht besteht.
4. **Einreichen:** Commit (nur `resources/themes/<key>/**`, ggf. `package*.json`) und Push nach Gitea.
4. **Einreichen:** Commit (nur `resources/themes/<key>/**`, ggf. `package*.json`) auf `theme/<key>`, Push nach Gitea, Merge-Request nach `main` (ZUSAMMENARBEIT.md §2). Ausgeliefert wird nur aus `main`.
5. **Ausliefern:** `bash scripts/deploy.sh staging deploy` (Testbetrieb https://stommer.info, siehe [BETRIEB.md](BETRIEB.md)). Die Vorschau-Links funktionieren dort genauso (`php artisan themes:preview <key>` über `bash scripts/deploy.sh staging artisan themes:preview <key>`).
6. **Auswählen:** Admin › System › Websites › Website bearbeiten › **Theme** wählen › Speichern. Die Farbfelder darunter zeigen jetzt die Tokens des neuen Themes.
7. **Zurück:** dort das vorherige Theme wählen. Alle Themes bleiben installiert; es wird nichts überschrieben.
@@ -223,6 +237,7 @@ ## 10. Checkliste vor Abschluss
- [ ] Theme mit `themes:make` angelegt; `resources/themes/ostsee-licht/**` unverändert (`git status`)
- [ ] `themes:check <key>` ohne Fehler; Warnungen bewertet
- [ ] Alle Seiten (`/`, `/wohnung`, `/kuehlungsborn`, `/buchen`, `/kontakt`, `/impressum`, `/datenschutz`) auf Handy (360 px), Tablet und Desktop geprüft
- [ ] Seiten außerhalb der Bausteine im neuen Layout geprüft: **Angebotsseite** des Gastes (Admin › Buchung › „Angebot senden“, dann „Angebotslink“) und **Bewertungsseite**
- [ ] Alle 5 Erscheinungsbilder über `themes:preview` geprüft (Silvester ist dunkel, Kontraste!)
- [ ] Buchungsablauf in der Vorschau durchgespielt: Termin wählen → Preis erscheint → Anfrage absenden
- [ ] Sonderangebote in allen drei Darstellungen (Baustein-Einstellung) angesehen
+90
View File
@@ -0,0 +1,90 @@
# Zusammenarbeit – parallele Sessions ohne Konflikte
Stand: 22.10.2026 · gilt für alle Arbeitssitzungen (Mensch oder KI), die gleichzeitig am Projekt arbeiten
## 1. Wer arbeitet woran
| Session | Rechner | Aufgabe | Branch | Darf ändern |
|---|---|---|---|---|
| **A – Anwendung** | Firmen-Laptop (oder jeder andere) | Funktionen, Verwaltung, Abläufe, Betrieb, Deployment | `main` (größere Vorhaben: `feature/<thema>`) | alles **außer** `resources/themes/<neues-theme>/**` |
| **B – Design** | privater PC, Plugin `frontend-design` | ein **neues, zusätzliches Theme** | `theme/<key>` (z. B. `theme/ostsee-nacht`) | nur `resources/themes/<key>/**`, `package.json`/`package-lock.json` (nur `@fontsource`-Schriften), `docs/STATUS.md` (eigener Abschnitt) |
Session B ändert **nicht**: `app/**`, `config/**`, `database/**`, `routes/**`, `resources/views/**` (auch nicht die Livewire-Formulare), `resources/themes/ostsee-licht/**`, `public/brand/**`, andere Dokumente. Braucht das Theme etwas aus diesen Bereichen (neue Daten in einem Baustein, ein neuer Baustein, eine Schrift-Lizenzfrage …), trägt Session B den Wunsch in §5 ein. Session A setzt ihn um.
## 2. Ablauf Session B (Design)
```bash
git clone https://gitea.stommer.de/Lars/fewo-stommer.git && cd fewo-stommer # einmalig
git checkout main && git pull
git checkout -b theme/<key> # einmalig
php artisan themes:make <key> --name="…" --description="…"
# … arbeiten (docs/THEME-ERSTELLUNG.md) …
git add resources/themes/<key> package.json package-lock.json && git commit -m "Theme <key>: …"
git push -u origin theme/<key>
```
**Täglich vor der Arbeit** den Stand der Anwendung übernehmen, damit Vorlagen-Vertrag und Tests aktuell sind:
```bash
git fetch origin && git merge origin/main # Konflikte kann es nur in package-lock.json geben, siehe §4
php artisan migrate && npm ci && php artisan test --compact
```
**Zusammenführen:** Sobald `php artisan themes:check <key>` ohne Fehler und `php artisan test --compact` grün ist, Merge-Request in Gitea von `theme/<key>` nach `main` – oder lokal `git checkout main && git pull && git merge --no-ff theme/<key> && git push`. Ein unfertiges Theme darf zusammengeführt werden. Es ist installiert, aber nicht aktiv, solange es niemand unter Admin › Websites auswählt. Zusammenführen hilft sogar, weil dann die Vorschau auf stommer.info möglich ist.
## 3. Ausliefern (Deployment)
- **Nur aus `main`, nur nach `git pull`, nur mit grünen Tests.** Das Skript baut den letzten Commit des **lokalen** Stands. Wer aus einem Feature- oder Theme-Branch ausliefert, nimmt alle Änderungen der anderen Session vom Server.
- Theme-Vorschau auf stommer.info: erst nach dem Zusammenführen in `main`, dann `bash scripts/deploy.sh staging deploy` und `bash scripts/deploy.sh staging artisan themes:preview <key>` (gibt die Vorschau-Links aus).
- Das neue Theme aktivieren (Admin › System › Websites › Theme) entscheidet Lars, nach Sichtung der Vorschau.
- `shared/.env` auf dem Server ändert nur Lars (Passwörter); Sessions ändern dort höchstens nicht geheime Werte und dokumentieren das in BETRIEB.md.
- Jede Session braucht ihren **eigenen SSH-Schlüssel** für Strato (BETRIEB.md §4); keine Schlüssel kopieren.
## 4. Konflikte vermeiden
| Datei/Bereich | Regel |
|---|---|
| `package.json`, `package-lock.json` | Während der Theme-Phase installiert nur Session B neue npm-Pakete (Schriften). Bei Konflikt: Version von `main` übernehmen, dann eigene Pakete neu installieren: `git checkout --theirs package-lock.json && npm install @fontsource/<schrift>` |
| Vorlagen-Vertrag (`app/Themes/**`, Bausteine, Basis-Theme `ostsee-licht`, THEMES.md §4/§5, THEME-ERSTELLUNG.md §6) | Ändert nur Session A – und trägt jede Änderung in §6 ein, damit Session B sie nachzieht |
| `docs/STATUS.md` | Beide dürfen schreiben – Session B nur in einem eigenen Abschnitt „Design-Theme“ |
| `public/build` | Wird nicht committet (Build-Ergebnis); nie von Hand ändern |
| Datenbank-Migrationen | Nur Session A |
## 4a. Automatische Synchronisation (optional, je Rechner)
`scripts/git-autosync.ps1` zieht alle 5 Minuten neue Commits von Gitea – nur per Vorspulen (`--ff-only`), nie bei lokalen, nicht committeten Änderungen an versionierten Dateien und nie, wenn beide Seiten neue Commits haben (dann Hinweis im Protokoll, bitte von Hand `git pull`). Protokoll: `storage/logs/git-autosync.log`, inklusive Hinweis, wenn danach `npm ci && npm run build`, `composer install` oder `php artisan migrate` nötig ist.
```powershell
scripts\git-autosync.ps1 -Register # einrichten (Windows-Aufgabenplanung, aktueller Benutzer)
scripts\git-autosync.ps1 -Unregister # entfernen
scripts\git-autosync.ps1 # einmal von Hand
```
Eingerichtet auf: Firmen-Laptop (23.10.2026).
**Lock-Datei:** Nach jeder Paketänderung `npm install` ausführen und `package-lock.json` mit committen; vor dem Push prüfen, dass `npm ci` fehlerfrei durchläuft – das Deploy-Skript und die CI bauen mit `npm ci` und brechen sonst ab (am 23.10. passiert: Lock-Datei passte nicht zu package.json).
## 5. Wünsche der Design-Session an die Anwendung
*(Session B trägt hier ein, was sie braucht; Session A erledigt es und vermerkt „erledigt in <commit>“.)*
| Datum | Wunsch | Status |
|---|---|---|
| 23.10.2026 | **Theme-Optionen** in `theme.json › options` (Auswahl/Schalter, z. B. Titelbild Bogen/Rechteck, Bewegung an/aus), im Admin unter Websites und je Erscheinungsbild überschreibbar (DESIGN-KONZEPT §7 Nr. 1) | offen |
| 23.10.2026 | **Darstellungsvarianten je Baustein** (`theme.json › variants`), Feld „Darstellung“ im Seiten-Baukasten (DESIGN-KONZEPT §7 Nr. 2) | offen |
| 23.10.2026 | **Baustein „Tipps der Gastgeberin“**: Orte mit Kategorie (Strand, Seebrücke, Bahn, Rad, Wald …), Weg/Gehzeit, Text, Foto, Karten-Link; saisonal filterbar. Seebad zeigt je Kategorie eine Vignette der Bildwelt (DESIGN-KONZEPT §7 Nr. 4) | offen |
| 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 |
## 6. Änderungsprotokoll Vorlagen-Vertrag
*(Session A trägt hier jede Änderung ein, die Theme-Vorlagen betrifft.)*
| Datum | Änderung | Betrifft |
|---|---|---|
| 22.10.2026 | `theme-base.css` (Schriften, Token-Mapping, Basis-Klassen) von `theme.css` getrennt – Child-Themes importieren `theme-base.css` | theme.css |
| 22.10.2026 | Markengrafiken: `@include('theme::partials.brand', ['name' => 'mark', 'class' => '…'])` (mark, logo, wave-divider, icon-apartment/-sea/-terrace/-location); Farben über `--brand-navy/-teal/-wave/-sun` (navy = Textfarbe) | header, footer, facts, location, image |
| 22.10.2026 | `hero`: `$featuredOffer` (wichtigstes hervorgehobenes Angebot oder null) | sections/hero |
| 22.10.2026 | `offers`: `$display` (grid/list/rotating), `$offers` = `AdvertisedOffer` (Termin, Preis, `bookingUrl()`); rollierend über `data-rotator*` | sections/offers |
| 22.10.2026 | Seiten außerhalb der Bausteine, die das Theme-Layout nutzen: Angebotsseite `resources/views/offer.blade.php`, Bewertung `resources/views/review.blade.php` – beim Theme-Test mitprüfen | layouts/app |
+88 -54
View File
@@ -4,6 +4,10 @@
"requires": true,
"packages": {
"": {
"dependencies": {
"@fontsource/atkinson-hyperlegible-next": "^5.3.0",
"@fontsource/newsreader": "^5.3.0"
},
"devDependencies": {
"@fontsource/cormorant-garamond": "^5.3.0",
"@fontsource/figtree": "^5.3.0",
@@ -44,6 +48,15 @@
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
}
},
"node_modules/@fontsource/atkinson-hyperlegible-next": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/@fontsource/atkinson-hyperlegible-next/-/atkinson-hyperlegible-next-5.3.0.tgz",
"integrity": "sha512-8p1tHVoPDo6oYwSO3sMw5snGwFwSf3TmeSF9Gcj792GXdsg6oqvhoItbj6Hj/XZIk0Xs+Cwu6pkLBAl3Q5HrwA==",
"license": "OFL-1.1",
"funding": {
"url": "https://github.com/sponsors/ayuhito"
}
},
"node_modules/@fontsource/cormorant-garamond": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/@fontsource/cormorant-garamond/-/cormorant-garamond-5.3.0.tgz",
@@ -64,6 +77,15 @@
"url": "https://github.com/sponsors/ayuhito"
}
},
"node_modules/@fontsource/newsreader": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/@fontsource/newsreader/-/newsreader-5.3.0.tgz",
"integrity": "sha512-AFR6ZKY89GNL+9qBI2P2+66NhD5bhOj/v6fsLnFYLM4E0JnMB1yKb+Ro8cA64i1hwAWoBfTq5CHJGWH1toLDkw==",
"license": "OFL-1.1",
"funding": {
"url": "https://github.com/sponsors/ayuhito"
}
},
"node_modules/@jridgewell/gen-mapping": {
"version": "0.3.13",
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
@@ -259,9 +281,6 @@
"arm64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
@@ -279,9 +298,6 @@
"arm64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MIT",
"optional": true,
"os": [
@@ -299,9 +315,6 @@
"ppc64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
@@ -319,9 +332,6 @@
"s390x"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
@@ -339,9 +349,6 @@
"x64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
@@ -359,9 +366,6 @@
"x64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MIT",
"optional": true,
"os": [
@@ -562,9 +566,6 @@
"arm64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
@@ -582,9 +583,6 @@
"arm64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MIT",
"optional": true,
"os": [
@@ -602,9 +600,6 @@
"x64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MIT",
"optional": true,
"os": [
@@ -622,9 +617,6 @@
"x64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MIT",
"optional": true,
"os": [
@@ -664,6 +656,72 @@
"node": ">=14.0.0"
}
},
"node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/core": {
"version": "1.11.1",
"dev": true,
"inBundle": true,
"license": "MIT",
"optional": true,
"dependencies": {
"@emnapi/wasi-threads": "1.2.2",
"tslib": "^2.4.0"
}
},
"node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/runtime": {
"version": "1.11.1",
"dev": true,
"inBundle": true,
"license": "MIT",
"optional": true,
"dependencies": {
"tslib": "^2.4.0"
}
},
"node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/wasi-threads": {
"version": "1.2.2",
"dev": true,
"inBundle": true,
"license": "MIT",
"optional": true,
"dependencies": {
"tslib": "^2.4.0"
}
},
"node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@napi-rs/wasm-runtime": {
"version": "1.1.4",
"dev": true,
"inBundle": true,
"license": "MIT",
"optional": true,
"dependencies": {
"@tybys/wasm-util": "^0.10.1"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/Brooooooklyn"
},
"peerDependencies": {
"@emnapi/core": "^1.7.1",
"@emnapi/runtime": "^1.7.1"
}
},
"node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@tybys/wasm-util": {
"version": "0.10.2",
"dev": true,
"inBundle": true,
"license": "MIT",
"optional": true,
"dependencies": {
"tslib": "^2.4.0"
}
},
"node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/tslib": {
"version": "2.8.1",
"dev": true,
"inBundle": true,
"license": "0BSD",
"optional": true
},
"node_modules/@tailwindcss/oxide-win32-arm64-msvc": {
"version": "4.3.3",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.3.tgz",
@@ -1377,9 +1435,6 @@
"arm64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -1401,9 +1456,6 @@
"arm64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -1425,9 +1477,6 @@
"x64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -1449,9 +1498,6 @@
"x64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -2176,9 +2222,6 @@
"arm64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -2200,9 +2243,6 @@
"arm64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -2224,9 +2264,6 @@
"x64"
],
"dev": true,
"libc": [
"glibc"
],
"license": "MPL-2.0",
"optional": true,
"os": [
@@ -2248,9 +2285,6 @@
"x64"
],
"dev": true,
"libc": [
"musl"
],
"license": "MPL-2.0",
"optional": true,
"os": [
+4
View File
@@ -17,5 +17,9 @@
},
"optionalDependencies": {
"@laravel/multiplex": "^0.4.1"
},
"dependencies": {
"@fontsource/atkinson-hyperlegible-next": "^5.3.0",
"@fontsource/newsreader": "^5.3.0"
}
}
+10
View File
@@ -13,6 +13,16 @@
// Register the Composer autoloader...
require __DIR__.'/../vendor/autoload.php';
// Strato: the domain points at the deployment folder and .htaccess forwards to releases/<version>/public,
// and the web server then reports the rewritten path in REQUEST_URI/SCRIPT_NAME. Laravel would see
// "/releases/…/public/angebot/2" instead of "/angebot/2" (signed links would fail). The site is always
// served from the domain root, so the internal prefix is removed here.
if (preg_match('~^/(?:releases/[^/?]+|current)/public(?=[/?]|$)~', $_SERVER['REQUEST_URI'] ?? '', $internalPrefix)) {
$path = substr($_SERVER['REQUEST_URI'], strlen($internalPrefix[0]));
$_SERVER['REQUEST_URI'] = str_starts_with($path, '/') ? $path : '/'.$path;
$_SERVER['SCRIPT_NAME'] = $_SERVER['PHP_SELF'] = '/index.php';
}
// Bootstrap Laravel and handle the request...
/** @var Application $app */
$app = require_once __DIR__.'/../bootstrap/app.php';
+47
View File
@@ -0,0 +1,47 @@
# Theme „Seebad“ (`seebad`)
Child-Theme von `ostsee-licht`, Richtung A aus [docs/DESIGN-KONZEPT.md](../../../docs/DESIGN-KONZEPT.md): ruhiges Magazin für Paare, große und gut lesbare Schrift, Titelbild mit Bogen, Bildwelt „Ostsee“. Vorlagen, die hier fehlen, kommen vom Eltern-Theme.
- Anleitung und Vorlagen-Vertrag: `docs/THEME-ERSTELLUNG.md`, `docs/THEMES.md` §5
- Prüfen: `php artisan themes:check seebad`
- Ansehen ohne Umschalten: `php artisan themes:preview seebad` oder Admin › System › Websites › Theme „Seebad“ › „Vorschau“
## Gestaltung
| | |
|---|---|
| Schriften | Newsreader (Überschriften, Zitate), Atkinson Hyperlegible Next (Text, Bedienung) – selbst gehostet über `@fontsource` |
| Farben | Kreideweiß `#F7F8F6`, Tintenblau `#1F2B38`, Backstein `#9A3B2E`, Abendblau `#23384A` (Tokens in `theme.json`) |
| Grundgröße | 18 px, ab 1024 px 19 px; Schaltflächen und Felder mindestens 48 px hoch |
| Bogen | nur das Titelbild (`.arch`) – bewusst sparsam |
| Kartusche | Doppelrahmen mit Muschel (`.cartouche`) für den Abschluss-Aufruf |
| Bewegung | Wellenbänder treiben langsam (`.motif-drift`), Möwen gleiten (`.motif-glide`); aus bei „Bewegung reduzieren“ |
| Hervorhebung | `*Wort*` im Titel wird bewusst **nicht** kursiv gesetzt (ruhigere Überschrift) |
## Bildwelt
Grafiken liegen in `motifs/` (Quelle: `styles/satz3/svg/`) und werden nur über Plätze eingebunden:
`@include('theme::partials.motif', ['slot' => 'divider', 'class' => '…'])`. Plätze: `mark`, `divider`, `closing`, `crest`, `gulls`, `vignette.beach|pier|train|bike|forest`. Die Zuordnung Platz → Datei steht nur in `partials/motif.blade.php`, damit ein späteres Bildwelt-System (MANDANTEN-ANFORDERUNGEN A18/A19) sie ersetzen kann. Farben über `--brand-navy` (= Textfarbe), `--brand-paper` (= Flächen), `--brand-teal`, `--brand-wave`, `--brand-sun`, `--brand-reed`, `--brand-brick`.
## Eigene Vorlagen
| Datei | Zweck |
|---|---|
| `layouts/app` | Grundgerüst (größere Grundschrift, Lightbox mit großer Schließen-Fläche) |
| `partials/header` | Bildmarke Villa, 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/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 |
| `partials/motif` | Bildwelt-Grafiken inline nach Platz |
| `sections/hero` | Titelbild mit Bogen, Titel, Suche im Kasten, hervorgehobenes Angebot; darunter Wellenband mit Sonne |
| `sections/facts` | Eckdaten in großer Serifenschrift, ohne Symbole |
| `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/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 |
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.
@@ -0,0 +1,20 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 150" preserveAspectRatio="xMidYMid meet" role="presentation" aria-hidden="true">
<defs><clipPath id="band-pier-horizon"><rect x="1160" y="20" width="140" height="78"/></clipPath></defs>
<circle cx="1230" cy="98" r="50" fill="var(--brand-sun, #F2C27A)" clip-path="url(#band-pier-horizon)"/>
<g fill="var(--brand-navy, #0B2E55)">
<rect x="1100" y="92" width="380" height="6" rx="1"/>
<rect x="1100" y="80" width="300" height="2.5"/>
<path d="M1108 80 V92 M1126 80 V92 M1144 80 V92 M1162 80 V92 M1180 80 V92 M1198 80 V92 M1216 80 V92 M1234 80 V92 M1252 80 V92 M1270 80 V92 M1288 80 V92 M1306 80 V92 M1324 80 V92 M1342 80 V92 M1360 80 V92 M1378 80 V92" stroke="var(--brand-navy, #0B2E55)" stroke-width="2"/>
<path d="M1112 98 H1117 V112 H1112 Z M1150 98 H1155 V112 H1150 Z M1188 98 H1193 V112 H1188 Z M1226 98 H1231 V112 H1226 Z M1264 98 H1269 V112 H1264 Z M1302 98 H1307 V112 H1302 Z M1340 98 H1345 V112 H1340 Z M1378 98 H1383 V112 H1378 Z M1416 98 H1421 V112 H1416 Z M1454 98 H1459 V112 H1454 Z"/>
<rect x="1410" y="72" width="44" height="20"/>
<path d="M1404 74 L1432 50 L1460 74 Z"/>
<path d="M1430 50 L1432 34 L1434 50 Z"/>
<rect x="1160" y="56" width="2" height="24"/>
<path d="M1162 56 L1174 60 L1162 64 Z"/>
<rect x="1380" y="60" width="2" height="20"/>
<path d="M1382 60 L1392 64 L1382 68 Z"/>
</g>
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" d="M1060 44 Q1068 36 1076 44 Q1084 34 1094 40 M1020 64 Q1025 59 1030 64 Q1035 58 1041 61"/>
<path fill="var(--brand-teal, #0286A2)" d="M10 104 C200 70 400 68 600 90 C800 112 1000 112 1200 106 C1350 102 1480 96 1590 80 C1440 130 1260 126 1100 120 C900 114 760 120 600 108 C400 88 200 92 10 104 Z"/>
<path fill="var(--brand-wave, #6DBFC2)" d="M60 122 C240 102 420 104 600 120 C800 136 1000 130 1200 124 C1340 120 1460 116 1540 110 C1400 142 1220 142 1060 136 C900 132 760 136 600 130 C420 118 240 116 60 122 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

@@ -0,0 +1,21 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 150" preserveAspectRatio="xMidYMid meet" role="presentation" aria-hidden="true">
<defs><clipPath id="band-sonne-horizon"><rect x="740" y="20" width="120" height="78"/></clipPath></defs>
<circle cx="800" cy="98" r="44" fill="var(--brand-sun, #F2C27A)" clip-path="url(#band-sonne-horizon)"/>
<path fill="var(--brand-sun, #F2C27A)" d="M760 104 H840 A3 3 0 0 1 840 110 H760 A3 3 0 0 1 760 104 Z M776 118 H824 A3 3 0 0 1 824 124 H776 A3 3 0 0 1 776 118 Z"/>
<g fill="var(--brand-reed, #C9A15E)" transform="translate(744 100) scale(-1 1)">
<path d="M0 0 C-4 -20 -14 -38 -30 -50 C-18 -34 -10 -18 -4 0 Z"/>
<path d="M2 0 C2 -22 -2 -42 -12 -62 C-4 -40 -2 -20 -2 0 Z"/>
<path d="M4 0 C8 -18 16 -34 28 -46 C18 -30 10 -16 8 0 Z"/>
<path d="M6 0 C14 -12 24 -22 36 -26 C26 -18 16 -8 10 0 Z"/>
<path d="M-2 0 C-10 -10 -22 -18 -36 -20 C-22 -14 -12 -6 -6 0 Z"/>
</g>
<g fill="var(--brand-reed, #C9A15E)" transform="translate(856 100)">
<path d="M0 0 C-4 -20 -14 -38 -30 -50 C-18 -34 -10 -18 -4 0 Z"/>
<path d="M2 0 C2 -22 -2 -42 -12 -62 C-4 -40 -2 -20 -2 0 Z"/>
<path d="M4 0 C8 -18 16 -34 28 -46 C18 -30 10 -16 8 0 Z"/>
<path d="M6 0 C14 -12 24 -22 36 -26 C26 -18 16 -8 10 0 Z"/>
<path d="M-2 0 C-10 -10 -22 -18 -36 -20 C-22 -14 -12 -6 -6 0 Z"/>
</g>
<path fill="var(--brand-teal, #0286A2)" d="M10 104 C200 66 400 64 600 88 C690 98 750 104 800 100 C850 96 910 88 1000 88 C1200 88 1400 112 1590 74 C1420 128 1220 120 1000 108 C910 104 850 112 800 114 C750 116 690 114 600 106 C400 84 200 88 10 104 Z"/>
<path fill="var(--brand-wave, #6DBFC2)" d="M60 122 C240 100 420 102 600 118 C690 126 750 128 800 126 C850 124 910 116 1000 116 C1180 116 1360 134 1540 110 C1380 142 1200 140 1000 130 C910 126 850 134 800 136 C750 138 690 136 600 130 C420 116 240 114 60 122 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 50" role="presentation" aria-hidden="true">
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="M8 26 Q20 12 32 24 Q46 6 62 16 M70 40 Q78 32 86 40 Q94 30 104 36 M88 14 Q93 9 98 14 Q103 8 110 11"/>
</svg>

After

Width:  |  Height:  |  Size: 332 B

@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 60" role="presentation" aria-hidden="true">
<path fill="var(--brand-sun, #F2C27A)" stroke="var(--brand-navy, #0B2E55)" stroke-width="2.5" stroke-linejoin="round" d="M60 52 L20 30 C24 14 40 6 60 6 C80 6 96 14 100 30 Z"/>
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="2" stroke-linecap="round" d="M60 52 L32 16 M60 52 L46 9 M60 52 V6 M60 52 L74 9 M60 52 L88 16"/>
<path fill="var(--brand-navy, #0B2E55)" d="M50 50 H70 L66 58 H54 Z"/>
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="2.5" stroke-linecap="round" d="M2 44 H34 M86 44 H118"/>
</svg>

After

Width:  |  Height:  |  Size: 650 B

@@ -0,0 +1,27 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 180" role="img" aria-label="Bäderbahn Molli">
<title>Bäderbahn Molli</title>
<g fill="var(--brand-wave, #6DBFC2)">
<circle cx="66" cy="54" r="14"/><circle cx="84" cy="44" r="16"/><circle cx="104" cy="40" r="13"/><circle cx="120" cy="34" r="11"/><circle cx="80" cy="60" r="10"/>
</g>
<g fill="var(--brand-navy, #0B2E55)">
<path d="M58 62 H74 L72 70 V92 H60 V70 Z"/>
<rect x="44" y="90" width="66" height="30" rx="8"/>
<rect x="104" y="76" width="34" height="44" rx="2"/>
<rect x="100" y="72" width="42" height="6" rx="2"/>
<rect x="80" y="82" width="10" height="10" rx="5"/>
</g>
<rect x="112" y="84" width="18" height="14" fill="var(--brand-paper, #F6F1E4)"/>
<rect x="40" y="118" width="102" height="8" fill="var(--brand-brick, #A63A2B)"/>
<g fill="var(--brand-paper, #F6F1E4)" stroke="var(--brand-navy, #0B2E55)" stroke-width="2.5">
<rect x="146" y="86" width="74" height="34" rx="3"/>
</g>
<rect x="146" y="108" width="74" height="12" fill="var(--brand-brick, #A63A2B)"/>
<path fill="var(--brand-navy, #0B2E55)" d="M142 82 H224 V88 H142 Z M154 92 H166 V102 H154 Z M172 92 H184 V102 H172 Z M190 92 H202 V102 H190 Z M206 92 H216 V102 H206 Z"/>
<g fill="var(--brand-brick, #A63A2B)" stroke="var(--brand-navy, #0B2E55)" stroke-width="3">
<circle cx="60" cy="132" r="9"/><circle cx="84" cy="132" r="9"/><circle cx="108" cy="132" r="9"/>
<circle cx="160" cy="128" r="6"/><circle cx="206" cy="128" r="6"/>
</g>
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" d="M60 132 H108 M24 142 H228"/>
<path fill="var(--brand-teal, #0286A2)" d="M6 156 C50 136 98 132 142 142 C178 150 208 150 234 140 C216 160 182 168 142 164 C102 160 62 150 6 156 Z"/>
<path fill="var(--brand-wave, #6DBFC2)" d="M22 170 C62 158 106 160 142 168 C174 176 202 174 228 166 C208 178 174 180 138 176 C102 172 66 166 22 170 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

@@ -0,0 +1,21 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 180" role="img" aria-label="Mit dem Rad an der Küste">
<title>Mit dem Rad an der Küste</title>
<defs><clipPath id="rad-horizon"><rect x="120" y="20" width="110" height="88"/></clipPath></defs>
<circle cx="172" cy="104" r="40" fill="var(--brand-sun, #F2C27A)" clip-path="url(#rad-horizon)"/>
<path fill="var(--brand-wave, #6DBFC2)" d="M118 108 H234 V118 H118 Z"/>
<path fill="var(--brand-navy, #0B2E55)" d="M200 92 H205 V122 H200 Z M212 96 H217 V122 H212 Z"/>
<path fill="var(--brand-sun, #F2C27A)" opacity="0.55" d="M8 150 C60 128 110 120 160 124 C190 126 214 132 234 140 V150 Z"/>
<g fill="var(--brand-reed, #C9A15E)" transform="translate(26 138)">
<path d="M0 0 C-4 -16 -10 -30 -22 -40 C-12 -28 -6 -14 -4 0 Z"/>
<path d="M2 0 C2 -18 0 -34 -6 -50 C0 -32 0 -16 -2 0 Z"/>
<path d="M4 0 C8 -14 14 -26 24 -36 C16 -24 10 -12 8 0 Z"/>
</g>
<g fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="5" stroke-linecap="round" stroke-linejoin="round">
<circle cx="76" cy="116" r="22"/>
<circle cx="146" cy="116" r="22"/>
<path d="M76 116 L100 88 L134 88 L146 116 M100 88 L112 116 L76 116 M112 116 L134 88 M94 78 L108 78 M134 88 L130 74 L142 72"/>
</g>
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" d="M150 48 Q158 40 166 48 Q174 38 184 44"/>
<path fill="var(--brand-teal, #0286A2)" d="M6 158 C50 140 98 136 142 146 C178 154 208 154 234 144 C216 164 182 170 142 166 C102 162 62 152 6 158 Z"/>
<path fill="var(--brand-wave, #6DBFC2)" d="M22 172 C62 160 106 162 142 170 C174 178 202 176 228 168 C208 178 174 180 138 178 C102 174 66 168 22 172 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

@@ -0,0 +1,22 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 180" role="img" aria-label="Seebrücke">
<title>Seebrücke</title>
<defs><clipPath id="pier-horizon"><rect x="60" y="20" width="140" height="106"/></clipPath></defs>
<circle cx="128" cy="122" r="52" fill="var(--brand-sun, #F2C27A)" clip-path="url(#pier-horizon)"/>
<g fill="var(--brand-navy, #0B2E55)">
<rect x="22" y="114" width="196" height="7" rx="1"/>
<rect x="22" y="100" width="150" height="3"/>
<path d="M30 100 V114 M48 100 V114 M66 100 V114 M84 100 V114 M102 100 V114 M120 100 V114 M138 100 V114 M156 100 V114" stroke="var(--brand-navy, #0B2E55)" stroke-width="2.5"/>
<path d="M34 121 H40 V146 H34 Z M64 121 H70 V146 H64 Z M94 121 H100 V146 H94 Z M124 121 H130 V146 H124 Z M154 121 H160 V146 H154 Z M184 121 H190 V146 H184 Z M206 121 H212 V146 H206 Z"/>
<rect x="176" y="92" width="38" height="22"/>
<path d="M170 94 L195 72 L220 94 Z"/>
<path d="M193 72 L195 56 L197 72 Z"/>
<rect x="58" y="74" width="2.5" height="26"/>
<path d="M60.5 74 L74 78 L60.5 82 Z"/>
<rect x="148" y="78" width="2.5" height="22"/>
<path d="M150.5 78 L162 82 L150.5 86 Z"/>
</g>
<path fill="var(--brand-paper, #F6F1E4)" d="M182 98 H190 V108 H182 Z M200 98 H208 V108 H200 Z"/>
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" d="M34 50 Q42 42 50 50 Q58 40 68 46"/>
<path fill="var(--brand-teal, #0286A2)" d="M6 152 C50 124 98 118 142 132 C178 144 208 142 234 128 C216 154 182 166 142 160 C102 154 62 140 6 152 Z"/>
<path fill="var(--brand-wave, #6DBFC2)" d="M22 168 C62 150 106 152 142 164 C174 174 202 172 228 160 C208 176 174 180 138 174 C102 168 66 160 22 168 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

@@ -0,0 +1,15 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 180" role="img" aria-label="Strand mit Sonne">
<title>Strand mit Sonne</title>
<defs><clipPath id="strand-horizon"><rect x="90" y="30" width="140" height="102"/></clipPath></defs>
<circle cx="150" cy="128" r="50" fill="var(--brand-sun, #F2C27A)" clip-path="url(#strand-horizon)"/>
<path fill="var(--brand-sun, #F2C27A)" d="M112 138 H188 A3 3 0 0 1 188 144 H112 A3 3 0 0 1 112 138 Z M128 150 H172 A3 3 0 0 1 172 156 H128 A3 3 0 0 1 128 150 Z"/>
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" d="M156 54 Q164 46 172 54 Q180 44 190 50 M180 76 Q185 71 190 76 Q195 70 201 73"/>
<g fill="var(--brand-reed, #C9A15E)" transform="translate(46 150) scale(1.5)">
<path d="M0 0 C-4 -20 -14 -38 -30 -50 C-18 -34 -10 -18 -4 0 Z"/>
<path d="M2 0 C2 -22 -2 -42 -12 -62 C-4 -40 -2 -20 -2 0 Z"/>
<path d="M4 0 C8 -18 16 -34 28 -46 C18 -30 10 -16 8 0 Z"/>
<path d="M6 0 C14 -12 24 -22 36 -26 C26 -18 16 -8 10 0 Z"/>
</g>
<path fill="var(--brand-teal, #0286A2)" d="M6 152 C50 120 98 114 142 130 C178 143 208 142 234 126 C216 154 182 166 142 160 C102 154 62 140 6 152 Z"/>
<path fill="var(--brand-wave, #6DBFC2)" d="M22 168 C62 150 106 152 142 164 C174 174 202 172 228 160 C208 176 174 180 138 174 C102 168 66 160 22 168 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

@@ -0,0 +1,24 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 180" role="img" aria-label="Küstenwald">
<title>Küstenwald</title>
<defs><clipPath id="wald-horizon"><rect x="140" y="40" width="96" height="84"/></clipPath></defs>
<circle cx="190" cy="120" r="38" fill="var(--brand-sun, #F2C27A)" clip-path="url(#wald-horizon)"/>
<g fill="var(--brand-navy, #0B2E55)">
<path d="M58 140 L62 70 L66 140 Z"/>
<path d="M92 140 L95 56 L99 140 Z"/>
<path d="M124 140 L127 76 L131 140 Z"/>
<path d="M150 140 L152 92 L155 140 Z"/>
<path d="M95 92 L78 80 M95 80 L112 70 M62 96 L48 88 M127 100 L142 90" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round"/>
</g>
<g fill="var(--brand-teal, #0286A2)">
<ellipse cx="62" cy="70" rx="26" ry="16"/><ellipse cx="44" cy="84" rx="18" ry="11"/>
<ellipse cx="96" cy="52" rx="30" ry="18"/><ellipse cx="120" cy="66" rx="20" ry="12"/>
<ellipse cx="128" cy="78" rx="24" ry="14"/><ellipse cx="152" cy="92" rx="16" ry="10"/>
</g>
<g fill="var(--brand-navy, #0B2E55)" opacity="0.85">
<ellipse cx="74" cy="62" rx="16" ry="10"/><ellipse cx="104" cy="44" rx="16" ry="9"/><ellipse cx="136" cy="72" rx="12" ry="8"/>
</g>
<path fill="var(--brand-reed, #C9A15E)" d="M30 140 C60 132 140 130 200 136 C214 138 226 140 234 142 V146 H30 Z"/>
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" d="M196 70 Q202 64 208 70 Q214 62 222 66"/>
<path fill="var(--brand-teal, #0286A2)" d="M6 158 C50 140 98 136 142 146 C178 154 208 154 234 144 C216 164 182 170 142 166 C102 162 62 152 6 158 Z"/>
<path fill="var(--brand-wave, #6DBFC2)" d="M22 172 C62 160 106 162 142 170 C174 178 202 176 228 168 C208 178 174 180 138 178 C102 174 66 168 22 172 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

+45
View File
@@ -0,0 +1,45 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 200" role="img" aria-label="Villa an der Ostsee">
<title>Villa an der Ostsee</title>
<defs><clipPath id="villa-horizon"><rect x="150" y="60" width="90" height="98"/></clipPath></defs>
<circle cx="196" cy="140" r="38" fill="var(--brand-sun, #F2C27A)" clip-path="url(#villa-horizon)"/>
<g stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linejoin="round">
<rect x="34" y="98" width="72" height="66" fill="var(--brand-paper, #F6F1E4)"/>
<path d="M22 102 L70 54 L118 102 Z" fill="var(--brand-navy, #0B2E55)"/>
<path d="M42 98 L70 70 L98 98 Z" fill="var(--brand-paper, #F6F1E4)"/>
<rect x="104" y="98" width="96" height="66" fill="var(--brand-paper, #F6F1E4)"/>
<path d="M96 102 L116 72 L188 72 L208 102 Z" fill="var(--brand-navy, #0B2E55)"/>
<path d="M134 74 V54 H166 V74 Z" fill="var(--brand-paper, #F6F1E4)"/>
<path d="M128 56 L150 10 L172 56 Z" fill="var(--brand-navy, #0B2E55)"/>
<path d="M168 88 L186 66 L204 88 Z" fill="var(--brand-paper, #F6F1E4)"/>
</g>
<g fill="var(--brand-navy, #0B2E55)">
<circle cx="186" cy="80" r="4"/>
<rect x="144" y="60" width="12" height="10" rx="1"/>
<path d="M62 92 V84 A8 8 0 0 1 78 84 V92 Z"/>
<rect x="48" y="108" width="20" height="22"/>
<rect x="74" y="108" width="20" height="22"/>
<rect x="44" y="138" width="16" height="26"/>
<rect x="68" y="138" width="28" height="18"/>
<path d="M112 134 V114 A12 12 0 0 1 136 114 V134 Z"/>
<path d="M140 134 V114 A12 12 0 0 1 164 114 V134 Z"/>
<path d="M168 134 V114 A12 12 0 0 1 192 114 V134 Z"/>
<path d="M116 164 V150 A8 8 0 0 1 132 150 V164 Z"/>
<path d="M144 164 V150 A8 8 0 0 1 160 150 V164 Z"/>
<path d="M172 164 V150 A8 8 0 0 1 188 150 V164 Z"/>
</g>
<g fill="none" stroke="var(--brand-paper, #F6F1E4)" stroke-width="2">
<path d="M58 108 V130 M48 119 H68 M84 108 V130 M74 119 H94 M82 138 V156"/>
</g>
<g fill="var(--brand-paper, #F6F1E4)" stroke="var(--brand-navy, #0B2E55)" stroke-width="2">
<rect x="108" y="124" width="88" height="10"/>
</g>
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="2" d="M116 124 V134 M124 124 V134 M132 124 V134 M140 124 V134 M148 124 V134 M156 124 V134 M164 124 V134 M172 124 V134 M180 124 V134 M188 124 V134"/>
<g fill="var(--brand-reed, #C9A15E)" transform="translate(208 170) scale(1.3)">
<path d="M0 0 C-4 -20 -14 -38 -30 -50 C-18 -34 -10 -18 -4 0 Z"/>
<path d="M2 0 C2 -22 -2 -42 -12 -62 C-4 -40 -2 -20 -2 0 Z"/>
<path d="M4 0 C8 -18 16 -34 28 -46 C18 -30 10 -16 8 0 Z"/>
<path d="M6 0 C14 -12 24 -22 36 -26 C26 -18 16 -8 10 0 Z"/>
</g>
<path fill="var(--brand-teal, #0286A2)" d="M6 176 C50 150 98 146 142 160 C178 171 208 170 234 156 C216 182 182 192 142 186 C102 180 62 166 6 176 Z"/>
<path fill="var(--brand-wave, #6DBFC2)" d="M22 190 C62 174 106 176 142 188 C174 198 202 196 228 184 C208 200 174 204 138 198 C102 192 66 184 22 190 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

+125
View File
@@ -0,0 +1,125 @@
/*
* Theme „Seebad“ – Child von „ostsee-licht“ (Anleitung: docs/THEME-ERSTELLUNG.md, Konzept: docs/DESIGN-KONZEPT.md, Richtung A).
* theme-base.css des Eltern-Themes bringt Token-Mapping, Formular-Grundstile und Basis-Klassen; hier stehen nur Abweichungen.
*/
@import 'tailwindcss';
@import '../ostsee-licht/theme-base.css';
/* Selbst gehostete Schriften: Newsreader (Überschriften, Zitate), Atkinson Hyperlegible Next (Text, Bedienung). */
@import '@fontsource/newsreader/400.css';
@import '@fontsource/newsreader/400-italic.css';
@import '@fontsource/newsreader/500.css';
@import '@fontsource/atkinson-hyperlegible-next/400.css';
@import '@fontsource/atkinson-hyperlegible-next/600.css';
/* Vorlagen, deren Klassen gebaut werden: geerbte, Buchungsformulare, eigene. */
@source '../ostsee-licht/views';
@source '../../views/livewire';
@source './views';
@theme inline {
--font-display: 'Newsreader', Georgia, serif;
--font-sans: 'Atkinson Hyperlegible Next', ui-sans-serif, system-ui, sans-serif;
}
/*
* Bildwelt „Ostsee“ (motifs/*.svg, inline über partials/motif): Navy folgt der Textfarbe, damit die Grafiken in
* dunklen Erscheinungsbildern sichtbar bleiben; die Fassade folgt den Flächen.
*/
:root {
--brand-navy: var(--ink);
--brand-paper: var(--surface);
--brand-reed: #c9a15e;
--brand-brick: #a63a2b;
}
@layer base {
body {
font-size: 1.125rem;
line-height: 1.65;
}
@media (min-width: 64rem) {
body {
font-size: 1.1875rem;
}
}
input:not([type='checkbox']):not([type='radio']),
select,
textarea {
min-height: 3rem;
border-color: var(--muted);
border-radius: 0.375rem;
}
}
@layer components {
/* Kleine Überschrift in normaler Schreibweise statt gesperrter Großbuchstaben (besser lesbar). */
.eyebrow {
@apply mb-3 text-base font-semibold tracking-normal text-accent normal-case;
}
.heading-display {
@apply font-display text-[2.375rem] leading-[1.1] font-normal tracking-[-0.01em] sm:text-5xl;
}
.btn-primary {
@apply inline-flex min-h-12 items-center justify-center rounded-md bg-ink px-6 py-3 text-base font-semibold text-ground transition hover:opacity-90;
}
.btn-accent {
@apply inline-flex min-h-12 items-center justify-center rounded-md bg-accent px-6 py-3 text-base font-semibold text-accent-ink transition hover:opacity-90;
}
.btn-outline {
@apply inline-flex min-h-12 items-center justify-center rounded-md border-2 border-current px-6 py-3 text-base font-semibold transition hover:bg-ink/5;
}
.prose-theme {
@apply max-w-[68ch];
}
/* Titelbild mit Bogen (Fensterbogen der Bäderarchitektur) – bewusst nur hier eingesetzt. */
.arch {
border-radius: 50% 50% 0.25rem 0.25rem / 7.5rem 7.5rem 0.25rem 0.25rem;
}
@media (min-width: 64rem) {
.arch {
border-radius: 50% 50% 0.25rem 0.25rem / 11rem 11rem 0.25rem 0.25rem;
}
}
/* Kartusche: Doppelrahmen mit Muschel als Kopf. */
.cartouche {
@apply relative border-2 border-ink bg-surface outline outline-1 -outline-offset-[10px] outline-[var(--brand-reed)];
}
}
/* Ruhige Bewegung der Bildwelt – nur ohne „Bewegung reduzieren“. */
@media (prefers-reduced-motion: no-preference) {
.motif-drift {
animation: motif-drift 16s ease-in-out infinite alternate;
}
.motif-glide {
animation: motif-glide 22s ease-in-out infinite;
}
@keyframes motif-drift {
from {
transform: translateX(-1.5rem);
}
to {
transform: translateX(1.5rem);
}
}
@keyframes motif-glide {
50% {
transform: translate(2.5rem, -0.6rem);
}
}
}
+5
View File
@@ -0,0 +1,5 @@
/**
* Theme „Seebad“: übernimmt Lightbox, Verfügbarkeitssuche und rollierende Angebote vom Eltern-Theme.
* Eigene Verbesserungen darunter – alles muss auch ohne JavaScript funktionieren.
*/
import '../ostsee-licht/theme.js';
+61
View File
@@ -0,0 +1,61 @@
{
"key": "seebad",
"name": "Seebad",
"version": "0.1.1",
"parent": "ostsee-licht",
"description": "Ruhiges Magazin für Paare: große, gut lesbare Schrift, Titelbild mit Bogen, Bildwelt Ostsee (Villa, Seebrücke, Molli)",
"assets": {
"css": "resources/themes/seebad/theme.css",
"js": "resources/themes/seebad/theme.js"
},
"tokens": {
"ground": {
"label": "Hintergrund",
"default": "#F7F8F6"
},
"surface": {
"label": "Flächen (Karten, Formulare)",
"default": "#FFFFFF"
},
"ink": {
"label": "Text",
"default": "#1F2B38"
},
"muted": {
"label": "Text, gedämpft",
"default": "#4F5B66"
},
"line": {
"label": "Linien",
"default": "#D9DDDF"
},
"accent": {
"label": "Akzent (Buttons, Hervorhebungen)",
"default": "#9A3B2E"
},
"accent-ink": {
"label": "Text auf Akzent",
"default": "#FFFFFF"
},
"band": {
"label": "Dunkles Band (Zitat, Menü auf dem Handy)",
"default": "#23384A"
},
"band-ink": {
"label": "Text auf dunklem Band",
"default": "#F7F8F6"
},
"band-muted": {
"label": "Text auf dunklem Band, gedämpft",
"default": "#BCC8D2"
},
"banner": {
"label": "Hinweis-Banner",
"default": "#23384A"
},
"banner-ink": {
"label": "Text im Banner",
"default": "#F7F8F6"
}
}
}
@@ -0,0 +1,60 @@
@php
/** @var \App\Themes\Theme $theme */
$theme = app(\App\Themes\Theme::class);
$pageTitle = isset($title) && $title ? $title.' · '.$theme->site->name : $theme->site->name;
@endphp
<!DOCTYPE html>
<html lang="{{ $theme->site->locale ?? 'de' }}" data-appearance="{{ $theme->appearanceKey() }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ $pageTitle }}</title>
@isset($description)
<meta name="description" content="{{ $description }}">
<meta property="og:description" content="{{ $description }}">
@endisset
<meta property="og:title" content="{{ $pageTitle }}">
<meta property="og:type" content="website">
<meta property="og:url" content="{{ url()->current() }}">
@isset($ogImage)
<meta property="og:image" content="{{ $ogImage }}">
@endisset
<link rel="canonical" href="{{ url()->current() }}">
<link rel="icon" href="{{ asset('brand/favicon.svg') }}" type="image/svg+xml">
<link rel="apple-touch-icon" href="{{ asset('brand/apple-touch-icon.png') }}">
@if ($theme->isPreview || ! app()->isProduction())
<meta name="robots" content="noindex">
@endif
@vite($theme->assets())
<style>{!! $theme->cssVariables() !!}</style>
@livewireStyles
@stack('head')
</head>
<body class="min-h-screen overflow-x-hidden font-sans antialiased">
<a href="#inhalt" class="sr-only focus:not-sr-only focus:fixed focus:top-4 focus:left-4 focus:z-50 focus:rounded focus:bg-surface focus:px-4 focus:py-2">Zum Inhalt springen</a>
@if ($theme->isPreview)
<div class="bg-ink py-2 text-center text-sm text-ground">Vorschau · Theme „{{ $theme->manifest()->name }}“ · Erscheinungsbild „{{ $theme->appearance?->name ?? 'Standard' }}“</div>
@endif
@include('theme::partials.banner')
@include('theme::partials.header')
<main id="inhalt">
@yield('content')
</main>
@include('theme::partials.footer')
@include('theme::partials.mobile-booking-bar')
<dialog id="lightbox" class="m-auto max-h-[92vh] max-w-[92vw] bg-transparent p-0 backdrop:bg-black/80" aria-label="Bild vergrößert">
<figure class="relative">
<img src="" alt="" class="max-h-[85vh] max-w-[92vw] object-contain">
<figcaption data-caption class="mt-2 text-center text-base text-white"></figcaption>
<button type="button" data-close class="absolute top-2 right-2 min-h-11 min-w-11 rounded-full bg-black/60 px-3 text-white" aria-label="Schließen">✕</button>
</figure>
</dialog>
@livewireScripts
</body>
</html>
@@ -0,0 +1,12 @@
@php($bannerText = $theme->text('banner.text', \App\Models\Notice::query()->visible()->latest()->value('text')))
@if ($bannerText)
<div class="bg-banner text-banner-ink [--brand-navy:var(--banner-ink)]" role="status">
<div class="mx-auto flex max-w-7xl flex-wrap items-center justify-center gap-x-5 gap-y-1 px-4 py-2.5 text-center text-base sm:px-8">
@include('theme::partials.motif', ['slot' => 'gulls', 'class' => 'hidden h-5 w-auto opacity-80 sm:block'])
<span>{{ $bannerText }}</span>
@if ($theme->text('banner.link_label'))
<a href="{{ $theme->text('banner.link_url', route('booking.create')) }}" class="font-semibold underline underline-offset-4">{{ $theme->text('banner.link_label') }}</a>
@endif
</div>
</div>
@endif
@@ -0,0 +1,27 @@
@php($phone = (string) config('fewo.owner.phone'))
<div class="mt-20 overflow-hidden" aria-hidden="true">
@include('theme::partials.motif', ['slot' => 'closing', 'class' => 'motif-drift -ml-[50%] block h-auto w-[200%] max-w-none sm:mx-auto sm:w-full sm:max-w-6xl'])
</div>
<footer class="border-t border-line">
<div class="mx-auto flex max-w-7xl flex-wrap items-start justify-between gap-x-16 gap-y-8 px-4 py-14 sm:px-8">
<div class="flex items-center gap-4">
@include('theme::partials.motif', ['slot' => 'mark', 'class' => 'h-14 w-auto shrink-0'])
<div>
<p class="font-display text-2xl">{{ $theme->site->name }}</p>
@if ($theme->property()?->address)<p class="text-muted">{{ $theme->property()->address }}</p>@endif
</div>
</div>
<div>
<p>{{ config('fewo.owner.name') }}</p>
@if ($phone)<a href="tel:{{ preg_replace('/[^0-9+]/', '', $phone) }}" class="block hover:text-accent">{{ $phone }}</a>@endif
<a href="mailto:{{ config('fewo.owner.email') }}" class="block hover:text-accent">{{ config('fewo.owner.email') }}</a>
</div>
<nav aria-label="Rechtliches">
<ul class="flex flex-wrap gap-6">
@foreach ($theme->menu('footer') as $item)
<li><a href="{{ $item->url() }}" class="underline-offset-4 hover:underline">{{ $item->label() }}</a></li>
@endforeach
</ul>
</nav>
</div>
</footer>
@@ -0,0 +1,51 @@
@php($phone = (string) config('fewo.owner.phone'))
<header class="relative z-20">
<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.motif', ['slot' => 'mark', 'class' => 'h-11 w-auto shrink-0 lg:h-14'])
<span class="font-display text-[1.375rem] leading-tight font-medium sm:text-[1.75rem] sm:whitespace-nowrap">{{ $theme->site->name }}</span>
</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>
@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>
<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ü">
<x-heroicon-o-bars-3 class="size-6 group-open:hidden" aria-hidden="true" />
<x-heroicon-o-x-mark class="hidden size-6 group-open:block" aria-hidden="true" />
</summary>
<div class="absolute inset-x-0 top-full overflow-hidden bg-band text-band-ink shadow-lg [--brand-navy:var(--band-ink)]">
<ul class="px-5 pt-2">
@foreach ($theme->menu('main') as $item)
<li class="border-b border-band-muted/30 last:border-0"><a href="{{ $item->url() }}" class="block py-3.5 font-display text-[1.75rem]">{{ $item->label() }}</a></li>
@endforeach
</ul>
<div class="flex flex-col gap-3 px-5 py-4">
<a href="{{ route('booking.create') }}" class="inline-flex min-h-12 items-center justify-center rounded-md bg-band-ink px-6 font-semibold text-band">Verfügbarkeit prüfen</a>
@if ($phone)
<a href="tel:{{ preg_replace('/[^0-9+]/', '', $phone) }}" class="inline-flex min-h-12 items-center justify-center gap-2 rounded-md border-2 border-band-ink px-6 font-semibold">
<x-heroicon-o-phone class="size-5" aria-hidden="true" />Anrufen: {{ $phone }}
</a>
@endif
</div>
<div class="bg-ground pt-1" aria-hidden="true">
@include('theme::partials.motif', ['slot' => 'closing', 'class' => 'motif-drift -ml-[45%] block h-auto w-[150%] max-w-none'])
</div>
</div>
</details>
</div>
</div>
</header>
@@ -0,0 +1,12 @@
@unless (request()->routeIs('booking.create'))
@php($phone = (string) config('fewo.owner.phone'))
<div class="fixed inset-x-0 bottom-0 z-30 flex gap-3 border-t border-line bg-surface/95 p-3 backdrop-blur sm:hidden">
<a href="{{ route('booking.create') }}" class="btn-accent flex-1">Verfügbarkeit prüfen</a>
@if ($phone)
<a href="tel:{{ preg_replace('/[^0-9+]/', '', $phone) }}" class="flex size-12 shrink-0 items-center justify-center rounded-md border-2 border-ink" aria-label="Anrufen: {{ $phone }}">
<x-heroicon-o-phone class="size-6" aria-hidden="true" />
</a>
@endif
</div>
<div class="h-20 sm:hidden" aria-hidden="true"></div>
@endunless
@@ -0,0 +1,30 @@
{{--
Inline graphic of the theme's picture world ("Bildwelt", docs/DESIGN-KONZEPT.md §7, MANDANTEN-ANFORDERUNGEN A18/A19).
Templates ask for a slot, never for a file, so a later picture-world system can replace the mapping below.
Variables: $slot (mark, divider, closing, crest, gulls, vignette.beach|pier|train|bike|forest), $class (optional),
$label (optional; without it the graphic is decorative).
--}}
@php
$motifFiles = [
'mark' => 'villa',
'divider' => 'band-sonne',
'closing' => 'band-seebruecke',
'crest' => 'muschel',
'gulls' => 'moewen',
'vignette.beach' => 'vignette-strand',
'vignette.pier' => 'vignette-seebruecke',
'vignette.train' => 'vignette-molli',
'vignette.bike' => 'vignette-rad',
'vignette.forest' => 'vignette-wald',
];
static $motifSvgs = [];
$motifFile = $motifFiles[$slot] ?? null;
$motifPath = $motifFile ? resource_path("themes/seebad/motifs/{$motifFile}.svg") : null;
$motifSvgs[$slot] ??= $motifPath && is_file($motifPath) ? file_get_contents($motifPath) : '';
$motifUid = 'm'.\Illuminate\Support\Str::lower(\Illuminate\Support\Str::random(6));
$motifSvg = preg_replace(['/\s(role|aria-label|aria-hidden)="[^"]*"/', '/<title>.*?<\/title>/s'], '', $motifSvgs[$slot]);
$motifSvg = preg_replace(['/id="([^"]+)"/', '/url\(#([^)]+)\)/'], ['id="$1-'.$motifUid.'"', 'url(#$1-'.$motifUid.')'], $motifSvg);
$motifAttributes = 'class="'.e($class ?? '').'" '.(isset($label) ? 'role="img" aria-label="'.e($label).'"' : 'aria-hidden="true" focusable="false"');
$motifSvg = preg_replace('/<svg\s/', '<svg '.$motifAttributes.' ', $motifSvg, 1);
@endphp
{!! $motifSvg !!}
@@ -0,0 +1,17 @@
@if ($groups->isNotEmpty())
<section class="mx-auto max-w-7xl px-4 py-16 sm:px-8 sm:py-20" aria-labelledby="{{ $sectionId }}-title">
<h2 id="{{ $sectionId }}-title" class="heading-display mb-10">{{ $heading }}</h2>
<div class="grid gap-x-12 gap-y-10 sm:grid-cols-2 lg:grid-cols-3">
@foreach ($groups as $area => $amenities)
<div class="reveal">
<h3 class="mb-3 border-b border-line pb-2 font-display text-[1.625rem]">{{ $area }}</h3>
<ul class="space-y-2">
@foreach ($amenities as $amenity)
<li class="flex gap-3"><x-heroicon-o-check class="mt-1 size-5 shrink-0 text-accent" aria-hidden="true" />{{ $amenity->name }}</li>
@endforeach
</ul>
</div>
@endforeach
</div>
</section>
@endif
@@ -0,0 +1,15 @@
<section class="mx-auto flex max-w-7xl flex-wrap items-center gap-x-14 gap-y-12 px-4 py-16 sm:px-8 sm:py-24" aria-labelledby="{{ $sectionId }}-title">
@if ($photo)
<div class="min-w-0 flex-[1_1_24rem]">
@include('theme::partials.image', ['photo' => $photo, 'sizes' => '(min-width: 1024px) 45vw, 100vw', 'class' => 'h-72 w-full rounded object-cover sm:h-[26rem]'])
</div>
@endif
<div @class(['cartouche min-w-0 flex-[1_1_24rem] px-6 pt-14 pb-10 text-center sm:px-12', 'mx-auto max-w-3xl' => ! $photo])>
<span class="absolute -top-6 left-1/2 -translate-x-1/2 bg-ground px-2" aria-hidden="true">
@include('theme::partials.motif', ['slot' => 'crest', 'class' => 'h-12 w-auto'])
</span>
<h2 id="{{ $sectionId }}-title" class="font-display text-[2rem] leading-tight sm:text-[2.5rem]">{{ $title }}</h2>
@if ($text)<p class="mx-auto mt-4 max-w-[40ch] text-muted">{{ $text }}</p>@endif
<a href="{{ $buttonUrl }}" class="btn-accent mt-8">{{ $buttonLabel }}</a>
</div>
</section>
@@ -0,0 +1,17 @@
<section class="mx-auto max-w-7xl px-4 pt-10 pb-8 sm:px-8 sm:pt-12" @if ($heading) aria-labelledby="{{ $sectionId }}-title" @else aria-label="Eckdaten" @endif>
@if ($heading)<h2 id="{{ $sectionId }}-title" class="heading-display mb-8">{{ $heading }}</h2>@endif
<dl class="grid grid-cols-2 gap-x-6 gap-y-8 lg:grid-cols-4">
@if ($property?->size_sqm)
<div class="flex flex-col-reverse"><dt class="text-muted">Wohnfläche</dt><dd class="font-display text-[2rem] leading-tight sm:text-[2.5rem]">{{ $property->size_sqm }} m²</dd></div>
@endif
@if ($property)
<div class="flex flex-col-reverse"><dt class="text-muted">Gäste</dt><dd class="font-display text-[2rem] leading-tight sm:text-[2.5rem]">1 bis {{ $property->max_guests }}</dd></div>
@endif
@if ($fromPrice)
<div class="flex flex-col-reverse"><dt class="text-muted">pro Nacht</dt><dd class="font-display text-[2rem] leading-tight sm:text-[2.5rem]">ab {{ \App\Support\Money::format((int) $fromPrice) }}</dd></div>
@endif
@if ($highlights->isNotEmpty())
<div class="col-span-2 flex flex-col-reverse lg:col-span-1"><dt class="text-muted">{{ $highlights->skip(1)->take(2)->implode(', ') }}</dt><dd class="font-display text-[1.625rem] leading-tight sm:text-[2rem]">{{ $highlights->first() }}</dd></div>
@endif
</dl>
</section>
@@ -0,0 +1,47 @@
<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="min-w-0 flex-[999_1_28rem]">
@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>
<div class="flex min-w-0 flex-[1_1_24rem] flex-col justify-center gap-6">
@if ($eyebrow)<p class="eyebrow mb-0">{{ $eyebrow }}</p>@endif
<h1 id="{{ $sectionId }}-title" class="font-display text-[2.5rem] leading-[1.06] font-normal tracking-[-0.01em] sm:text-[3.25rem] lg:text-[3.75rem]">{{ str_replace('*', '', $title) }}</h1>
@if ($text)<p class="max-w-[36ch] text-lg text-muted sm:text-xl">{{ $text }}</p>@endif
@if ($featuredOffer ?? null)
<a href="{{ $featuredOffer->bookingUrl() }}" class="flex items-center gap-4 rounded-md border border-accent bg-surface p-4 hover:bg-accent/5">
<span class="rounded bg-accent px-2.5 py-1 font-semibold whitespace-nowrap text-accent-ink">{{ $featuredOffer->advantage }}</span>
<span>
<strong class="block">{{ $featuredOffer->title }}</strong>
@if ($featuredOffer->arrival)
<span class="text-muted">{{ $featuredOffer->arrival->format('d.m.') }} bis {{ $featuredOffer->departure->format('d.m.') }}</span>
@endif
</span>
</a>
@endif
@if ($showSearch)
<form action="{{ route('booking.create') }}" method="get" data-availability-search aria-label="Verfügbarkeit prüfen"
class="grid grid-cols-2 items-end gap-3.5 rounded-md border border-line bg-surface p-4 sm:p-6">
<label class="flex min-w-0 flex-col gap-1.5 text-base font-semibold">Anreise
<input type="date" name="anreise" min="{{ today()->toDateString() }}" class="w-full min-w-0 font-normal" required>
</label>
<label class="flex min-w-0 flex-col gap-1.5 text-base font-semibold">Abreise
<input type="date" name="abreise" min="{{ today()->addDay()->toDateString() }}" class="w-full min-w-0 font-normal" required>
</label>
<label class="col-span-2 flex min-w-0 flex-col gap-1.5 text-base font-semibold sm:col-span-1">Personen
<select name="personen" class="w-full font-normal">
@for ($count = 1; $count <= ($property?->max_guests ?? 3); $count++)
<option value="{{ $count }}" @selected($count === 2)>{{ $count }} {{ $count === 1 ? 'Person' : 'Personen' }}</option>
@endfor
</select>
</label>
<button type="submit" class="btn-accent col-span-2 w-full sm:col-span-1">Preis anzeigen</button>
</form>
@endif
</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>
@@ -0,0 +1,16 @@
<section class="relative overflow-hidden bg-band text-band-ink [--brand-navy:var(--band-ink)]" aria-labelledby="{{ $sectionId }}-title">
@include('theme::partials.motif', ['slot' => 'gulls', 'class' => 'motif-glide absolute top-10 right-[8%] h-10 w-auto opacity-50 sm:h-12'])
<div class="mx-auto flex max-w-6xl flex-wrap items-center gap-12 px-5 py-16 sm:px-8 sm:py-24">
@if ($photo)
<div class="w-full max-w-xs flex-[0_1_18rem]">
@include('theme::partials.image', ['photo' => $photo, 'sizes' => '18rem', 'class' => 'aspect-[4/5] w-full rounded object-cover'])
</div>
@endif
<figure class="min-w-0 flex-[1_1_28rem]">
@if ($heading)<p class="mb-4 font-semibold text-band-muted" id="{{ $sectionId }}-title">{{ $heading }}</p>@endif
@if ($quote)<blockquote class="font-display text-[1.75rem] leading-[1.3] italic sm:text-[2.5rem]">„{{ $quote }}“</blockquote>@endif
<figcaption class="mt-6 text-band-muted">{{ $name }}</figcaption>
@if ($text)<div class="mt-4 max-w-[60ch] text-band-muted [&_a]:underline [&_p]:mb-3">{{ $text }}</div>@endif
</figure>
</div>
</section>
@@ -0,0 +1,32 @@
<section class="border-y border-line bg-surface" aria-labelledby="{{ $sectionId }}-title">
<div class="mx-auto max-w-7xl px-4 py-16 sm:px-8 sm:py-24">
<div class="flex flex-wrap items-end justify-between gap-x-16 gap-y-6">
<div class="min-w-0 flex-[1_1_26rem]">
@if ($eyebrow)<p class="eyebrow">{{ $eyebrow }}</p>@endif
<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>
</div>
<div class="min-w-0 flex-[1_1_24rem]">
@if ($text)<div class="prose-theme [&_p]:mb-3">{{ $text }}</div>@endif
@if ($address)
<p class="mt-3 flex items-start gap-3">
<x-heroicon-o-map-pin class="mt-1 size-6 shrink-0 text-accent" aria-hidden="true" />
<span>{{ $address }}<br>
<a href="{{ $mapUrl }}" class="font-semibold underline underline-offset-4 hover:text-accent" rel="noopener" target="_blank">Auf der Karte ansehen</a></span>
</p>
@endif
</div>
</div>
@if ($photos->isNotEmpty())
<ul class="mt-12 grid grid-cols-1 gap-x-8 gap-y-10 sm:grid-cols-3">
@foreach ($photos->take(3) as $photo)
<li class="reveal">
<figure>
@include('theme::partials.image', ['photo' => $photo, 'sizes' => '(min-width: 640px) 30vw, 100vw', 'class' => 'h-60 w-full rounded object-cover sm:h-72'])
<figcaption class="mt-3 font-display text-[1.5rem] leading-snug">{{ $photo->caption ?: $photo->alt_text }}</figcaption>
</figure>
</li>
@endforeach
</ul>
@endif
</div>
</section>
@@ -0,0 +1,41 @@
<section class="mx-auto flex max-w-7xl flex-wrap items-start gap-x-16 gap-y-10 px-4 py-16 sm:px-8 sm:py-24" aria-labelledby="{{ $sectionId }}-title">
<div class="min-w-0 flex-[1_1_22rem]">
@if ($eyebrow)<p class="eyebrow">{{ $eyebrow }}</p>@endif
<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>
@if ($text)<p class="mt-6 text-muted">{{ $text }}</p>@endif
@if ($property)
<dl class="mt-6 space-y-2">
<div class="flex justify-between gap-4 border-b border-line pb-2"><dt>Endreinigung und Service</dt><dd class="whitespace-nowrap">{{ \App\Support\Money::format($property->cleaning_fee) }} einmalig</dd></div>
@if ($property->extra_guest_fee_per_night)
<div class="flex justify-between gap-4 border-b border-line pb-2"><dt>ab der {{ $property->included_guests + 1 }}. Person</dt><dd class="whitespace-nowrap">{{ \App\Support\Money::format($property->extra_guest_fee_per_night) }} pro Nacht</dd></div>
@endif
@foreach ($extras as $extra)
<div class="flex justify-between gap-4 border-b border-line pb-2"><dt>{{ $extra->name }} <span class="text-muted">(auf Wunsch)</span></dt><dd class="whitespace-nowrap">{{ \App\Support\Money::format($extra->price) }}</dd></div>
@endforeach
<div class="flex justify-between gap-4 pb-2"><dt>Kurtaxe</dt><dd class="text-muted">vor Ort</dd></div>
</dl>
@endif
<a href="{{ route('booking.create') }}" class="btn-accent mt-8">Freie Termine und Gesamtpreis</a>
</div>
<div class="min-w-0 flex-[1_1_32rem]">
<table class="w-full text-left">
<caption class="sr-only">Preise pro Nacht nach Saison</caption>
<thead class="text-base text-muted">
<tr><th scope="col" class="pb-3 font-semibold">Saison</th><th scope="col" class="hidden pb-3 font-semibold sm:table-cell">Zeitraum</th><th scope="col" class="pb-3 text-right font-semibold">pro Nacht</th></tr>
</thead>
<tbody>
@foreach ($seasons as $season)
<tr @class(['border-t border-line', 'bg-accent/10' => $featuredSeason && str_contains(mb_strtolower($featuredSeason), mb_strtolower($season->name))])>
<th scope="row" class="py-4 pr-4 align-top font-semibold">
{{ $season->name }}
<span class="block font-normal text-muted sm:hidden">{{ $season->starts_on->format('d.m.') }} bis {{ $season->ends_on->format('d.m.Y') }}</span>
<span class="block font-normal text-muted">ab {{ $season->min_nights }} Nächten</span>
</th>
<td class="hidden py-4 pr-4 align-top text-muted sm:table-cell">{{ $season->starts_on->format('d.m.') }} bis {{ $season->ends_on->format('d.m.Y') }}</td>
<td class="py-4 text-right align-top font-display text-[1.75rem] leading-none whitespace-nowrap">{{ \App\Support\Money::format($season->nightly_rate) }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</section>
@@ -0,0 +1,25 @@
<section class="mx-auto flex max-w-7xl flex-wrap items-center gap-x-16 gap-y-10 px-4 py-16 sm:px-8 sm:py-24" aria-labelledby="{{ $sectionId }}-title">
<div @class(['min-w-0 flex-[1_1_24rem]', 'order-2' => $imagePosition === 'left'])>
@if ($eyebrow)<p class="eyebrow">{{ $eyebrow }}</p>@endif
<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>
@if ($text)<div class="prose-theme mt-6">{{ $text }}</div>@endif
@if ($linkLabel && $linkUrl)
<a href="{{ $linkUrl }}" class="mt-2 inline-block border-b-2 border-accent pb-0.5 font-semibold hover:text-accent">{{ $linkLabel }}</a>
@endif
</div>
@if ($photos->isNotEmpty())
<div @class(['reveal grid min-w-0 flex-[1_1_30rem] grid-cols-5 gap-4', 'order-1' => $imagePosition === 'left'])>
@foreach ($photos as $index => $photo)
@include('theme::partials.image', [
'photo' => $photo,
'sizes' => $index === 0 ? '(min-width: 1024px) 40vw, 100vw' : '(min-width: 1024px) 20vw, 50vw',
'class' => match (true) {
$photos->count() === 1 => 'col-span-5 h-80 w-full rounded object-cover sm:h-[30rem]',
$index === 0 => 'col-span-3 row-span-2 h-80 w-full rounded object-cover sm:h-[30rem]',
default => 'col-span-2 h-[9.6rem] w-full rounded object-cover sm:h-[14.5rem]',
},
])
@endforeach
</div>
@endif
</section>
@@ -0,0 +1,9 @@
@php($redirect = \App\Support\Settings::mailRedirect())
@if ($redirect)
<div class="fi-test-mode-banner" role="status" style="background:#fde68a;color:#422006;padding:.5rem 1rem;text-align:center;font-size:.875rem">
<strong>Testbetrieb:</strong> Alle E-Mails gehen nur an {{ $redirect }}.
@if (auth()->user()?->hasRole(\App\Enums\UserRole::Admin))
<a href="{{ \App\Filament\Pages\Operations::getUrl() }}" style="text-decoration:underline">Betrieb einstellen</a>
@endif
</div>
@endif
+78
View File
@@ -0,0 +1,78 @@
<#
Keeps a local clone in sync with Gitea (e.g. every 5 minutes via Windows Task Scheduler).
Safe by design: it only fast-forwards. Nothing happens if there are local uncommitted changes, if the
branch has no upstream, or if local and remote both have new commits (that needs a human).
Log: storage/logs/git-autosync.log (not committed).
Register (once per machine, PowerShell):
scripts\git-autosync.ps1 -Register # every 5 minutes, as the current user
scripts\git-autosync.ps1 -Unregister
Run once by hand:
scripts\git-autosync.ps1
#>
param(
[switch] $Register,
[switch] $Unregister,
[int] $Minutes = 5
)
$ErrorActionPreference = 'Stop'
$repo = Split-Path -Parent $PSScriptRoot
$taskName = 'FeWo Stommer Git-Sync'
$log = Join-Path $repo 'storage\logs\git-autosync.log'
if ($Register) {
$action = New-ScheduledTaskAction -Execute 'powershell.exe' -Argument "-NoProfile -NonInteractive -WindowStyle Hidden -ExecutionPolicy Bypass -File `"$PSCommandPath`""
$trigger = New-ScheduledTaskTrigger -Once -At (Get-Date).AddMinutes(1) -RepetitionInterval (New-TimeSpan -Minutes $Minutes)
$settings = New-ScheduledTaskSettingsSet -StartWhenAvailable -DontStopIfGoingOnBatteries -AllowStartIfOnBatteries -ExecutionTimeLimit (New-TimeSpan -Minutes 5) -MultipleInstances IgnoreNew
Register-ScheduledTask -TaskName $taskName -Action $action -Trigger $trigger -Settings $settings -Description "git pull --ff-only für $repo (scripts/git-autosync.ps1)" -Force | Out-Null
Write-Output "Aufgabe '$taskName' eingerichtet: alle $Minutes Minuten. Protokoll: $log"
exit 0
}
if ($Unregister) {
Unregister-ScheduledTask -TaskName $taskName -Confirm:$false
Write-Output "Aufgabe '$taskName' entfernt."
exit 0
}
function Write-Log([string] $message) {
New-Item -ItemType Directory -Force -Path (Split-Path $log) | Out-Null
Add-Content -Path $log -Value ("{0:yyyy-MM-dd HH:mm:ss} {1}" -f (Get-Date), $message) -Encoding utf8
}
function Invoke-Git([string[]] $arguments) {
$output = & git.exe -C $repo @arguments 2>&1
if ($LASTEXITCODE -ne 0) { throw "git $($arguments -join ' '): $output" }
return $output
}
try {
Invoke-Git @('fetch', '--quiet', '--prune') | Out-Null
$branch = (Invoke-Git @('rev-parse', '--abbrev-ref', 'HEAD')).Trim()
$upstream = & git.exe -C $repo rev-parse --abbrev-ref --symbolic-full-name '@{u}' 2>$null
if ($LASTEXITCODE -ne 0 -or -not $upstream) { Write-Log "übersprungen: Branch $branch hat keinen Upstream"; exit 0 }
$counts = (Invoke-Git @('rev-list', '--left-right', '--count', "HEAD...$upstream")).Trim() -split '\s+'
$ahead = [int] $counts[0]; $behind = [int] $counts[1]
if ($behind -eq 0) { exit 0 } # nothing new – no log entry
if ((Invoke-Git @('status', '--porcelain', '--untracked-files=no')) ) { Write-Log "übersprungen: lokale Änderungen in $branch ($behind neue Commits auf $upstream warten)"; exit 0 }
if ($ahead -gt 0) { Write-Log "nicht synchronisiert: $branch hat $ahead eigene und $behind neue Commits – bitte von Hand zusammenführen (git pull)"; exit 0 }
$before = (Invoke-Git @('rev-parse', 'HEAD')).Trim()
Invoke-Git @('merge', '--ff-only', '--quiet', $upstream) | Out-Null
$changed = Invoke-Git @('diff', '--name-only', $before, 'HEAD')
$hints = @()
if ($changed -match '^(package\.json|package-lock\.json)$') { $hints += 'npm ci && npm run build' }
if ($changed -match '^composer\.(json|lock)$') { $hints += 'composer install' }
if ($changed -match '^database/migrations/') { $hints += 'php artisan migrate' }
if ($changed -match '^resources/(themes|css|js)/') { $hints += 'npm run build (Theme/Assets geändert)' }
$summary = (Invoke-Git @('log', '--oneline', "$before..HEAD")) -join ' | '
Write-Log ("aktualisiert $branch um $behind Commit(s): $summary" + ($(if ($hints) { " → bitte ausführen: " + (($hints | Select-Object -Unique) -join '; ') } else { '' })))
}
catch {
Write-Log "Fehler: $($_.Exception.Message)"
exit 1
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 816 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 815 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 979 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

+20
View File
@@ -0,0 +1,20 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 150" preserveAspectRatio="xMidYMid meet" role="presentation" aria-hidden="true">
<defs><clipPath id="band-pier-horizon"><rect x="1160" y="20" width="140" height="78"/></clipPath></defs>
<circle cx="1230" cy="98" r="50" fill="var(--brand-sun, #F2C27A)" clip-path="url(#band-pier-horizon)"/>
<g fill="var(--brand-navy, #0B2E55)">
<rect x="1100" y="92" width="380" height="6" rx="1"/>
<rect x="1100" y="80" width="300" height="2.5"/>
<path d="M1108 80 V92 M1126 80 V92 M1144 80 V92 M1162 80 V92 M1180 80 V92 M1198 80 V92 M1216 80 V92 M1234 80 V92 M1252 80 V92 M1270 80 V92 M1288 80 V92 M1306 80 V92 M1324 80 V92 M1342 80 V92 M1360 80 V92 M1378 80 V92" stroke="var(--brand-navy, #0B2E55)" stroke-width="2"/>
<path d="M1112 98 H1117 V112 H1112 Z M1150 98 H1155 V112 H1150 Z M1188 98 H1193 V112 H1188 Z M1226 98 H1231 V112 H1226 Z M1264 98 H1269 V112 H1264 Z M1302 98 H1307 V112 H1302 Z M1340 98 H1345 V112 H1340 Z M1378 98 H1383 V112 H1378 Z M1416 98 H1421 V112 H1416 Z M1454 98 H1459 V112 H1454 Z"/>
<rect x="1410" y="72" width="44" height="20"/>
<path d="M1404 74 L1432 50 L1460 74 Z"/>
<path d="M1430 50 L1432 34 L1434 50 Z"/>
<rect x="1160" y="56" width="2" height="24"/>
<path d="M1162 56 L1174 60 L1162 64 Z"/>
<rect x="1380" y="60" width="2" height="20"/>
<path d="M1382 60 L1392 64 L1382 68 Z"/>
</g>
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" d="M1060 44 Q1068 36 1076 44 Q1084 34 1094 40 M1020 64 Q1025 59 1030 64 Q1035 58 1041 61"/>
<path fill="var(--brand-teal, #0286A2)" d="M10 104 C200 70 400 68 600 90 C800 112 1000 112 1200 106 C1350 102 1480 96 1590 80 C1440 130 1260 126 1100 120 C900 114 760 120 600 108 C400 88 200 92 10 104 Z"/>
<path fill="var(--brand-wave, #6DBFC2)" d="M60 122 C240 102 420 104 600 120 C800 136 1000 130 1200 124 C1340 120 1460 116 1540 110 C1400 142 1220 142 1060 136 C900 132 760 136 600 130 C420 118 240 116 60 122 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

+21
View File
@@ -0,0 +1,21 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 150" preserveAspectRatio="xMidYMid meet" role="presentation" aria-hidden="true">
<defs><clipPath id="band-sonne-horizon"><rect x="740" y="20" width="120" height="78"/></clipPath></defs>
<circle cx="800" cy="98" r="44" fill="var(--brand-sun, #F2C27A)" clip-path="url(#band-sonne-horizon)"/>
<path fill="var(--brand-sun, #F2C27A)" d="M760 104 H840 A3 3 0 0 1 840 110 H760 A3 3 0 0 1 760 104 Z M776 118 H824 A3 3 0 0 1 824 124 H776 A3 3 0 0 1 776 118 Z"/>
<g fill="var(--brand-reed, #C9A15E)" transform="translate(744 100) scale(-1 1)">
<path d="M0 0 C-4 -20 -14 -38 -30 -50 C-18 -34 -10 -18 -4 0 Z"/>
<path d="M2 0 C2 -22 -2 -42 -12 -62 C-4 -40 -2 -20 -2 0 Z"/>
<path d="M4 0 C8 -18 16 -34 28 -46 C18 -30 10 -16 8 0 Z"/>
<path d="M6 0 C14 -12 24 -22 36 -26 C26 -18 16 -8 10 0 Z"/>
<path d="M-2 0 C-10 -10 -22 -18 -36 -20 C-22 -14 -12 -6 -6 0 Z"/>
</g>
<g fill="var(--brand-reed, #C9A15E)" transform="translate(856 100)">
<path d="M0 0 C-4 -20 -14 -38 -30 -50 C-18 -34 -10 -18 -4 0 Z"/>
<path d="M2 0 C2 -22 -2 -42 -12 -62 C-4 -40 -2 -20 -2 0 Z"/>
<path d="M4 0 C8 -18 16 -34 28 -46 C18 -30 10 -16 8 0 Z"/>
<path d="M6 0 C14 -12 24 -22 36 -26 C26 -18 16 -8 10 0 Z"/>
<path d="M-2 0 C-10 -10 -22 -18 -36 -20 C-22 -14 -12 -6 -6 0 Z"/>
</g>
<path fill="var(--brand-teal, #0286A2)" d="M10 104 C200 66 400 64 600 88 C690 98 750 104 800 100 C850 96 910 88 1000 88 C1200 88 1400 112 1590 74 C1420 128 1220 120 1000 108 C910 104 850 112 800 114 C750 116 690 114 600 106 C400 84 200 88 10 104 Z"/>
<path fill="var(--brand-wave, #6DBFC2)" d="M60 122 C240 100 420 102 600 118 C690 126 750 128 800 126 C850 124 910 116 1000 116 C1180 116 1360 134 1540 110 C1380 142 1200 140 1000 130 C910 126 850 134 800 136 C750 138 690 136 600 130 C420 116 240 114 60 122 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

+3
View File
@@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 50" role="presentation" aria-hidden="true">
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="M8 26 Q20 12 32 24 Q46 6 62 16 M70 40 Q78 32 86 40 Q94 30 104 36 M88 14 Q93 9 98 14 Q103 8 110 11"/>
</svg>

After

Width:  |  Height:  |  Size: 332 B

+6
View File
@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 60" role="presentation" aria-hidden="true">
<path fill="var(--brand-sun, #F2C27A)" stroke="var(--brand-navy, #0B2E55)" stroke-width="2.5" stroke-linejoin="round" d="M60 52 L20 30 C24 14 40 6 60 6 C80 6 96 14 100 30 Z"/>
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="2" stroke-linecap="round" d="M60 52 L32 16 M60 52 L46 9 M60 52 V6 M60 52 L74 9 M60 52 L88 16"/>
<path fill="var(--brand-navy, #0B2E55)" d="M50 50 H70 L66 58 H54 Z"/>
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="2.5" stroke-linecap="round" d="M2 44 H34 M86 44 H118"/>
</svg>

After

Width:  |  Height:  |  Size: 650 B

+27
View File
@@ -0,0 +1,27 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 180" role="img" aria-label="Bäderbahn Molli">
<title>Bäderbahn Molli</title>
<g fill="var(--brand-wave, #6DBFC2)">
<circle cx="66" cy="54" r="14"/><circle cx="84" cy="44" r="16"/><circle cx="104" cy="40" r="13"/><circle cx="120" cy="34" r="11"/><circle cx="80" cy="60" r="10"/>
</g>
<g fill="var(--brand-navy, #0B2E55)">
<path d="M58 62 H74 L72 70 V92 H60 V70 Z"/>
<rect x="44" y="90" width="66" height="30" rx="8"/>
<rect x="104" y="76" width="34" height="44" rx="2"/>
<rect x="100" y="72" width="42" height="6" rx="2"/>
<rect x="80" y="82" width="10" height="10" rx="5"/>
</g>
<rect x="112" y="84" width="18" height="14" fill="var(--brand-paper, #F6F1E4)"/>
<rect x="40" y="118" width="102" height="8" fill="var(--brand-brick, #A63A2B)"/>
<g fill="var(--brand-paper, #F6F1E4)" stroke="var(--brand-navy, #0B2E55)" stroke-width="2.5">
<rect x="146" y="86" width="74" height="34" rx="3"/>
</g>
<rect x="146" y="108" width="74" height="12" fill="var(--brand-brick, #A63A2B)"/>
<path fill="var(--brand-navy, #0B2E55)" d="M142 82 H224 V88 H142 Z M154 92 H166 V102 H154 Z M172 92 H184 V102 H172 Z M190 92 H202 V102 H190 Z M206 92 H216 V102 H206 Z"/>
<g fill="var(--brand-brick, #A63A2B)" stroke="var(--brand-navy, #0B2E55)" stroke-width="3">
<circle cx="60" cy="132" r="9"/><circle cx="84" cy="132" r="9"/><circle cx="108" cy="132" r="9"/>
<circle cx="160" cy="128" r="6"/><circle cx="206" cy="128" r="6"/>
</g>
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" d="M60 132 H108 M24 142 H228"/>
<path fill="var(--brand-teal, #0286A2)" d="M6 156 C50 136 98 132 142 142 C178 150 208 150 234 140 C216 160 182 168 142 164 C102 160 62 150 6 156 Z"/>
<path fill="var(--brand-wave, #6DBFC2)" d="M22 170 C62 158 106 160 142 168 C174 176 202 174 228 166 C208 178 174 180 138 176 C102 172 66 166 22 170 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

+21
View File
@@ -0,0 +1,21 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 180" role="img" aria-label="Mit dem Rad an der Küste">
<title>Mit dem Rad an der Küste</title>
<defs><clipPath id="rad-horizon"><rect x="120" y="20" width="110" height="88"/></clipPath></defs>
<circle cx="172" cy="104" r="40" fill="var(--brand-sun, #F2C27A)" clip-path="url(#rad-horizon)"/>
<path fill="var(--brand-wave, #6DBFC2)" d="M118 108 H234 V118 H118 Z"/>
<path fill="var(--brand-navy, #0B2E55)" d="M200 92 H205 V122 H200 Z M212 96 H217 V122 H212 Z"/>
<path fill="var(--brand-sun, #F2C27A)" opacity="0.55" d="M8 150 C60 128 110 120 160 124 C190 126 214 132 234 140 V150 Z"/>
<g fill="var(--brand-reed, #C9A15E)" transform="translate(26 138)">
<path d="M0 0 C-4 -16 -10 -30 -22 -40 C-12 -28 -6 -14 -4 0 Z"/>
<path d="M2 0 C2 -18 0 -34 -6 -50 C0 -32 0 -16 -2 0 Z"/>
<path d="M4 0 C8 -14 14 -26 24 -36 C16 -24 10 -12 8 0 Z"/>
</g>
<g fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="5" stroke-linecap="round" stroke-linejoin="round">
<circle cx="76" cy="116" r="22"/>
<circle cx="146" cy="116" r="22"/>
<path d="M76 116 L100 88 L134 88 L146 116 M100 88 L112 116 L76 116 M112 116 L134 88 M94 78 L108 78 M134 88 L130 74 L142 72"/>
</g>
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" d="M150 48 Q158 40 166 48 Q174 38 184 44"/>
<path fill="var(--brand-teal, #0286A2)" d="M6 158 C50 140 98 136 142 146 C178 154 208 154 234 144 C216 164 182 170 142 166 C102 162 62 152 6 158 Z"/>
<path fill="var(--brand-wave, #6DBFC2)" d="M22 172 C62 160 106 162 142 170 C174 178 202 176 228 168 C208 178 174 180 138 178 C102 174 66 168 22 172 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

+22
View File
@@ -0,0 +1,22 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 180" role="img" aria-label="Seebrücke">
<title>Seebrücke</title>
<defs><clipPath id="pier-horizon"><rect x="60" y="20" width="140" height="106"/></clipPath></defs>
<circle cx="128" cy="122" r="52" fill="var(--brand-sun, #F2C27A)" clip-path="url(#pier-horizon)"/>
<g fill="var(--brand-navy, #0B2E55)">
<rect x="22" y="114" width="196" height="7" rx="1"/>
<rect x="22" y="100" width="150" height="3"/>
<path d="M30 100 V114 M48 100 V114 M66 100 V114 M84 100 V114 M102 100 V114 M120 100 V114 M138 100 V114 M156 100 V114" stroke="var(--brand-navy, #0B2E55)" stroke-width="2.5"/>
<path d="M34 121 H40 V146 H34 Z M64 121 H70 V146 H64 Z M94 121 H100 V146 H94 Z M124 121 H130 V146 H124 Z M154 121 H160 V146 H154 Z M184 121 H190 V146 H184 Z M206 121 H212 V146 H206 Z"/>
<rect x="176" y="92" width="38" height="22"/>
<path d="M170 94 L195 72 L220 94 Z"/>
<path d="M193 72 L195 56 L197 72 Z"/>
<rect x="58" y="74" width="2.5" height="26"/>
<path d="M60.5 74 L74 78 L60.5 82 Z"/>
<rect x="148" y="78" width="2.5" height="22"/>
<path d="M150.5 78 L162 82 L150.5 86 Z"/>
</g>
<path fill="var(--brand-paper, #F6F1E4)" d="M182 98 H190 V108 H182 Z M200 98 H208 V108 H200 Z"/>
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" d="M34 50 Q42 42 50 50 Q58 40 68 46"/>
<path fill="var(--brand-teal, #0286A2)" d="M6 152 C50 124 98 118 142 132 C178 144 208 142 234 128 C216 154 182 166 142 160 C102 154 62 140 6 152 Z"/>
<path fill="var(--brand-wave, #6DBFC2)" d="M22 168 C62 150 106 152 142 164 C174 174 202 172 228 160 C208 176 174 180 138 174 C102 168 66 160 22 168 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

+15
View File
@@ -0,0 +1,15 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 180" role="img" aria-label="Strand mit Sonne">
<title>Strand mit Sonne</title>
<defs><clipPath id="strand-horizon"><rect x="90" y="30" width="140" height="102"/></clipPath></defs>
<circle cx="150" cy="128" r="50" fill="var(--brand-sun, #F2C27A)" clip-path="url(#strand-horizon)"/>
<path fill="var(--brand-sun, #F2C27A)" d="M112 138 H188 A3 3 0 0 1 188 144 H112 A3 3 0 0 1 112 138 Z M128 150 H172 A3 3 0 0 1 172 156 H128 A3 3 0 0 1 128 150 Z"/>
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" d="M156 54 Q164 46 172 54 Q180 44 190 50 M180 76 Q185 71 190 76 Q195 70 201 73"/>
<g fill="var(--brand-reed, #C9A15E)" transform="translate(46 150) scale(1.5)">
<path d="M0 0 C-4 -20 -14 -38 -30 -50 C-18 -34 -10 -18 -4 0 Z"/>
<path d="M2 0 C2 -22 -2 -42 -12 -62 C-4 -40 -2 -20 -2 0 Z"/>
<path d="M4 0 C8 -18 16 -34 28 -46 C18 -30 10 -16 8 0 Z"/>
<path d="M6 0 C14 -12 24 -22 36 -26 C26 -18 16 -8 10 0 Z"/>
</g>
<path fill="var(--brand-teal, #0286A2)" d="M6 152 C50 120 98 114 142 130 C178 143 208 142 234 126 C216 154 182 166 142 160 C102 154 62 140 6 152 Z"/>
<path fill="var(--brand-wave, #6DBFC2)" d="M22 168 C62 150 106 152 142 164 C174 174 202 172 228 160 C208 176 174 180 138 174 C102 168 66 160 22 168 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

+24
View File
@@ -0,0 +1,24 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 180" role="img" aria-label="Küstenwald">
<title>Küstenwald</title>
<defs><clipPath id="wald-horizon"><rect x="140" y="40" width="96" height="84"/></clipPath></defs>
<circle cx="190" cy="120" r="38" fill="var(--brand-sun, #F2C27A)" clip-path="url(#wald-horizon)"/>
<g fill="var(--brand-navy, #0B2E55)">
<path d="M58 140 L62 70 L66 140 Z"/>
<path d="M92 140 L95 56 L99 140 Z"/>
<path d="M124 140 L127 76 L131 140 Z"/>
<path d="M150 140 L152 92 L155 140 Z"/>
<path d="M95 92 L78 80 M95 80 L112 70 M62 96 L48 88 M127 100 L142 90" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round"/>
</g>
<g fill="var(--brand-teal, #0286A2)">
<ellipse cx="62" cy="70" rx="26" ry="16"/><ellipse cx="44" cy="84" rx="18" ry="11"/>
<ellipse cx="96" cy="52" rx="30" ry="18"/><ellipse cx="120" cy="66" rx="20" ry="12"/>
<ellipse cx="128" cy="78" rx="24" ry="14"/><ellipse cx="152" cy="92" rx="16" ry="10"/>
</g>
<g fill="var(--brand-navy, #0B2E55)" opacity="0.85">
<ellipse cx="74" cy="62" rx="16" ry="10"/><ellipse cx="104" cy="44" rx="16" ry="9"/><ellipse cx="136" cy="72" rx="12" ry="8"/>
</g>
<path fill="var(--brand-reed, #C9A15E)" d="M30 140 C60 132 140 130 200 136 C214 138 226 140 234 142 V146 H30 Z"/>
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" d="M196 70 Q202 64 208 70 Q214 62 222 66"/>
<path fill="var(--brand-teal, #0286A2)" d="M6 158 C50 140 98 136 142 146 C178 154 208 154 234 144 C216 164 182 170 142 166 C102 162 62 152 6 158 Z"/>
<path fill="var(--brand-wave, #6DBFC2)" d="M22 172 C62 160 106 162 142 170 C174 178 202 176 228 168 C208 178 174 180 138 178 C102 174 66 168 22 172 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

+45
View File
@@ -0,0 +1,45 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 200" role="img" aria-label="Villa an der Ostsee">
<title>Villa an der Ostsee</title>
<defs><clipPath id="villa-horizon"><rect x="150" y="60" width="90" height="98"/></clipPath></defs>
<circle cx="196" cy="140" r="38" fill="var(--brand-sun, #F2C27A)" clip-path="url(#villa-horizon)"/>
<g stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linejoin="round">
<rect x="34" y="98" width="72" height="66" fill="var(--brand-paper, #F6F1E4)"/>
<path d="M22 102 L70 54 L118 102 Z" fill="var(--brand-navy, #0B2E55)"/>
<path d="M42 98 L70 70 L98 98 Z" fill="var(--brand-paper, #F6F1E4)"/>
<rect x="104" y="98" width="96" height="66" fill="var(--brand-paper, #F6F1E4)"/>
<path d="M96 102 L116 72 L188 72 L208 102 Z" fill="var(--brand-navy, #0B2E55)"/>
<path d="M134 74 V54 H166 V74 Z" fill="var(--brand-paper, #F6F1E4)"/>
<path d="M128 56 L150 10 L172 56 Z" fill="var(--brand-navy, #0B2E55)"/>
<path d="M168 88 L186 66 L204 88 Z" fill="var(--brand-paper, #F6F1E4)"/>
</g>
<g fill="var(--brand-navy, #0B2E55)">
<circle cx="186" cy="80" r="4"/>
<rect x="144" y="60" width="12" height="10" rx="1"/>
<path d="M62 92 V84 A8 8 0 0 1 78 84 V92 Z"/>
<rect x="48" y="108" width="20" height="22"/>
<rect x="74" y="108" width="20" height="22"/>
<rect x="44" y="138" width="16" height="26"/>
<rect x="68" y="138" width="28" height="18"/>
<path d="M112 134 V114 A12 12 0 0 1 136 114 V134 Z"/>
<path d="M140 134 V114 A12 12 0 0 1 164 114 V134 Z"/>
<path d="M168 134 V114 A12 12 0 0 1 192 114 V134 Z"/>
<path d="M116 164 V150 A8 8 0 0 1 132 150 V164 Z"/>
<path d="M144 164 V150 A8 8 0 0 1 160 150 V164 Z"/>
<path d="M172 164 V150 A8 8 0 0 1 188 150 V164 Z"/>
</g>
<g fill="none" stroke="var(--brand-paper, #F6F1E4)" stroke-width="2">
<path d="M58 108 V130 M48 119 H68 M84 108 V130 M74 119 H94 M82 138 V156"/>
</g>
<g fill="var(--brand-paper, #F6F1E4)" stroke="var(--brand-navy, #0B2E55)" stroke-width="2">
<rect x="108" y="124" width="88" height="10"/>
</g>
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="2" d="M116 124 V134 M124 124 V134 M132 124 V134 M140 124 V134 M148 124 V134 M156 124 V134 M164 124 V134 M172 124 V134 M180 124 V134 M188 124 V134"/>
<g fill="var(--brand-reed, #C9A15E)" transform="translate(208 170) scale(1.3)">
<path d="M0 0 C-4 -20 -14 -38 -30 -50 C-18 -34 -10 -18 -4 0 Z"/>
<path d="M2 0 C2 -22 -2 -42 -12 -62 C-4 -40 -2 -20 -2 0 Z"/>
<path d="M4 0 C8 -18 16 -34 28 -46 C18 -30 10 -16 8 0 Z"/>
<path d="M6 0 C14 -12 24 -22 36 -26 C26 -18 16 -8 10 0 Z"/>
</g>
<path fill="var(--brand-teal, #0286A2)" d="M6 176 C50 150 98 146 142 160 C178 171 208 170 234 156 C216 182 182 192 142 186 C102 180 62 166 6 176 Z"/>
<path fill="var(--brand-wave, #6DBFC2)" d="M22 190 C62 174 106 176 142 188 C174 198 202 196 228 184 C208 200 174 204 138 198 C102 192 66 184 22 190 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 2.9 KiB

+19
View File
@@ -5,6 +5,7 @@
use App\Enums\AdminMode;
use App\Enums\UserRole;
use App\Filament\Concerns\FollowsAdminMode;
use App\Filament\Pages\PricesAndOffers;
use App\Filament\Resources\BlockedPeriods\BlockedPeriodResource;
use App\Filament\Resources\BlockedPeriods\Pages\ManageBlockedPeriods;
use App\Filament\Resources\Properties\PropertyResource;
@@ -12,6 +13,7 @@
use App\Filament\Resources\Users\UserResource;
use App\Models\BlockedPeriod;
use App\Models\Property;
use App\Models\Season;
use App\Models\User;
use Filament\Actions\CreateAction;
use Filament\Actions\Testing\TestAction;
@@ -63,6 +65,23 @@ public function test_every_admin_resource_and_page_follows_the_admin_mode(): voi
}
}
public function test_prices_and_offers_page_bundles_seasons_offers_and_extras_in_the_simple_mode(): void
{
$property = Property::factory()->create();
Season::factory()->for($property)->create(['name' => 'Hochsaison Test', 'starts_on' => now()->addMonth()->toDateString(), 'ends_on' => now()->addMonths(2)->toDateString()]);
$this->actingAs(User::factory()->create(['admin_mode' => AdminMode::Simple]));
$this->get(PricesAndOffers::getUrl())
->assertOk()
->assertSee('Saisons &amp; Preise', false)
->assertSee('Sonderangebote &amp; Rabattcodes', false)
->assertSee('Hochsaison Test');
$this->get(Dashboard::getUrl())->assertSee('Preise &amp; Angebote', false)->assertSee('Bilder')->assertDontSee('Erscheinungsbilder');
$this->actingAs(User::factory()->role(UserRole::Content)->create());
$this->get(PricesAndOffers::getUrl())->assertForbidden();
}
public function test_administrators_default_to_the_expert_mode(): void
{
$this->assertSame(AdminMode::Expert, User::factory()->create()->adminMode());
+3
View File
@@ -22,6 +22,9 @@ protected function setUp(): void
{
parent::setUp();
// These tests submit the form instantly; the bot time trap is tested in SpamProtectionTest.
config(['fewo.spam.min_seconds' => 0]);
$this->travelTo(CarbonImmutable::parse('2026-10-22 10:00'));
$this->seed([PropertySeeder::class, SiteSeeder::class]);
Mail::fake();
+3
View File
@@ -47,6 +47,9 @@ protected function setUp(): void
{
parent::setUp();
// These tests submit the form instantly; the bot time trap is tested in SpamProtectionTest.
config(['fewo.spam.min_seconds' => 0]);
$this->travelTo(CarbonImmutable::parse('2026-10-22 10:00'));
$this->seed(PropertySeeder::class);
$this->property = Property::sole();
+3
View File
@@ -40,6 +40,9 @@ protected function setUp(): void
{
parent::setUp();
// These tests submit the form instantly; the bot time trap is tested in SpamProtectionTest.
config(['fewo.spam.min_seconds' => 0]);
$this->travelTo(CarbonImmutable::parse('2026-10-22 10:00'));
$this->seed(PropertySeeder::class);
$this->property = Property::sole();
+128
View File
@@ -0,0 +1,128 @@
<?php
namespace Tests\Feature;
use App\Actions\AcceptOffer;
use App\Actions\CreateReservation;
use App\Actions\SendOffer;
use App\Enums\PortalEmailStatus;
use App\Enums\PortalEmailType;
use App\Mail\ArrivalInformation;
use App\Mail\BookingConfirmed;
use App\Mail\BookingDeclined;
use App\Mail\ChannelConflict;
use App\Mail\ChannelSyncAlert;
use App\Mail\ChannelTasksNotification;
use App\Mail\MailboxAlert;
use App\Mail\MarketingConsentRequest;
use App\Mail\NewReservation;
use App\Mail\NewReview;
use App\Mail\OfferAnswered;
use App\Mail\OfferMade;
use App\Mail\PaymentReminder;
use App\Mail\PortalMailNotification;
use App\Mail\ReservationExpired;
use App\Mail\ReservationReceived;
use App\Mail\ReviewRequest;
use App\Models\Booking;
use App\Models\Channel;
use App\Models\ChannelTask;
use App\Models\PortalEmail;
use App\Models\Property;
use App\Models\Review;
use App\Pricing\StayRequest;
use Carbon\CarbonImmutable;
use Database\Seeders\PropertySeeder;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Mail\Mailable;
use Illuminate\Support\Facades\Mail;
use Illuminate\Support\Facades\Storage;
use Tests\TestCase;
/**
* Every e-mail of the system is built completely (subject, body, attachments) in the state in which it is
* really sent – so a broken template is found here and not by a guest. Delivery itself is a server matter.
*/
class MailRenderingTest extends TestCase
{
use RefreshDatabase;
protected function setUp(): void
{
parent::setUp();
$this->travelTo(CarbonImmutable::parse('2026-10-22 10:00'));
$this->seed(PropertySeeder::class);
Mail::fake();
Storage::fake('local');
}
public function test_every_mail_along_the_booking_path_renders_in_its_state(): void
{
$booking = app(CreateReservation::class)->handle(
Property::sole(),
new StayRequest(CarbonImmutable::parse('2026-12-01'), CarbonImmutable::parse('2026-12-05'), 2),
['first_name' => 'Erika', 'last_name' => 'Muster', 'email' => 'erika@example.com', 'street' => 'Seeweg 1', 'postal_code' => '18225', 'city' => 'Kühlungsborn'],
'Wir kommen mit Hund – ist das in Ordnung?',
sendMails: false,
);
$this->assertRenders(new ReservationReceived($booking), 'vorgemerkt');
$this->assertRenders(new NewReservation($booking), 'Erika Muster');
$send = app(SendOffer::class);
$booking = $send->handle($booking, ['price_adjustment' => -1500, 'offer_message' => 'Hund ist willkommen.'], sendMail: false);
$this->assertRenders(new OfferMade($booking, $send->offerUrl($booking)), 'Angebot ansehen und annehmen', attachments: 1);
$this->assertRenders(new ReservationExpired($booking), 'Angebot abgelaufen');
$this->assertRenders(new BookingDeclined($booking), 'Erika');
app(AcceptOffer::class)->handle($booking, $booking->offer_version);
$booking->refresh();
$this->assertRenders(new OfferAnswered($booking, accepted: true), 'Angebot angenommen');
$this->assertRenders(new OfferAnswered($booking, accepted: false), 'abgelehnt');
$this->assertRenders(new BookingConfirmed($booking), 'Sie haben unser Angebot', attachments: 1);
foreach ([PaymentReminder::DEPOSIT_OVERDUE, PaymentReminder::BALANCE_REQUEST, PaymentReminder::BALANCE_OVERDUE] as $kind) {
$this->assertRenders(new PaymentReminder($booking, $kind), 'Erika Muster');
}
$this->assertRenders(new ArrivalInformation($booking), 'Erika');
$this->assertRenders(new ReviewRequest($booking), 'Erika');
}
public function test_directly_confirmed_booking_and_other_notifications_render(): void
{
$booking = Booking::factory()->for(Property::sole())->create(['confirmed_at' => now(), 'deposit_due_on' => now()->addWeek()->toDateString()]);
$this->assertRenders(new BookingConfirmed($booking), 'verbindlich zu bestätigen');
$channel = Channel::factory()->for(Property::sole())->create(['name' => 'FeWo-direkt']);
$this->assertRenders(new ChannelSyncAlert($channel), 'FeWo-direkt');
$this->assertRenders(new ChannelConflict($channel, ['14.11.–17.11.2026 überschneidet Buchung 2026-0001']), 'überschneidet');
$this->assertRenders(new ChannelTasksNotification([ChannelTask::factory()->for($channel)->create()]), 'FeWo-direkt');
$this->assertRenders(new MailboxAlert('Login fehlgeschlagen'), 'Login fehlgeschlagen');
$this->assertRenders(new MarketingConsentRequest($booking->guest), $booking->guest->first_name);
$this->assertRenders(new NewReview(Review::factory()->create(['booking_id' => $booking->id, 'title' => 'Wunderbar'])), 'Wunderbar');
$this->assertRenders(new PortalMailNotification(PortalEmail::query()->create([
'channel_id' => $channel->id, 'message_id' => 'm1@portal', 'from' => 'noreply@portal.example', 'subject' => 'Neue Buchung',
'received_at' => now(), 'type' => PortalEmailType::Booking, 'status' => PortalEmailStatus::Blocked, 'starts_on' => '2026-11-14', 'ends_on' => '2026-11-17',
])), 'Neue Buchung');
}
public function test_test_mail_command_sends_and_respects_the_redirect(): void
{
config(['fewo.mail_redirect_to' => 'test@example.com']);
$this->artisan('mail:test', ['to' => 'gast@example.com'])
->expectsOutputToContain('Umleitung aktiv')
->assertSuccessful();
}
private function assertRenders(Mailable $mail, string $expected, int $attachments = 0): void
{
$html = $mail->render();
$this->assertNotEmpty($mail->envelope()->subject, $mail::class.' needs a subject');
$this->assertStringContainsString(e($expected), $html, $mail::class);
if (method_exists($mail, 'attachments')) {
$this->assertCount($attachments, $mail->attachments(), $mail::class.' attachments');
}
}
}
+127
View File
@@ -0,0 +1,127 @@
<?php
namespace Tests\Feature;
use App\Actions\CopySeasonsToNextYear;
use App\Filament\Resources\Properties\Pages\EditProperty;
use App\Filament\Resources\Properties\RelationManagers\SeasonsRelationManager;
use App\Models\BlockedPeriod;
use App\Models\Property;
use App\Models\Season;
use App\Models\SpecialOffer;
use App\Models\User;
use App\Pricing\PriceCalculator;
use App\Pricing\PriceQuote;
use App\Pricing\QuoteException;
use App\Pricing\StayRequest;
use Carbon\CarbonImmutable;
use Filament\Actions\Testing\TestAction;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Livewire\Livewire;
use Tests\TestCase;
class MinimumStayRulesTest extends TestCase
{
use RefreshDatabase;
private Property $property;
protected function setUp(): void
{
parent::setUp();
$this->property = Property::factory()->create(['min_stay_absolute' => 2]);
Season::factory()->for($this->property)->create(['name' => 'Hauptsaison', 'starts_on' => '2026-06-06', 'ends_on' => '2026-09-05', 'nightly_rate' => 9000, 'min_nights' => 7]);
}
public function test_season_minimum_applies_without_a_rule(): void
{
$this->expectException(QuoteException::class);
$this->quote('2026-07-08', '2026-07-11');
}
public function test_stay_filling_a_calendar_gap_completely_may_be_shorter(): void
{
BlockedPeriod::factory()->for($this->property)->create(['starts_on' => '2026-07-01', 'ends_on' => '2026-07-08']);
BlockedPeriod::factory()->for($this->property)->create(['starts_on' => '2026-07-11', 'ends_on' => '2026-07-18']);
$this->assertSame(3, $this->quote('2026-07-08', '2026-07-11')->nights());
$this->expectException(QuoteException::class);
$this->quote('2026-07-08', '2026-07-10');
}
public function test_gap_rule_can_be_switched_off(): void
{
$this->property->update(['min_stay_fill_gaps' => false]);
BlockedPeriod::factory()->for($this->property)->create(['starts_on' => '2026-07-01', 'ends_on' => '2026-07-08']);
BlockedPeriod::factory()->for($this->property)->create(['starts_on' => '2026-07-11', 'ends_on' => '2026-07-18']);
$this->expectException(QuoteException::class);
$this->quote('2026-07-08', '2026-07-11');
}
public function test_stay_ending_on_the_changeover_day_may_be_shorter_but_not_below_the_absolute_minimum(): void
{
$this->property->update(['changeover_weekday' => 6, 'min_stay_until_changeover' => true]);
$this->assertSame(3, $this->quote('2026-07-08', '2026-07-11')->nights(), 'Wednesday to Saturday');
try {
$this->quote('2026-07-10', '2026-07-11');
$this->fail('one night is below the absolute minimum');
} catch (QuoteException) {
$this->addToAssertionCount(1);
}
$this->expectException(QuoteException::class);
$this->quote('2026-07-08', '2026-07-10');
}
public function test_any_special_offer_can_waive_the_minimum_stay(): void
{
SpecialOffer::factory()->for($this->property)->create(['name' => 'Special Weekend', 'arrival_weekdays' => [5], 'max_nights' => 2, 'waives_min_stay' => true, 'discount_value' => 10]);
$quote = $this->quote('2026-07-10', '2026-07-12');
$this->assertSame(2, $quote->nights());
$this->assertGreaterThan(0, $quote->discount());
}
public function test_copying_seasons_moves_their_start_to_the_weekday_and_keeps_them_adjacent(): void
{
Season::factory()->for($this->property)->create(['name' => 'Vorsaison', 'starts_on' => '2026-04-04', 'ends_on' => '2026-06-06', 'nightly_rate' => 7000, 'min_nights' => 3]);
$result = app(CopySeasonsToNextYear::class)->handle($this->property, 2026, 6);
$copies = $this->property->seasons()->whereYear('starts_on', 2027)->orderBy('starts_on')->get();
$this->assertSame(2, $result['created']);
$this->assertSame(['2027-04-03', '2027-06-05', '2027-06-05', '2027-09-04'], [
$copies[0]->starts_on->toDateString(), $copies[0]->ends_on->toDateString(),
$copies[1]->starts_on->toDateString(), $copies[1]->ends_on->toDateString(),
]);
$this->assertTrue($copies->every(fn (Season $season): bool => $season->starts_on->isSaturday()));
}
public function test_rules_are_edited_next_to_the_seasons(): void
{
$this->actingAs(User::factory()->create());
Livewire::test(SeasonsRelationManager::class, ['ownerRecord' => $this->property, 'pageClass' => EditProperty::class])
->callAction(TestAction::make('minimumStayRules')->table(), [
'changeover_weekday' => 6,
'min_stay_fill_gaps' => true,
'min_stay_until_changeover' => true,
'min_stay_absolute' => 3,
])
->assertHasNoFormErrors();
$this->assertSame([6, true, 3], [$this->property->fresh()->changeover_weekday, $this->property->fresh()->min_stay_until_changeover, $this->property->fresh()->min_stay_absolute]);
}
private function quote(string $arrival, string $departure): PriceQuote
{
return app(PriceCalculator::class)->calculate($this->property->fresh(), new StayRequest(CarbonImmutable::parse($arrival), CarbonImmutable::parse($departure), 2), CarbonImmutable::parse('2026-03-01'));
}
}
+1
View File
@@ -94,6 +94,7 @@ public function test_gap_filler_advertises_each_gap_found_in_the_calendar(): voi
public function test_gap_below_minimum_stay_is_not_advertised_unless_the_offer_waives_it(): void
{
$this->property->update(['min_stay_fill_gaps' => false]);
BlockedPeriod::factory()->for($this->property)->create(['starts_on' => '2026-02-05', 'ends_on' => '2026-02-10']);
BlockedPeriod::factory()->for($this->property)->create(['starts_on' => '2026-02-12', 'ends_on' => '2026-02-20']);
$this->offer(['name' => 'Lückenfüller', 'kind' => OfferKind::GapFiller, 'max_gap_nights' => 4, 'discount_value' => 20]);
+121
View File
@@ -0,0 +1,121 @@
<?php
namespace Tests\Feature;
use App\Actions\CreateReservation;
use App\Enums\UserRole;
use App\Filament\Pages\Operations;
use App\Mail\NewReservation;
use App\Mail\ReservationReceived;
use App\Models\Property;
use App\Models\User;
use App\Pricing\StayRequest;
use App\Support\Settings;
use Carbon\CarbonImmutable;
use Database\Seeders\PropertySeeder;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Mail\MailManager;
use Illuminate\Support\Facades\Mail;
use Livewire\Livewire;
use Tests\TestCase;
class OperationsModeTest extends TestCase
{
use RefreshDatabase;
public function test_new_installations_start_in_test_mode_with_the_notification_address(): void
{
config(['fewo.mail_redirect_to' => null, 'fewo.notification_email' => 'fewo@example.com']);
$this->assertFalse(Settings::isLive());
$this->assertSame('fewo@example.com', Settings::mailRedirect());
}
public function test_in_test_mode_every_mail_goes_to_the_test_recipient_only(): void
{
config(['fewo.mail_redirect_to' => null, 'mail.default' => 'array']);
Settings::save([Settings::MODE => Settings::MODE_TEST, Settings::TEST_RECIPIENT => 'test@example.com']);
Mail::raw('Hallo', fn ($message) => $message->to('gast@example.com')->cc('vermieterin@example.com')->subject('Angebot'));
$sent = app(MailManager::class)->mailer('array')->getSymfonyTransport()->messages()->last();
$this->assertSame(['test@example.com'], array_map(fn ($address) => $address->getAddress(), $sent->getEnvelope()->getRecipients()));
}
public function test_switched_live_mails_reach_their_real_recipients(): void
{
config(['fewo.mail_redirect_to' => null, 'mail.default' => 'array']);
Settings::save([Settings::MODE => Settings::MODE_LIVE]);
Mail::raw('Hallo', fn ($message) => $message->to('gast@example.com')->subject('Angebot'));
$sent = app(MailManager::class)->mailer('array')->getSymfonyTransport()->messages()->last();
$this->assertSame(['gast@example.com'], array_map(fn ($address) => $address->getAddress(), $sent->getEnvelope()->getRecipients()));
$this->assertNull(Settings::mailRedirect());
}
public function test_addresses_of_the_internal_communication_are_set_in_the_admin(): void
{
config(['fewo.mail_redirect_to' => null]);
$this->actingAs(User::factory()->create());
Livewire::test(Operations::class)
->set('data.mode', Settings::MODE_LIVE)
->set('data.notification_recipients', ['brigitte@example.com', 'lars@example.com'])
->set('data.contact_email', 'info@example.com')
->set('data.sender_name', 'FeWo Test')
->set('data.sender_email', 'versand@example.com')
->call('save')
->assertHasNoErrors();
$this->assertSame(['brigitte@example.com', 'lars@example.com'], Settings::notificationRecipients());
$this->assertSame(['info@example.com', 'versand@example.com', 'FeWo Test'], [config('fewo.owner.email'), config('mail.from.address'), config('mail.from.name')]);
Mail::fake();
$this->seed(PropertySeeder::class);
$booking = app(CreateReservation::class)->handle(Property::sole(), new StayRequest(CarbonImmutable::parse('2026-12-01'), CarbonImmutable::parse('2026-12-05'), 2), ['first_name' => 'Erika', 'last_name' => 'Muster', 'email' => 'erika@example.com']);
Mail::assertSent(NewReservation::class, fn (NewReservation $mail): bool => $mail->hasTo('brigitte@example.com') && $mail->hasTo('lars@example.com'));
Mail::assertSent(ReservationReceived::class, fn (ReservationReceived $mail): bool => $mail->hasReplyTo('info@example.com'));
$this->assertNotNull($booking);
}
public function test_invalid_notification_addresses_are_rejected(): void
{
$this->actingAs(User::factory()->create());
Livewire::test(Operations::class)
->set('data.notification_recipients', ['keine-adresse'])
->call('save')
->assertHasErrors();
}
public function test_server_override_always_wins(): void
{
config(['fewo.mail_redirect_to' => 'server@example.com']);
Settings::save([Settings::MODE => Settings::MODE_LIVE]);
$this->assertSame('server@example.com', Settings::mailRedirect());
}
public function test_administrator_switches_the_mode_in_the_admin_and_sees_the_banner(): void
{
config(['fewo.mail_redirect_to' => null]);
$this->actingAs(User::factory()->create());
$this->get(Operations::getUrl())->assertOk()->assertSee('Testbetrieb:');
Livewire::test(Operations::class)
->set('data.mode', Settings::MODE_TEST)
->set('data.test_recipient', 'lars@example.com')
->call('save')
->assertHasNoErrors();
$this->assertSame('lars@example.com', Settings::mailRedirect());
Livewire::test(Operations::class)->set('data.mode', Settings::MODE_LIVE)->call('save')->assertNotified('Scharf geschaltet');
$this->assertTrue(Settings::isLive());
$this->actingAs(User::factory()->role(UserRole::Rentals)->create());
$this->get(Operations::getUrl())->assertForbidden();
}
}
+83
View File
@@ -0,0 +1,83 @@
<?php
namespace Tests\Feature;
use App\Livewire\BookingRequest;
use App\Models\Booking;
use Carbon\CarbonImmutable;
use Database\Seeders\PropertySeeder;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Mail;
use Livewire\Features\SupportTesting\Testable;
use Livewire\Livewire;
use Tests\TestCase;
class SpamProtectionTest extends TestCase
{
use RefreshDatabase;
protected function setUp(): void
{
parent::setUp();
$this->travelTo(CarbonImmutable::parse('2026-10-22 10:00'));
$this->seed(PropertySeeder::class);
Mail::fake();
}
public function test_form_sent_faster_than_a_human_is_ignored_silently(): void
{
$this->filled('anna@example.com')->call('submit')->assertHasNoErrors();
$this->assertSame(0, Booking::count());
}
public function test_honeypot_request_is_ignored(): void
{
$form = $this->filled('anna@example.com')->set('website', 'https://spam.example');
$this->travel(10)->seconds();
$form->call('submit');
$this->assertSame(0, Booking::count());
}
public function test_human_request_after_a_few_seconds_is_accepted(): void
{
$form = $this->filled('anna@example.com');
$this->travel(10)->seconds();
$form->call('submit')->assertHasNoErrors()->assertSee('Vielen Dank, Anna!');
$this->assertSame(1, Booking::count());
}
public function test_one_email_address_cannot_hold_many_dates_at_once(): void
{
foreach ([['2026-11-07', '2026-11-10'], ['2026-11-14', '2026-11-17'], ['2026-11-21', '2026-11-24']] as [$arrival, $departure]) {
$form = $this->filled('anna@example.com', $arrival, $departure);
$this->travel(10)->seconds();
$form->call('submit');
}
$this->assertSame(2, Booking::count());
}
public function test_links_in_names_or_many_links_in_the_message_are_rejected(): void
{
$form = $this->filled('anna@example.com')->set('firstName', 'Cheap https://pills.example')->set('message', 'see www.a.example and https://b.example');
$this->travel(10)->seconds();
$form->call('submit')->assertHasErrors(['firstName', 'message']);
$this->assertSame(0, Booking::count());
}
private function filled(string $email, string $arrival = '2026-11-07', string $departure = '2026-11-10'): Testable
{
return Livewire::test(BookingRequest::class)
->set('arrival', $arrival)
->set('departure', $departure)
->set('firstName', 'Anna')
->set('lastName', 'Muster')
->set('email', $email)
->set('privacyAccepted', true);
}
}