Compare commits

...
Author SHA1 Message Date
Lars StommerandClaude Opus 5.5 82698f8eda Admin accounts with simple/expert mode, blocked periods list, brand assets, decisions
- Per-user admin mode (simple: bookings/contracts, blocked periods, guests, portal tasks,
  reviews; expert: everything the role allows), user menu switch, FollowsAdminMode on all
  resources/pages (guarded by a test); roles keep deciding permissions.
- Users list shows mode and 2FA; admins can reset another user's 2FA.
- New "Sperrzeiten" list for all apartments (manual blocks editable, portal blocks read-only).
- styles/final: clean hand-built SVG mark, logo, favicon (dark-mode aware), 4 icons, wave
  divider, plus PNG/WebP for mail/PDF/touch icon; colours via --brand-* variables.
- Decisions recorded in KONZEPT §6a/6b (booking path 1 via offer + guest acceptance, direct
  booking later; tourist tax by Ferienservice Balu); agent documents added and marked as
  analysis with assumptions; styles excluded from the deploy package.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 21:08:09 +02:00
Lars StommerandClaude Opus 5.5 7d0bc93abc Offers by their own rules, seasonal photos per section, theme authoring tooling
- Special offers: kinds (rule, fixed dates, gap filler), package price, priority, highlight;
  GapFinder detects calendar gaps (optionally waiving the minimum stay); OfferShowcase decides
  what the website advertises and prices fixed dates/gaps with PriceCalculator; offers section
  shows them side by side, as a list or rotating; hero can show the top offer. Appearances no
  longer carry a featured offer.
- Sections get stable ids; appearances set photos per section ("Bilder je Baustein") and
  sections can be limited to appearances. Photo pickers show thumbnails everywhere.
- Themes: themes:make (scaffold, never overwrites), themes:check (contract, build, markup,
  colours, external resources, WCAG contrast), themes:preview (signed links per page and
  appearance), signed ?theme= preview and preview action in the site form, inherited colour
  tokens in the admin. Base CSS split into theme.css + reusable theme-base.css.
- docs/THEME-ERSTELLUNG.md: binding guide for building additional themes elsewhere.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 18:51:38 +02:00
Lars StommerandClaude Opus 5.5 bc77b64ea7 Photo import from a manifest (category + alt text per file, idempotent); curated list of the WordPress photos
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 17:23:40 +02:00
Lars StommerandClaude Opus 5.5 7355466231 Deploy: keep only the active release on Strato (file quota), release history as Git tags in Gitea
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 17:16:32 +02:00
Lars StommerandClaude Opus 5.5 669fb45731 Deploy: prune vendor translations/tests/docs to stay within Strato's file quota
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 17:06:04 +02:00
Lars StommerandClaude Opus 5.5 33dde2027b Docs: webspace quota note
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 17:01:29 +02:00
Lars StommerandClaude Opus 5.5 13760f2c02 Admin two-factor authentication (mandatory for admins), users:create command, operations handbook
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 16:52:44 +02:00
Lars StommerandClaude Opus 5.5 dea1029225 Docs: wording
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 16:43:49 +02:00
Lars StommerandClaude Opus 5.5 b544adac62 Docs: staging on stommer.info, OPcache-safe release switching
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 16:43:37 +02:00
Lars StommerandClaude Opus 5.5 83427aec13 Deploy: fix escaped dot in .htaccess block rule
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 16:41:10 +02:00
Lars StommerandClaude Opus 5.5 fbfc9eeb95 Deploy: serve the web from the concrete release folder to avoid stale OPcache via the current symlink
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 16:38:13 +02:00
Lars StommerandClaude Opus 5.5 f031b3c854 Pin URL root to APP_URL outside local/testing (base-folder hosting on Strato)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 16:32:40 +02:00
Lars StommerandClaude Opus 5.5 92c796de2e Deployment: .htaccess-Weiterleitung für Strato (kein Symlink-Ziel), Web-PHP pro Ordner, erstes Deployment ohne Gesundheitscheck
Erfolgreich getestet auf Strato (test.fewo-stommer.de).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 16:22:27 +02:00
Lars StommerandClaude Opus 5.5 cb1e4cbc63 Theme: noindex außerhalb der Produktion (Testbetrieb nicht in Suchmaschinen)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 16:05:22 +02:00
Lars StommerandClaude Opus 5.5 769e6b7e6e Deployment: paketspezifischer Strato-SSH-Server, Tilde im Schlüsselpfad
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 15:57:25 +02:00
Lars StommerandClaude Opus 5.5 c7186e768e MariaDB 11.8 als Zieldatenbank (Vorlage, Doku) und zusätzlicher CI-Testlauf gegen MariaDB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 15:40:48 +02:00
124 changed files with 4687 additions and 319 deletions

No files matched your search

+2 -2
View File
@@ -15,8 +15,8 @@ APP_MAINTENANCE_DRIVER=file
LOG_CHANNEL=daily
LOG_LEVEL=warning
# Strato MySQL (Kundenlogin › Datenbanken und Webspace › Datenbanken verwalten)
DB_CONNECTION=mysql
# Strato MariaDB 11.8 (Kundenlogin › Datenbanken und Webspace › Datenbanken verwalten)
DB_CONNECTION=mariadb
DB_HOST=
DB_PORT=3306
DB_DATABASE=
+23 -3
View File
@@ -1,7 +1,7 @@
# Tests on every push; deployment to Strato for tags "v*" or by hand (Gitea › Actions › Deploy › Run workflow).
# Needs a Gitea act_runner (e.g. on the private server) and these repository secrets:
# DEPLOY_SSH_KEY private key whose public key is stored at Strato (SFTP & SSH)
# DEPLOY_HOST ssh.strato.de
# DEPLOY_HOST package-specific SSH server, e.g. 51539426.ssh.w1.strato.hosting (not ssh.strato.de)
# DEPLOY_USER SSH user from the Strato customer login
# DEPLOY_PATH e.g. fewo-production
# DEPLOY_PHP e.g. /opt/RZphp84/bin/php-cli
@@ -23,13 +23,23 @@ on:
jobs:
test:
runs-on: ubuntu-latest
services:
mariadb:
image: mariadb:11.8
env:
MARIADB_DATABASE: fewo_test
MARIADB_ROOT_PASSWORD: test
ports: ['3306:3306']
options: >-
--health-cmd="healthcheck.sh --connect --innodb_initialized"
--health-interval=5s --health-timeout=5s --health-retries=20
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
extensions: mbstring, intl, gd, exif, zip, pdo_sqlite, sqlite3, fileinfo, openssl
extensions: mbstring, intl, gd, exif, zip, pdo_sqlite, sqlite3, pdo_mysql, fileinfo, openssl
tools: composer:v2
- uses: actions/setup-node@v4
@@ -45,7 +55,17 @@ jobs:
cp .env.example .env
php artisan key:generate
- name: Tests
- name: Tests (SQLite)
run: php artisan test --compact
- name: Tests (MariaDB 11.8, wie auf Strato)
env:
DB_CONNECTION: mariadb
DB_HOST: 127.0.0.1
DB_PORT: '3306'
DB_DATABASE: fewo_test
DB_USERNAME: root
DB_PASSWORD: test
run: php artisan test --compact
deploy:
+4 -3
View File
@@ -10,10 +10,11 @@ # 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.
- Special offers are evaluated automatically by `PriceCalculator`; discounts are `QuoteLineType::Discount` lines with negative amounts.
- 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. Theme views use only token colour classes (`bg-accent`, `text-muted`, …). Resolve `Theme` lazily (`app(Theme::class)`), never in constructors – middleware `ResolveTheme` replaces it per request.
- Deployment: `scripts/deploy.sh <env> setup|deploy|rollback|releases|artisan` (atomic releases on Strato, docs/DEPLOYMENT.md); CI `.gitea/workflows/deploy.yml`. Production has no dev packages (no factories/Faker) – production seeding via `ProductionSeeder`.
- 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 admins via `RequireTwoFactorForAdmins`. 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`.
- 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 -3
View File
@@ -10,10 +10,11 @@ # 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.
- Special offers are evaluated automatically by `PriceCalculator`; discounts are `QuoteLineType::Discount` lines with negative amounts.
- 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. Theme views use only token colour classes (`bg-accent`, `text-muted`, …). Resolve `Theme` lazily (`app(Theme::class)`), never in constructors – middleware `ResolveTheme` replaces it per request.
- Deployment: `scripts/deploy.sh <env> setup|deploy|rollback|releases|artisan` (atomic releases on Strato, docs/DEPLOYMENT.md); CI `.gitea/workflows/deploy.yml`. Production has no dev packages (no factories/Faker) – production seeding via `ProductionSeeder`.
- 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 admins via `RequireTwoFactorForAdmins`. 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`.
- 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`.
+87
View File
@@ -0,0 +1,87 @@
<?php
namespace App\Availability;
use App\Models\Property;
use Carbon\CarbonImmutable;
/**
* Free gaps in the calendar: runs of free nights with an occupied night (booking or block) directly
* before and after. Open-ended free periods (nothing booked behind them yet) are not gaps.
*/
class GapFinder
{
/** How far around a stay we look for the neighbouring occupations. */
private const LOOKAROUND_NIGHTS = 60;
public function __construct(private AvailabilityChecker $availability = new AvailabilityChecker) {}
/**
* Length in nights of the gap that contains the whole stay, or null if the stay is not inside a gap
* (because a night is occupied or the free period is not closed on both sides).
*/
public function gapContaining(Property $property, CarbonImmutable $arrival, CarbonImmutable $departure): ?int
{
$from = $arrival->subDays(self::LOOKAROUND_NIGHTS);
$until = $departure->addDays(self::LOOKAROUND_NIGHTS);
$occupied = $this->availability->occupiedNights($property, $from, $until);
for ($night = $arrival; $night->lessThan($departure); $night = $night->addDay()) {
if (isset($occupied[$night->toDateString()])) {
return null;
}
}
$start = $arrival;
while (! isset($occupied[$start->subDay()->toDateString()])) {
$start = $start->subDay();
if ($start->lessThanOrEqualTo($from)) {
return null;
}
}
$end = $departure;
while (! isset($occupied[$end->toDateString()])) {
$end = $end->addDay();
if ($end->greaterThanOrEqualTo($until)) {
return null;
}
}
return (int) $start->diffInDays($end);
}
/**
* Gaps of 1 … $maxNights nights starting within [$from, $until), as [arrival, departure] pairs.
*
* @return list<array{0: CarbonImmutable, 1: CarbonImmutable}>
*/
public function gaps(Property $property, CarbonImmutable $from, CarbonImmutable $until, int $maxNights): array
{
$occupied = $this->availability->occupiedNights($property, $from->subDay(), $until->addDays($maxNights + 1));
$gaps = [];
$night = $from;
while ($night->lessThan($until)) {
$isGapStart = ! isset($occupied[$night->toDateString()]) && isset($occupied[$night->subDay()->toDateString()]);
if (! $isGapStart) {
$night = $night->addDay();
continue;
}
$end = $night;
while (! isset($occupied[$end->toDateString()]) && $night->diffInDays($end) <= $maxNights) {
$end = $end->addDay();
}
if (isset($occupied[$end->toDateString()]) && $night->diffInDays($end) <= $maxNights) {
$gaps[] = [$night, $end];
}
$night = $end->addDay();
}
return $gaps;
}
}
+52
View File
@@ -0,0 +1,52 @@
<?php
namespace App\Console\Commands;
use App\Themes\ThemeChecker;
use App\Themes\ThemeRegistry;
use Illuminate\Console\Attributes\Description;
use Illuminate\Console\Attributes\Signature;
use Illuminate\Console\Command;
#[Signature('themes:check {theme? : Key des Themes (leer = alle)}')]
#[Description('Check themes against the theme contract (docs/THEME-ERSTELLUNG.md): manifest, build, required markup, colours, contrast')]
class CheckTheme extends Command
{
/**
* Execute the console command.
*/
public function handle(ThemeRegistry $registry, ThemeChecker $checker): int
{
$key = $this->argument('theme');
if ($key !== null && ! isset($registry->all()[$key])) {
$this->error("Theme „{$key}“ nicht gefunden. Installiert: ".implode(', ', array_keys($registry->all())));
return self::FAILURE;
}
$themes = $key !== null ? [$registry->all()[$key]] : array_values($registry->all());
$failed = false;
foreach ($themes as $theme) {
['errors' => $errors, 'warnings' => $warnings] = $checker->check($theme);
$this->line('');
$this->line("<options=bold>{$theme->name}</> ({$theme->key} {$theme->version}".($theme->parent ? ", Eltern-Theme {$theme->parent}" : '').')');
foreach ($errors as $error) {
$this->line(" <fg=red>✗</> {$error}");
}
foreach ($warnings as $warning) {
$this->line(" <fg=yellow>!</> {$warning}");
}
if ($errors === [] && $warnings === []) {
$this->line(' <fg=green>✓</> Alles in Ordnung.');
}
$failed = $failed || $errors !== [];
}
$this->line('');
return $failed ? self::FAILURE : self::SUCCESS;
}
}
+64
View File
@@ -0,0 +1,64 @@
<?php
namespace App\Console\Commands;
use App\Enums\UserRole;
use App\Models\User;
use Illuminate\Console\Attributes\Description;
use Illuminate\Console\Attributes\Signature;
use Illuminate\Console\Command;
use Illuminate\Validation\Rules\Password;
use function Laravel\Prompts\password;
use function Laravel\Prompts\select;
use function Laravel\Prompts\text;
#[Signature('users:create {email? : E-Mail-Adresse} {--name= : Name} {--role= : admin, rentals oder content}')]
#[Description('Create an admin panel account (the password is entered interactively and never passed as an argument)')]
class CreateUser extends Command
{
/**
* Execute the console command.
*/
public function handle(): int
{
$email = $this->argument('email') ?? text('E-Mail-Adresse', required: true, validate: ['email' => 'email']);
$email = mb_strtolower(trim($email));
if (User::where('email', $email)->exists()) {
$this->error("Es gibt bereits einen Benutzer mit {$email}.");
return self::FAILURE;
}
$name = $this->option('name') ?? text('Name', required: true);
$role = $this->option('role') !== null
? UserRole::tryFrom($this->option('role'))
: UserRole::from(select('Rolle', collect(UserRole::cases())->mapWithKeys(fn (UserRole $role): array => [$role->value => "{$role->getLabel()} – {$role->getDescription()}"])->all(), default: UserRole::Admin->value));
if ($role === null) {
$this->error('Unbekannte Rolle. Erlaubt: '.implode(', ', array_column(UserRole::cases(), 'value')));
return self::FAILURE;
}
$password = password('Passwort (mind. 12 Zeichen)', required: true, validate: ['password' => Password::min(12)]);
if (password('Passwort wiederholen', required: true) !== $password) {
$this->error('Die Passwörter stimmen nicht überein.');
return self::FAILURE;
}
User::create(['name' => $name, 'email' => $email, 'role' => $role, 'password' => $password]);
$this->info("Benutzer {$email} ({$role->getLabel()}) angelegt.");
if ($role === UserRole::Admin) {
$this->line('Bei der ersten Anmeldung wird die Zwei-Faktor-Anmeldung mit einer Authenticator-App eingerichtet.');
}
return self::SUCCESS;
}
}
+87 -17
View File
@@ -8,41 +8,111 @@
use Illuminate\Console\Attributes\Description;
use Illuminate\Console\Attributes\Signature;
use Illuminate\Console\Command;
use Spatie\MediaLibrary\MediaCollections\Models\Media;
#[Signature('photos:import {directory : Folder with JPG/PNG/WebP files} {--category=apartment : apartment, outdoor or area}')]
#[Description('Import all images of a folder as website photos (e.g. when migrating from the old website)')]
#[Signature('photos:import {directory : Folder with JPG/PNG/WebP files} {--category=apartment : apartment, outdoor or area} {--manifest= : CSV "file;category;alt_text" with paths relative to the folder (chooses and describes the photos)}')]
#[Description('Import images as website photos (e.g. when migrating from the old website); the source files are only read')]
class ImportPhotos extends Command
{
/**
* Execute the console command.
*/
public function handle(): int
{
$directory = rtrim((string) $this->argument('directory'), '/\\');
$entries = $this->option('manifest') !== null
? $this->manifestEntries((string) $this->option('manifest'), $directory)
: $this->folderEntries($directory);
if ($entries === null) {
return self::FAILURE;
}
$propertyId = Property::query()->value('id');
$sort = (int) Photo::max('sort_order');
$imported = 0;
foreach ($entries as ['file' => $file, 'category' => $category, 'alt_text' => $altText]) {
$source = str_replace('\\', '/', substr($file, strlen($directory) + 1));
if (! is_file($file)) {
$this->warn("Fehlt: {$source}");
continue;
}
if (Media::query()->where('collection_name', Photo::COLLECTION)->where('custom_properties->source', $source)->exists()) {
$this->line("– bereits vorhanden: {$source}");
continue;
}
$photo = Photo::create([
'property_id' => $category === PhotoCategory::Area ? null : $propertyId,
'category' => $category,
'alt_text' => $altText,
'sort_order' => ++$sort,
]);
$photo->addMedia($file)
->preservingOriginal()
->withCustomProperties(['source' => $source])
->toMediaCollection(Photo::COLLECTION);
$imported++;
$this->line("✓ {$photo->alt_text}");
}
$this->info("{$imported} Bilder importiert.");
return self::SUCCESS;
}
/**
* @return list<array{file: string, category: PhotoCategory, alt_text: string}>|null
*/
private function folderEntries(string $directory): ?array
{
$category = PhotoCategory::tryFrom((string) $this->option('category'));
if ($category === null) {
$this->error('Unbekannte Kategorie. Erlaubt: '.implode(', ', array_column(PhotoCategory::cases(), 'value')));
return self::FAILURE;
return null;
}
$files = glob(rtrim((string) $this->argument('directory'), '/\\').'/*.{jpg,jpeg,png,webp,JPG,JPEG,PNG,WEBP}', GLOB_BRACE) ?: [];
$propertyId = $category === PhotoCategory::Area ? null : Property::query()->value('id');
$sort = (int) Photo::max('sort_order');
$files = glob($directory.'/*.{jpg,jpeg,png,webp,JPG,JPEG,PNG,WEBP}', GLOB_BRACE) ?: [];
foreach ($files as $file) {
$photo = Photo::create([
'property_id' => $propertyId,
'category' => $category,
'alt_text' => str(pathinfo($file, PATHINFO_FILENAME))->replace(['_', '-'], ' ')->squish()->ucfirst()->toString(),
'sort_order' => ++$sort,
]);
$photo->addMedia($file)->preservingOriginal()->toMediaCollection(Photo::COLLECTION);
return array_map(fn (string $file): array => [
'file' => $file,
'category' => $category,
'alt_text' => str(pathinfo($file, PATHINFO_FILENAME))->replace(['_', '-'], ' ')->squish()->ucfirst()->toString(),
], $files);
}
$this->line("✓ {$photo->alt_text}");
/**
* @return list<array{file: string, category: PhotoCategory, alt_text: string}>|null
*/
private function manifestEntries(string $manifest, string $directory): ?array
{
if (! is_file($manifest)) {
$this->error("Liste nicht gefunden: {$manifest}");
return null;
}
$this->info(count($files).' Bilder importiert.');
$entries = [];
foreach (array_slice(file($manifest, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES) ?: [], 1) as $number => $line) {
[$file, $category, $altText] = array_pad(str_getcsv($line, ';', '"', ''), 3, '');
$category = PhotoCategory::tryFrom(trim($category));
return self::SUCCESS;
if ($category === null || trim($file) === '' || trim($altText) === '') {
$this->error('Ungültige Zeile '.($number + 2).": {$line}");
return null;
}
$entries[] = ['file' => $directory.'/'.ltrim(trim($file), '/'), 'category' => $category, 'alt_text' => trim($altText)];
}
return $entries;
}
}
+143
View File
@@ -0,0 +1,143 @@
<?php
namespace App\Console\Commands;
use App\Themes\ThemeManifest;
use App\Themes\ThemeRegistry;
use Illuminate\Console\Attributes\Description;
use Illuminate\Console\Attributes\Signature;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\File;
#[Signature('themes:make {key : Ordner/Key, z. B. ostsee-nacht} {--name= : Anzeigename} {--parent= : Eltern-Theme (Standard: Basis-Theme)} {--description= : Beschreibung für die Theme-Auswahl}')]
#[Description('Create a new theme next to the existing ones (never overwrites) – inherits everything until views are added')]
class MakeTheme extends Command
{
/**
* Execute the console command.
*/
public function handle(ThemeRegistry $registry): int
{
$key = (string) $this->argument('key');
$parent = (string) ($this->option('parent') ?: config('themes.base'));
$themesPath = rtrim((string) (config('themes.paths')[0] ?? resource_path('themes')), '/\\');
$path = "{$themesPath}/{$key}";
$folder = str_replace('\\', '/', ltrim(substr($path, strlen(base_path())), '/\\'));
if (! preg_match('/^[a-z0-9]+(-[a-z0-9]+)*$/', $key)) {
$this->error('Key: nur Kleinbuchstaben, Ziffern und Bindestriche, z. B. ostsee-nacht.');
return self::FAILURE;
}
if (File::exists($path) || isset($registry->all()[$key])) {
$this->error("Theme „{$key}“ gibt es schon – es wird nichts überschrieben.");
return self::FAILURE;
}
if (! isset($registry->all()[$parent])) {
$this->error("Eltern-Theme „{$parent}“ ist nicht installiert.");
return self::FAILURE;
}
$name = (string) ($this->option('name') ?: str($key)->replace('-', ' ')->title());
$manifest = [
'key' => $key,
'name' => $name,
'version' => '0.1.0',
'parent' => $parent,
'description' => (string) ($this->option('description') ?: "Neues Theme auf Basis von „{$registry->get($parent)->name}“."),
'assets' => ['css' => "{$folder}/theme.css", 'js' => "{$folder}/theme.js"],
'tokens' => $registry->tokens($parent),
];
File::ensureDirectoryExists("{$path}/views/sections");
File::ensureDirectoryExists("{$path}/views/partials");
File::put("{$path}/views/sections/.gitkeep", '');
File::put("{$path}/views/partials/.gitkeep", '');
File::put("{$path}/theme.json", json_encode($manifest, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE)."\n");
File::put("{$path}/theme.css", $this->css($name, $parent, $path, $registry));
File::put("{$path}/theme.js", $this->js($name, ThemeManifest::relativePath($path, $registry->get($parent)->path).'/theme.js'));
File::put("{$path}/README.md", $this->readme($name, $key, $parent));
$this->info("Theme „{$name}“ angelegt: {$folder}");
$this->line('Es erbt zunächst alles von „'.$parent.'“. Vorlagen nach views/ kopieren und umgestalten – Anleitung: docs/THEME-ERSTELLUNG.md');
$this->line("Prüfen: php artisan themes:check {$key} · Bauen: npm run build · Auswählen: Admin › System › Websites › Theme (dort „Vorschau“).");
return self::SUCCESS;
}
/**
* Child theme CSS: Tailwind, the reusable styles of the nearest ancestor that has a theme-base.css,
* and the template sources of all ancestors, the booking forms and the theme itself.
*/
private function css(string $name, string $parent, string $path, ThemeRegistry $registry): string
{
$ancestors = $registry->chain($parent);
$base = collect($ancestors)->first(fn (ThemeManifest $theme): bool => is_file($theme->path.'/theme-base.css')) ?? $ancestors[0];
$import = ThemeManifest::relativePath($path, $base->path).'/theme-base.css';
$sources = collect($ancestors)
->map(fn (ThemeManifest $theme): string => "@source '".ThemeManifest::relativePath($path, $theme->viewsPath())."';")
->push("@source '".ThemeManifest::relativePath($path, resource_path('views/livewire'))."';")
->push("@source './views';")
->implode("\n");
return <<<CSS
/*
* Theme „{$name}“ – Child von „{$parent}“ (Anleitung: docs/THEME-ERSTELLUNG.md).
* theme-base.css des Eltern-Themes bringt Schriften, Token-Mapping und Basis-Klassen (.eyebrow,
* .heading-display, .btn-primary, .btn-accent, .prose-theme, .reveal). Hier nur Abweichungen ergänzen.
*/
@import 'tailwindcss';
@import '{$import}';
/* Eigene Schriften selbst hosten: npm install @fontsource/<schrift> und hier importieren, z. B.
@import '@fontsource/fraunces/400.css';
*/
/* Vorlagen, deren Klassen gebaut werden: geerbte, Buchungsformulare, eigene. */
{$sources}
@theme inline {
/* --font-display: 'Fraunces', Georgia, serif; */
/* --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif; */
}
@layer components {
}
CSS;
}
private function js(string $name, string $import): string
{
return <<<JS
/**
* Theme „{$name}“: übernimmt Lightbox, Verfügbarkeitssuche und rollierende Angebote vom Eltern-Theme.
* Eigene Verbesserungen darunter – alles muss auch ohne JavaScript funktionieren.
*/
import '{$import}';
JS;
}
private function readme(string $name, string $key, string $parent): string
{
return <<<MD
# Theme „{$name}“ (`{$key}`)
Child-Theme von `{$parent}`. 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 {$key}`
- Ansehen ohne Umschalten: Admin › System › Websites › Theme „{$name}“ wählen › „Vorschau“ (erst danach speichern)
## Eigene Vorlagen
| Datei | Zweck |
|---|---|
| | |
MD;
}
}
+56
View File
@@ -0,0 +1,56 @@
<?php
namespace App\Console\Commands;
use App\Models\Page;
use App\Themes\ThemeFactory;
use App\Themes\ThemeRegistry;
use Illuminate\Console\Attributes\Description;
use Illuminate\Console\Attributes\Signature;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\URL;
#[Signature('themes:preview {theme : Key des Themes} {--hours=24 : Gültigkeit der Links}')]
#[Description('Print signed preview links: every page of the site with the theme, in every appearance – without switching the site')]
class PreviewTheme extends Command
{
/**
* Execute the console command.
*/
public function handle(ThemeRegistry $registry, ThemeFactory $factory): int
{
$key = (string) $this->argument('theme');
if (! isset($registry->all()[$key])) {
$this->error("Theme „{$key}“ nicht gefunden. Installiert: ".implode(', ', array_keys($registry->all())));
return self::FAILURE;
}
$site = $factory->site();
$expires = now()->addHours((int) $this->option('hours'));
$pages = $site->exists ? $site->pages()->where('is_published', true)->orderBy('sort_order')->get() : collect();
$appearances = $site->exists ? $site->appearances()->orderByDesc('is_default')->orderBy('starts_md')->get() : collect();
$this->info("Vorschau „{$registry->get($key)->name}“ für {$site->name} (gültig bis {$expires->format('d.m.Y H:i')}):");
foreach ($pages as $page) {
$this->line('');
$this->line("<options=bold>{$page->title}</>");
$this->line(' heute: '.$this->url($page, ['theme' => $key], $expires));
foreach ($appearances as $appearance) {
$this->line(str_pad(" {$appearance->name}:", 16).$this->url($page, ['theme' => $key, 'vorschau' => $appearance->id], $expires));
}
}
return self::SUCCESS;
}
/**
* @param array<string, mixed> $parameters
*/
private function url(Page $page, array $parameters, \DateTimeInterface $expires): string
{
return $page->isHome()
? URL::temporarySignedRoute('home', $expires, $parameters)
: URL::temporarySignedRoute('page', $expires, ['slug' => $page->slug, ...$parameters]);
}
}
+75
View File
@@ -0,0 +1,75 @@
<?php
namespace App\Enums;
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\Reviews\ReviewResource;
use Filament\Support\Contracts\HasDescription;
use Filament\Support\Contracts\HasLabel;
/**
* How much of the admin a user sees. It only shapes the menu – what a user may do is decided by the role.
*/
enum AdminMode: string implements HasDescription, HasLabel
{
case Simple = 'simple';
case Expert = 'expert';
/**
* Menu entries of the simple mode: day-to-day work with requests, bookings, contracts and the calendar.
*
* @var list<class-string>
*/
public const SIMPLE_NAVIGATION = [
BookingResource::class,
BlockedPeriodResource::class,
GuestResource::class,
ChannelTaskResource::class,
ReviewResource::class,
];
public function getLabel(): string
{
return match ($this) {
self::Simple => 'Einfache Ansicht',
self::Expert => 'Expertenansicht',
};
}
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::Expert => 'Alle Einstellungen: Preise, Angebote, Portale, Webseite, System',
};
}
/**
* Whether a resource or page appears in the menu in this mode.
*
* @param class-string $class
*/
public function shows(string $class): bool
{
return $this === self::Expert || in_array($class, self::SIMPLE_NAVIGATION, true);
}
/**
* Label of the user menu entry that switches to this mode.
*/
public function switchLabel(): string
{
return match ($this) {
self::Simple => 'Zur einfachen Ansicht wechseln',
self::Expert => 'Zur Expertenansicht wechseln',
};
}
public function other(): self
{
return $this === self::Simple ? self::Expert : self::Simple;
}
}
+9
View File
@@ -18,6 +18,9 @@ enum DiscountType: string implements HasLabel
/** discount_value = number of cheapest nights that are free */
case FreeNights = 'free_nights';
/** discount_value = package price in euro cents for all nights of the stay */
case FixedStayPrice = 'fixed_stay_price';
public function getLabel(): string
{
return match ($this) {
@@ -25,6 +28,12 @@ public function getLabel(): string
self::AmountPerStay => 'Rabatt in € pro Aufenthalt',
self::NightlyRate => 'Sonderpreis pro Nacht',
self::FreeNights => 'Gratis-Nächte',
self::FixedStayPrice => 'Pauschalpreis für den Aufenthalt',
};
}
public function isMoney(): bool
{
return in_array($this, [self::AmountPerStay, self::NightlyRate, self::FixedStayPrice], true);
}
}
+39
View File
@@ -0,0 +1,39 @@
<?php
namespace App\Enums;
use Filament\Support\Contracts\HasDescription;
use Filament\Support\Contracts\HasLabel;
/**
* How an offer finds its stays. All kinds are priced by PriceCalculator and advertised by OfferShowcase.
*/
enum OfferKind: string implements HasDescription, HasLabel
{
/** Conditions only (last minute, early bird, from N nights, weekend …). */
case Rule = 'rule';
/** One fixed arrival and departure (stay_from / stay_until), e.g. a week as a package. */
case FixedDates = 'fixed_dates';
/** Free gaps of at most max_gap_nights between two occupations, found automatically. */
case GapFiller = 'gap_filler';
public function getLabel(): string
{
return match ($this) {
self::Rule => 'Rabattaktion (nach Bedingungen)',
self::FixedDates => 'Fester Termin',
self::GapFiller => 'Lückenfüller (Kalenderlücken)',
};
}
public function getDescription(): string
{
return match ($this) {
self::Rule => 'Gilt für jeden Aufenthalt, der die Bedingungen erfüllt, z. B. Last Minute oder „ab 3 Nächten −10 %“.',
self::FixedDates => 'Ein bestimmter Zeitraum, z. B. „7 Nächte vom 07. bis 14.11.“ – wird nur beworben, solange er frei ist.',
self::GapFiller => 'Findet freie Lücken zwischen zwei Buchungen automatisch und bewirbt sie mit konkreten Terminen.',
};
}
}
@@ -0,0 +1,22 @@
<?php
namespace App\Filament\Concerns;
use App\Enums\AdminMode;
use App\Models\User;
use Filament\Facades\Filament;
/**
* Hides the menu entry in the simple admin mode unless it is part of AdminMode::SIMPLE_NAVIGATION.
* The page stays reachable by URL; access is governed by the policies.
*/
trait FollowsAdminMode
{
public static function shouldRegisterNavigation(): bool
{
$user = Filament::auth()->user();
$mode = $user instanceof User ? $user->adminMode() : AdminMode::Expert;
return parent::shouldRegisterNavigation() && $mode->shows(static::class);
}
}
@@ -0,0 +1,46 @@
<?php
namespace App\Filament\Forms\Components;
use App\Models\Photo;
use Filament\Forms\Components\Select;
/**
* Chooses website photos with a thumbnail next to each description, grouped by category,
* so editors see what they insert.
*/
class PhotoSelect extends Select
{
protected function setUp(): void
{
parent::setUp();
$this
->options(fn (): array => self::photoOptions())
->allowHtml()
->searchable()
->native(false);
}
/**
* @return array<string, array<int, string>>
*/
public static function photoOptions(): array
{
return Photo::query()->with('media')->orderBy('category')->orderBy('sort_order')->get()
->groupBy(fn (Photo $photo): string => $photo->category->getLabel())
->map(fn ($photos): array => $photos->mapWithKeys(fn (Photo $photo): array => [$photo->id => self::optionLabel($photo)])->all())
->all();
}
public static function optionLabel(Photo $photo): string
{
$thumbnail = $photo->url('sm');
$image = $thumbnail !== ''
? '<img src="'.e($thumbnail).'" alt="" loading="lazy" style="width:4.5rem;height:3rem;object-fit:cover;border-radius:.25rem;flex-shrink:0">'
: '<span style="width:4.5rem;height:3rem;border-radius:.25rem;background:#e5e7eb;flex-shrink:0"></span>';
$hidden = $photo->is_published ? '' : ' <em style="opacity:.6">(ausgeblendet)</em>';
return '<span style="display:flex;align-items:center;gap:.75rem">'.$image.'<span>'.e($photo->alt_text).$hidden.'</span></span>';
}
}
+5 -4
View File
@@ -3,7 +3,8 @@
namespace App\Filament\Pages;
use App\Enums\UserRole;
use App\Models\Photo;
use App\Filament\Concerns\FollowsAdminMode;
use App\Filament\Forms\Components\PhotoSelect;
use App\Support\Content;
use BackedEnum;
use Filament\Actions\Action;
@@ -29,6 +30,8 @@
*/
class EditContent extends Page
{
use FollowsAdminMode;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedPencilSquare;
protected static string|UnitEnum|null $navigationGroup = 'Webseite';
@@ -120,10 +123,8 @@ private function field(string $key, array $field): TextInput|Textarea|RichEditor
'richtext' => RichEditor::make($name)
->label($field['label'])
->toolbarButtons([['bold', 'italic', 'link'], ['h2', 'h3'], ['bulletList', 'orderedList'], ['undo', 'redo']]),
'photo' => Select::make($name)
'photo' => PhotoSelect::make($name)
->label($field['label'])
->options(fn (): array => Photo::query()->orderBy('category')->orderBy('sort_order')->pluck('alt_text', 'id')->all())
->searchable()
->placeholder('Kein Bild gewählt')
->helperText('Bilder verwalten Sie unter „Webseite › Bilder“.'),
default => TextInput::make($name)->label($field['label'])->maxLength(255),
@@ -2,6 +2,7 @@
namespace App\Filament\Resources\Amenities;
use App\Filament\Concerns\FollowsAdminMode;
use App\Filament\Resources\Amenities\Pages\CreateAmenity;
use App\Filament\Resources\Amenities\Pages\EditAmenity;
use App\Filament\Resources\Amenities\Pages\ListAmenities;
@@ -17,6 +18,8 @@
class AmenityResource extends Resource
{
use FollowsAdminMode;
protected static ?string $model = Amenity::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedListBullet;
@@ -2,6 +2,7 @@
namespace App\Filament\Resources\Appearances;
use App\Filament\Concerns\FollowsAdminMode;
use App\Filament\Resources\Appearances\Pages\CreateAppearance;
use App\Filament\Resources\Appearances\Pages\EditAppearance;
use App\Filament\Resources\Appearances\Pages\ListAppearances;
@@ -17,6 +18,8 @@
class AppearanceResource extends Resource
{
use FollowsAdminMode;
protected static ?string $model = Appearance::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedSwatch;
@@ -2,17 +2,23 @@
namespace App\Filament\Resources\Appearances\Schemas;
use App\Filament\Forms\Components\PhotoSelect;
use App\Models\Appearance;
use App\Models\Photo;
use App\Models\Page;
use App\Models\Site;
use App\Models\SpecialOffer;
use App\Themes\SectionRegistry;
use App\Themes\Sections\Section as SectionBlock;
use App\Themes\ThemeRegistry;
use Closure;
use Filament\Forms\Components\ColorPicker;
use Filament\Forms\Components\Radio;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Toggle;
use Filament\Schemas\Components\Component;
use Filament\Schemas\Components\Fieldset;
use Filament\Schemas\Components\Section;
use Filament\Schemas\Components\Text;
use Filament\Schemas\Components\Utilities\Get;
use Filament\Schemas\Schema;
@@ -39,19 +45,18 @@ public static function configure(Schema $schema): Schema
Toggle::make('is_default')->label('Standard (wenn kein Zeitraum passt)')->inline(false),
Toggle::make('is_active')->label('Aktiv')->default(true)->inline(false),
]),
Section::make('Bild & Angebot')
->columns(2)
Section::make('Titelbild')
->description('Gilt für alle Titelbereiche und als Vorschaubild beim Teilen in sozialen Medien – einzelne Bausteine können unten ein eigenes Bild bekommen. Sonderangebote werden unabhängig vom Erscheinungsbild beworben (Wohnung › Sonderangebote).')
->schema([
Select::make('hero_photo_id')
PhotoSelect::make('hero_photo_id')
->label('Titelbild')
->options(fn (): array => Photo::query()->orderBy('category')->orderBy('sort_order')->pluck('alt_text', 'id')->all())
->searchable()
->placeholder('Bild der Seite verwenden'),
Select::make('featured_offer_id')
->label('Hervorgehobenes Sonderangebot')
->options(fn (): array => SpecialOffer::query()->where('is_active', true)->pluck('name', 'id')->all())
->placeholder('keins'),
]),
Section::make('Bilder je Baustein')
->description('Für jeden Baustein mit Bildern ein eigenes Saisonbild wählen. Leer = Bild aus der Seite. Neue Bilder laden Sie unter Webseite › Fotos hoch.')
->collapsible()
->columnSpanFull()
->schema(fn (Get $get): array => self::sectionPhotoFields($get('site_id'))),
Section::make('Texte')
->description('Leer lassen = Text der Seite bzw. kein Banner.')
->columns(2)
@@ -69,14 +74,68 @@ public static function configure(Schema $schema): Schema
]);
}
/**
* One group per page and one field set per placed section that has photo slots
* (see Section::photoSlots); stored in section_photos[<section id>][<slot>].
*
* @return list<Component>
*/
public static function sectionPhotoFields(int|string|null $siteId): array
{
$registry = app(SectionRegistry::class);
$pages = Page::query()->where('site_id', $siteId)->orderBy('sort_order')->get();
$groups = [];
foreach ($pages as $page) {
$fieldsets = [];
foreach ($page->sections ?? [] as $stored) {
$class = $registry->all()[$stored['type'] ?? ''] ?? null;
$sectionId = $stored['data']['id'] ?? null;
if ($class === null || blank($sectionId) || $class::photoSlots() === []) {
continue;
}
$fields = [];
foreach ($class::photoSlots() as $slot => $definition) {
$field = PhotoSelect::make("section_photos.{$sectionId}.{$slot}")
->label($definition['label'])
->placeholder('Standard (Bild aus der Seite)')
->multiple($definition['type'] !== SectionBlock::SLOT_SINGLE);
if (isset($definition['max'])) {
$field->maxItems($definition['max']);
}
$fields[] = $field;
if ($definition['type'] === SectionBlock::SLOT_COLLECTION) {
$fields[] = Radio::make("section_photos.{$sectionId}.mode")
->label('Saisonbilder')
->options(['replace' => 'ersetzen die Bilder des Bausteins', 'prepend' => 'kommen zuerst, danach die übrigen'])
->default('replace')
->inline();
}
}
$fieldsets[] = Fieldset::make(collect([$class::label(), $class::summary($stored['data'] ?? [])])->filter()->implode(' · '))
->columns(1)
->schema($fields);
}
if ($fieldsets !== []) {
$groups[] = Section::make($page->title)->compact()->collapsible()->schema($fieldsets);
}
}
return $groups ?: [Text::make('Auf den Seiten gibt es noch keine Bausteine mit Bildern.')];
}
/**
* @return list<ColorPicker>
*/
public static function tokenFields(int|string|null $siteId, string $statePath = 'tokens'): array
public static function tokenFields(int|string|null $siteId, string $statePath = 'tokens', ?string $themeKey = null): array
{
$theme = Site::find($siteId)?->theme ?? config('themes.base');
$theme = $themeKey ?: (Site::find($siteId)?->theme ?? config('themes.base'));
return collect(app(ThemeRegistry::class)->get($theme)->tokens)
return collect(app(ThemeRegistry::class)->tokens($theme))
->map(fn (array $token, string $key): ColorPicker => ColorPicker::make("{$statePath}.{$key}")->label($token['label'])->placeholder($token['default']))
->values()
->all();
@@ -0,0 +1,105 @@
<?php
namespace App\Filament\Resources\BlockedPeriods;
use App\Filament\Concerns\FollowsAdminMode;
use App\Filament\Resources\BlockedPeriods\Pages\ManageBlockedPeriods;
use App\Models\BlockedPeriod;
use App\Models\Property;
use BackedEnum;
use Filament\Actions\DeleteAction;
use Filament\Actions\EditAction;
use Filament\Forms\Components\DatePicker;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Filament\Resources\Resource;
use Filament\Schemas\Schema;
use Filament\Support\Icons\Heroicon;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Filters\Filter;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Builder;
use UnitEnum;
/**
* All blocked periods of all apartments in one place (own use, renovation, portal occupations).
* Portal and e-mail blocks are maintained by the sync and can only be viewed here.
*/
class BlockedPeriodResource extends Resource
{
use FollowsAdminMode;
protected static ?string $model = BlockedPeriod::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedNoSymbol;
protected static string|UnitEnum|null $navigationGroup = 'Vermietung';
protected static ?string $modelLabel = 'Sperrzeit';
protected static ?string $pluralModelLabel = 'Sperrzeiten';
protected static ?int $navigationSort = 2;
public static function form(Schema $schema): Schema
{
return $schema
->columns(2)
->components([
Select::make('property_id')
->label('Wohnung')
->options(fn (): array => Property::query()->orderBy('name')->pluck('name', 'id')->all())
->default(fn (): ?int => Property::query()->where('is_active', true)->value('id'))
->required()
->columnSpanFull()
->hidden(fn (): bool => Property::query()->count() <= 1)
->dehydratedWhenHidden(),
DatePicker::make('starts_on')->label('Von (erste gesperrte Nacht)')->required(),
DatePicker::make('ends_on')->label('Bis (erster freier Tag)')->after('starts_on')->required(),
TextInput::make('reason')
->label('Grund')
->placeholder('z. B. Eigennutzung, Renovierung')
->maxLength(255)
->columnSpanFull(),
]);
}
public static function table(Table $table): Table
{
return $table
->description('Zeiträume, in denen die Wohnung nicht vermietet wird. Belegungen aus Portalen erscheinen hier automatisch.')
->defaultSort('starts_on')
->columns([
TextColumn::make('starts_on')->label('Von')->date('D, d.m.Y')->sortable(),
TextColumn::make('ends_on')->label('Bis')->date('D, d.m.Y'),
TextColumn::make('reason')->label('Grund')->placeholder('–'),
TextColumn::make('property.name')->label('Wohnung')->visible(fn (): bool => Property::query()->count() > 1),
TextColumn::make('source')
->label('Quelle')
->formatStateUsing(fn (string $state): string => match ($state) {
'manual' => 'von Hand',
'channel' => 'Portal-Kalender',
'email' => 'Portal-E-Mail',
default => $state,
})
->badge(),
])
->filters([
Filter::make('upcoming')
->label('Nur kommende')
->default()
->query(fn (Builder $query): Builder => $query->whereDate('ends_on', '>=', today())),
])
->recordActions([
EditAction::make()->visible(fn (BlockedPeriod $record): bool => $record->source === 'manual'),
DeleteAction::make()->visible(fn (BlockedPeriod $record): bool => $record->source === 'manual'),
]);
}
public static function getPages(): array
{
return [
'index' => ManageBlockedPeriods::route('/'),
];
}
}
@@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\BlockedPeriods\Pages;
use App\Filament\Resources\BlockedPeriods\BlockedPeriodResource;
use Filament\Actions\CreateAction;
use Filament\Resources\Pages\ManageRecords;
class ManageBlockedPeriods extends ManageRecords
{
protected static string $resource = BlockedPeriodResource::class;
protected function getHeaderActions(): array
{
return [
CreateAction::make()->label('Zeitraum sperren')->mutateDataUsing(fn (array $data): array => [...$data, 'source' => 'manual']),
];
}
}
@@ -3,6 +3,7 @@
namespace App\Filament\Resources\Bookings;
use App\Enums\BookingStatus;
use App\Filament\Concerns\FollowsAdminMode;
use App\Filament\Resources\Bookings\Pages\CreateBooking;
use App\Filament\Resources\Bookings\Pages\ListBookings;
use App\Filament\Resources\Bookings\Pages\ViewBooking;
@@ -20,6 +21,8 @@
class BookingResource extends Resource
{
use FollowsAdminMode;
protected static ?string $model = Booking::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedCalendarDays;
@@ -2,6 +2,7 @@
namespace App\Filament\Resources\ChannelTasks;
use App\Filament\Concerns\FollowsAdminMode;
use App\Filament\Resources\ChannelTasks\Pages\ListChannelTasks;
use App\Filament\Resources\ChannelTasks\Tables\ChannelTasksTable;
use App\Models\ChannelTask;
@@ -13,6 +14,8 @@
class ChannelTaskResource extends Resource
{
use FollowsAdminMode;
protected static ?string $model = ChannelTask::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedClipboardDocumentCheck;
@@ -2,6 +2,7 @@
namespace App\Filament\Resources\Faqs;
use App\Filament\Concerns\FollowsAdminMode;
use App\Filament\Resources\Faqs\Pages\CreateFaq;
use App\Filament\Resources\Faqs\Pages\EditFaq;
use App\Filament\Resources\Faqs\Pages\ListFaqs;
@@ -17,6 +18,8 @@
class FaqResource extends Resource
{
use FollowsAdminMode;
protected static ?string $model = Faq::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedQuestionMarkCircle;
@@ -2,6 +2,7 @@
namespace App\Filament\Resources\Guests;
use App\Filament\Concerns\FollowsAdminMode;
use App\Filament\Resources\Guests\Pages\CreateGuest;
use App\Filament\Resources\Guests\Pages\EditGuest;
use App\Filament\Resources\Guests\Pages\ListGuests;
@@ -18,6 +19,8 @@
class GuestResource extends Resource
{
use FollowsAdminMode;
protected static ?string $model = Guest::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedUsers;
@@ -2,6 +2,7 @@
namespace App\Filament\Resources\Notices;
use App\Filament\Concerns\FollowsAdminMode;
use App\Filament\Resources\Notices\Pages\CreateNotice;
use App\Filament\Resources\Notices\Pages\EditNotice;
use App\Filament\Resources\Notices\Pages\ListNotices;
@@ -17,6 +18,8 @@
class NoticeResource extends Resource
{
use FollowsAdminMode;
protected static ?string $model = Notice::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedMegaphone;
@@ -2,6 +2,7 @@
namespace App\Filament\Resources\Pages;
use App\Filament\Concerns\FollowsAdminMode;
use App\Filament\Resources\Pages\Pages\CreatePage;
use App\Filament\Resources\Pages\Pages\EditPage;
use App\Filament\Resources\Pages\Pages\ListPages;
@@ -17,6 +18,8 @@
class PageResource extends Resource
{
use FollowsAdminMode;
protected static ?string $model = Page::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedDocumentDuplicate;
@@ -2,6 +2,7 @@
namespace App\Filament\Resources\Photos;
use App\Filament\Concerns\FollowsAdminMode;
use App\Filament\Resources\Photos\Pages\CreatePhoto;
use App\Filament\Resources\Photos\Pages\EditPhoto;
use App\Filament\Resources\Photos\Pages\ListPhotos;
@@ -17,6 +18,8 @@
class PhotoResource extends Resource
{
use FollowsAdminMode;
protected static ?string $model = Photo::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedPhoto;
@@ -3,6 +3,7 @@
namespace App\Filament\Resources\PortalEmails;
use App\Enums\PortalEmailStatus;
use App\Filament\Concerns\FollowsAdminMode;
use App\Filament\Resources\PortalEmails\Pages\ListPortalEmails;
use App\Filament\Resources\PortalEmails\Tables\PortalEmailsTable;
use App\Models\PortalEmail;
@@ -14,6 +15,8 @@
class PortalEmailResource extends Resource
{
use FollowsAdminMode;
protected static ?string $model = PortalEmail::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedEnvelopeOpen;
@@ -2,6 +2,7 @@
namespace App\Filament\Resources\Properties;
use App\Filament\Concerns\FollowsAdminMode;
use App\Filament\Resources\Properties\Pages\CreateProperty;
use App\Filament\Resources\Properties\Pages\EditProperty;
use App\Filament\Resources\Properties\Pages\ListProperties;
@@ -22,6 +23,8 @@
class PropertyResource extends Resource
{
use FollowsAdminMode;
protected static ?string $model = Property::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedHomeModern;
@@ -3,8 +3,8 @@
namespace App\Filament\Resources\Properties\RelationManagers;
use App\Enums\DiscountType;
use App\Enums\OfferKind;
use App\Models\SpecialOffer;
use App\Support\Money;
use Filament\Actions\CreateAction;
use Filament\Actions\DeleteAction;
use Filament\Actions\EditAction;
@@ -12,12 +12,14 @@
use Filament\Forms\Components\CheckboxList;
use Filament\Forms\Components\DatePicker;
use Filament\Forms\Components\DateTimePicker;
use Filament\Forms\Components\Radio;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Toggle;
use Filament\Resources\RelationManagers\RelationManager;
use Filament\Schemas\Components\Section;
use Filament\Schemas\Components\Utilities\Get;
use Filament\Schemas\Components\Utilities\Set;
use Filament\Schemas\Schema;
use Filament\Tables\Columns\IconColumn;
use Filament\Tables\Columns\TextColumn;
@@ -33,10 +35,48 @@ class SpecialOffersRelationManager extends RelationManager
protected static ?string $pluralModelLabel = 'Sonderangebote';
/**
* Starting points for typical offers in the create form.
*
* @var array<string, array{label: string, values: array<string, mixed>}>
*/
private const PRESETS = [
'last_minute' => ['label' => 'Last Minute (−15 %, bis 14 Tage vor Anreise)', 'values' => ['kind' => 'rule', 'name' => 'Last Minute', 'discount_type' => 'percent', 'discount_value' => 15, 'max_days_before_arrival' => 14]],
'early_bird' => ['label' => 'Frühbucher (−5 %, ab 180 Tage vor Anreise)', 'values' => ['kind' => 'rule', 'name' => 'Frühbucher', 'discount_type' => 'percent', 'discount_value' => 5, 'min_days_before_arrival' => 180]],
'long_stay' => ['label' => 'Längerer Aufenthalt (ab 3 Nächten −10 %)', 'values' => ['kind' => 'rule', 'name' => 'Ab 3 Nächten', 'discount_type' => 'percent', 'discount_value' => 10, 'min_nights' => 3]],
'week' => ['label' => '7 = 6 (eine Nacht gratis ab 7 Nächten)', 'values' => ['kind' => 'rule', 'name' => '7 Nächte bleiben, 6 bezahlen', 'discount_type' => 'free_nights', 'discount_value' => 1, 'min_nights' => 7]],
'weekend' => ['label' => 'Special Weekend (Anreise Freitag, 2 Nächte)', 'values' => ['kind' => 'rule', 'name' => 'Special Weekend', 'discount_type' => 'percent', 'discount_value' => 10, 'arrival_weekdays' => [5], 'min_nights' => 2, 'max_nights' => 2]],
'gap' => ['label' => 'Lückenfüller (Lücken bis 4 Nächte −20 %)', 'values' => ['kind' => 'gap_filler', 'name' => 'Kurzfristige Lücke', 'discount_type' => 'percent', 'discount_value' => 20, 'max_gap_nights' => 4, 'waives_min_stay' => true]],
'fixed_week' => ['label' => 'Fester Termin (eine Woche zum Pauschalpreis)', 'values' => ['kind' => 'fixed_dates', 'name' => 'Ostsee-Woche', 'discount_type' => 'fixed_stay_price']],
];
public function form(Schema $schema): Schema
{
return $schema
->components([
Section::make('Art des Angebots')
->columns(2)
->schema([
Select::make('preset')
->label('Vorlage (optional)')
->helperText('Füllt typische Einstellungen vor – alles bleibt änderbar.')
->options(collect(self::PRESETS)->map(fn (array $preset): string => $preset['label'])->all())
->dehydrated(false)
->live()
->afterStateUpdated(function (?string $state, Set $set): void {
foreach (self::PRESETS[$state]['values'] ?? [] as $field => $value) {
$set($field, $value);
}
})
->visibleOn('create'),
Radio::make('kind')
->label('Art')
->options(OfferKind::class)
->default(OfferKind::Rule)
->live()
->required()
->columnSpanFull(),
]),
Section::make('Angebot')
->columns(2)
->schema([
@@ -60,24 +100,54 @@ public function form(Schema $schema): Schema
DiscountType::AmountPerStay => 'Rabatt pro Aufenthalt',
DiscountType::NightlyRate => 'Sonderpreis pro Nacht',
DiscountType::FreeNights => 'Anzahl Gratis-Nächte',
DiscountType::FixedStayPrice => 'Pauschalpreis für alle Nächte',
})
->suffix(fn (Get $get): string => match ($this->discountType($get)) {
DiscountType::Percent => '%',
DiscountType::FreeNights => 'Nächte',
default => '€',
})
->helperText(fn (Get $get): ?string => $this->discountType($get) === DiscountType::FreeNights ? 'Die günstigsten Nächte des Aufenthalts sind gratis.' : null)
->helperText(fn (Get $get): ?string => match ($this->discountType($get)) {
DiscountType::FreeNights => 'Die günstigsten Nächte des Aufenthalts sind gratis.',
DiscountType::FixedStayPrice => 'Übernachtungen zusammen; Endreinigung und Extras kommen dazu.',
default => null,
})
->numeric()
->minValue(0)
->required()
->formatStateUsing(fn (?int $state, ?SpecialOffer $record): int|string|null => $state !== null && $this->isMoney($record?->discount_type) ? number_format($state / 100, 2, '.', '') : $state)
->dehydrateStateUsing(fn (string|int|float|null $state, Get $get): int => $this->isMoney($this->discountType($get)) ? (int) round((float) $state * 100) : (int) $state),
->formatStateUsing(fn (?int $state, ?SpecialOffer $record): int|string|null => $state !== null && $record?->discount_type?->isMoney() ? number_format($state / 100, 2, '.', '') : $state)
->dehydrateStateUsing(fn (string|int|float|null $state, Get $get): int => $this->discountType($get)->isMoney() ? (int) round((float) $state * 100) : (int) $state),
Toggle::make('is_active')->label('Aktiv')->default(true),
Toggle::make('is_public')->label('Auf der Webseite bewerben')->default(true),
Toggle::make('is_combinable')
->label('Mit anderen kombinierbaren Angeboten kombinierbar')
->helperText('Sonst erhält der Gast automatisch das für ihn beste Einzelangebot.')
->columnSpanFull(),
->helperText('Sonst erhält der Gast automatisch das für ihn beste Einzelangebot.'),
]),
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.')
->columns(3)
->schema([
Toggle::make('is_public')->label('Auf der Webseite bewerben')->default(true),
Toggle::make('is_featured')->label('Hervorheben')->helperText('Steht vorne, ist farbig markiert und erscheint im Titelbereich.'),
TextInput::make('priority')->label('Priorität')->helperText('Höher = weiter vorne')->integer()->default(0),
]),
Section::make('Termin')
->description('Der Gast muss genau diesen Zeitraum buchen. Beworben wird er nur, solange er frei ist.')
->columns(2)
->visible(fn (Get $get): bool => $this->kind($get) === OfferKind::FixedDates)
->schema([
DatePicker::make('stay_from')->label('Anreise')->required(),
DatePicker::make('stay_until')->label('Abreise')->after('stay_from')->required(),
]),
Section::make('Kalenderlücken')
->description('Freie Zeiträume zwischen zwei Buchungen oder Sperrzeiten. Die Webseite zeigt bis zu drei gefundene Lücken mit Termin und Preis.')
->columns(2)
->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.')
@@ -103,15 +173,15 @@ public function form(Schema $schema): Schema
->helperText('Frühbucher, z. B. 180')
->integer()
->minValue(0),
TextInput::make('min_nights')->label('Mindestens Nächte')->integer()->minValue(1),
TextInput::make('max_nights')->label('Höchstens Nächte')->integer()->minValue(1),
TextInput::make('min_nights')->label('Mindestens Nächte')->integer()->minValue(1)->hidden(fn (Get $get): bool => $this->kind($get) === OfferKind::FixedDates),
TextInput::make('max_nights')->label('Höchstens Nächte')->integer()->minValue(1)->hidden(fn (Get $get): bool => $this->kind($get) === OfferKind::FixedDates),
CheckboxList::make('arrival_weekdays')
->label('Anreise nur am')
->options([1 => 'Mo', 2 => 'Di', 3 => 'Mi', 4 => 'Do', 5 => 'Fr', 6 => 'Sa', 7 => 'So'])
->columns(7)
->columnSpanFull(),
DatePicker::make('stay_from')->label('Aufenthalt frühestens ab'),
DatePicker::make('stay_until')->label('Abreise spätestens am'),
DatePicker::make('stay_from')->label('Aufenthalt frühestens ab')->hidden(fn (Get $get): bool => $this->kind($get) === OfferKind::FixedDates),
DatePicker::make('stay_until')->label('Abreise spätestens am')->hidden(fn (Get $get): bool => $this->kind($get) === OfferKind::FixedDates),
DateTimePicker::make('bookable_from')->label('Buchbar ab')->seconds(false),
DateTimePicker::make('bookable_until')->label('Buchbar bis')->seconds(false),
]),
@@ -122,19 +192,22 @@ public function table(Table $table): Table
{
return $table
->recordTitleAttribute('name')
->defaultSort('priority', 'desc')
->description('Sonderangebote werden bei jeder Preisberechnung automatisch geprüft und angewendet.')
->columns([
TextColumn::make('name')
->label('Angebot')
->description(fn (SpecialOffer $record): ?string => $record->public_description),
TextColumn::make('kind')->label('Art')->badge(),
TextColumn::make('discount')
->label('Vorteil')
->state(fn (SpecialOffer $record): string => match ($record->discount_type) {
DiscountType::Percent => "−{$record->discount_value} %",
DiscountType::AmountPerStay => '−'.Money::format($record->discount_value),
DiscountType::NightlyRate => Money::format($record->discount_value).' / Nacht',
DiscountType::FreeNights => "{$record->discount_value} Nacht/Nächte gratis",
}),
->state(fn (SpecialOffer $record): string => $record->advantageLabel()),
TextColumn::make('conditions')
->label('Bedingungen')
->state(fn (SpecialOffer $record): string => implode(' · ', $record->conditionSummary()) ?: '–')
->wrap(),
IconColumn::make('is_featured')->label('Hervorgehoben')->boolean(),
TextColumn::make('priority')->label('Priorität')->sortable(),
TextColumn::make('code')->label('Code')->placeholder('automatisch')->badge(),
TextColumn::make('season_names')->label('Saisons')->badge()->placeholder('alle'),
IconColumn::make('is_combinable')->label('Kombinierbar')->boolean(),
@@ -157,8 +230,10 @@ private function discountType(Get $get): DiscountType
return $type instanceof DiscountType ? $type : (DiscountType::tryFrom((string) $type) ?? DiscountType::Percent);
}
private function isMoney(?DiscountType $type): bool
private function kind(Get $get): OfferKind
{
return in_array($type, [DiscountType::AmountPerStay, DiscountType::NightlyRate], true);
$kind = $get('kind');
return $kind instanceof OfferKind ? $kind : (OfferKind::tryFrom((string) $kind) ?? OfferKind::Rule);
}
}
@@ -3,6 +3,7 @@
namespace App\Filament\Resources\Reviews;
use App\Enums\ReviewStatus;
use App\Filament\Concerns\FollowsAdminMode;
use App\Filament\Resources\Reviews\Pages\CreateReview;
use App\Filament\Resources\Reviews\Pages\EditReview;
use App\Filament\Resources\Reviews\Pages\ListReviews;
@@ -18,6 +19,8 @@
class ReviewResource extends Resource
{
use FollowsAdminMode;
protected static ?string $model = Review::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedStar;
@@ -5,12 +5,14 @@
use App\Filament\Resources\Appearances\Schemas\AppearanceForm;
use App\Models\Site;
use App\Themes\ThemeRegistry;
use Filament\Actions\Action;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Toggle;
use Filament\Schemas\Components\Section;
use Filament\Schemas\Components\Utilities\Get;
use Filament\Schemas\Schema;
use Illuminate\Support\Facades\URL;
class SiteForm
{
@@ -29,14 +31,26 @@ public static function configure(Schema $schema): Schema
->helperText('Leer = Standard-Website für alle Adressen ohne eigene Zuordnung.')
->unique(ignoreRecord: true)
->maxLength(190),
Select::make('theme')->label('Theme')->options(fn (): array => app(ThemeRegistry::class)->options())->default(config('themes.base'))->required()->live(),
Select::make('theme')
->label('Theme')
->options(fn (): array => app(ThemeRegistry::class)->options())
->default(config('themes.base'))
->required()
->live()
->helperText(fn (Get $get): ?string => filled($get('theme')) ? app(ThemeRegistry::class)->get($get('theme'))->description : null)
->hintAction(
Action::make('previewTheme')
->label('Vorschau')
->icon('heroicon-o-eye')
->url(fn (Get $get): string => URL::temporarySignedRoute('home', now()->addDay(), ['theme' => $get('theme') ?: config('themes.base')]), shouldOpenInNewTab: true),
),
Toggle::make('is_default')->label('Standard-Website')->inline(false),
]),
Section::make('Farben des Themes')
->description('Grundfarben dieser Website; saisonale Erscheinungsbilder können einzelne Farben zusätzlich ändern.')
->columns(3)
->collapsible()
->schema(fn (Get $get, ?Site $record): array => AppearanceForm::tokenFields($record?->id, 'theme_settings.tokens')),
->schema(fn (Get $get, ?Site $record): array => AppearanceForm::tokenFields($record?->id, 'theme_settings.tokens', $get('theme'))),
]);
}
}
@@ -2,6 +2,7 @@
namespace App\Filament\Resources\Sites;
use App\Filament\Concerns\FollowsAdminMode;
use App\Filament\Resources\Sites\Pages\CreateSite;
use App\Filament\Resources\Sites\Pages\EditSite;
use App\Filament\Resources\Sites\Pages\ListSites;
@@ -17,6 +18,8 @@
class SiteResource extends Resource
{
use FollowsAdminMode;
protected static ?string $model = Site::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedGlobeAlt;
@@ -2,6 +2,7 @@
namespace App\Filament\Resources\Users\Schemas;
use App\Enums\AdminMode;
use App\Enums\UserRole;
use Filament\Forms\Components\Radio;
use Filament\Forms\Components\TextInput;
@@ -26,9 +27,15 @@ public static function configure(Schema $schema): Schema
->maxLength(255),
Radio::make('role')
->label('Rolle')
->helperText('Bestimmt, was die Person darf.')
->options(UserRole::class)
->required()
->columnSpanFull(),
Radio::make('admin_mode')
->label('Ansicht')
->helperText('Bestimmt nur, was im Menü erscheint. Leer = Administratoren Expertenansicht, alle anderen einfache Ansicht. Jederzeit umschaltbar über das Benutzermenü oben rechts.')
->options(AdminMode::class)
->columnSpanFull(),
TextInput::make('password')
->label(fn (string $operation): string => $operation === 'create' ? 'Passwort' : 'Neues Passwort (leer lassen = unverändert)')
->password()
@@ -2,8 +2,13 @@
namespace App\Filament\Resources\Users\Tables;
use App\Models\User;
use Filament\Actions\Action;
use Filament\Actions\DeleteAction;
use Filament\Actions\EditAction;
use Filament\Notifications\Notification;
use Filament\Support\Icons\Heroicon;
use Filament\Tables\Columns\IconColumn;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Table;
@@ -16,9 +21,23 @@ public static function configure(Table $table): Table
TextColumn::make('name')->label('Name')->searchable(),
TextColumn::make('email')->label('E-Mail')->searchable(),
TextColumn::make('role')->label('Rolle')->badge(),
TextColumn::make('mode')->label('Ansicht')->state(fn (User $record): string => $record->adminMode()->getLabel()),
IconColumn::make('two_factor')->label('2FA')->state(fn (User $record): bool => filled($record->getAppAuthenticationSecret()))->boolean(),
])
->recordActions([
EditAction::make(),
Action::make('resetTwoFactor')
->label('2FA zurücksetzen')
->icon(Heroicon::OutlinedKey)
->color('warning')
->requiresConfirmation()
->modalDescription('Zum Beispiel bei verlorenem Handy: Die Person richtet die Zwei-Faktor-Anmeldung bei der nächsten Anmeldung neu ein.')
->visible(fn (User $record): bool => filled($record->getAppAuthenticationSecret()))
->action(function (User $record): void {
$record->saveAppAuthenticationSecret(null);
$record->saveAppAuthenticationRecoveryCodes(null);
Notification::make()->title('2FA zurückgesetzt')->success()->send();
}),
DeleteAction::make(),
]);
}
@@ -2,6 +2,7 @@
namespace App\Filament\Resources\Users;
use App\Filament\Concerns\FollowsAdminMode;
use App\Filament\Resources\Users\Pages\CreateUser;
use App\Filament\Resources\Users\Pages\EditUser;
use App\Filament\Resources\Users\Pages\ListUsers;
@@ -17,6 +18,8 @@
class UserResource extends Resource
{
use FollowsAdminMode;
protected static ?string $model = User::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedUserGroup;
@@ -0,0 +1,28 @@
<?php
namespace App\Http\Middleware;
use App\Enums\UserRole;
use App\Models\User;
use Closure;
use Filament\Auth\MultiFactor\Http\Middleware\EnsureMultiFactorAuthenticationIsEnabled;
use Filament\Facades\Filament;
use Illuminate\Http\Request;
/**
* Filament evaluates "two-factor required" once per panel; this narrows it to administrators.
* Other roles may set it up voluntarily in their profile.
*/
class RequireTwoFactorForAdmins extends EnsureMultiFactorAuthenticationIsEnabled
{
public function handle(Request $request, Closure $next): mixed
{
$user = Filament::auth()->user();
if (! $user instanceof User || ! $user->hasRole(UserRole::Admin)) {
return $next($request);
}
return parent::handle($request, $next);
}
}
+4 -10
View File
@@ -11,10 +11,11 @@
/**
* A seasonal look of a site (e.g. summer, winter, Christmas, New Year's Eve): colour tokens, hero photo,
* texts and banner change – the page structure does not. The period recurs every year ("MM-DD" to "MM-DD",
* photos per section, texts and banner change – the page structure does not (sections may be limited to
* appearances, see SectionRegistry). Offers are advertised by their own rules (OfferShowcase). The period recurs every year ("MM-DD" to "MM-DD",
* inclusive; a period may run over the turn of the year). The default appearance applies when none matches.
*/
#[Fillable(['site_id', 'name', 'starts_md', 'ends_md', 'priority', 'is_default', 'is_active', 'tokens', 'overrides', 'hero_photo_id', 'featured_offer_id'])]
#[Fillable(['site_id', 'name', 'starts_md', 'ends_md', 'priority', 'is_default', 'is_active', 'tokens', 'overrides', 'hero_photo_id', 'section_photos'])]
class Appearance extends Model
{
/** @use HasFactory<AppearanceFactory> */
@@ -46,6 +47,7 @@ protected function casts(): array
'is_active' => 'boolean',
'tokens' => 'array',
'overrides' => 'array',
'section_photos' => 'array',
];
}
@@ -65,14 +67,6 @@ public function heroPhoto(): BelongsTo
return $this->belongsTo(Photo::class, 'hero_photo_id');
}
/**
* @return BelongsTo<SpecialOffer, $this>
*/
public function featuredOffer(): BelongsTo
{
return $this->belongsTo(SpecialOffer::class, 'featured_offer_id');
}
public function covers(CarbonInterface $date): bool
{
if ($this->starts_md === null || $this->ends_md === null) {
+31
View File
@@ -7,6 +7,7 @@
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Support\Str;
/**
* A page of a site, composed of sections from the catalogue (App\Themes\Sections).
@@ -59,4 +60,34 @@ public function label(): string
{
return $this->menu_label ?: $this->title;
}
protected static function booted(): void
{
static::saving(function (Page $page): void {
$page->sections = self::assignSectionIds($page->sections ?? []);
});
}
/**
* Gives every placed section a stable id (data.id) – new and duplicated sections get a fresh one –
* so appearances can address sections independently of their order.
*
* @param list<array{type: string, data?: array<string, mixed>}> $sections
* @return list<array{type: string, data: array<string, mixed>}>
*/
public static function assignSectionIds(array $sections): array
{
$seen = [];
return array_values(array_map(function (array $section) use (&$seen): array {
$data = $section['data'] ?? [];
$id = $data['id'] ?? null;
if (! is_string($id) || $id === '' || isset($seen[$id])) {
$id = (string) Str::uuid();
}
$seen[$id] = true;
return [...$section, 'data' => [...$data, 'id' => $id]];
}, $sections));
}
}
+67 -3
View File
@@ -3,7 +3,9 @@
namespace App\Models;
use App\Enums\DiscountType;
use App\Enums\OfferKind;
use App\Pricing\StayRequest;
use App\Support\Money;
use Carbon\CarbonImmutable;
use Database\Factories\SpecialOfferFactory;
use Illuminate\Database\Eloquent\Attributes\Fillable;
@@ -14,16 +16,19 @@
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* A discount rule such as last minute, early bird, long stay, special weekends or a code for regular guests.
* Every condition left empty means "no restriction".
* A discount rule such as last minute, early bird, long stay, special weekends or a code for regular guests,
* a fixed date package or a gap filler (see OfferKind). Every condition left empty means "no restriction".
*/
#[Fillable([
'property_id',
'name',
'kind',
'public_description',
'is_active',
'is_public',
'is_combinable',
'priority',
'is_featured',
'code',
'discount_type',
'discount_value',
@@ -35,6 +40,8 @@
'max_days_before_arrival',
'min_nights',
'max_nights',
'max_gap_nights',
'waives_min_stay',
'arrival_weekdays',
'season_names',
])]
@@ -54,6 +61,9 @@ protected function casts(): array
'is_active' => 'boolean',
'is_public' => 'boolean',
'is_combinable' => 'boolean',
'is_featured' => 'boolean',
'waives_min_stay' => 'boolean',
'kind' => OfferKind::class,
'discount_type' => DiscountType::class,
'stay_from' => 'immutable_date',
'stay_until' => 'immutable_date',
@@ -84,13 +94,23 @@ protected function active(Builder $query): Builder
/**
* Whether all conditions are met. Offers with a code only apply when the guest entered that code.
* $gapNights is the length of the calendar gap containing the stay (null = not inside a gap); it only
* matters for gap fillers.
*/
public function appliesTo(StayRequest $stay, string $arrivalSeasonName, CarbonImmutable $bookedAt): bool
public function appliesTo(StayRequest $stay, string $arrivalSeasonName, CarbonImmutable $bookedAt, ?int $gapNights = null): bool
{
$nights = $stay->nights();
$daysBeforeArrival = (int) $bookedAt->startOfDay()->diffInDays($stay->arrival, false);
$kindMatches = match ($this->kind ?? OfferKind::Rule) {
OfferKind::Rule => true,
OfferKind::FixedDates => $this->stay_from !== null && $this->stay_until !== null
&& $stay->arrival->isSameDay($this->stay_from) && $stay->departure->isSameDay($this->stay_until),
OfferKind::GapFiller => $gapNights !== null && ($this->max_gap_nights === null || $gapNights <= $this->max_gap_nights),
};
return $this->is_active
&& $kindMatches
&& ($this->code === null || strcasecmp($this->code, (string) $stay->promoCode) === 0)
&& ($this->stay_from === null || $stay->arrival->greaterThanOrEqualTo($this->stay_from))
&& ($this->stay_until === null || $stay->departure->lessThanOrEqualTo($this->stay_until))
@@ -118,11 +138,55 @@ public function discountFor(array $nightlyRates): int
DiscountType::AmountPerStay => $this->discount_value,
DiscountType::NightlyRate => array_sum(array_map(fn (int $rate): int => max(0, $rate - $this->discount_value), $nightlyRates)),
DiscountType::FreeNights => array_sum(array_slice($this->sortedAscending($nightlyRates), 0, $this->discount_value)),
DiscountType::FixedStayPrice => max(0, $accommodation - $this->discount_value),
};
return min($discount, $accommodation);
}
/**
* Short label of the advantage, e.g. "−10 %", "59,00 € / Nacht" or "Pauschal 560,00 €".
*/
public function advantageLabel(): string
{
return match ($this->discount_type) {
DiscountType::Percent => "−{$this->discount_value} %",
DiscountType::AmountPerStay => '−'.Money::format($this->discount_value),
DiscountType::NightlyRate => Money::format($this->discount_value).' / Nacht',
DiscountType::FreeNights => $this->discount_value === 1 ? '1 Nacht gratis' : "{$this->discount_value} Nächte gratis",
DiscountType::FixedStayPrice => 'Pauschal '.Money::format($this->discount_value),
};
}
/**
* The conditions in plain German for guests, e.g. ["ab 3 Nächten", "Anreise freitags", "bis 14 Tage vor Anreise"].
*
* @return list<string>
*/
public function conditionSummary(): array
{
$weekdays = [1 => 'montags', 2 => 'dienstags', 3 => 'mittwochs', 4 => 'donnerstags', 5 => 'freitags', 6 => 'samstags', 7 => 'sonntags'];
return array_values(array_filter([
match (true) {
$this->kind === OfferKind::FixedDates => null,
$this->min_nights !== null && $this->max_nights !== null && $this->min_nights === $this->max_nights => "genau {$this->min_nights} Nächte",
$this->min_nights !== null && $this->max_nights !== null => "{$this->min_nights} bis {$this->max_nights} Nächte",
$this->min_nights !== null => "ab {$this->min_nights} Nächten",
$this->max_nights !== null => "bis {$this->max_nights} Nächte",
default => null,
},
empty($this->arrival_weekdays) ? null : 'Anreise '.collect($this->arrival_weekdays)->map(fn ($day): string => $weekdays[(int) $day] ?? '')->implode(' oder '),
$this->max_days_before_arrival !== null ? "Buchung bis {$this->max_days_before_arrival} Tage vor Anreise" : null,
$this->min_days_before_arrival !== null ? "Buchung mindestens {$this->min_days_before_arrival} Tage vor Anreise" : null,
empty($this->season_names) ? null : 'Anreise in: '.implode(', ', $this->season_names),
$this->kind !== OfferKind::FixedDates && ($this->stay_from || $this->stay_until)
? 'Reisezeitraum '.($this->stay_from?->format('d.m.Y') ?? 'ab sofort').' – '.($this->stay_until?->format('d.m.Y') ?? 'offen')
: null,
$this->bookable_until !== null ? 'buchbar bis '.$this->bookable_until->format('d.m.Y') : null,
]));
}
/**
* @param list<int> $rates
* @return list<int>
+17 -3
View File
@@ -3,8 +3,13 @@
namespace App\Models;
// use Illuminate\Contracts\Auth\MustVerifyEmail;
use App\Enums\AdminMode;
use App\Enums\UserRole;
use Database\Factories\UserFactory;
use Filament\Auth\MultiFactor\App\Concerns\InteractsWithAppAuthentication;
use Filament\Auth\MultiFactor\App\Concerns\InteractsWithAppAuthenticationRecovery;
use Filament\Auth\MultiFactor\App\Contracts\HasAppAuthentication;
use Filament\Auth\MultiFactor\App\Contracts\HasAppAuthenticationRecovery;
use Filament\Models\Contracts\FilamentUser;
use Filament\Panel;
use Illuminate\Database\Eloquent\Attributes\Fillable;
@@ -13,12 +18,12 @@
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
#[Fillable(['name', 'email', 'role', 'password'])]
#[Fillable(['name', 'email', 'role', 'admin_mode', 'password'])]
#[Hidden(['password', 'remember_token'])]
class User extends Authenticatable implements FilamentUser
class User extends Authenticatable implements FilamentUser, HasAppAuthentication, HasAppAuthenticationRecovery
{
/** @use HasFactory<UserFactory> */
use HasFactory, Notifiable;
use HasFactory, InteractsWithAppAuthentication, InteractsWithAppAuthenticationRecovery, Notifiable;
/**
* Accounts are created by administrators only; an account without a role has no access.
@@ -28,6 +33,14 @@ public function canAccessPanel(Panel $panel): bool
return $this->role !== null;
}
/**
* The admin menu this user sees; without an explicit choice administrators get the expert mode.
*/
public function adminMode(): AdminMode
{
return $this->admin_mode ?? ($this->hasRole(UserRole::Admin) ? AdminMode::Expert : AdminMode::Simple);
}
public function hasRole(UserRole ...$roles): bool
{
return in_array($this->role, $roles, true);
@@ -44,6 +57,7 @@ protected function casts(): array
'email_verified_at' => 'datetime',
'password' => 'hashed',
'role' => UserRole::class,
'admin_mode' => AdminMode::class,
];
}
}
+13
View File
@@ -0,0 +1,13 @@
<?php
namespace App\Policies;
use App\Enums\UserRole;
class BlockedPeriodPolicy extends RolePolicy
{
protected function roles(): array
{
return [UserRole::Rentals];
}
}
+58
View File
@@ -0,0 +1,58 @@
<?php
namespace App\Pricing;
use App\Models\SpecialOffer;
use Carbon\CarbonImmutable;
/**
* An offer as the website shows it: for fixed dates and gap fillers with concrete dates and an example price.
*/
final readonly class AdvertisedOffer
{
/**
* @param list<string> $conditions
*/
public function __construct(
public SpecialOffer $offer,
public string $title,
public ?string $description,
public string $advantage,
public array $conditions,
public ?CarbonImmutable $arrival = null,
public ?CarbonImmutable $departure = null,
public ?PriceQuote $quote = null,
) {}
public function nights(): ?int
{
return $this->arrival && $this->departure ? (int) $this->arrival->diffInDays($this->departure) : null;
}
/**
* Price before the discount (accommodation, extra guests, cleaning) – for "statt …".
*/
public function regularTotal(): ?int
{
return $this->quote ? $this->quote->total() + $this->quote->discount() : null;
}
/**
* Link to the booking page, with the dates filled in when the offer has concrete dates.
*/
public function bookingUrl(): string
{
return route('booking.create', array_filter([
'anreise' => $this->arrival?->toDateString(),
'abreise' => $this->departure?->toDateString(),
]));
}
/**
* Stable key for the view (an offer can appear several times with different gaps).
*/
public function key(): string
{
return $this->offer->id.'-'.($this->arrival?->toDateString() ?? 'rule');
}
}
+156
View File
@@ -0,0 +1,156 @@
<?php
namespace App\Pricing;
use App\Availability\AvailabilityChecker;
use App\Availability\GapFinder;
use App\Enums\OfferKind;
use App\Enums\QuoteLineType;
use App\Models\Property;
use App\Models\SpecialOffer;
use Carbon\CarbonImmutable;
use Illuminate\Support\Collection;
/**
* Which offers the website advertises right now – independent of the seasonal appearance.
*
* Shown are active, public offers without a code whose booking window is open. Fixed dates only while they
* are still free; gap fillers once per free gap found in the calendar. Fixed dates and gaps are priced
* with PriceCalculator, so the advertised price is exactly what the guest is quoted. Order: highlighted
* first, then priority, then the earliest date.
*/
class OfferShowcase
{
/** Gap fillers without a lead time limit look this many days ahead. */
public const GAP_HORIZON_DAYS = 60;
/** At most this many gaps per gap filler. */
public const GAPS_PER_OFFER = 3;
public function __construct(
private PriceCalculator $calculator,
private AvailabilityChecker $availability = new AvailabilityChecker,
private GapFinder $gaps = new GapFinder,
) {}
/**
* @return Collection<int, AdvertisedOffer>
*/
public function current(Property $property, ?CarbonImmutable $now = null, ?int $limit = null, bool $featuredOnly = false): Collection
{
$now ??= CarbonImmutable::now();
$today = $now->startOfDay();
$offers = $property->specialOffers()
->active()
->where('is_public', true)
->whereNull('code')
->when($featuredOnly, fn ($query) => $query->where('is_featured', true))
->where(fn ($query) => $query->whereNull('bookable_from')->orWhere('bookable_from', '<=', $now))
->where(fn ($query) => $query->whereNull('bookable_until')->orWhere('bookable_until', '>=', $now))
->get();
$advertised = $offers->flatMap(fn (SpecialOffer $offer): array => match ($offer->kind ?? OfferKind::Rule) {
OfferKind::Rule => $this->rule($offer, $today),
OfferKind::FixedDates => $this->fixedDates($property, $offer, $now),
OfferKind::GapFiller => $this->gapFiller($property, $offer, $now),
});
$sorted = $advertised->sortBy([
fn (AdvertisedOffer $a, AdvertisedOffer $b): int => $b->offer->is_featured <=> $a->offer->is_featured,
fn (AdvertisedOffer $a, AdvertisedOffer $b): int => $b->offer->priority <=> $a->offer->priority,
fn (AdvertisedOffer $a, AdvertisedOffer $b): int => ($a->arrival?->getTimestamp() ?? PHP_INT_MAX) <=> ($b->arrival?->getTimestamp() ?? PHP_INT_MAX),
])->values();
return $limit ? $sorted->take($limit)->values() : $sorted;
}
/**
* @return list<AdvertisedOffer>
*/
private function rule(SpecialOffer $offer, CarbonImmutable $today): array
{
if ($offer->stay_until !== null && $offer->stay_until->lessThanOrEqualTo($today)) {
return [];
}
return [$this->advertised($offer)];
}
/**
* @return list<AdvertisedOffer>
*/
private function fixedDates(Property $property, SpecialOffer $offer, CarbonImmutable $now): array
{
if ($offer->stay_from === null || $offer->stay_until === null || $offer->stay_from->lessThanOrEqualTo($now->startOfDay())) {
return [];
}
if (! $this->availability->isAvailable($property, $offer->stay_from, $offer->stay_until)) {
return [];
}
$quote = $this->pricedWith($property, $offer, $offer->stay_from, $offer->stay_until, $now);
return $quote ? [$this->advertised($offer, $offer->stay_from, $offer->stay_until, $quote)] : [];
}
/**
* @return list<AdvertisedOffer>
*/
private function gapFiller(Property $property, SpecialOffer $offer, CarbonImmutable $now): array
{
$today = $now->startOfDay();
$from = $today->addDays(max(1, $offer->min_days_before_arrival ?? 1));
$until = $today->addDays($offer->max_days_before_arrival ?? self::GAP_HORIZON_DAYS)->addDay();
if ($offer->stay_from !== null && $offer->stay_from->greaterThan($from)) {
$from = $offer->stay_from;
}
$advertised = [];
foreach ($this->gaps->gaps($property, $from, $until, $offer->max_gap_nights ?? 7) as [$arrival, $departure]) {
$quote = $this->pricedWith($property, $offer, $arrival, $departure, $now);
if ($quote !== null) {
$advertised[] = $this->advertised($offer, $arrival, $departure, $quote);
}
if (count($advertised) >= self::GAPS_PER_OFFER) {
break;
}
}
return $advertised;
}
/**
* The quote for the stay, if the offer is actually applied to it (it may lose against a better offer
* or fail a condition such as the minimum stay); priced for the number of guests included in the rent.
*/
private function pricedWith(Property $property, SpecialOffer $offer, CarbonImmutable $arrival, CarbonImmutable $departure, CarbonImmutable $now): ?PriceQuote
{
$quote = rescue(
fn (): PriceQuote => $this->calculator->calculate($property, new StayRequest($arrival, $departure, max(1, $property->included_guests)), $now),
null,
false,
);
$applied = $quote !== null && collect($quote->lines)
->contains(fn (QuoteLine $line): bool => $line->type === QuoteLineType::Discount && $line->label === $offer->name);
return $applied ? $quote : null;
}
private function advertised(SpecialOffer $offer, ?CarbonImmutable $arrival = null, ?CarbonImmutable $departure = null, ?PriceQuote $quote = null): AdvertisedOffer
{
return new AdvertisedOffer(
offer: $offer,
title: $offer->name,
description: $offer->public_description,
advantage: $offer->advantageLabel(),
conditions: $offer->conditionSummary(),
arrival: $arrival,
departure: $departure,
quote: $quote,
);
}
}
+30 -5
View File
@@ -2,7 +2,9 @@
namespace App\Pricing;
use App\Availability\GapFinder;
use App\Enums\ExtraPricing;
use App\Enums\OfferKind;
use App\Enums\QuoteLineType;
use App\Models\Extra;
use App\Models\Property;
@@ -13,6 +15,8 @@
class PriceCalculator
{
public function __construct(private GapFinder $gaps = new GapFinder) {}
/**
* Price a stay. Special offers are applied automatically; $bookedAt (default: now) decides
* time-dependent offers such as last minute or early bird.
@@ -32,14 +36,18 @@ public function calculate(Property $property, StayRequest $stay, ?CarbonImmutabl
$nights = $stay->nights();
$nightSeasons = $this->seasonPerNight($property, $stay);
$bookedAt ??= CarbonImmutable::now();
$offers = $this->applicableOffers($property, $stay, $nightSeasons, $bookedAt);
$arrivalSeason = $nightSeasons[0];
if ($nights < $arrivalSeason->min_nights) {
$minimumStayWaived = $offers->contains(fn (SpecialOffer $offer): bool => $offer->waives_min_stay && $offer->kind === OfferKind::GapFiller);
if ($nights < $arrivalSeason->min_nights && ! $minimumStayWaived) {
throw QuoteException::minimumStay($arrivalSeason->min_nights, $arrivalSeason->name);
}
$lines = $this->accommodationLines($nightSeasons);
$appliedOffers = $this->bestOffers($property, $stay, $nightSeasons, $bookedAt ?? CarbonImmutable::now());
$appliedOffers = $this->bestOffers($offers, $nightSeasons);
foreach ($appliedOffers as ['offer' => $offer, 'discount' => $discount]) {
$lines[] = new QuoteLine(QuoteLineType::Discount, $offer->name, 1, -$discount, -$discount);
}
@@ -117,20 +125,37 @@ private function accommodationLines(array $nightSeasons): array
), $runs);
}
/**
* Active offers whose conditions the stay meets. The calendar gap is only looked up if a gap filler exists.
*
* @param non-empty-list<Season> $nightSeasons
* @return Collection<int, SpecialOffer>
*/
private function applicableOffers(Property $property, StayRequest $stay, array $nightSeasons, CarbonImmutable $bookedAt): Collection
{
$offers = $property->specialOffers()->active()->get();
$gapNights = $offers->contains(fn (SpecialOffer $offer): bool => $offer->kind === OfferKind::GapFiller)
? $this->gaps->gapContaining($property, $stay->arrival, $stay->departure)
: null;
return $offers->filter(fn (SpecialOffer $offer): bool => $offer->appliesTo($stay, $nightSeasons[0]->name, $bookedAt, $gapNights))->values();
}
/**
* The guest gets whichever is cheaper for them: the single best non-combinable offer,
* or all combinable offers together (capped at the accommodation price).
*
* @param Collection<int, SpecialOffer> $offers
* @param non-empty-list<Season> $nightSeasons
* @return list<array{offer: SpecialOffer, discount: int}>
*/
private function bestOffers(Property $property, StayRequest $stay, array $nightSeasons, CarbonImmutable $bookedAt): array
private function bestOffers(Collection $offers, array $nightSeasons): array
{
$nightlyRates = array_map(fn (Season $season): int => $season->nightly_rate, $nightSeasons);
$accommodation = array_sum($nightlyRates);
$candidates = $property->specialOffers()->active()->get()
->filter(fn (SpecialOffer $offer): bool => $offer->appliesTo($stay, $nightSeasons[0]->name, $bookedAt))
$candidates = $offers
->map(fn (SpecialOffer $offer): array => ['offer' => $offer, 'discount' => $offer->discountFor($nightlyRates)])
->filter(fn (array $candidate): bool => $candidate['discount'] > 0);
+7 -1
View File
@@ -2,6 +2,7 @@
namespace App\Providers;
use Illuminate\Support\Facades\URL;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
@@ -19,6 +20,11 @@ public function register(): void
*/
public function boot(): void
{
//
// On Strato the domain points at the deployment folder and .htaccess forwards to current/public;
// without a fixed root, some URLs (e.g. /sitemap.xml) would be generated with /current/public.
if (! $this->app->environment('local', 'testing')) {
URL::forceRootUrl(config('app.url'));
URL::forceScheme(parse_url((string) config('app.url'), PHP_URL_SCHEME) ?: 'https');
}
}
}
@@ -2,6 +2,12 @@
namespace App\Providers\Filament;
use App\Enums\AdminMode;
use App\Http\Middleware\RequireTwoFactorForAdmins;
use App\Models\User;
use Filament\Actions\Action;
use Filament\Auth\MultiFactor\App\AppAuthentication;
use Filament\Facades\Filament;
use Filament\Http\Middleware\Authenticate;
use Filament\Http\Middleware\AuthenticateSession;
use Filament\Http\Middleware\DisableBladeIconComponents;
@@ -10,6 +16,7 @@
use Filament\Panel;
use Filament\PanelProvider;
use Filament\Support\Colors\Color;
use Filament\Support\Icons\Heroicon;
use Filament\Widgets\AccountWidget;
use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse;
use Illuminate\Cookie\Middleware\EncryptCookies;
@@ -20,6 +27,13 @@
class AdminPanelProvider extends PanelProvider
{
private static function currentUser(): ?User
{
$user = Filament::auth()->user();
return $user instanceof User ? $user : null;
}
public function panel(Panel $panel): Panel
{
return $panel
@@ -27,6 +41,24 @@ public function panel(Panel $panel): Panel
->id('admin')
->path('admin')
->login()
->profile(isSimple: false)
// Two-factor login with an authenticator app (TOTP) and recovery codes; mandatory for administrators.
->multiFactorAuthentication(
[AppAuthentication::make()->brandName('FeWo Stommer')->recoverable()],
isRequired: true,
)
->multiFactorAuthenticationRequiredMiddlewareName(RequireTwoFactorForAdmins::class)
->userMenuItems([
'admin-mode' => Action::make('switchAdminMode')
->label(fn (): string => (self::currentUser()?->adminMode() ?? AdminMode::Expert)->other()->switchLabel())
->icon(fn (): Heroicon => self::currentUser()?->adminMode() === AdminMode::Simple ? Heroicon::OutlinedAdjustmentsHorizontal : Heroicon::OutlinedSparkles)
->action(function () {
$user = self::currentUser();
$user?->forceFill(['admin_mode' => $user->adminMode()->other()])->save();
return redirect(url()->previous());
}),
])
->brandName('FeWo Stommer · Verwaltung')
->navigationGroups(['Vermietung', 'Webseite', 'System'])
->colors([
+47 -3
View File
@@ -2,13 +2,19 @@
namespace App\Themes;
use App\Models\Appearance;
use App\Themes\Sections\Section;
use Filament\Forms\Components\Builder\Block;
use Filament\Forms\Components\Hidden;
use Filament\Forms\Components\Select;
use Illuminate\Contracts\View\View;
use Illuminate\Support\Facades\View as ViewFactory;
/**
* The section catalogue from config/themes.php: builder blocks for the admin and rendering for the website.
*
* Every placed section carries data.id (a stable UUID, see Page::assignSectionIds) so appearances can
* address it, and data.appearances (appearance ids; empty = always shown).
*/
class SectionRegistry
{
@@ -36,13 +42,33 @@ public function blocks(): array
{
return array_values(array_map(
fn (string $class): Block => Block::make($class::key())
->label($class::label())
->label(fn (?array $state): string => $this->blockLabel($class, $state))
->icon($class::icon())
->schema($class::schema()),
->schema([
Hidden::make('id'),
...$class::schema(),
Select::make('appearances')
->label('Nur anzeigen im Erscheinungsbild')
->helperText('Leer = immer anzeigen. Z. B. ein Weihnachts-Baustein nur im Erscheinungsbild „Weihnachten“.')
->options(fn (): array => Appearance::query()->orderByDesc('is_default')->orderBy('name')->pluck('name', 'id')->all())
->multiple(),
]),
$this->all(),
));
}
/**
* Whether a placed section is shown with the active appearance.
*
* @param array<string, mixed> $data
*/
public function isVisible(Theme $theme, array $data): bool
{
$appearances = array_map('intval', array_filter((array) ($data['appearances'] ?? [])));
return $appearances === [] || ($theme->appearance !== null && in_array($theme->appearance->id, $appearances, true));
}
/**
* Renders the stored sections of a page; unknown or failing types are skipped (and reported),
* so a page never breaks because of one section.
@@ -55,7 +81,7 @@ public function render(Theme $theme, ?array $sections): array
$views = [];
foreach ($sections ?? [] as $index => $stored) {
$section = $this->get($stored['type'] ?? '');
if ($section === null || ! ViewFactory::exists($section->view())) {
if ($section === null || ! ViewFactory::exists($section->view()) || ! $this->isVisible($theme, $stored['data'] ?? [])) {
continue;
}
@@ -68,4 +94,22 @@ public function render(Theme $theme, ?array $sections): array
return $views;
}
/**
* "Text mit Bild · Ihr Zuhause an der Ostsee · nur: Winter" for the collapsed builder item.
*
* @param class-string<Section> $class
* @param array<string, mixed>|null $state
*/
private function blockLabel(string $class, ?array $state): string
{
if ($state === null) {
return $class::label();
}
$appearances = array_filter((array) ($state['appearances'] ?? []));
$only = $appearances === [] ? null : 'nur: '.Appearance::query()->whereKey($appearances)->pluck('name')->implode(', ');
return collect([$class::label(), $class::summary($state), $only])->filter()->implode(' · ');
}
}
+6 -1
View File
@@ -38,12 +38,17 @@ public static function schema(): array
];
}
public static function photoSlots(): array
{
return ['photo_id' => ['label' => 'Hintergrundfoto', 'type' => self::SLOT_SINGLE]];
}
public function data(Theme $theme, array $data): array
{
return [
'title' => $theme->text('cta.title', $data['title'] ?? null),
'text' => $theme->text('cta.text', $data['text'] ?? null),
'photo' => isset($data['photo_id']) ? Photo::find($data['photo_id']) : null,
'photo' => $this->seasonalPhoto($theme, $data, 'photo_id') ?? (isset($data['photo_id']) ? Photo::find($data['photo_id']) : null),
'buttonLabel' => $data['button_label'] ?? 'Belegung & Preise',
'buttonUrl' => $this->pageUrl($data['button_page'] ?? null) ?? route('booking.create'),
];
+7 -2
View File
@@ -37,16 +37,21 @@ public static function schema(): array
];
}
public static function photoSlots(): array
{
return ['photo_ids' => ['label' => 'Galerie', 'type' => self::SLOT_COLLECTION]];
}
public function data(Theme $theme, array $data): array
{
$category = PhotoCategory::tryFrom($data['category'] ?? '');
return [
'heading' => $data['heading'] ?? null,
'photos' => Photo::query()->published()->with('media')
'photos' => $this->withSeasonalPhotos($theme, $data, 'photo_ids', Photo::query()->published()->with('media')
->when($category, fn ($query) => $query->where('category', $category))
->when(filled($data['limit'] ?? null), fn ($query) => $query->limit((int) $data['limit']))
->get(),
->get()),
];
}
}
+15 -1
View File
@@ -3,6 +3,7 @@
namespace App\Themes\Sections;
use App\Models\Photo;
use App\Pricing\OfferShowcase;
use App\Themes\Theme;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
@@ -36,18 +37,31 @@ public static function schema(): array
Textarea::make('text')->label('Text')->rows(2)->maxLength(400),
static::photoSelect('photo_id', 'Foto (wenn das Erscheinungsbild keins vorgibt)'),
Toggle::make('show_search')->label('Verfügbarkeitssuche anzeigen')->default(true),
Toggle::make('show_offer')
->label('Hervorgehobenes Sonderangebot im Titelbereich zeigen')
->helperText('Das wichtigste als „hervorgehoben“ markierte Angebot, sofern gerade eins gilt.')
->default(true),
];
}
public static function photoSlots(): array
{
return ['photo_id' => ['label' => 'Foto', 'type' => self::SLOT_SINGLE]];
}
public function data(Theme $theme, array $data): array
{
$fallback = isset($data['photo_id']) ? Photo::find($data['photo_id']) : Photo::query()->published()->first();
$featuredOffer = ($data['show_offer'] ?? true) && $theme->property()
? app(OfferShowcase::class)->current($theme->property(), limit: 1, featuredOnly: true)->first()
: null;
return [
'eyebrow' => $theme->text('hero.eyebrow', $data['eyebrow'] ?? null),
'title' => $theme->text('hero.title', $data['title'] ?? $theme->site->name),
'text' => $theme->text('hero.text', $data['text'] ?? null),
'photo' => $theme->heroPhoto($fallback),
'photo' => $this->seasonalPhoto($theme, $data, 'photo_id') ?? $theme->heroPhoto($fallback),
'featuredOffer' => $featuredOffer,
'showSearch' => (bool) ($data['show_search'] ?? true),
'property' => $theme->property(),
];
+6 -1
View File
@@ -39,6 +39,11 @@ public static function schema(): array
];
}
public static function photoSlots(): array
{
return ['photo_ids' => ['label' => 'Bilder der Umgebung', 'type' => self::SLOT_COLLECTION]];
}
public function data(Theme $theme, array $data): array
{
$address = $theme->property()?->address;
@@ -50,7 +55,7 @@ public function data(Theme $theme, array $data): array
'address' => $address,
'mapUrl' => $address ? 'https://www.openstreetmap.org/search?query='.rawurlencode($address) : null,
'photos' => ($data['show_photos'] ?? true)
? Photo::query()->published()->with('media')->where('category', PhotoCategory::Area)->limit(6)->get()
? $this->withSeasonalPhotos($theme, $data, 'photo_ids', Photo::query()->published()->with('media')->where('category', PhotoCategory::Area)->limit(6)->get())
: collect(),
];
}
+19 -15
View File
@@ -2,15 +2,24 @@
namespace App\Themes\Sections;
use App\Models\SpecialOffer;
use App\Pricing\OfferShowcase;
use App\Themes\Theme;
use Filament\Forms\Components\Radio;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Toggle;
/**
* Public special offers (active, promoted, without code); the appearance's featured offer comes first.
* The offers OfferShowcase advertises right now (independent of the appearance), shown side by side,
* as a list or one after another (rotating). The section disappears when there is no current offer.
*/
class OffersSection extends Section
{
public const DISPLAYS = [
'grid' => 'Nebeneinander (Kacheln)',
'list' => 'Untereinander (Liste)',
'rotating' => 'Rollierend (eins nach dem anderen)',
];
public static function key(): string
{
return 'offers';
@@ -30,27 +39,22 @@ public static function schema(): array
{
return [
TextInput::make('heading')->label('Überschrift')->default('Aktuelle Angebote')->maxLength(120),
Radio::make('display')->label('Darstellung, wenn mehrere Angebote gelten')->options(self::DISPLAYS)->default('grid'),
TextInput::make('limit')->label('Höchstens anzeigen')->integer()->minValue(1)->maxValue(12)->default(6),
Toggle::make('featured_only')->label('Nur hervorgehobene Angebote')->default(false),
];
}
public function data(Theme $theme, array $data): array
{
$offers = $theme->property()?->specialOffers()
->active()
->where('is_public', true)
->whereNull('code')
->where(fn ($query) => $query->whereNull('bookable_until')->orWhere('bookable_until', '>=', now()))
->get() ?? collect();
$featured = $theme->appearance?->featuredOffer;
if ($featured) {
$offers = $offers->reject(fn (SpecialOffer $offer): bool => $offer->is($featured))->prepend($featured);
}
$property = $theme->property();
return [
'heading' => $data['heading'] ?? null,
'offers' => $offers,
'featuredId' => $featured?->id,
'display' => array_key_exists($data['display'] ?? '', self::DISPLAYS) ? $data['display'] : 'grid',
'offers' => $property
? app(OfferShowcase::class)->current($property, limit: (int) ($data['limit'] ?? 6) ?: 6, featuredOnly: (bool) ($data['featured_only'] ?? false))
: collect(),
];
}
}
+84 -5
View File
@@ -2,6 +2,7 @@
namespace App\Themes\Sections;
use App\Filament\Forms\Components\PhotoSelect;
use App\Models\Page;
use App\Models\Photo;
use App\Themes\Theme;
@@ -17,6 +18,15 @@
*/
abstract class Section
{
/** One photo (field holds a photo id). */
public const SLOT_SINGLE = 'single';
/** Several chosen photos (field holds a list of ids). */
public const SLOT_MULTIPLE = 'multiple';
/** Photos picked automatically (e.g. by category); an appearance may replace or precede them. */
public const SLOT_COLLECTION = 'collection';
abstract public static function key(): string;
abstract public static function label(): string;
@@ -39,6 +49,28 @@ public static function schema(): array
return [];
}
/**
* Photo places an appearance can fill with seasonal photos ("Bilder je Baustein").
*
* @return array<string, array{label: string, type: string, max?: int}>
*/
public static function photoSlots(): array
{
return [];
}
/**
* Short text identifying a placed section in admin lists, e.g. its heading.
*
* @param array<string, mixed> $data
*/
public static function summary(array $data): ?string
{
$text = $data['heading'] ?? $data['title'] ?? null;
return filled($text) ? str(strip_tags((string) $text))->replace('*', '')->limit(50)->toString() : null;
}
/**
* Variables for the view.
*
@@ -75,6 +107,55 @@ protected function photos(?array $ids): Collection
return new Collection(array_values(array_filter(array_map(fn ($id) => $photos->get((int) $id), $ids))));
}
/**
* The seasonal photo the active appearance sets for a single slot of this placed section.
*
* @param array<string, mixed> $data
*/
protected function seasonalPhoto(Theme $theme, array $data, string $slot): ?Photo
{
return $this->seasonalPhotos($theme, $data, $slot)?->first();
}
/**
* The seasonal photos the active appearance sets for a slot of this placed section, null if none.
*
* @param array<string, mixed> $data
* @return Collection<int, Photo>|null
*/
protected function seasonalPhotos(Theme $theme, array $data, string $slot): ?Collection
{
$ids = $theme->sectionPhotoIds($data['id'] ?? null, $slot);
if ($ids === []) {
return null;
}
$photos = $this->photos($ids);
return $photos->isEmpty() ? null : $photos;
}
/**
* Photos of a collection slot: the automatic photos, replaced or preceded by the seasonal ones.
*
* @param array<string, mixed> $data
* @param Collection<int, Photo> $automatic
* @return Collection<int, Photo>
*/
protected function withSeasonalPhotos(Theme $theme, array $data, string $slot, Collection $automatic): Collection
{
$seasonal = $this->seasonalPhotos($theme, $data, $slot);
if ($seasonal === null) {
return $automatic;
}
if ($theme->sectionPhotoMode($data['id'] ?? null) === 'prepend') {
return $seasonal->merge($automatic)->unique('id')->values();
}
return $seasonal;
}
protected function pageUrl(?string $slug): ?string
{
if (blank($slug)) {
@@ -85,15 +166,13 @@ protected function pageUrl(?string $slug): ?string
}
/**
* Select field listing the website photos.
* Select field listing the website photos with thumbnails.
*/
protected static function photoSelect(string $name, string $label, bool $multiple = false): Select
{
return Select::make($name)
return PhotoSelect::make($name)
->label($label)
->options(fn (): array => Photo::query()->orderBy('category')->orderBy('sort_order')->pluck('alt_text', 'id')->all())
->multiple($multiple)
->searchable();
->multiple($multiple);
}
/**
+6 -1
View File
@@ -40,13 +40,18 @@ public static function schema(): array
];
}
public static function photoSlots(): array
{
return ['photo_ids' => ['label' => 'Bilder', 'type' => self::SLOT_MULTIPLE, 'max' => 3]];
}
public function data(Theme $theme, array $data): array
{
return [
'eyebrow' => $data['eyebrow'] ?? null,
'heading' => $data['heading'] ?? '',
'text' => $this->html($data['text'] ?? null),
'photos' => $this->photos($data['photo_ids'] ?? []),
'photos' => $this->seasonalPhotos($theme, $data, 'photo_ids') ?? $this->photos($data['photo_ids'] ?? []),
'imagePosition' => $data['image_position'] ?? 'right',
'linkLabel' => $data['link_label'] ?? null,
'linkUrl' => $this->pageUrl($data['link_page'] ?? null),
+27
View File
@@ -34,6 +34,7 @@ public function activate(): self
{
$paths = array_map(fn (ThemeManifest $theme): string => $theme->viewsPath(), $this->chain());
View::replaceNamespace('theme', $paths);
View::getFinder()->flush();
return $this;
}
@@ -96,6 +97,32 @@ public function heroPhoto(?Photo $fallback = null): ?Photo
return $this->appearance?->heroPhoto ?? $fallback;
}
/**
* Photo ids the active appearance sets for a slot of a placed section ("Bilder je Baustein").
*
* @return list<int>
*/
public function sectionPhotoIds(?string $sectionId, string $slot): array
{
if (blank($sectionId) || $this->appearance === null) {
return [];
}
$ids = $this->appearance->section_photos[$sectionId][$slot] ?? null;
return array_values(array_map('intval', array_filter((array) $ids)));
}
/**
* Whether seasonal photos replace the automatic photos of a section ('replace') or come first ('prepend').
*/
public function sectionPhotoMode(?string $sectionId): string
{
$mode = $sectionId ? ($this->appearance?->section_photos[$sectionId]['mode'] ?? null) : null;
return $mode === 'prepend' ? 'prepend' : 'replace';
}
public function appearanceKey(): string
{
return $this->appearance ? str($this->appearance->name)->slug()->toString() : 'standard';
+334
View File
@@ -0,0 +1,334 @@
<?php
namespace App\Themes;
use App\Models\Appearance;
use Illuminate\Support\Facades\Schema;
use Symfony\Component\Finder\Finder;
/**
* Checks a theme against the theme contract (docs/THEME-ERSTELLUNG.md) so a theme built elsewhere – e.g. by a
* design session – can be verified before it is selected: manifest, inheritance, build entry points, required
* markup of overridden views, token-only colours, no external resources and WCAG contrast of the colour tokens
* (theme defaults and every appearance).
*/
class ThemeChecker
{
/** Pairs [text token, background token] that must reach WCAG AA for normal text (4.5:1). */
public const CONTRAST_PAIRS = [
['ink', 'ground'], ['muted', 'ground'], ['accent', 'ground'],
['ink', 'surface'], ['muted', 'surface'], ['accent', 'surface'],
['accent-ink', 'accent'], ['band-ink', 'band'], ['band-muted', 'band'], ['banner-ink', 'banner'],
];
public const MIN_CONTRAST = 4.5;
/** View files a theme may provide besides sections/<key> (custom partials are allowed in partials/). */
private const KNOWN_VIEWS = ['layouts/app', 'page', 'partials/banner', 'partials/header', 'partials/footer', 'partials/image', 'partials/mobile-booking-bar'];
/**
* Markup an overridden view must keep, with the reason shown when it is missing.
*
* @var array<string, array<string, string>>
*/
private const REQUIRED_MARKUP = [
'layouts/app' => [
"@yield('content')" => 'Seiteninhalt fehlt (@yield(\'content\')).',
"@stack('head')" => 'Bausteine können nichts in <head> ergänzen (JSON-LD) – @stack(\'head\') fehlt.',
'$theme->assets()' => 'CSS/JS werden nicht geladen – @vite($theme->assets()) fehlt.',
'$theme->cssVariables()' => 'Farb-Tokens werden nicht ausgegeben – $theme->cssVariables() fehlt.',
'@livewireStyles' => 'Buchungsformular braucht @livewireStyles.',
'@livewireScripts' => 'Buchungsformular braucht @livewireScripts.',
'noindex' => 'Vorschau und Testbetrieb müssen noindex setzen.',
'id="lightbox"' => 'Galerie-Lightbox fehlt (<dialog id="lightbox"> mit img, [data-caption], [data-close]).',
'data-appearance' => 'data-appearance am <html> fehlt (saisonale CSS-Regeln).',
],
'page' => [
'$sections' => 'Die Bausteine der Seite werden nicht ausgegeben.',
'$structuredData' => 'JSON-LD der Startseite fehlt ($structuredData).',
],
'partials/header' => ["menu('main')" => 'Hauptmenü fehlt ($theme->menu(\'main\')).'],
'partials/footer' => ["menu('footer')" => 'Fußmenü (Impressum/Datenschutz) fehlt ($theme->menu(\'footer\')).'],
'sections/hero' => [
'name="anreise"' => 'Verfügbarkeitssuche: Feld name="anreise" fehlt.',
'name="abreise"' => 'Verfügbarkeitssuche: Feld name="abreise" fehlt.',
"route('booking.create')" => 'Verfügbarkeitssuche muss an route(\'booking.create\') senden.',
],
'sections/booking' => ['livewire:booking-request' => 'Kalender/Anfrage fehlt (<livewire:booking-request :property="$property" />).'],
'sections/gallery' => ['data-lightbox' => 'Galerie-Links brauchen data-lightbox und data-alt.'],
'sections/faq' => ['application/ld+json' => 'FAQ-JSON-LD fehlt.'],
'sections/reviews' => ['nur Gäste' => 'Pflichthinweis zur Echtheit der Bewertungen (§ 5b UWG) fehlt.'],
'sections/offers' => ['$display' => 'Darstellung (nebeneinander/Liste/rollierend) wird nicht berücksichtigt.'],
];
public function __construct(private ThemeRegistry $registry) {}
/**
* @return array{errors: list<string>, warnings: list<string>}
*/
public function check(ThemeManifest $theme): array
{
$errors = [];
$warnings = [];
$this->checkManifest($theme, $errors, $warnings);
$this->checkAssets($theme, $errors, $warnings);
$this->checkViews($theme, $errors, $warnings);
$this->checkContrast($theme, $errors, $warnings);
return ['errors' => $errors, 'warnings' => $warnings];
}
/**
* WCAG contrast ratio of two hex colours (1 … 21).
*/
public static function contrast(string $foreground, string $background): float
{
$luminance = function (string $hex): float {
$hex = ltrim($hex, '#');
if (strlen($hex) === 3) {
$hex = $hex[0].$hex[0].$hex[1].$hex[1].$hex[2].$hex[2];
}
$channels = array_map(function (string $pair): float {
$value = hexdec($pair) / 255;
return $value <= 0.03928 ? $value / 12.92 : (($value + 0.055) / 1.055) ** 2.4;
}, str_split(substr($hex, 0, 6), 2));
return 0.2126 * $channels[0] + 0.7152 * $channels[1] + 0.0722 * $channels[2];
};
[$lighter, $darker] = [max($luminance($foreground), $luminance($background)), min($luminance($foreground), $luminance($background))];
return round(($lighter + 0.05) / ($darker + 0.05), 2);
}
/**
* @param list<string> $errors
* @param list<string> $warnings
*/
private function checkManifest(ThemeManifest $theme, array &$errors, array &$warnings): void
{
if (! preg_match('/^[a-z0-9]+(-[a-z0-9]+)*$/', $theme->key)) {
$errors[] = "Key „{$theme->key}“: nur Kleinbuchstaben, Ziffern und Bindestriche.";
}
if (basename($theme->path) !== $theme->key) {
$errors[] = 'Ordnername ('.basename($theme->path).") und key ({$theme->key}) müssen gleich sein – sonst baut Vite die Assets nicht.";
}
if (! preg_match('/^\d+\.\d+\.\d+$/', $theme->version)) {
$errors[] = "version „{$theme->version}“ ist keine Versionsnummer (z. B. 0.1.0).";
}
if (blank($theme->description)) {
$warnings[] = 'description fehlt – sie wird im Admin bei der Theme-Auswahl angezeigt.';
}
if ($theme->parent !== null) {
if ($theme->parent === $theme->key) {
$errors[] = 'parent verweist auf das Theme selbst.';
} elseif (! isset($this->registry->all()[$theme->parent])) {
$errors[] = "Eltern-Theme „{$theme->parent}“ ist nicht installiert.";
}
}
foreach ($theme->tokens as $key => $token) {
if (! is_array($token) || blank($token['label'] ?? null) || ! preg_match('/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/', (string) ($token['default'] ?? ''))) {
$errors[] = "Token „{$key}“ braucht label und default als Hex-Farbe (#RRGGBB).";
}
}
$missing = array_diff(array_keys($this->registry->tokens(config('themes.base'))), array_keys($this->registry->tokens($theme->key)));
if ($missing !== []) {
$errors[] = 'Basis-Tokens fehlen in der Theme-Kette: '.implode(', ', $missing).' (die Basis-Vorlagen und Formulare nutzen sie).';
}
}
/**
* @param list<string> $errors
* @param list<string> $warnings
*/
private function checkAssets(ThemeManifest $theme, array &$errors, array &$warnings): void
{
$css = $theme->assets['css'] ?? null;
$js = $theme->assets['js'] ?? null;
if ($css === null && $js === null) {
if (is_dir($theme->viewsPath()) && Finder::create()->files()->name('*.blade.php')->in($theme->viewsPath())->hasResults()) {
$errors[] = 'Eigene Vorlagen ohne eigene Assets: deren Tailwind-Klassen werden nicht gebaut – theme.css/theme.js anlegen (themes:make macht das) und in assets eintragen.';
}
return;
}
$folder = str_replace('\\', '/', ltrim(substr($theme->path, strlen(base_path())), '/\\'));
if (! str_starts_with($folder, 'resources/themes/')) {
$warnings[] = 'Theme liegt nicht unter resources/themes – vite.config.js baut seine Assets dort nicht automatisch.';
}
foreach (['css' => 'theme.css', 'js' => 'theme.js'] as $type => $file) {
$expected = "{$folder}/{$file}";
$declared = $theme->assets[$type] ?? null;
if ($declared === null) {
$errors[] = "assets.{$type} fehlt: Ein Theme mit eigenen Assets ersetzt CSS und JS des Eltern-Themes vollständig – {$file} anlegen (darf das Eltern-Theme importieren).";
} elseif ($declared !== $expected) {
$errors[] = "assets.{$type} muss „{$expected}“ heißen – nur diese Datei baut Vite (vite.config.js).";
} elseif (! is_file(base_path($declared))) {
$errors[] = "{$declared} fehlt.";
}
}
$cssFile = $css !== null ? base_path($css) : null;
if ($cssFile !== null && is_file($cssFile)) {
$content = (string) file_get_contents($cssFile);
$resolved = $this->withLocalImports($cssFile);
if (preg_match("~@import\s+['\"]\.\./[a-z0-9-]+/theme\.css['\"]~", $content)) {
$warnings[] = 'theme.css importiert das theme.css eines anderen Themes – besser dessen theme-base.css importieren und die Quellen selbst angeben (siehe Anleitung).';
}
if (! str_contains($content, "@import 'tailwindcss'") && ! str_contains($content, '@import "tailwindcss"')) {
$errors[] = "theme.css muss mit @import 'tailwindcss'; beginnen.";
}
foreach ($this->registry->chain($theme->key) as $ancestor) {
$source = ThemeManifest::relativePath($theme->path, $ancestor->viewsPath());
if ($ancestor->key !== $theme->key && ! str_contains($resolved, $source)) {
$errors[] = "theme.css scannt die Vorlagen von „{$ancestor->key}“ nicht (@source '{$source}') – geerbte Bausteine wären ungestylt.";
}
}
if (is_dir($theme->viewsPath()) && ! preg_match("~@source\s+['\"]\./views['\"]~", $content)) {
$errors[] = "theme.css scannt die eigenen Vorlagen nicht (@source './views').";
}
if (! str_contains($resolved, 'views/livewire')) {
$errors[] = "theme.css scannt die Buchungsformulare nicht (@source '".ThemeManifest::relativePath($theme->path, resource_path('views/livewire'))."').";
}
foreach (array_keys($this->registry->tokens($theme->key)) as $token) {
if (! str_contains($resolved, "--color-{$token}:")) {
$errors[] = "Token „{$token}“ ist nicht gemappt (@theme inline { --color-{$token}: var(--{$token}); }) – Klassen wie bg-{$token} fehlen.";
}
}
$this->scanExternal($resolved, 'theme.css', $errors);
}
$jsFile = $js !== null ? base_path($js) : null;
if ($jsFile !== null && is_file($jsFile)) {
$content = (string) file_get_contents($jsFile);
if (! preg_match("~import\s+['\"]\.\./[a-z0-9-]+/theme\.js['\"]~", $content) && ! str_contains($content, 'data-rotator')) {
$warnings[] = "theme.js importiert kein anderes Theme (import '../ostsee-licht/theme.js') – Lightbox, Suche und rollierende Angebote müssen dann selbst umgesetzt sein.";
}
$this->scanExternal($content, 'theme.js', $errors);
}
}
/**
* @param list<string> $errors
* @param list<string> $warnings
*/
private function checkViews(ThemeManifest $theme, array &$errors, array &$warnings): void
{
if (! is_dir($theme->viewsPath())) {
return;
}
$sections = array_keys(app(SectionRegistry::class)->all());
foreach (Finder::create()->files()->in($theme->viewsPath()) as $file) {
$name = str_replace('\\', '/', $file->getRelativePathname());
if (! str_ends_with($name, '.blade.php')) {
if ($name !== '.gitkeep') {
$warnings[] = "views/{$name}: keine Blade-Datei (wird ignoriert).";
}
continue;
}
$view = substr($name, 0, -strlen('.blade.php'));
$isSection = str_starts_with($view, 'sections/');
if ($isSection && ! in_array(substr($view, 9), $sections, true)) {
$errors[] = "views/{$name}: unbekannter Baustein (erlaubt: ".implode(', ', $sections).').';
} elseif (! $isSection && ! in_array($view, self::KNOWN_VIEWS, true) && ! str_starts_with($view, 'partials/')) {
$warnings[] = "views/{$name}: wird vom System nicht aufgerufen (nur eigene Includes).";
}
$content = $file->getContents();
foreach (self::REQUIRED_MARKUP[$view] ?? [] as $needle => $reason) {
if (str_contains($content, $needle)) {
continue;
}
if ($view === 'sections/offers') {
$warnings[] = "views/{$name}: {$reason}";
} else {
$errors[] = "views/{$name}: {$reason}";
}
}
if ($isSection && ! str_contains($content, '$sectionId')) {
$warnings[] = "views/{$name}: \$sectionId nicht genutzt (eindeutige IDs für aria-labelledby).";
}
if (preg_match('/\b(?:bg|text|border|ring|fill|stroke|from|via|to|outline|decoration|divide|shadow)-(?:slate|gray|zinc|neutral|stone|red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose)-(?:50|[1-9]00|950)\b|-\[(?:#|rgb)/', $content, $match)) {
$errors[] = "views/{$name}: feste Farbe „{$match[0]}“ – nur Token-Klassen verwenden (bg-accent, text-muted …), sonst wirken Erscheinungsbilder nicht.";
}
if (preg_match('/style="[^"]*(?:#[0-9a-fA-F]{3,8}\b|rgba?\()/', $content)) {
$errors[] = "views/{$name}: feste Farbe im style-Attribut – var(--token) verwenden.";
}
if (str_contains($content, '<iframe')) {
$warnings[] = "views/{$name}: <iframe> eingebettet – Drittanbieter brauchen ein Einwilligungskonzept (DSGVO).";
}
$this->scanExternal($content, "views/{$name}", $errors);
}
}
/**
* @param list<string> $errors
* @param list<string> $warnings
*/
private function checkContrast(ThemeManifest $theme, array &$errors, array &$warnings): void
{
$defaults = array_map(fn (array $token): string => (string) ($token['default'] ?? ''), $this->registry->tokens($theme->key));
$variants = ['Theme-Standard' => $defaults];
if (Schema::hasTable('appearances')) {
foreach (Appearance::query()->where('is_active', true)->get() as $appearance) {
$variants["Erscheinungsbild „{$appearance->name}“"] = [...$defaults, ...array_filter($appearance->tokens ?? [], fn ($value): bool => is_string($value) && preg_match('/^#[0-9a-fA-F]{3,8}$/', $value) === 1)];
}
}
foreach ($variants as $label => $tokens) {
foreach (self::CONTRAST_PAIRS as [$text, $background]) {
if (! isset($tokens[$text], $tokens[$background]) || ! preg_match('/^#/', $tokens[$text]) || ! preg_match('/^#/', $tokens[$background])) {
continue;
}
$ratio = self::contrast($tokens[$text], $tokens[$background]);
if ($ratio < self::MIN_CONTRAST) {
$message = "{$label}: Kontrast {$text} auf {$background} nur {$ratio}:1 (mind. ".self::MIN_CONTRAST.':1).';
if ($label === 'Theme-Standard') {
$errors[] = $message;
} else {
$warnings[] = $message;
}
}
}
}
}
/**
* The CSS file with its relative @imports (theme-base.css etc.) inlined, for checks across files.
*/
private function withLocalImports(string $file, int $depth = 0): string
{
$content = (string) file_get_contents($file);
if ($depth > 3) {
return $content;
}
return preg_replace_callback("~@import\s+['\"](\.{1,2}/[^'\"]+\.css)['\"]\s*;~", function (array $match) use ($file, $depth): string {
$imported = dirname($file).DIRECTORY_SEPARATOR.$match[1];
return is_file($imported) ? $this->withLocalImports($imported, $depth + 1) : $match[0];
}, $content) ?? $content;
}
/**
* @param list<string> $errors
*/
private function scanExternal(string $content, string $file, array &$errors): void
{
if (preg_match('~https?://(?:fonts\.googleapis|fonts\.gstatic|use\.typekit|[a-z0-9.-]*cdn[a-z0-9.-]*|unpkg\.com|cdnjs)[^\s"\')]*~i', $content, $match)) {
$errors[] = "{$file}: externe Quelle „{$match[0]}“ – Schriften und Skripte selbst hosten (DSGVO, kein Cookie-Banner).";
}
if (preg_match('~<script[^>]+src=["\']https?://~i', $content)) {
$errors[] = "{$file}: externes Skript – nicht erlaubt.";
}
}
}
+11 -5
View File
@@ -18,22 +18,28 @@ public function __construct(private ThemeRegistry $registry) {}
public function forRequest(Request $request): Theme
{
$site = $this->site($request->getHost());
$isSigned = ($request->query('vorschau') || $request->query('theme')) && $request->hasValidSignature();
$preview = null;
if ($request->query('vorschau') && $request->hasValidSignature()) {
$preview = $site->appearances()->find($request->query('vorschau'));
$preview = $isSigned && $request->query('vorschau') ? $site->appearances()->find($request->query('vorschau')) : null;
// Theme preview: the site is shown with another installed theme without changing it (not saved).
$previewTheme = $isSigned ? (string) $request->query('theme') : '';
if ($previewTheme !== '' && isset($this->registry->all()[$previewTheme])) {
$site = (clone $site)->setAttribute('theme', $previewTheme);
return $this->forSite($site, $preview, isPreview: true);
}
return $this->forSite($site, $preview);
}
public function forSite(Site $site, ?Appearance $preview = null): Theme
public function forSite(Site $site, ?Appearance $preview = null, bool $isPreview = false): Theme
{
return new Theme(
$this->registry,
$site,
$preview ?? ($site->exists ? $site->appearanceOn(today()) : null),
isPreview: $preview !== null,
isPreview: $isPreview || $preview !== null,
);
}
+18
View File
@@ -48,4 +48,22 @@ public function viewsPath(): string
{
return $this->path.DIRECTORY_SEPARATOR.'views';
}
/**
* Relative path with forward slashes from one directory to another, as used in CSS @import/@source
* and JS imports, e.g. "../ostsee-licht/views".
*/
public static function relativePath(string $fromDirectory, string $to): string
{
$normalise = fn (string $path): array => array_values(array_filter(explode('/', str_replace('\\', '/', realpath($path) ?: $path)), fn (string $part): bool => $part !== ''));
$from = $normalise($fromDirectory);
$target = $normalise($to);
while ($from !== [] && $target !== [] && strcasecmp($from[0], $target[0]) === 0) {
array_shift($from);
array_shift($target);
}
return implode('/', [...array_fill(0, count($from), '..'), ...$target]) ?: '.';
}
}
+15
View File
@@ -57,6 +57,21 @@ public function chain(string $key): array
return array_values($chain);
}
/**
* Colour tokens of a theme including the inherited ones (base first, the theme's own definitions win).
*
* @return array<string, array{label: string, default: string}>
*/
public function tokens(string $key): array
{
$tokens = [];
foreach (array_reverse($this->chain($key)) as $theme) {
$tokens = [...$tokens, ...$theme->tokens];
}
return $tokens;
}
/**
* @return array<string, string>
*/
+40
View File
@@ -0,0 +1,40 @@
file;category;alt_text
2024/05/IMG_4041-scaled.jpg;apartment;Wohnzimmer mit blauer Ledercouch und Blick in die Küche
2024/05/IMG_4046-scaled.jpg;apartment;Wohnzimmer mit Fensterfront zur Terrasse
2023/11/01_wohn_web.jpg;apartment;Wohn- und Essbereich
2023/11/02_wohn_web.jpg;apartment;Esstisch mit vier Stühlen im Wohnbereich
2023/11/03_wohn_web.jpg;apartment;Sitzecke mit Relaxsessel und Fernseher
2023/11/06_wohn_web.jpg;apartment;Ledersofa vor der Terrassentür
2023/11/08_wohn_web.jpg;apartment;Blick vom Wohnbereich in Küche und Flur
2023/11/10_kueche_web.jpg;apartment;Einbauküche mit Essplatz
2023/11/11_kueche_web.jpg;apartment;Küchenzeile mit Backofen und Mikrowelle
2023/11/12_kueche_web.jpg;apartment;Küche mit Ceranfeld und Dunstabzug
2023/11/09_kueche_web.jpg;apartment;Flur mit Garderobe und offener Küche
2023/02/DSC00181-scaled.jpg;apartment;Schlafzimmer mit Boxspringbett
2023/11/14_schlaf_web.jpg;apartment;Schlafzimmer mit Doppelbett und Leseecke
2023/11/16_schlaf_web.jpg;apartment;Doppelbett im Schlafzimmer
2023/11/13_schlaf_web.jpg;apartment;Flur mit Blick ins Schlafzimmer und Bad
2023/12/Bad-scaled.jpg;apartment;Bad mit bodenebener Glasdusche
2023/11/18_bad_web.jpg;apartment;Bad mit Waschtisch und WC
2023/11/19_bad_web.jpg;apartment;Waschtisch mit Spiegelschrank
2025/02/Schreibtisch-1-2-scaled.jpg;apartment;Arbeitsplatz mit Schreibtisch
2023/02/bild_bg_9_gr.jpg;apartment;Grundriss der Wohnung
2024/05/IMG_4052-scaled.jpg;outdoor;Überdachte Terrasse mit Hortensien
2024/06/IMG_4045.jpg;outdoor;Terrasse mit Sitzgruppe und Blumen
2023/11/20_garten_web.jpg;outdoor;Sitzplatz im Garten der Wohnanlage
2023/11/21_garten_web.jpg;outdoor;Gartenweg zwischen den Häusern
2023/11/22_garten_web.jpg;outdoor;Garten mit Rhododendren vor den Terrassen
2023/11/23_garten_web.jpg;outdoor;Gartenteich in der Wohnanlage
2023/02/Sauna_gr.jpg;outdoor;Ruhebereich der Sauna im Haus
2024/05/DJI_0047-scaled.jpg;outdoor;Luftbild der Wohnanlage
2024/05/DJI_0050-scaled.jpg;outdoor;Luftbild mit Wald und Ostsee
2024/05/DJI_0054-scaled.jpg;outdoor;Luftbild von Kühlungsborn Richtung Ostsee
2023/02/bild_bg_10_gr.jpg;area;Strandkörbe am Ostseestrand
2023/02/fjord-gro.jpg;area;Bootshafen Kühlungsborn
2023/02/bild_bg_11_gr.jpg;area;Dampflok der Bäderbahn Molli
2023/02/geisterwald-gro.jpg;area;Gespensterwald bei Nienhagen
2023/02/hausostsee-gro.jpg;area;Villa in Bäderarchitektur
2023/02/bder4stil-gro.jpg;area;Strand mit Bäderarchitektur
2023/02/ostseealle-gro.jpg;area;Ostseeallee mit Villen
2023/02/kirche-gro.jpg;area;Backsteinkirche Kühlungsborn
2023/02/Einkaufen_gr.jpg;area;Einkaufen in Kühlungsborn
1 file category alt_text
2 2024/05/IMG_4041-scaled.jpg apartment Wohnzimmer mit blauer Ledercouch und Blick in die Küche
3 2024/05/IMG_4046-scaled.jpg apartment Wohnzimmer mit Fensterfront zur Terrasse
4 2023/11/01_wohn_web.jpg apartment Wohn- und Essbereich
5 2023/11/02_wohn_web.jpg apartment Esstisch mit vier Stühlen im Wohnbereich
6 2023/11/03_wohn_web.jpg apartment Sitzecke mit Relaxsessel und Fernseher
7 2023/11/06_wohn_web.jpg apartment Ledersofa vor der Terrassentür
8 2023/11/08_wohn_web.jpg apartment Blick vom Wohnbereich in Küche und Flur
9 2023/11/10_kueche_web.jpg apartment Einbauküche mit Essplatz
10 2023/11/11_kueche_web.jpg apartment Küchenzeile mit Backofen und Mikrowelle
11 2023/11/12_kueche_web.jpg apartment Küche mit Ceranfeld und Dunstabzug
12 2023/11/09_kueche_web.jpg apartment Flur mit Garderobe und offener Küche
13 2023/02/DSC00181-scaled.jpg apartment Schlafzimmer mit Boxspringbett
14 2023/11/14_schlaf_web.jpg apartment Schlafzimmer mit Doppelbett und Leseecke
15 2023/11/16_schlaf_web.jpg apartment Doppelbett im Schlafzimmer
16 2023/11/13_schlaf_web.jpg apartment Flur mit Blick ins Schlafzimmer und Bad
17 2023/12/Bad-scaled.jpg apartment Bad mit bodenebener Glasdusche
18 2023/11/18_bad_web.jpg apartment Bad mit Waschtisch und WC
19 2023/11/19_bad_web.jpg apartment Waschtisch mit Spiegelschrank
20 2025/02/Schreibtisch-1-2-scaled.jpg apartment Arbeitsplatz mit Schreibtisch
21 2023/02/bild_bg_9_gr.jpg apartment Grundriss der Wohnung
22 2024/05/IMG_4052-scaled.jpg outdoor Überdachte Terrasse mit Hortensien
23 2024/06/IMG_4045.jpg outdoor Terrasse mit Sitzgruppe und Blumen
24 2023/11/20_garten_web.jpg outdoor Sitzplatz im Garten der Wohnanlage
25 2023/11/21_garten_web.jpg outdoor Gartenweg zwischen den Häusern
26 2023/11/22_garten_web.jpg outdoor Garten mit Rhododendren vor den Terrassen
27 2023/11/23_garten_web.jpg outdoor Gartenteich in der Wohnanlage
28 2023/02/Sauna_gr.jpg outdoor Ruhebereich der Sauna im Haus
29 2024/05/DJI_0047-scaled.jpg outdoor Luftbild der Wohnanlage
30 2024/05/DJI_0050-scaled.jpg outdoor Luftbild mit Wald und Ostsee
31 2024/05/DJI_0054-scaled.jpg outdoor Luftbild von Kühlungsborn Richtung Ostsee
32 2023/02/bild_bg_10_gr.jpg area Strandkörbe am Ostseestrand
33 2023/02/fjord-gro.jpg area Bootshafen Kühlungsborn
34 2023/02/bild_bg_11_gr.jpg area Dampflok der Bäderbahn Molli
35 2023/02/geisterwald-gro.jpg area Gespensterwald bei Nienhagen
36 2023/02/hausostsee-gro.jpg area Villa in Bäderarchitektur
37 2023/02/bder4stil-gro.jpg area Strand mit Bäderarchitektur
38 2023/02/ostseealle-gro.jpg area Ostseeallee mit Villen
39 2023/02/kirche-gro.jpg area Backsteinkirche Kühlungsborn
40 2023/02/Einkaufen_gr.jpg area Einkaufen in Kühlungsborn
+9
View File
@@ -32,9 +32,18 @@ public function definition(): array
'password' => static::$password ??= Hash::make('password'),
'remember_token' => Str::random(10),
'role' => UserRole::Admin,
'app_authentication_secret' => 'JBSWY3DPEHPK3PXP',
];
}
/**
* Indicate that the user has not set up two-factor authentication yet.
*/
public function withoutTwoFactor(): static
{
return $this->state(fn (): array => ['app_authentication_secret' => null]);
}
public function role(?UserRole $role): static
{
return $this->state(fn (): array => ['role' => $role]);
@@ -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
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('users', function (Blueprint $table) {
$table->text('app_authentication_secret')->nullable()->after('password');
$table->text('app_authentication_recovery_codes')->nullable()->after('app_authentication_secret');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn(['app_authentication_secret', 'app_authentication_recovery_codes']);
});
}
};
@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('special_offers', function (Blueprint $table) {
$table->string('kind', 20)->default('rule')->after('name');
$table->unsignedSmallInteger('max_gap_nights')->nullable()->after('max_nights');
$table->boolean('waives_min_stay')->default(false)->after('max_gap_nights');
$table->integer('priority')->default(0)->after('is_combinable');
$table->boolean('is_featured')->default(false)->after('priority');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('special_offers', function (Blueprint $table) {
$table->dropColumn(['kind', 'max_gap_nights', 'waives_min_stay', 'priority', 'is_featured']);
});
}
};
@@ -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
{
/**
* Offers are advertised by their own rules now (OfferShowcase) instead of per appearance;
* appearances get photos per section instead.
*/
public function up(): void
{
Schema::table('appearances', function (Blueprint $table) {
$table->dropConstrainedForeignId('featured_offer_id');
$table->json('section_photos')->nullable()->after('hero_photo_id');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('appearances', function (Blueprint $table) {
$table->dropColumn('section_photos');
$table->foreignId('featured_offer_id')->nullable()->constrained('special_offers')->nullOnDelete();
});
}
};
@@ -0,0 +1,31 @@
<?php
use App\Models\Page;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;
return new class extends Migration
{
/**
* Existing pages: every placed section gets its stable id (see Page::assignSectionIds).
*/
public function up(): void
{
DB::table('pages')->orderBy('id')->each(function (object $page): void {
$sections = json_decode((string) $page->sections, true);
if (! is_array($sections)) {
return;
}
DB::table('pages')->where('id', $page->id)->update(['sections' => json_encode(Page::assignSectionIds($sections))]);
});
}
/**
* Ids are harmless when rolling back; nothing to undo.
*/
public function down(): void
{
//
}
};
@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('users', function (Blueprint $table) {
$table->string('admin_mode', 20)->nullable()->after('role');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn('admin_mode');
});
}
};
+1 -1
View File
@@ -16,7 +16,7 @@ class DatabaseSeeder extends Seeder
*/
public function run(): void
{
User::factory()->create([
User::factory()->withoutTwoFactor()->create([
'name' => 'Admin',
'email' => 'admin@example.com',
'role' => UserRole::Admin,
+148
View File
@@ -0,0 +1,148 @@
# Betrieb: Umgebungen, Zugänge, Einrichtung
Stand: 22.10.2026. Dieses Dokument beschreibt den **tatsächlichen Stand** der Installationen, damit jede neue Arbeitssitzung (Mensch oder KI) ohne Vorwissen weitermachen kann. Allgemeine Abläufe des Deployments stehen in [DEPLOYMENT.md](DEPLOYMENT.md), das fachliche Konzept in [KONZEPT.md](KONZEPT.md).
> **Geheimnisse stehen nie im Repository und nie im Chat.** Passwörter (Datenbank, E-Mail), `APP_KEY`, Tokens und private SSH-Schlüssel liegen nur in `shared/.env` auf dem Server bzw. im Vaultwarden von Lars. Hier ist nur dokumentiert, *wo* sie liegen.
## 1. Überblick
| | Testbetrieb (staging) | Produktion |
|---|---|---|
| Adresse | **https://stommer.info** | später https://www.fewo-stommer.de (heute noch WordPress) |
| Ordner auf dem Webspace | `test.fewo-stommer.de/` | noch nicht angelegt (Vorschlag: `fewo-production/`) |
| Deploy-Konfiguration (lokal, nicht committet) | `scripts/deploy.staging.env` | `scripts/deploy.production.env` (anlegen aus `deploy.example.env`) |
| Datenbank | MariaDB 11.8, siehe §3 | eigene Datenbank anlegen |
| E-Mail | `MAIL_MAILER=log` – **verschickt nichts** | Strato-SMTP |
| Postfach-Abruf (Portal-Mails) | aus (`FEWO_MAILBOX_HOST` leer) | `imap.strato.de` |
| Suchmaschinen | `noindex` (alles außer `APP_ENV=production`) | indexiert |
| Cronjob | **noch offen** (§6) | einrichten |
Git: `https://gitea.stommer.de/Lars/fewo-stommer.git`, Branch `main`. Gebaut und ausgeliefert wird immer der **letzte Commit**.
## 2. Strato-Paket (Hosting Pro)
- **SSH/SFTP-Server:** `51539426.ssh.w1.strato.hosting` (paketspezifisch, *nicht* `ssh.strato.de` – der lehnt ab). Port 22.
- **SSH-Benutzer:** `stu100093250` (Kundenlogin › Datenbanken und Webspace › SFTP & SSH › Details). Startverzeichnis `/` = Webspace-Wurzel.
- **Absoluter Pfad des Webspace:** `/mnt/web508/e3/26/51539426/htdocs/` (für Cronjobs).
- **PHP-CLI:** `/opt/RZphp84/bin/php-cli` (8.4). Die Web-PHP-Version des Pakets ist eine andere (8.3); die `.htaccess` im Deploy-Ordner setzt per `AddType application/x-httpd-php84 .php` 8.4 **nur für diesen Ordner**.
- **Andere Inhalte im Webspace nicht anfassen:** u. a. `www.fewo-stommer.de/` (bestehendes WordPress), `fewo`, Karate-Wiki, Moodle. Das Deploy-Skript arbeitet ausschließlich unterhalb von `DEPLOY_PATH`.
- **Domains:** SSL-Zertifikate gibt es im Paket nur für Hauptdomains, nicht für Subdomains. Deshalb läuft der Test unter `stommer.info` (Ziel: Ordner `test.fewo-stommer.de`, SSL aktiv, `www.stommer.info` ebenso). Die Subdomain `test.fewo-stommer.de` wird nicht mehr gebraucht.
- **Domain-Ziel = Deploy-Ordner selbst** (Strato kann kein Symlink-Ziel wählen). Die dort vom Skript geschriebene `.htaccess` leitet auf `releases/<aktive Version>/public` und sperrt alles Interne mit 403.
## 3. Datenbank (staging)
- Host `database-5021719836.webspace-host.com`, Port 3306, Datenbank `dbs16257975`, Benutzer `dbu2231025`, `DB_CONNECTION=mariadb`.
- Passwort: nur in `test.fewo-stommer.de/shared/.env` (und Vaultwarden).
## 4. SSH-Zugang einrichten (neuer Rechner, z. B. privater PC)
1. Schlüssel erzeugen: `ssh-keygen -t ed25519 -f ~/.ssh/strato_fewo -C "fewo-deploy <rechner>"`.
2. Öffentlichen Schlüssel beim Server eintragen (fragt einmal das SSH-Passwort des Strato-Benutzers ab):
`ssh-copy-id -i ~/.ssh/strato_fewo.pub stu100093250@51539426.ssh.w1.strato.hosting`
(Windows ohne `ssh-copy-id`: Inhalt von `strato_fewo.pub` per SSH an `~/.ssh/authorized_keys` anhängen.)
3. Test: `ssh -i ~/.ssh/strato_fewo stu100093250@51539426.ssh.w1.strato.hosting "ls"`.
4. Den privaten Schlüssel nur im Vaultwarden sichern, nie committen oder weitergeben.
5. **Aufräumen:** Der Schlüssel des Firmen-Laptops (Kommentar in `~/.ssh/authorized_keys` auf dem Server) wird entfernt, sobald der private PC eingerichtet ist.
Lokale Werkzeuge: PHP 8.4 CLI, Composer, Node/npm, Git, Bash (Windows: Git Bash). Danach `scripts/deploy.example.env` nach `scripts/deploy.staging.env` kopieren und mit den Werten aus §2 füllen (`DEPLOY_PATH=test.fewo-stommer.de`, `DEPLOY_URL=https://stommer.info`, `DEPLOY_SSH_KEY=~/.ssh/strato_fewo`; unter Windows ggf. `COMPOSER_BIN="php /c/…/composer.phar"`).
## 5. Konfiguration auf dem Server (`shared/.env`)
Vorlage: [.env.production.example](../.env.production.example). Bearbeiten nur direkt auf dem Server, damit Passwörter nicht durch Chat oder Repository laufen:
```bash
ssh -t -i ~/.ssh/strato_fewo stu100093250@51539426.ssh.w1.strato.hosting "nano test.fewo-stommer.de/shared/.env"
bash scripts/deploy.sh staging artisan optimize # danach Konfiguration neu einlesen
```
Gesetzte Werte im Testbetrieb (Geheimnisse ausgelassen):
| Schlüssel | Wert | Bemerkung |
|---|---|---|
| `APP_ENV` | `staging` | nicht `production` → `noindex` |
| `APP_DEBUG` | `false` | |
| `APP_URL` | `https://stommer.info` | alle erzeugten Links bauen darauf auf (`URL::forceRootUrl`) |
| `APP_KEY` | gesetzt | **nie ändern** – sonst sind 2FA-Schlüssel und Sitzungen unlesbar |
| `DB_*` | siehe §3 | |
| `SESSION_DRIVER` / `CACHE_STORE` | `database` | |
| `SESSION_SECURE_COOKIE` | `true` | Anmeldung nur über HTTPS |
| `QUEUE_CONNECTION` | `sync` | keine Worker auf Shared Hosting |
| `MAIL_MAILER` | `log` | Testbetrieb verschickt **keine** E-Mails (landen in `shared/storage/logs`) |
| `FEWO_MAILBOX_HOST` | leer | Testbetrieb liest **kein** echtes Postfach |
| `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) |
## 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.
Offen:
- **Admin-Benutzer anlegen** (§7) und 2FA einrichten.
- **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.
- Bankdaten, Vertrags- und AGB-Texte, Rechtstexte prüfen.
### Fotos aus dem alten WordPress übernehmen
Die Auswahl (39 aktuelle Fotos: Wohnung, Garten/Terrasse/Luftbilder, Umgebung – ohne Theme-Platzhalter, Logos, Vorschaugrößen und veraltete Einrichtung) mit Kategorie und Bildbeschreibung steht in [database/data/wordpress-photos.csv](../database/data/wordpress-photos.csv). Der Import **liest** die Dateien nur aus dem WordPress-Ordner (dort wird nichts verändert), legt Original + WebP-Größen in `shared/storage/app/public` ab und überspringt bereits importierte Fotos (wiederholbar):
```bash
bash scripts/deploy.sh staging artisan photos:import /mnt/web508/e3/26/51539426/htdocs/www.fewo-stommer.de/wp-content/uploads --manifest=database/data/wordpress-photos.csv
```
Danach in der Verwaltung (Webseite › Fotos) Reihenfolge, Sichtbarkeit und Texte prüfen.
- Gitea-Runner für automatisches Deployment (DEPLOYMENT.md §5).
## 7. Zugang zur Verwaltung (`/admin`)
**Benutzer anlegen** – der erste Administrator per Befehl (das Passwort wird verdeckt im eigenen Terminal eingegeben, nie als Argument):
```bash
ssh -t -i ~/.ssh/strato_fewo stu100093250@51539426.ssh.w1.strato.hosting \
"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.
**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.
**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.
**Zwei-Faktor-Anmeldung (2FA):** Filament-eigene Lösung mit Authenticator-App (TOTP, z. B. Bitwarden/Vaultwarden, Google oder Microsoft Authenticator) und Wiederherstellungscodes.
- **Pflicht für Administratoren:** Nach der ersten Anmeldung wird man auf die Einrichtungsseite geleitet (QR-Code scannen, Code bestätigen, Wiederherstellungscodes sichern). Umgesetzt mit `App\Http\Middleware\RequireTwoFactorForAdmins`.
- **Freiwillig für andere Rollen:** im Profil (Avatar oben rechts › Profil).
- Schlüssel und Codes liegen verschlüsselt (mit `APP_KEY`) in `users.app_authentication_secret` / `app_authentication_recovery_codes`.
- **Handy verloren:** Anmeldung mit einem Wiederherstellungscode. Sind auch die weg, setzt ein Administrator mit Serverzugang die 2FA zurück:
```bash
bash scripts/deploy.sh staging artisan tinker --execute='App\Models\User::where("email", "lars@stommer.com")->update(["app_authentication_secret" => null, "app_authentication_recovery_codes" => null]);'
```
Danach bei der nächsten Anmeldung neu einrichten.
Lokal (nur Entwicklung, `php artisan migrate:fresh --seed`): `admin@example.com` / `password`, 2FA wird bei der ersten Anmeldung eingerichtet.
## 8. Bekannte Eigenheiten und Lösungen
| Problem | Ursache | Lösung (umgesetzt) |
|---|---|---|
| Nach dem Umschalten lief die alte Version weiter | Strato-OPcache speichert Skripte unter dem Symlink-Pfad `current/…` | `.htaccess` zeigt auf den konkreten Ordner `releases/<version>/public` und wird bei jedem Umschalten neu geschrieben |
| Links mit `/current/public` (z. B. Sitemap) | Laravel leitet den Basis-Pfad aus dem Skript-Pfad ab | `URL::forceRootUrl(APP_URL)` außerhalb von local/testing (`AppServiceProvider`) |
| HTTP 500 „Composer platform“ | Web-PHP des Pakets ist 8.3 | `AddType application/x-httpd-php84 .php` in der Ordner-`.htaccess` |
| SSH „connection closed“ | falscher Server `ssh.strato.de` | paketspezifischer Server (§2) |
| Domain-Ziel `current/public` nicht wählbar | Strato erlaubt kein Symlink-Ziel | Domain auf den Deploy-Ordner, `.htaccess` leitet weiter |
| 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). |
| Windows: Symlinks, `php` nicht im PATH | Git Bash | Deploy nur gegen Strato testen; `export PATH="<php-ordner>:$PATH"` |
## 9. Nützliche Befehle
```bash
bash scripts/deploy.sh staging deploy # ausliefern (letzter Commit)
bash scripts/deploy.sh staging releases # aktive Version + Deploy-Tags in Git
bash scripts/deploy.sh staging deploy deploy/staging/<zeitstempel> # frühere Version erneut ausliefern
bash scripts/deploy.sh staging artisan about # Zustand der Installation
bash scripts/deploy.sh staging artisan migrate:status
ssh -i ~/.ssh/strato_fewo stu100093250@51539426.ssh.w1.strato.hosting \
"tail -n 50 test.fewo-stommer.de/shared/storage/logs/laravel-$(date +%F).log" # Fehlerprotokoll
```
+89
View File
@@ -0,0 +1,89 @@
# BUCHUNGSPROZESS – Vertrags-, Zahlungs- und Stornierungsablauf
> **Hinweis (22.10.2026):** Von einem Analyse-Agenten erstellt. Die als „verbindlich“ bezeichneten Entscheidungen (E1–E7) sind Annahmen des Agenten, keine Festlegungen der Betreiber. Maßgeblich sind die Entscheidungen in [KONZEPT.md §6a/6b](KONZEPT.md) (u. a. Buchungsweg 1 über Angebot + Annahme, Weg 2 Direktbuchung später; Kurabgabe vor Ort durch Ferienservice Balu).
Stand: 22.10.2026 · **Entwurf zur Freigabe.** Keine Umsetzung. Juristische Einordnung (u. a. §§ 312j, 312k BGB) ist **offener Prüfpunkt** – nichts hier ist als rechtskonform bestätigt.
## 1. Ist-Stand (im Code belegt)
`Reserved` (Anfrage = zugleich zeitlich begrenzte Vorreservierung, `hold_hours`) → `Confirmed` (Vermieterin bestätigt: Vertrag-PDF + Mail, Anzahlungsfrist) → `DepositPaid` → `Paid` → `Completed`; Nebenpfade `Declined`, `Expired`, `Cancelled`. Alle Statuswechsel laufen manuell (Admin) oder per Zeitjob; Zahlungen werden manuell erfasst (`RecordPayment`). Quellen: `app/Enums/BookingStatus.php`, `app/Actions/*`.
Nicht vorhanden: Angebot als eigener Schritt, Annahme durch Gast, Nachweis des Vertragsschlusses, Stornokostenberechnung, Gäste-Storno, Erstattungsworkflow, Empfangsbestätigung mit Vertragstext.
## 2. Ziel-Statusmodell
| Status | Bedeutung | Belegt Kalender? | Übergang durch | Mail an Gast |
|---|---|---|---|---|
| `inquiry` | Unverbindliche Anfrage (nur Daten) | nein | Gast (Formular) | Eingangsbestätigung (nicht verbindlich) |
| `reserved` | Vorreservierung, befristet gehalten | ja (Hold) | Vermieterin/Automatik | Info zur Frist |
| `offer_sent` | Ausdrückliches Angebot mit Preis, Bedingungen, Frist | ja (bis `offer_expires_at`) | Vermieterin (später KI-Entwurf + Freigabe) | Angebot + Annahme-Link |
| `offer_expired` / `offer_declined` | Frist verstrichen / Gast lehnt ab | nein | Zeitjob / Gast | Info |
| `confirmed` | **Annahme durch Gast** → verbindliche Buchung (Vertrag geschlossen) | ja | Gast (Annahme) | Vertragsunterlagen + Zahlungsaufforderung |
| `deposit_paid`, `paid`, `completed` | wie bisher | ja | Zahlung/Zeit | Quittungen/Hinweise |
| `cancel_requested` | Stornierung/Kündigung vom Gast erklärt | ja bis Entscheidung | Gast | Eingangsbestätigung |
| `cancelled` | Storniert, Kosten berechnet | nein | Vermieterin/Automatik | Stornobeleg |
| `declined` | Vermieterin lehnt Anfrage ab | nein | Vermieterin | Absage |
| `no_show` (optional) | Nichtanreise | – | Vermieterin | – |
Bestehende Werte bleiben gültig (Spalte `status` ist String): `Reserved` bleibt, `Confirmed` wird semantisch auf „Annahme erfolgt“ geschärft. Migrationspfad: bestehende `Confirmed`-Buchungen gelten als angenommen (Entscheidung nötig).
**Zahlungspflicht:** Nur im Übergang `offer_sent → confirmed` durch eindeutigen Button (Beschriftung z. B. „zahlungspflichtig buchen“, ⚖ Wortlaut § 312j (3) BGB prüfen) wird sie begründet; alle übrigen Schritte sind ausdrücklich nicht zahlungspflichtig.
## 3. Ablauf Direktbuchung
1. **Anfrage** (Formular, bestehend `BookingRequest`): Pflichtfelder wie heute, Hinweis „unverbindlich“, Datenschutzhinweis (Art. 13). Eingangsbestätigung per Mail (bestehend `ReservationReceived`).
2. **Vorreservierung**: Datumshold wie `hold_expires_at`; Ablauf durch bestehenden Job.
3. **Angebot**: Vermieterin erstellt/prüft Angebot aus `PriceQuote` (bestehend) + Stornobedingungen + Kurabgabe-Hinweis + AGB/Datenschutz; Angebotsdokument als PDF (`documents.type=offer`), Hash gespeichert. Gültigkeit `offer_expires_at`.
4. **Annahme durch Gast** (ohne Konto): Mail mit **signiertem, befristeten, einmal nutzbaren Link** (Muster wie `URL::temporarySignedRoute` bei Newsletter/Bewertung) → Seite zeigt Angebot vollständig (Preis, Leistungen, Bedingungen) und Zusammenfassung; Bestätigung per Button. Zusätzlich möglich: Rückbestätigung per Mail-Link (Double-Check), falls ⚖ erforderlich.
5. **Verbindliche Buchung**: System setzt `accepted_at`, speichert **Annahmenachweis** (Zeitpunkt, Angebots-Hash, Angebotsversion, Bedingungenversion, IP-Hash/User-Agent – nur wenn zwingend nötig und ⚖ datenschutzrechtlich geprüft, sonst weglassen), Kalender belegt, Portal-Sperr-Aufgaben laufen (bestehender Observer).
6. **Vertragsunterlagen per E-Mail**: Bestätigungsmail + Vertrag/AGB/Stornobedingungen als PDF (bestehend `RentalContract`, `BookingConfirmed`) = **elektronische Empfangsbestätigung** des Annahme-Eingangs (⚖ § 312i BGB).
7. **Zahlung**: Anzahlung/Restzahlung wie `SendBookingReminders`/`RecordPayment`.
8. **Abschluss**: `Completed`; Bewertungsanfrage (bestehend).
Die Akteure „Vermieterin“ und später „KI-Agent“ sind getrennt: Angebotserstellung/Annahme-Prüfung dürfen automatisiert **vorbereiten**; Versand von Preis/Angebot/Absage erfordert zunächst menschliche Freigabe (offene Entscheidung zur späteren Autonomiestufe).
## 4. Technische Voraussetzungen (Prüfung Ist/Soll)
| Voraussetzung | Ist | Soll |
|---|---|---|
| Eindeutige Kennzeichnung der Zahlungspflicht | ❌ | Angebotsseite/Button; Text und Reihenfolge ⚖ |
| Dokumentation des Vertragsschlusses | ❌ (nur `confirmed_at`) | `accepted_at`, Angebots-/AGB-Version, Hash, Audit-Event |
| Vertragsunterlagen per E-Mail | ✅ (PDF bei Bestätigung) | Beibehalten, um Angebot/AGB-Hash ergänzen |
| Sichere Storno-/Kündigungserklärung ohne Konto | ❌ | Signierter Link in jeder Buchungsmail → Formular (Grund optional, Pflicht: Buchungsreferenz via Link-Token); Bestätigungsmail mit Zeitstempel; Alternative: Antwort-Mail; ⚖ ob Pflicht zur elektronischen Erklärung/Button nach § 312k BGB besteht (vermutlich Dauerschuldverhältnis-bezogen, **offen**) |
| Nachvollziehbare Stornokosten | ❌ (Freitext) | Staffel als Daten (`cancellation_policy`: ab Tag X vor Anreise Y % vom Mietpreis), Berechnung im `Action`, Anzeige im Angebot und Storno-Beleg; ⚖ Zulässigkeit der Pauschalen (§ 309 Nr. 5 BGB, ggf. Angemessenheit) |
| Rückerstattungen | ⚠ negative `Payment` möglich | Erstattungs-Action: Betrag aus Policy, Grund, Beleg, Zahlungsweg (Überweisung), Status in `payments` |
| Elektronische Empfangsbestätigung | ⚠ Anfragebestätigung ✅, Annahmebestätigung ❌ | Unmittelbare Mail nach Annahme/Storno |
| Zahlungsarten | Überweisung/bar | Keine Online-Zahlung geplant (damit PCI-DSS/PSD2-Thema nicht berührt) |
## 5. Stornierung (Entwurf)
1. Gast klickt Link → sieht Buchung, **berechnete Stornokosten** (Policy + Datum), erklärt Storno (Button).
2. System setzt `cancel_requested`/`cancelled`, speichert Zeitpunkt (`cancelled_at`, bestehend), `cancelled_by=guest`, berechnet `cancellation_fee`; sendet Bestätigung; Admin-Hinweismail; Observer erzeugt Portal-Entsperraufgaben (bestehend).
3. Erstattung: Differenz aus Zahlungen − Kosten → Erstattungsbuchung; Beleg als Dokument.
4. Storno durch Vermieterin: wie heute möglich, aber mit Grund, Gast-Mail, automatischer Erstattung (heute nur Statuswechsel).
5. Portalbuchungen: Storno läuft über das Portal; System importiert Stornomail (bestehend `PortalEmailType::Cancellation`) und gibt Block frei; Stornokosten/Erstattung nach Portalregeln (manuell, ggf. Portalabrechnung).
## 6. Kurabgabe, Küstenkarte, Gästemeldung (Kühlungsborn)
**Trennung der Rechtsgrundlagen (Prüfannahme, ⚖):**
- **Bundesrechtlich:** Meldepflicht Beherbergungsstätten (Bundesmeldegesetz, §§ 29 f. BMG; Länder-/Ortsregelungen zu elektronischer Meldung beachten). Zweck: Gästemeldung/Meldeschein; Daten laut Gesetz (u. a. Name, Anschrift, Ankunft/Abreise, Zahl und Staatsangehörigkeit Mitreisender – exakter Umfang ⚖). Aufbewahrungs- und Vernichtungsfristen: **gesetzlich**, nicht frei wählbar.
- **Kommunal:** Kurabgabe (Kommunalabgabengesetz M-V + Kurabgabesatzung Ostseebad Kühlungsborn): Abgabepflichtige Personen, Befreiungen, Erhebung durch Beherbergungsbetrieb, Abführung, ggf. Aufwandsentschädigung. Erforderliche Daten (je Person: Alter/Befreiung, Aufenthaltstage) und Fristen ⚖ der Satzung.
- **Küstenkarte** (digitale Gästekarte): Ausgabe an Gäste über das lokale System; Leistungen/Daten ⚖ bei Tourist-Information klären.
- **feratel MeldeClient:** Laut `docs/PORTALE.md` Schnittstelle für Software-Partner (Testbetrieb); Konditionen, Datenumfang, Rolle (Auftragsverarbeitung oder eigene Verantwortung der Gemeinde) ❓ offen.
**Datenfluss (Soll, vorbehaltlich Klärung):** Gast liefert Meldedaten (Pre-Check-In-Link, ohne Konto) → Daten **getrennt** vom Buchungs-CRM gespeichert (Tabellen `registrations`, `registration_guests`) → Übermittlung an feratel/Gemeinde → Löschung nach gesetzlicher Frist. Portalgäste: Meldedaten gesondert beim Gast erfragen, nicht aus Portalmails raten.
**Technische Datenfelder (Entwurf):** je Person Vorname, Nachname, Geburtsdatum/Altersgruppe, Anschrift/Staatsangehörigkeit (nur soweit gesetzlich), An-/Abreise, Befreiungsgrund; je Buchung Kurabgabebetrag (`tourist_tax_amount`) und Erhebungsstatus (`collected_by_host`/`portal`/`on_site`).
**Offen:** Formal Erhebung der Kurabgabe bei Portalbuchungen (Portal zieht ggf. ein), Abrechnungsweg mit Gemeinde, Rolle Tourist-Information (⚖).
## 7. Offene Rechtsfragen (Buchungsprozess)
1. Geltung und Ausgestaltung von § 312j BGB (Button, Informationspflichten) für Beherbergung/Ferienwohnung.
2. Anwendbarkeit von § 312k BGB (Kündigungsbutton) auf Ferienwohnungsmietverträge.
3. Widerrufsrecht bzw. gesetzliche Ausnahme bei Beherbergung zu bestimmtem Termin (§ 312g BGB).
4. Wirksamkeit/Angemessenheit der Stornopauschalen und AGB-Einbeziehung.
5. Beweisanforderungen an den Annahmenachweis; Umfang zulässiger Protokolldaten (IP).
6. Preisangaben-Pflichten (PAngV) bei Pflichtkosten/Kurabgabe.
7. Einbeziehung der Gäste-Informationspflichten (Art. 13/14) in Angebot/Vertrag.
8. Zulässigkeit automatisierter Entscheidungen bei Ablehnung/Preisbildung durch KI (Art. 22 DSGVO).
+95
View File
@@ -0,0 +1,95 @@
# DATENMODELL-KONZEPT – Zielarchitektur Gäste, Buchungen, Portale
> **Hinweis (22.10.2026):** Von einem Analyse-Agenten erstellt. Die als „verbindlich“ bezeichneten Entscheidungen (E1–E7) sind Annahmen des Agenten, keine Festlegungen der Betreiber. Maßgeblich sind die Entscheidungen in [KONZEPT.md §6a/6b](KONZEPT.md) (u. a. Buchungsweg 1 über Angebot + Annahme, Weg 2 Direktbuchung später; Kurabgabe vor Ort durch Ferienservice Balu).
Stand: 22.10.2026 · **Entwurf zur Freigabe.** Keine Migration erstellt oder ausgeführt. Grundprinzipien: Datenminimierung, Quellenkennzeichnung, keine geratenen Daten, möglichst Wiederverwendung des Bestands.
## 1. Bestandsaufnahme (Implementiert?)
| Anforderung | Bestand | Status |
|---|---|---|
| Portalübergreifende Gästekartei, interne ID | `guests.id` ✅; aber nur Direktgäste, Dublette nur exakt per E-Mail | Teilweise |
| Herkunftsportal | `bookings.source` (Text, z. B. `website`), `referral_source` (Marketing), `blocked_periods.channel_id` + `source` | Teilweise (Portal nur am Block) |
| Externe Buchungsreferenz | `blocked_periods.external_uid`, `portal_emails.reference`; nicht am Buchungsdatensatz | Teilweise |
| Reservierungs-/Buchungsstatus | `BookingStatus` (8 Werte) ✅; kein Angebot/Annahme | Teilweise |
| Mietpreis | `bookings.total/deposit`, `quote` JSON ✅ (nur Direkt) | Teilweise |
| Portalgebühren | – | Fehlt |
| Kurtaxe | nur Hinweistext | Fehlt |
| Zahlungen | `payments` ✅ (Überweisung/bar/sonstige; Erstattung = negativer Betrag) | Vorhanden |
| Steuerrelevante Nachweise | Vertrags-PDF (`contract_path`) ✅; keine Rechnungen/Belege/Portalabrechnungen | Teilweise |
| Ein-/ausgehende Portalnachrichten | `portal_emails` (nur eingehende Benachrichtigungen, Auszug) | Teilweise |
| Dublettenprüfung / Zusammenführung | – | Fehlt |
| Datenquelle + Importzeitpunkt | `channel_sync_logs`, `portal_emails.received_at`; nicht am Gast/Buchung | Teilweise |
## 2. Leitentscheidung (Annahme)
**Portalbuchungen werden als `Booking` geführt** (nicht länger nur als `BlockedPeriod`), mit `source = <Kanal>`, optionalem Gast und leeren Feldern, wo keine Daten vorliegen. `BlockedPeriod` bleibt für Eigenbelegung, Wartung und rein per iCal bekannte Sperren. Zuordnung `BlockedPeriod` → `Booking` über neue FK, sobald eine Portal-Mail/API die Buchung identifiziert. Vorteil: ein Reporting, ein Zahlungs-/Belegmodell; bestehende `Booking::occupying()`-Logik und Observer greifen weiter. *(Entscheidung/Alternative zu bestätigen.)*
## 3. Zielmodell (Änderungen am Bestand, kursiv = neu)
### 3.1 `guests` (Erweiterung)
| Feld | Zweck |
|---|---|
| `id` (intern, bleibt) | eindeutige Gäste-ID |
| *`data_source`* (`direct`, `portal_mail`, `portal_api`, `manual`) | Herkunft der Stammdaten |
| *`imported_at`* | Importzeitpunkt |
| *`merged_into_id`* (nullable FK) | Zusammenführung, Quelle bleibt als „gemergt“ erhalten |
| *`address_verified`* / Feldquellen | Kennzeichnung, ob Daten vom Gast selbst stammen |
| bestehende Felder | unverändert; `email` darf bei Portalgästen **NULL** sein (Portale liefern oft maskierte Adressen) |
### 3.2 *`guest_identities`* (optional, später)
Mehrere Kennungen je Gast (E-Mail, Portal-Alias, Telefon) mit Quelle – Grundlage der Dublettenprüfung ohne Überschreiben (löst D8).
### 3.3 `bookings` (Erweiterung)
| Feld | Zweck |
|---|---|
| `source` (bestehend) | Kanal-Schlüssel (`website`, `fewo_direkt`, …) – mit `channels` verknüpfbar |
| *`channel_id`* (nullable) | exakte Portalzuordnung |
| *`external_reference`* (nullable, unique je Kanal) | Portal-Buchungsnummer, nur wenn belegt |
| *`imported_at`*, *`import_source`* (`ical`, `email`, `api`, `manual`) | Quelle/Zeitpunkt |
| *`offer_sent_at`, `offer_expires_at`, `accepted_at`, `acceptance_evidence`* (JSON) | Angebot/Annahme, s. BUCHUNGSPROZESS.md |
| *`rent_amount`* (bestehend `total` weiterverwendbar), *`portal_fee`*, *`tourist_tax_amount`*, *`tourist_tax_collected_by`* | Beträge in Euro-Cent |
| *`cancellation_fee`*, *`cancelled_by`*, *`cancellation_reason`* | Storno |
| `contract_path` (bestehend) | wird durch `documents` abgelöst (§3.5) |
Beträge unverändert als Integer-Cent (Projektregel).
### 3.4 `payments` (Erweiterung)
`type` (`deposit`, `balance`, `refund`, `portal_payout`, `tourist_tax`), `external_reference`, `currency` (EUR). Erstattungen weiter als negativer Betrag oder Typ `refund` (Entscheidung offen).
### 3.5 *`documents`* (neu) – steuerrelevante Nachweise
`booking_id`, `type` (`contract`, `offer`, `invoice`, `receipt`, `portal_statement`, `registration_form`, `correspondence`), `path`, `sha256` (Unveränderbarkeitsnachweis), `created_at`, `retain_until` (aus Löschkonzept), `contains_personal_data`. Dateien auf privatem Disk, nicht öffentlich. Ablösung des Einzelfelds `contract_path`.
### 3.6 *`messages`* (neu) – Portal-/Gästekommunikation
`booking_id`/`guest_id`, `direction` (`in`/`out`), `channel` (`email`, `portal`), `external_id` (z. B. Message-ID, bereits in `portal_emails.message_id`), `subject`, `body` (optional, **mit kurzer Frist**), `received_at`/`sent_at`, `source`. Bestehende `portal_emails` bleibt als Parsing-Protokoll; Auszug (`excerpt`) wird gekürzt/entfernt (D6).
### 3.7 *`guest_merge_candidates`* (neu, optional)
`guest_a_id`, `guest_b_id`, `score`, `reasons` (z. B. gleiche E-Mail, gleicher Name + Zeitraum), `status` (`open`, `merged`, `rejected`). Zusammenführung nur manuell im Admin.
### 3.8 *`audit_events`* (neu)
Wer/Was/Wann für Statuswechsel, Zusammenführung, Export, Anonymisierung, Dokumentabruf – ohne Inhalte, mit Löschfrist.
## 4. Datenquellen je Feld
| Feld | iCal | Portal-E-Mail | Autorisierte API | Direkt (Formular) |
|---|---|---|---|---|
| Zeitraum | ✅ | ✅ (Parser) | ✅ | ✅ |
| Portal/Kanal | ✅ (über Channel) | ✅ (Absender) | ✅ | – |
| Externe Referenz | UID (nicht Buchungsnr.) | ✅ falls im Text | ✅ | – |
| Gastname/E-Mail/Tel. | ❌ | ❓ nur wenn Mail sie enthält | ✅ (vertragsabhängig) | ✅ |
| Preis/Gebühren | ❌ | ❓ | ✅ | ✅ (Quote) |
| Zahlungen | ❌ | ❌ | ❓ | manuell |
| Nachrichten | ❌ | eingeschränkt | ✅ | ✅ (Mail) |
Regel: Importer schreiben **nur** belegte Felder; Unbekanntes = `NULL` + Kennzeichnung; Parser-Unsicherheit → `needs_review` (bereits so umgesetzt).
## 5. Dublettenprüfung und Zusammenführung
1. Exakter Treffer: normalisierte E-Mail (bestehend) → vorschlagen, **nicht** stillschweigend überschreiben.
2. Weiche Treffer: Name + Zeitraum/Portal-Referenz, Telefonnummer normalisiert → nur als Kandidat.
3. Zusammenführung manuell: Zielgast wählen, Felder einzeln übernehmen, Buchungen umhängen, Quellgast `merged_into_id`, Audit-Eintrag; keine Löschung der Historie.
4. Direktanfragen mit bekannter E-Mail aktualisieren Stammdaten **nur nach Bestätigung** (Fix für D8).
## 6. Wiederverwendung / Umsetzungsreihenfolge (nach Freigabe)
1. Felder/Migrationen (additiv, rückwärtskompatibel). 2. `documents` + Umzug von `contract_path`. 3. Importpfad Portal-Mail → `Booking` (Parser bleibt). 4. Merge-Kandidaten + Admin-Aktion. 5. Finanzfelder (Gebühren, Kurtaxe). 6. API-Connector über `ChannelConnector` (nur nach Anbieter-/AVV-Klärung).
+224
View File
@@ -0,0 +1,224 @@
# Datenschutz- und Datenfluss-Audit – Ferienwohnung Stommer
> **Hinweis (22.10.2026):** Von einem Analyse-Agenten erstellt. Die als „verbindlich“ bezeichneten Entscheidungen (E1–E7) sind Annahmen des Agenten, keine Festlegungen der Betreiber. Maßgeblich sind die Entscheidungen in [KONZEPT.md §6a/6b](KONZEPT.md) (u. a. Buchungsweg 1 über Angebot + Annahme, Weg 2 Direktbuchung später; Kurabgabe vor Ort durch Ferienservice Balu).
Stand: 22.10.2026 · Art: **Read-only-Codeaudit** (Repository-Stand `main` + lokale, noch nicht committete Änderungen) · Verantwortliche: Brigitte Stommer
> **Hinweis zur Verwendung:** Dies ist eine technische Bestandsaufnahme, keine Rechtsberatung. Alle Rechtsgrundlagen sind *Prüfannahmen*. Vor Veröffentlichung der Datenschutzerklärung ist eine juristische Prüfung (ggf. Datenschutzbeauftragte/r bzw. Rechtsberatung) erforderlich. Der Bericht ist vor Weitergabe an Dritte zu prüfen und zu validieren.
**Methodik und Grenzen**
- Untersucht: Quellcode, Konfiguration (`config/*`), Migrationen, Views, Routen, Tests-Namen, Betriebsdokumentation (`docs/*`).
- **Nicht durchgeführt:** Zugriff auf Staging/Produktion, Browser-/Netzwerkanalyse, Test-Buchungen, Einsicht in Server-`.env`, Strato-Verträge/-Einstellungen. Es gibt daher **kein „tatsächlich beobachtetes Browserverhalten“** – alle Aussagen zu Cookies/Requests sind Codebefunde.
- Es wurden keine Zugangsdaten, Tokens oder echten Gästedaten in diesen Bericht übernommen.
**Statuskennzeichnung:** ✅ Implementiert und im Code belegt · 📄 Nur konfiguriert/dokumentiert · 🗓 Geplant · ❓ Unbekannt / zu prüfen
---
## 1. Executive Summary
**Gesamtbild:** Die Anwendung ist datensparsam aufgebaut. Es gibt **keine Analyse-/Marketing-Dienste, keine externen Skripte/CDNs/Schriften, keine eingebettete Karte, kein Kundenkonto**. Nach Code-Lage setzt die Seite nur technisch notwendige Cookies (Session, XSRF). Gästedaten liegen in einer MySQL/MariaDB bei STRATO; E-Mail-Versand läuft über den Strato-SMTP (Produktion geplant).
**Positiv (✅):** selbst gehostete Schriften; Double-Opt-in für Angebots-E-Mails mit signiertem Abmeldelink; automatische Anonymisierung nach Aufbewahrungsfrist (Standard 10 Jahre, Steuerberatung zu bestätigen); Honeypot + IP-Rate-Limit am Buchungsformular; Admin-Rollen mit Policies; Pflicht-2FA für Admins; HMAC-signierte Webhooks; iCal-Feed ohne Gästedaten; Mietvertrag-PDF nicht öffentlich abgelegt.
**Wichtigste Lücken (Details §5):**
1. **Datenschutzerklärung und Impressum sind leer** (`legal.privacy`/`legal.imprint` ohne Default) – Blocker für die Produktivsetzung.
2. **Anonymisierung ist unvollständig:** Vertrags-PDFs, `portal_emails.excerpt`, `bookings.internal_notes`, Bewertungen (Name, privates Feedback), UTM-Daten, Sitzungs-IPs und Logs werden nicht mitgelöscht/anonymisiert.
3. **Kein dokumentiertes Löschkonzept für Nicht-Buchungen:** Abgelaufene/abgelehnte Anfragen bleiben (Guest + Booking) bis zur 10-Jahres-Anonymisierung gespeichert – Frist vermutlich zu lang für Anfragen ohne Vertragsabschluss (juristisch prüfen).
4. **Backups:** Datenbank-Backups sind nur im Konzept („täglich“) erwähnt, im Code/Deployment nicht belegt (❓).
5. **Geheimnisse in URL-Query** (`?token=` für `/health/sync`, `/automation/scheduler`) landen in Server-/Proxy-Logs; Betrieb über n8n auf einem „privaten Server“ ist eine Auftragsverarbeitungs-/Drittlandfrage, falls dort Gästedaten fließen.
6. **Kein Angebot/Annahme-Schritt im System:** Der Prozess kennt nur *Anfrage (Reserved) → vom Vermieter bestätigt (Confirmed)*; die Gast-Annahme ist nicht abgebildet. Das ist für Datenschutzerklärung (Vertragsanbahnung) und AGB relevant.
7. **KI:** Keine KI-Komponente im Code vorhanden (🗓 nur perspektivisch). Vor Einführung sind AVV, Drittlandtransfer, Art. 22 DSGVO und DSFA zu klären.
8. **Fehlende Security-Header** (CSP, HSTS, X-Frame-Options etc.) im Anwendungscode; ggf. nur über Strato/.htaccess (❓).
---
## 2. Systemübersicht und Datenflussdiagramm
### 2.1 Technik (alle ✅ soweit nicht anders vermerkt)
| Bereich | Befund | Quelle |
|---|---|---|
| Framework | Laravel 13 (PHP 8.4), Livewire, Filament 5 (Admin `/admin`), Blade-Theme-System, Tailwind/Vite (lokal gebaut) | `composer.json`, `CLAUDE.md` |
| Hosting | STRATO Shared Webhosting (Hosting Pro), kein Node zur Laufzeit; Atomic Releases, nur aktive Version auf dem Server | `docs/BETRIEB.md` §2, `docs/DEPLOYMENT.md` |
| Datenbank | MariaDB (STRATO) in Staging 📄; lokal SQLite. Enthält Gäste, Buchungen, Zahlungen, Sessions, Cache, Jobs | `docs/BETRIEB.md` §3, `database/migrations/*` |
| Dateispeicher | `storage/app` (privat: Vertrags-PDFs) und `storage/app/public` (Fotos, WebP-Größen); Spatie Media Library | `app/Documents/RentalContract.php`, `config/filesystems.php`, `config/media-library.php` |
| Sessions/Cache/Queue | `database`-Treiber; Queue `sync` (kein Worker) | `config/session.php`, `docs/BETRIEB.md` §5 |
| Mail | Staging: `MAIL_MAILER=log` (E-Mails landen im Logfile!); Produktion: Strato-SMTP 🗓/📄 | `docs/BETRIEB.md` §1/§5, `config/mail.php` |
| Postfach-Abruf | IMAP (Strato) für Portal-Benachrichtigungen, Staging aus, Produktion 🗓 | `app/Channels/Mail/MailboxReader.php`, `config/fewo.php` |
| Logging | Laravel-Log (Datei `storage/logs`, Level `debug` als Default); Slack/Papertrail-Kanäle nur als Framework-Defaults, nicht aktiv konfiguriert (❓ Produktiv-`.env`) | `config/logging.php` |
| Monitoring | Eigener Endpoint `/health/sync` (Token), geplant n8n als externer Wächter 📄 | `ChannelController::health`, `docs/KONZEPT.md` |
| Fehlerberichte | Kein Sentry/Bugsnag o. Ä. (nicht in `composer.json`) | `composer.json` |
| Drittanbieter-Pakete (lokal ausgeführt) | dompdf (PDF), webklex/php-imap, Filament, Spatie Media Library – keine ausgehenden Aufrufe an Dritte außer IMAP/SMTP | `composer.json` |
| Backups | ❓ Nicht belegt (Konzept: „Datenbank-Backups täglich“ 🗓); Strato-eigene Backups unbekannt | `docs/KONZEPT.md` Z. 153 |
### 2.2 Datenflussdiagramm
```mermaid
flowchart LR
G[Gast / Besucher<br/>Browser] -->|HTTPS| W[stommer.info bzw. fewo-stommer.de<br/>Laravel auf STRATO]
W -->|Anfrage-Formular: Name, E-Mail, Adresse, Telefon, Nachricht| DB[(MariaDB bei STRATO<br/>guests, bookings, payments,<br/>reviews, sessions, cache)]
W -->|SMTP| SM[STRATO Mail-Server]
SM -->|Bestätigungen, Erinnerungen, Vertrag| G
SM -->|Benachrichtigung neue Anfrage| V[Vermieterin<br/>fewo@… Postfach]
A[Admin /admin<br/>Rollen + 2FA] --> W
W --- FS[(storage: Vertrags-PDFs,<br/>Fotos, Logs)]
P1[FeWo-direkt u. a. Portale] -->|iCal-Import: Belegung ohne Gästedaten| W
W -->|iCal-Export 'Belegt'<br/>Token-URL, ohne Gästedaten| P1
P1 -->|Buchungs-E-Mail inkl. ggf. Gästedaten| PM[Postfach bei STRATO]
PM -->|IMAP jede Minute| W
N8N[n8n auf privatem Server 📄/🗓] -->|GET health / scheduler mit Token| W
W -->|optional Webhook, HMAC-signiert 📄| N8N
KI[KI-Agent 🗓] -.nicht implementiert.-> W
```
---
## 3. Verarbeitungstätigkeiten
Rechtsgrundlagen sind **Prüfannahmen** (juristisch zu bestätigen).
| # | Verarbeitung | Datenkategorien | Zweck | Quelle → Empfänger | Speicherort | Aufbewahrung / Löschung | Prüfannahme Rechtsgrundlage | Sicherheit | Status |
|---|---|---|---|---|---|---|---|---|---|
| V1 | Buchungsanfrage / Vorreservierung | Vor-/Nachname, E-Mail, Telefon (opt.), Anschrift (opt.), Reisedaten, Personenzahl, Extras, Preisangebot (JSON), freier Nachrichtentext, Herkunft (`referral_source`, `utm_*`) | Vertragsanbahnung, Verfügbarkeit halten | Gast → Vermieterin, STRATO (Hosting, SMTP) | Tabellen `guests`, `bookings` | Keine Löschung nach Ablauf/Ablehnung; nur Nachricht-Nullung + Anonymisierung nach `guest_retention_years` (10 J.) seit letztem Aufenthalt/Anlage, monatlicher Job `guests:anonymize` | Art. 6 (1) b; Herkunft/UTM ggf. Art. 6 (1) f | HTTPS (📄), Honeypot, IP-Rate-Limit 5/h, CSRF (Livewire), Validierung | ✅ `app/Livewire/BookingRequest.php`, `app/Actions/CreateReservation.php`, `app/Actions/AnonymizeGuests.php` |
| V2 | Eingangs-/Bestätigungs-E-Mails | Gästedaten, Preisangebot, Nachricht | Information, Vermieter-Benachrichtigung | Anwendung → Gast, Vermieterin | Strato-SMTP; Staging: Logfile | Mailversand-Kopien: ❓ (Strato-Postfach); Log-Rotation ❓ | Art. 6 (1) b | SMTP-Transportverschlüsselung ❓ | ✅ `app/Mail/*`, `resources/views/mail/*` |
| V3 | Bestätigung / verbindliche Buchung + Mietvertrag (PDF) | Gäste- und Buchungsdaten, Preise, Zahlungstermine | Vertragserfüllung, Abrechnung | Vermieterin → Gast | `storage/app/private/contracts/…pdf` (Disk `local`), Pfad in `bookings.contract_path` | **Nicht** durch Anonymisierung gelöscht (PDF enthält Namen/Anschrift) | Art. 6 (1) b, c (§ 147 AO) | Nicht öffentlich erreichbar; Download nur Admin | ✅ `app/Actions/ConfirmBooking.php`, `app/Documents/RentalContract.php` |
| V4 | Zahlungserfassung & -erinnerungen | Zahlbeträge, Datum, Methode, Notiz, erfassende Person; Bankdaten des Vermieters in Mail | Zahlungsabwicklung (manuell, Überweisung) | Vermieterin → Gast | `payments`; `FEWO_BANK_*` in `.env` | Buchhaltungsaufbewahrung (Steuerberater klären) | Art. 6 (1) b, c | Kein Zahlungsdienstleister, keine Kartendaten (**PCI-DSS nicht berührt**) | ✅ `app/Actions/RecordPayment.php`, `SendBookingReminders.php` |
| V5 | Ankunftsinformation, Bewertungsanfrage | E-Mail, Name, Reisedaten | Gästeservice | Anwendung → Gast | `bookings.*_sent_at` | s. V1 | Art. 6 (1) b bzw. (1) f (Bewertungsmail: juristisch prüfen, § 7 UWG) | Signierter, 90 Tage gültiger Link | ✅ `app/Actions/RequestReviews.php`, `app/Mail/ReviewRequest.php` |
| V6 | Bewertungen | Anzeigename, Bewertungstext, privates Feedback, Einwilligung zur Veröffentlichung, Aufenthaltsdatum | Qualitätssicherung, Veröffentlichung nach Freigabe | Gast → Vermieterin → öffentlich (bei Einwilligung) | `reviews` | **Keine** Löschung/Anonymisierung (nicht in `Guest::anonymize`) | Art. 6 (1) a (Veröffentlichung), (1) f | Moderation (Status Pending) | ✅ `app/Actions/SubmitReview.php`, `app/Livewire/ReviewForm.php` |
| V7 | Newsletter / Angebots-E-Mails | E-Mail, Name, Einwilligungszeitpunkt | Marketing | Gast (Opt-in im Formular) → Vermieterin | `guests.marketing_consent_at` | Widerruf per Abmeldelink; Anonymisierung entfernt Consent | Art. 6 (1) a, § 7 (2) UWG (DOI) | Signierte Links, DOI (14 Tage). **Hinweis:** Versandfunktion von Angebots-Mails selbst im Code nicht gefunden – nur Consent + CSV-Export | ✅ (Consent) / ❓ (Versand) `MarketingConsentController`, `RequestMarketingConsent`, `ListGuests` Export |
| V8 | Gästekartei (CRM) | Stammdaten, Notizen, Tags, Aufenthalte | Kundenpflege | Vermieterin | `guests` (Notizen, Tags) | s. V1; Notizen/Tags bei Anonymisierung gelöscht ✅ | Art. 6 (1) f | Policy: nur Rolle `rentals` (+admin) | ✅ `app/Models/Guest.php`, `app/Filament/Resources/Guests` |
| V9 | CSV-Export Gäste | Alle Stammdaten nicht anonymisierter Gäste | Mailing/Verwaltung | Admin-Download | Browser des Admins | Verantwortung beim Nutzer; kein Export-Log | Art. 6 (1) f | Nur eingeloggte Rolle; kein Audit-Log ❓ | ✅ `app/Filament/Resources/Guests/Pages/ListGuests.php` |
| V10 | Portal-Kalenderabgleich (iCal) | Nur Zeiträume („Belegt“); keine Gästedaten | Doppelbuchungen vermeiden | Portal ↔ Anwendung | `blocked_periods`, `channels`, `channel_sync_logs` | – | Art. 6 (1) b/f (kein Personenbezug im Feed) | Token-URL (`export_token`), Throttle 60/min | ✅ `app/Channels/ICal/*`, `ChannelController::feed` |
| V11 | Portal-Buchungs-E-Mails (Schnellpfad) | Absender, Betreff, **500-Zeichen-Auszug des Mailtextes** (kann Gästedaten enthalten), Referenz, Zeitraum | Sofortige Sperre | Portal → IMAP-Postfach → Anwendung → Vermieterin | `portal_emails`; Postfach | **Keine Löschfrist, keine Anonymisierung** | Art. 6 (1) b/f | IMAP über SSL, Zertifikatsprüfung; Parsing, „nie raten“ | ✅ Code / 🗓 Produktivbetrieb. `ProcessPortalMail`, `MailboxReader` |
| V12 | Admin-Konten | Name, E-Mail, Passwort-Hash, Rolle, 2FA-Secret (verschlüsselt), Sessions | Zugriff Verwaltung | Admin | `users`, `sessions` | bis Löschung durch Admin | Art. 6 (1) f | bcrypt, Pflicht-2FA (Admins), Session `AuthenticateSession` | ✅ `AdminPanelProvider`, `RequireTwoFactorForAdmins` |
| V13 | Server-/Anwendungs-Logs & Sessions | IP-Adresse, User-Agent (Tabelle `sessions`), Zeit, Fehler-Stacktraces (ggf. mit Daten), Rate-Limit-Schlüssel mit IP (Cache) | Betrieb, Sicherheit, Missbrauchsschutz | Besucher → Hosting | `sessions`, `cache`, `storage/logs`, STRATO-Webserver-Logs (❓) | Session-Lifetime 120 min, aber Zeilen werden bis Garbage-Collection vorgehalten; Log-Rotation ❓ | Art. 6 (1) f | – | ✅ `0001_01_01_000000_create_users_table.php`, `config/session.php`; Webserver-Logs ❓ |
| V14 | Analyse / Tracking | – | – | – | – | – | – | – | ✅ **nicht vorhanden** (kein Matomo/GA/Pixel) |
| V15 | Automation/Webhook (n8n) | Aufgabeninhalte (Sperr-Aufgaben: Zeiträume, ggf. Referenz), Health-Status | Portalsperre, Überwachung | Anwendung ↔ privater Server | extern ❓ | ❓ | ❓ | HMAC-SHA256, Token | 📄 `config/fewo.php` (`automation`), `docs/PORTALE.md` |
| V16 | KI-gestützte Buchungsbearbeitung | – | – | – | – | – | – | – | 🗓 **kein Code vorhanden** |
---
## 4. Externe Dienste und Empfänger
| Dienst | Rolle | Daten | Belegt in | Status | Offene Punkte |
|---|---|---|---|---|---|
| **STRATO AG** (Hosting, DB, SMTP/IMAP, Domains) | Auftragsverarbeiter (vermutlich) | Alle Anwendungsdaten, E-Mails, Logs | `docs/BETRIEB.md` | ✅/📄 | AVV-Abschluss prüfen; Serverstandort/Backup-Verhalten ❓; Mail-Kanal TLS ❓ |
| **OpenStreetMap** | Nur *Verlinkung* (kein Einbetten) | Adresse als URL-Parameter nur bei Klick des Besuchers auf `https://www.openstreetmap.org/search?query=…`; **keine Tile-Server-Anfragen** beim Seitenaufruf | `app/Themes/Sections/LocationSection.php`, `resources/themes/ostsee-licht/views/sections/location.blade.php` | ✅ | Bei Klick Übermittlung IP an OSMF (Datenschutzerklärung erwähnen). Falls später eingebettete Karte: Einwilligung/2-Klick |
| **Schriftarten** | Selbst gehostet (`@fontsource`, vom Build gebündelt) | – | `resources/themes/ostsee-licht/theme.css`, `docs/THEMES.md` | ✅ | Im gebauten Output stichprobenartig prüfen (kein `fonts.googleapis`) |
| **Externe Skripte/CDNs/Bilder** | Keine gefunden (`grep` über `resources/`, nur `schema.org`-Kennung und `sitemaps.org`-Namespace als Bezeichner, keine Abrufe) | – | `resources/**` | ✅ | Browser-Verifikation nötig (❓) |
| **FeWo-direkt / Vrbo / weitere Portale** | Eigenständig Verantwortliche für ihre Gästedaten; Empfänger/Absender von iCal | iCal: nur Zeiträume. Portal-Mails: ggf. Gästedaten | `app/Channels/*`, `docs/PORTALE.md` | ✅ iCal / 📄 Portal-Mail | Prüfen, welche Gästedaten die Portal-Mails tatsächlich enthalten |
| **n8n / privater Server (FastAPI, Playwright)** | Unabhängiger Wächter / Browser-Bot | Health-Status; ggf. Sperr-Aufgaben | `docs/KONZEPT.md` Z. 139, `docs/PORTALE.md` Z. 89 | 📄/🗓 | Standort, Betreiber, Logs, AVV ❓ (privat betrieben → Haushaltsausnahme gilt hier nicht automatisch) |
| **Gitea (gitea.stommer.de)** | Code-Repository/CI | Kein Gästedatenfluss (Repo enthält keine `.env`; Fotolisten-CSV) | `CLAUDE.md`, `.gitignore` | ✅ | Prüfen, dass nie Echtdaten/DB-Dumps committet werden |
| **KI-Anbieter** | – | – | – | 🗓 nicht vorhanden | s. §5/§6 |
| **Slack/Papertrail/AWS/Postmark/Resend** | Nur Framework-Platzhalter in Configs, nicht aktiv | – | `config/logging.php`, `config/services.php` | 📄 | Sicherstellen, dass Produktiv-`.env` sie nicht aktiviert |
---
## 5. Gap-Analyse mit Risikopriorität
Priorität: **K** = kritisch (Blocker für Go-Live), **H** = hoch, **M** = mittel, **N** = niedrig.
| ID | Prio | Befund | Beleg | Empfehlung |
|---|---|---|---|---|
| G1 | **K** | Datenschutzerklärung und Impressum haben keinen Inhalt (`default => null`); Link-Pflicht Art. 13 DSGVO / § 5 DDG | `config/content.php` Z. 48–49, `SiteSeeder.php` | Texte erstellen/juristisch prüfen lassen, bevor Produktion indexiert wird; Faktenbasis siehe §8 |
| G2 | **K** | Einwilligungstext im Formular ist ein Einverständnis zur Speicherung „(siehe Datenschutzerklärung)“ – Verlinkung/Art. 13-Information unklar; Rechtsgrundlage Vertragsanbahnung braucht eigentlich keine Einwilligung | `resources/views/livewire/booking-request.blade.php` Z. 204–207 | Text auf Information umstellen, Link auf Datenschutzerklärung und Hinweis auf Pflichtfelder; juristisch prüfen |
| G3 | **H** | Anonymisierung unvollständig: Vertrags-PDFs, `portal_emails.excerpt`, `bookings.internal_notes`, `bookings.utm_*`, Reviews (`display_name`, `private_feedback`), Zahlungsnotizen | `app/Models/Guest.php::anonymize` | Löschkonzept: je Datenkategorie Frist definieren (§ 147 AO: 6/8/10 Jahre – nur steuerlich relevante Unterlagen); PDFs nach Frist löschen; Auszüge/Notizen leeren; Reviews anonymisieren |
| G4 | **H** | Keine Löschung von Anfragen ohne Vertragsabschluss (Reserved/Expired/Declined) vor 10 Jahren | `AnonymizeGuests`, `ExpireReservations` | Eigene, kürzere Frist (z. B. Monate bis wenige Jahre – juristisch festlegen) und Job |
| G5 | **H** | Backups nicht belegt; Wiederherstellbarkeit, Verschlüsselung, Aufbewahrung, Löschung aus Backups ❓ | `docs/KONZEPT.md` | Backup-Verfahren dokumentieren (Strato-Backup oder eigener `mysqldump`), Retention an Löschkonzept koppeln |
| G6 | **H** | Betriebsgeheimnisse als Query-Parameter (`?token=`) → Logs/Proxys | `ChannelController::health/scheduler` | Token per Header (`Authorization`/`X-Token`) statt Query; Webserver-Logs auf Tokens prüfen |
| G7 | **H** | n8n/privater Server mit Zugriff auf Betriebsdaten und evtl. Gästedaten; Rolle (Auftragsverarbeiter/eigenverantwortlich) und Absicherung unklar | `docs/PORTALE.md` Z. 89 | Datenfluss minimieren (keine Gästedaten in Webhooks), Standort/Logs dokumentieren, ggf. AVV/TOMs |
| G8 | **H** | Logfile als Mailkanal in Staging; im Produktivbetrieb `LOG_LEVEL=debug`-Default; Logs können personenbezogene Daten enthalten (Exceptions, Mails) | `config/logging.php`, `docs/BETRIEB.md` | Produktiv: `LOG_LEVEL=warning`/`error`, `LOG_CHANNEL=daily` mit Rotation (`LOG_DAILY_DAYS`), `MAIL_MAILER=smtp`; keine Daten in Exception-Meldungen |
| G9 | **M** | Cookies: nach Code (Standard-Laravel-`web`-Stack) werden `…-session` und `XSRF-TOKEN` bei jedem Seitenaufruf gesetzt (technisch notwendig → i. d. R. kein Banner, aber Information in DSE und TDDDG-Prüfung). **Nicht im Browser verifiziert** | `bootstrap/app.php`, `config/session.php` | Browser-Test (DevTools), Cookie-Tabelle für DSE; Local/Session Storage: im eigenen JS nicht genutzt ✅ |
| G10 | **M** | Session-Tabelle speichert IP + User-Agent aller Besucher (mit Session) | `0001_01_01_000000_create_users_table.php` | Gesetzten Zweck/Löschfrist dokumentieren; ggf. Session nur für Seiten mit Formular starten |
| G11 | **M** | Sicherheits-Header nicht im Code gesetzt (CSP, HSTS, X-Frame-Options, Referrer-Policy, Permissions-Policy) | Grep über `app/`, `bootstrap/`, `public/.htaccess` | Per Middleware oder `.htaccess` ergänzen; HSTS erst nach HTTPS-Prüfung |
| G12 | **M** | Review-Link (signiert, 90 Tage) ohne Throttle; Signatur schützt, aber Brute-Force/Spam auf Formular begrenzen | `routes/web.php` | `throttle` ergänzen |
| G13 | **M** | Zugriff ohne Kundenkonto: Gäste erhalten keine Online-Einsicht – Auskunfts-/Löschwünsche laufen manuell; Löschung eines einzelnen Gastes nur über „Anonymisieren“ (Aktion im Admin, Code `Guest::anonymize`) | `app/Models/Guest.php` | Prozess für Betroffenenrechte (Art. 15–21) dokumentieren, Frist 1 Monat |
| G14 | **M** | Kein Audit-Log für Admin-Zugriffe/Exporte/Statuswechsel (nur Zahlungs-`recorded_by`, Sync-Logs) | – | Minimal-Protokoll für Export, Anonymisierung, Statuswechsel erwägen |
| G15 | **M** | Admin-Rollen: `rentals` darf Gäste exportieren; 2FA nur für `admin` verpflichtend | `GuestPolicy`, `AdminPanelProvider` | 2FA für `rentals` ebenfalls verpflichtend erwägen |
| G16 | **M** | Selbstregistrierung/Passwort-Reset: Reset-Mails und Passwortrichtlinie nicht geprüft | – | Prüfen (❓) |
| G17 | **M** | Dev-Zugangsdaten (`admin@example.com`/`password`) in Doku für lokale Entwicklung; Sicherstellen, dass Seeder nie in Produktion läuft | `docs/BETRIEB.md` §7 | In Produktion nur `ProductionSeeder` (bereits dokumentiert ✅) |
| G18 | **M** | Prozessbeschreibung Angebot/Annahme fehlt: Status kennen weder „Angebot versandt“ noch „vom Gast angenommen“; „Bestätigt“ = Verbindlichkeit durch Vermieterin, Mail „Erst mit unserer Bestätigung ist die Buchung verbindlich“ | `BookingStatus`, `reservation-received.blade.php` | Vertragsmechanik (Annahme durch Gast) rechtlich klären und – falls gewünscht – implementieren; DSE-Text entsprechend |
| G19 | **N** | OSM-Link überträgt Adresse nur bei Klick | `LocationSection.php` | In DSE erwähnen |
| G20 | **N** | UTM-/Herkunftsdaten werden zusammen mit Buchung gespeichert | `BookingRequest.php`, `CreateReservation.php` | Zweck/Rechtsgrundlage in DSE; Löschfrist festlegen |
| G21 | **N** | Fotos: Kein EXIF-Stripping im Code gefunden (GPS-Daten in Fotos möglich) | Grep `exif` negativ | Prüfen, ob WebP-Konvertierung Metadaten entfernt |
| G22 | **N** | Review-Anonymität: `display_name` Freitext; Veröffentlichung nur bei `publish_consent` | `ReviewForm` | Hinweis im Formular auf Pseudonym |
### KI-spezifische Lücken (🗓, vorausschauend)
- **K (vor Einführung):** Anbieter, Modell, Region (EU/EWR vs. Drittland), AVV, Zero-Data-Retention/Opt-out vom Training, Subprozessoren – alle ❓.
- **H:** Art. 22 DSGVO: Preise/Angebote/Ablehnungen nicht vollautomatisch ohne menschliche Freigabe; aktuell hat kein Code KI-Entscheidungsbefugnisse (✅ Entscheidungen manuell in Admin: `ConfirmBooking`, `DeclineBooking`).
- **H:** Datenminimierung: Pseudonymisierung vor Übergabe an KI (keine Namen/Anschriften), Prompt-/Antwort-Logging mit Löschfrist, Audit-Log je KI-Aktion.
- **M:** DSFA-Pflicht prüfen (Datenschutzbeauftragte/r / Rechtsberatung); KI-Transparenz (Art. 13 (2) f.).
---
## 6. Offene Fragen
1. Wer ist Hosting-Vertragspartner (Strato-Vertrag, AVV abgeschlossen?) und wo liegen Server/Backups?
2. Wird für die Produktion ein Cookie-/TDDDG-Konzept benötigt, oder bleibt es bei rein technischen Cookies? (Browserverifikation fehlt)
3. Welche Gästedaten enthalten die FeWo-direkt-/Vrbo-Buchungsmails tatsächlich (Name, E-Mail, Telefon)? Werden diese in `portal_emails.excerpt` gespeichert?
4. Welche Aufbewahrungsfristen gelten für: Anfragen ohne Vertrag, Verträge/Rechnungen, Zahlungsnachweise, Bewertungen, Marketing-Einwilligungen? (Steuerberatung/Rechtsberatung)
5. Wie wird der Versand der Angebots-/Newsletter-Mails technisch erfolgen? (Im Code nur Einwilligung + CSV-Export gefunden – wird extern versendet? Dann Dienstleister/AVV.)
6. Wo läuft n8n (Standort, Betreiber), welche Daten erhält es, wie wird abgesichert?
7. Welcher Anbieter/welches Modell soll für die KI-gestützte Buchungsbearbeitung genutzt werden, mit welchen Daten, in welcher Region, mit welcher menschlichen Freigabe?
8. Werden Server-Zugriffslogs bei Strato geführt, wie lange, und sind IP-Adressen gekürzt?
9. Wie wird ein Backup/Restore getestet, und wie werden Löschungen in Backups umgesetzt?
10. Ist ein Verarbeitungsverzeichnis (Art. 30) vorhanden? Ist die Benennung eines Datenschutzbeauftragten erforderlich?
11. Gibt es weitere Empfänger (Steuerberater, Buchhaltung, Kurverwaltung/Meldeschein, Kurtaxe)?
12. Soll es einen verbindlichen Angebots-/Annahmeprozess im System geben (G18)?
13. Wird in der Produktion ein eigener Cookie-Banner/Einwilligungs-Mechanismus benötigt (derzeit **kein** Mechanismus vorhanden)?
---
## 7. Maßnahmenplan für die Produktivsetzung
**Vor Go-Live (Blocker)**
1. Impressum und Datenschutzerklärung erstellen und rechtlich prüfen lassen; Verlinkung im Footer und im Formular (G1, G2).
2. AVV mit STRATO prüfen/abschließen; Verarbeitungsverzeichnis anlegen.
3. Produktiv-`.env`: `APP_ENV=production`, `APP_DEBUG=false`, `LOG_LEVEL` ≥ warning, `LOG_CHANNEL=daily`, `MAIL_MAILER=smtp` mit TLS, `SESSION_SECURE_COOKIE=true` (G8).
4. Backup-Verfahren einrichten und Restore testen (G5).
5. Löschkonzept festlegen und umsetzen (G3, G4); Datenschutzerklärung entsprechend ausrichten.
6. Browser-Verifikation: Netzwerk-/Cookie-Analyse auf Staging (G9), Ergebnis in DSE übernehmen.
7. Security-Header ergänzen (G11); Tokens aus der Query in Header verlegen (G6).
**Kurzfristig nach Go-Live**
8. 2FA auch für Rolle `rentals` (G15); Audit-Log für Export/Anonymisierung (G14); Throttle Review-Route (G12).
9. Betroffenenrechte-Prozess dokumentieren (G13).
10. n8n-Datenfluss dokumentieren und minimieren (G7).
**Vor KI-Einsatz**
11. DSFA-/Risikoprüfung, Anbieterwahl, AVV, Drittlandfrage, Pseudonymisierung, menschliche Freigabe bei Preis/Angebot/Annahme/Ablehnung, Audit-Log (KI-Abschnitt §5).
---
## 8. Faktenbasis für die neue Datenschutzerklärung
*(Faktenlage aus dem Code – Text und Rechtsgrundlagen juristisch zu formulieren.)*
| Thema | Faktenbasis | Status |
|---|---|---|
| Verantwortliche | Brigitte Stommer (Name/Anschrift/Kontakt aus `config/fewo.php`, `legal.imprint`) | 📄 |
| Hosting | STRATO (Webspace, Datenbank, E-Mail) | 📄 |
| Server-Logfiles | Beim Aufruf fallen technisch IP, Zeit, URL, User-Agent im Hosting an (Strato-Standard, ❓) | ❓ |
| Cookies | Session-Cookie und XSRF-Token (technisch notwendig), Laufzeit bis Ende der Session/120 Minuten; kein Tracking | ✅ Code / ❓ Browser |
| Local/Session Storage | Von der Anwendung nicht verwendet | ✅ |
| Schriftarten | Lokal eingebunden | ✅ |
| Karten | Nur Link zu OpenStreetMap (Klick); keine Einbettung | ✅ |
| Analyse/Marketing-Tracking | Keine | ✅ |
| Buchungsanfrage | Pflichtfelder: Anreise, Abreise, Personen, Vorname, Nachname, E-Mail, Zustimmung; optional: Telefon, Anschrift, Nachricht, Herkunft, Newsletter | ✅ |
| Speicherung | Datenbank bei STRATO; Anonymisierung nach `guest_retention_years` (Standard 10 Jahre) | ✅ / Frist juristisch ❓ |
| E-Mails | Eingangsbestätigung, Buchungsbestätigung mit Vertrag (PDF), Zahlungserinnerung, Ankunftsinfo, Bewertungsanfrage, ggf. Ablehnung | ✅ |
| Newsletter | Opt-in im Formular + Double-Opt-in-Link (14 Tage), Abmeldelink in Mails; Widerruf jederzeit | ✅ |
| Bewertungen | Freiwillig, Veröffentlichung nur bei Einwilligung und Freigabe | ✅ |
| Zahlungen | Überweisung, manuelle Erfassung; kein Zahlungsdienstleister | ✅ |
| Portale | Kalenderabgleich per iCal ohne Gästedaten; Auswertung von Portal-Benachrichtigungs-E-Mails (nur 500 Zeichen Auszug, Zeiträume) | ✅ Code / 🗓 Produktiv |
| Empfänger | STRATO (Hosting/Mail); ggf. Portalbetreiber; ggf. Steuerberater | ❓ |
| Drittlandübermittlung | Keine bekannt (✅ nach Code) – Strato-Subunternehmer ❓ | ❓ |
| KI | Derzeit **keine** KI-Verarbeitung; bei Einführung DSE aktualisieren | 🗓 |
| Betroffenenrechte | Art. 15–21, Beschwerderecht – Texte juristisch zu formulieren | ❓ |
| Automatisierte Entscheidungen | Keine (alle Statuswechsel manuell durch Vermieterin) | ✅ |
---
### Anhang: wichtigste Quelldateien
`app/Livewire/BookingRequest.php`, `app/Actions/{CreateReservation,ConfirmBooking,DeclineBooking,ExpireReservations,RecordPayment,AnonymizeGuests,RequestMarketingConsent,SubmitReview,RequestReviews,SendBookingReminders,ProcessPortalMail}.php`, `app/Models/Guest.php`, `app/Channels/**`, `app/Http/Controllers/{ChannelController,MarketingConsentController}.php`, `routes/web.php`, `routes/console.php`, `config/{fewo,channels,session,logging,mail,filesystems,content}.php`, `database/migrations/*`, `resources/themes/ostsee-licht/**`, `docs/{BETRIEB,DEPLOYMENT,KONZEPT,PORTALE,THEMES}.md`.
+54
View File
@@ -0,0 +1,54 @@
# DATENSCHUTZ-FAKTENBASIS – Grundlage für die Datenschutzerklärung
> **Hinweis (22.10.2026):** Von einem Analyse-Agenten erstellt. Die als „verbindlich“ bezeichneten Entscheidungen (E1–E7) sind Annahmen des Agenten, keine Festlegungen der Betreiber. Maßgeblich sind die Entscheidungen in [KONZEPT.md §6a/6b](KONZEPT.md) (u. a. Buchungsweg 1 über Angebot + Annahme, Weg 2 Direktbuchung später; Kurabgabe vor Ort durch Ferienservice Balu).
Stand: 22.10.2026 · **Kein Erklärungstext, sondern strukturierte Faktenlage.** Rechtsgrundlagen sind *vorgeschlagen* (Prüfannahme) und juristisch zu bestätigen. Grundlage: Code-Audit ([DATENSCHUTZ-AUDIT.md](DATENSCHUTZ-AUDIT.md)), [LOESCHKONZEPT.md](LOESCHKONZEPT.md), [BUCHUNGSPROZESS.md](BUCHUNGSPROZESS.md).
Status: ✅ im Code belegt · 📄 dokumentiert/konfiguriert · 🗓 geplant · ❓ unbekannt · ⚖ rechtlich zu prüfen. **Browserverhalten wurde nicht beobachtet** (nur Codebefund).
**Verantwortliche:** Brigitte Stommer (Kontaktdaten aus `config/fewo.php`/Impressum). Datenschutzbeauftragte/r: ❓ Pflicht ⚖ prüfen.
## Verarbeitungsvorgänge
| # | Vorgang | Datenkategorien | Zweck | Vorgeschlagene Rechtsgrundlage ⚖ | Herkunft | Empfänger | Drittland | Speicher-/Löschregel | Technische Schutzmaßnahmen | Offene Rechtsfragen | Status |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Besuch der Website / Server-Logs | IP, Zeit, URL, User-Agent | Auslieferung, Sicherheit | Art. 6 (1) f | Besucher | STRATO (Hosting) | keins bekannt ❓ | Strato-Logs ❓; Anwendungslog: Rotation geplant | HTTPS, Throttling | Log-Dauer; AVV Strato | ❓ |
| 2 | Technisch notwendige Cookies | Session-Cookie, XSRF-Token (Session-ID, IP/UA in `sessions`) | Formularschutz, Session | Art. 6 (1) f; § 25 (2) Nr. 2 TDDDG | Besucher | STRATO | – | Lifetime 120 Min. (`config/session.php`) | httpOnly, SameSite=lax, Secure auf Staging gesetzt | Banner-Pflicht verneint? Browserprüfung | ✅ Code / ❓ Browser |
| 3 | Externe Ressourcen | – (keine Drittanfragen im Code) | – | – | – | – | – | – | Schriften lokal | Verifikation im Browser | ✅ Code |
| 4 | Link zu OpenStreetMap | beim Klick: IP, Referrer, Adresse als Suchparameter an OSMF | Orientierung | Art. 6 (1) f | Besucher (Klick) | OpenStreetMap Foundation (UK) | ⚖ Drittland UK (Angemessenheitsbeschluss prüfen) | – | Kein Einbetten, kein Laden bei Seitenaufruf | Hinweis in DSE | ✅ |
| 5 | Buchungsanfrage (Direkt) | Name, E-Mail, Telefon*, Anschrift*, Zeitraum, Personen, Extras, Nachricht*, Herkunft*, UTM* (*optional) | Vertragsanbahnung | Art. 6 (1) b; Herkunft/UTM: Art. 6 (1) f | Gast | Vermieterin; STRATO (Datenbank, SMTP) | keins bekannt | Anfragen ohne Vertrag: Frist vorgeschlagen 3–6 Monate (⚖); heute 10 J. | Rate-Limit, Honeypot, CSRF, Validierung | Fristen; Einwilligungstext im Formular | ✅ |
| 6 | Vorreservierung/Angebot/Annahme | Buchungsdaten, Preise, Angebotsversion, Annahmezeit (+ Nachweisdaten) | Vertragsabschluss | Art. 6 (1) b | Gast/Vermieterin | wie 5 | – | Beleg bis Steuerfrist ⚖ | Signierter, befristeter Annahme-Link | § 312i/j/k BGB; Umfang Nachweisdaten | 🗓 (Annahme nicht implementiert) |
| 7 | Vertrag & Rechnung/Quittung | Gast-, Buchungs-, Zahlungsdaten | Vertragserfüllung, steuerl. Pflichten | Art. 6 (1) b, c | Vermieterin/Gast | Gast; Steuerberater ❓ | – | steuerliche Frist ⚖ | privater Speicher, Rollenzugriff | Frist, Anonymisierung der Belege | ✅ PDF / 🗓 Rechnungen |
| 8 | Zahlungsabwicklung | Betrag, Datum, Methode, Notiz | Zahlungsverwaltung | Art. 6 (1) b, c | Vermieterin (manuell) | Bank der Vermieterin | – | steuerliche Frist ⚖ | Kein Zahlungsdienstleister im System | Banken als eigene Verantwortliche | ✅ |
| 9 | Transaktions-E-Mails | E-Mail, Name, Buchungsdaten | Information zur Buchung | Art. 6 (1) b | Anwendung | STRATO SMTP; Gast | – | Mail-Archiv ❓ | TLS ❓ | Mail-Aufbewahrung | ✅ Code / 📄 Betrieb |
| 10 | Bewertungsanfrage + Bewertung | E-Mail, Name, Bewertung, Anzeigename, Einwilligung | Qualitätssicherung, Veröffentlichung | Anfrage: Art. 6 (1) f (⚖ § 7 UWG); Veröffentlichung: Art. 6 (1) a | Gast | Öffentlichkeit (nach Freigabe) | – | siehe LOESCHKONZEPT | Signierter Link 90 Tage, Moderation | Zulässigkeit Anfrage-Mail | ✅ |
| 11 | Angebots-/Newsletter-Einwilligung | E-Mail, Name, Consent-Zeitpunkt | Marketing | Art. 6 (1) a; § 7 UWG | Gast | Vermieterin; Versanddienst ❓ | ❓ | Bis Widerruf; Nachweis ⚖ | DOI, signierte Links | Versandweg/Dienstleister | ✅ Consent / ❓ Versand |
| 12 | Gästekartei/CRM | Stammdaten, Notizen, Tags, Aufenthalte | Kundenpflege | Art. 6 (1) f | Gast/Portal | Vermieterin | – | 3 J.-Stufe vorgeschlagen ⚖ | Policy-Rollen, 2FA für Admin | Berechtigtes Interesse; Frist | ✅ |
| 13 | CSV-Export Gäste | Stammdaten | Verwaltung/Mailing | Art. 6 (1) f | Admin | Lokaler Rechner der/des Admins | – | Verantwortung Nutzer | Rollenschutz, Audit-Log 🗓 | Auditpflicht | ✅ |
| 14 | Portal-Kalenderabgleich (iCal) | nur Zeiträume; ggf. Portal-SUMMARY | Doppelbuchung vermeiden | Art. 6 (1) b/f | Portal | Portale (nur „Belegt“) | Portalbetreiber ❓ (z. B. Vrbo/Expedia → ⚖ Drittland) | Sperren bis Zeitraumende + Frist | Token-URL, Throttle | Inhalt SUMMARY | ✅ |
| 15 | Portal-Buchungsmails | Absender, Betreff, Auszug (500 Z.), Zeitraum, Referenz; Gästedaten *nur wenn in Mail* | Sofortige Sperre, Verwaltung | Art. 6 (1) b/f | Portal (E-Mail) | STRATO (Postfach), Vermieterin | Portalbetreiber ❓ | Auszug kurz; Referenz/Zeitraum bis Steuerfrist ⚖ | IMAP/SSL, Parser „nie raten“ | Art. 14-Information | ✅ Code / 🗓 Produktiv |
| 16 | Portalbuchungen als Gast (geplant) | Gastdaten laut Portal, Preise, Gebühren | zentrale Verwaltung, Steuer | Art. 6 (1) b, c, f | Portal (E-Mail/API) | wie oben | ❓ | wie 7/12 | s. DATENMODELL-KONZEPT | Art. 14, AVV mit Channel-Manager | 🗓 |
| 17 | Gästemeldung / Kurabgabe | Meldedaten je Person, Aufenthalt, Befreiung | gesetzliche Meldung, Abgabe | Art. 6 (1) c (BMG), Art. 6 (1) e/c (Kurabgabesatzung) ⚖ | Gast | Gemeinde/Tourist-Info, feratel ❓ | ❓ | gesetzliche Frist ⚖ | getrennte Speicherung (Soll) | Bund/Kommune trennen; Rolle feratel | 🗓 |
| 18 | Admin-Zugang | Name, E-Mail, Rolle, 2FA | Verwaltung | Art. 6 (1) f | Admins | – | – | bis Ausscheiden | Passwort-Hash, TOTP-2FA, Rollen | – | ✅ |
| 19 | Monitoring/Automation (n8n, Webhook) | Betriebsstatus, Aufgaben | Überwachung, Portalsperre | Art. 6 (1) f | Anwendung | Privater Server ❓ | ❓ | ❓ | HMAC, Tokens (Query ⚠) | Auftragsverarbeitung, Standort | 📄 |
| 20 | KI-Agent | – | – | – | – | – | – | – | – | Anbieter, EU/EWR, Training, Art. 22 | 🗓 nicht implementiert |
| 21 | Backups | gesamter Datenbestand | Verfügbarkeit | Art. 6 (1) f, Art. 32 | – | STRATO/Eigenbetrieb ❓ | ❓ | rollierend (Vorschlag 30 T.) | ❓ | Retention vs. Löschung | ❓ |
## Empfänger-/Dienstleisterliste (für DSE)
STRATO AG (Hosting, DB, E-Mail) – AVV ❓ · OpenStreetMap Foundation (nur bei Klick) · Portalbetreiber (FeWo-direkt/Vrbo/Expedia u. a.) als eigene Verantwortliche – ❓ · Steuerberater ❓ · Gemeinde/Tourist-Information/feratel (nur bei Meldepflicht) ❓ · n8n-Betreiber ❓ · KI-Anbieter 🗓.
## Rechte und Pflichttexte (⚖ ausformulieren)
Auskunft (Art. 15), Berichtigung, Löschung, Einschränkung, Übertragbarkeit, Widerspruch (Art. 21), Widerruf Einwilligung, Beschwerde bei Aufsichtsbehörde, Pflichtangaben vs. freiwillige Angaben, automatisierte Entscheidungen (derzeit keine ✅).
## Querschnitts-Fragen für Rechtsberatung / Datenschutzbeauftragte
1. DSB-Pflicht, Verarbeitungsverzeichnis (Art. 30), AVVs (Strato, n8n-Betreiber, ggf. Channel-Manager/KI).
2. TDDDG/Cookie-Einordnung der technisch notwendigen Cookies.
3. Art. 14-Information für Portalgäste und Ausnahmen.
4. Rechtsgrundlage und Fristen für Anfragen, Bewertungen, Marketing-Nachweis.
5. Drittlandbezug der Portalbetreiber und der KI-Anbieter.
6. Beweis-/Annahmeprotokoll beim Vertragsschluss (Datenumfang).
*Vor externer Verwendung (Veröffentlichung/Weitergabe) bitte durch fachkundige Stelle prüfen.*
+15 -8
View File
@@ -13,7 +13,7 @@ ## 1. Prinzip
shared/.env ◄─ einmalig von Hand
shared/storage/ ◄─ Uploads, Logs, Sessions (bleiben)
current ──► releases/… ◄─ atomar umgeschaltet nach migrate + optimize
Domain-Zielverzeichnis = <DEPLOY_PATH>/current/public
.htaccess ──► releases/<aktiv>/public (Domain-Zielverzeichnis = <DEPLOY_PATH>)
│
▼ https://…/up – Gesundheitscheck, bei Fehler automatischer Rollback
```
@@ -34,14 +34,14 @@ ## 2. SSH oder SFTP?
## 3. Einmalige Einrichtung bei Strato
1. **PHP-Version** auf 8.4 stellen (Datenbanken und Webspace › PHP-Version).
2. **SSH-Zugang** anlegen (SFTP & SSH); Benutzername notieren. Eigenen SSH-Schlüssel hinterlegen oder einmalig `ssh-copy-id <benutzer>@ssh.strato.de`.
2. **SSH-Zugang** anlegen (SFTP & SSH, Protokoll „SFTP + SSH“); **Benutzername und Server** aus „Details“ notieren – der Server ist paketspezifisch (z. B. `12345678.ssh.w1.strato.hosting`), nicht `ssh.strato.de`. Eigenen SSH-Schlüssel hinterlegen oder einmalig `ssh-copy-id -i ~/.ssh/strato_fewo.pub <benutzer>@<server>`.
3. Per SSH prüfen:
```bash
ssh <benutzer>@ssh.strato.de
ssh <benutzer>@<server>
ls /opt | grep RZphp # PHP-CLI-Pfad, z. B. /opt/RZphp84/bin/php-cli
/opt/RZphp84/bin/php-cli -v
```
4. **MySQL-Datenbank** anlegen (Datenbanken verwalten); Host, Name, Benutzer, Passwort notieren.
4. **Datenbank MariaDB 11.8** anlegen (Datenbanken verwalten; nicht MySQL 8.0 – Support endete im April 2026); Host, Name, Benutzer, Passwort notieren. In `shared/.env`: `DB_CONNECTION=mariadb`.
5. Lokal `scripts/deploy.example.env` nach `scripts/deploy.production.env` kopieren und ausfüllen (wird nicht committet).
6. `bash scripts/deploy.sh production setup` – legt die Ordner an und zeigt die PHP-Version.
7. `.env.production.example` ausfüllen (u. a. `APP_KEY` via `php artisan key:generate --show`, Datenbank, SMTP/IMAP-Passwort, Tokens) und auf den Server nach `<DEPLOY_PATH>/shared/.env` kopieren (z. B. per SFTP).
@@ -51,7 +51,7 @@ ## 3. Einmalige Einrichtung bei Strato
bash scripts/deploy.sh production artisan db:seed --class=ProductionSeeder --force
bash scripts/deploy.sh production artisan make:filament-user
```
10. **Domain-Zielverzeichnis** (Domains › Domain verwalten › Ziel) auf `<DEPLOY_PATH>/current/public` setzen; SSL-Zertifikat aktivieren.
10. **Domain-Zielverzeichnis** auf den Ordner `<DEPLOY_PATH>` selbst setzen (Strato kann kein Symlink-Ziel wählen). Die `.htaccess` dort (von `setup` und bei jedem Umschalten neu geschrieben) leitet alles intern nach `releases/<aktive Version>/public` – bewusst **nicht** über den Symlink `current`, weil der OPcache von Strato Skripte unter dem Symlink-Pfad zwischenspeichert und sonst nach dem Umschalten die alte Version ausliefert. Sie sperrt interne Dateien (403) und setzt per `AddType application/x-httpd-php84 .php` die Web-PHP-Version **nur für diesen Ordner** auf die CLI-Version – andere Anwendungen im Paket bleiben unberührt. SSL-Zertifikat für die Domain aktivieren.
11. **Cronjob** (Kundenlogin › Cronjobs), jede Minute:
```
/opt/RZphp84/bin/php-cli <home>/<DEPLOY_PATH>/current/artisan schedule:run
@@ -66,8 +66,11 @@ ## 4. Tägliche Nutzung
| Aufgabe | Befehl |
|---|---|
| Neue Version ausliefern | `bash scripts/deploy.sh production deploy` (baut den **letzten Commit**) |
| Zurück zur vorigen Version | `bash scripts/deploy.sh production rollback` (Migrationen bleiben bestehen) |
| Versionen anzeigen | `bash scripts/deploy.sh production releases` |
| Bestimmten Stand ausliefern | `bash scripts/deploy.sh production deploy <commit oder tag>` |
| Zurück zu einer früheren Version | `bash scripts/deploy.sh production releases` zeigt die Deploy-Tags; dann `bash scripts/deploy.sh production deploy deploy/production/<zeitstempel>` (Migrationen werden nicht zurückgenommen) |
| Sofort zurück, solange die alte Version noch auf dem Server liegt (nur während eines laufenden Deployments) | `bash scripts/deploy.sh production rollback` |
**Versionsgeschichte in Gitea statt auf Strato:** Strato begrenzt die Anzahl der Dateien im Paket (eine Version ≈ 15.000 Dateien). Auf dem Server liegt deshalb nur die **aktive** Version, während eines Deployments kurz zusätzlich die neue. Die alte wird erst gelöscht, wenn die neue den Gesundheitscheck bestanden hat – schlägt er fehl, wird automatisch zurückgeschaltet. Jede erfolgreiche Auslieferung wird als Tag `deploy/<umgebung>/<zeitstempel>` in Gitea festgehalten; ein Build ist durch `composer.lock`/`package-lock.json` reproduzierbar. Außerdem entfernt der Build Sprachdateien außer de/en sowie Tests/Doku aus `vendor` (~4.800 Dateien weniger).
| Artisan auf dem Server | `bash scripts/deploy.sh production artisan about` |
Windows: in Git Bash ausführen; `COMPOSER_BIN="php /c/…/composer.phar"` in der `.env`-Datei des Deployments setzen, falls `composer` nicht im PATH ist.
@@ -82,4 +85,8 @@ ## 6. Getestet / offen
- Lokal im Testmodus (`DEPLOY_HOST=local`) erfolgreich: Build (~19 MB), Upload, Entpacken, alle Migrationen auf frischer Datenbank, `optimize`, Ersteinrichtung per `ProductionSeeder`, alle Seiten und Admin-Login liefern 200.
- **Nicht** unter Windows prüfbar: der Symlink-Wechsel von `current` (Git Bash legt Kopien statt Symlinks an). Unter Linux (Strato) ist das Standardverhalten; der erste Lauf auf dem Testbetrieb bestätigt es – bei Fehler greift der automatische Rollback.
- Bei Strato zu prüfen: SSH im Tarif, PHP-CLI-Pfad, ob das Domain-Ziel einem Symlink (`current`) folgt, minütliche Cronjobs.
- **Auf Strato erfolgreich (22.10.2026, test.fewo-stommer.de):** SSH mit Schlüssel (paketspezifischer Server), PHP-CLI `/opt/RZphp84/bin/php-cli`, Migrationen auf MariaDB, Symlink-Umschaltung, `.htaccess`-Weiterleitung, Web-PHP 8.4 per `AddType`, `ProductionSeeder`; alle Seiten 200.
- Testbetrieb läuft unter **https://stommer.info** (Domain-Ziel: Ordner `test.fewo-stommer.de`; SSL für Subdomains ist im Paket nicht verfügbar). Gesundheitscheck über HTTPS mit automatischem Rollback funktioniert.
- Behoben: OPcache lieferte nach dem Umschalten die alte Version (→ `.htaccess` zeigt auf den konkreten Release-Ordner); URLs mit `/current/public` (→ `URL::forceRootUrl(APP_URL)` außerhalb von local/testing).
- Noch offen: Cronjob.
- Erstes Deployment auf ein neues Ziel: `SKIP_HEALTH_CHECK=1 bash scripts/deploy.sh <env> deploy` (die Domain zeigt da noch nicht auf die neue Installation).
+54
View File
@@ -0,0 +1,54 @@
# GAP-DELTA – Ergänzungen zum Datenschutz-Audit
> **Hinweis (22.10.2026):** Von einem Analyse-Agenten erstellt. Die als „verbindlich“ bezeichneten Entscheidungen (E1–E7) sind Annahmen des Agenten, keine Festlegungen der Betreiber. Maßgeblich sind die Entscheidungen in [KONZEPT.md §6a/6b](KONZEPT.md) (u. a. Buchungsweg 1 über Angebot + Annahme, Weg 2 Direktbuchung später; Kurabgabe vor Ort durch Ferienservice Balu).
Stand: 22.10.2026 · Ergänzt [DATENSCHUTZ-AUDIT.md](DATENSCHUTZ-AUDIT.md) um die verbindlichen Produktentscheidungen (Folgeauftrag). **Reine Analyse – keine Codeänderung, keine Migration, kein Deployment.** Rechtliche Punkte sind Prüfannahmen und mit ⚖ „rechtlich zu prüfen“ markiert.
Legende: ✅ implementiert und im Code belegt · 📄 nur konfiguriert/dokumentiert · 🗓 geplant · ❓ unbekannt · ⚖ juristische Prüfung nötig
## 1. Verbindliche Entscheidungen und ihr Umsetzungsstand
| # | Entscheidung | Ist-Stand | Status |
|---|---|---|---|
| E1 | Laravel-System führend für alle Buchungen und Gäste | Direktbuchungen ✅ (`bookings`, `guests`). **Portalbuchungen sind keine `Booking`-Datensätze**, sondern `BlockedPeriod` (Sperre, ohne Gast, ohne Preis) bzw. `PortalEmail` (Auszug). Damit ist das System nur für die *Belegung* führend, nicht für Portalgäste und -umsätze | ⚠ Lücke |
| E2 | Portalbuchungen zentral verwalten | Nur Kalenderblock + Hinweis-Mail; keine Gäste-, Preis-, Gebühren-, Zahlungsdaten | ⚠ Lücke |
| E3 | Buchungs-/Zahlungsnachweise steuerlich verfügbar | Direkt: `payments`, `bookings.quote` (JSON), Vertrags-PDF ✅. Keine Rechnung/Beleg-Dokumente, keine Portalabrechnungen, keine Unveränderbarkeit/Revisionssicherheit | ⚠ Teilweise |
| E4 | Kein Gästekonto | ✅ (signierte Links für Bewertung/Newsletter). Für Annahme/Storno fehlt ein Äquivalent | ⚠ Lücke |
| E5 | Anfrage → Vorreservierung → Angebot → Annahme → Buchung | Status: `Reserved` (Anfrage+Vorreservierung vermischt) → `Confirmed` durch Vermieterin. **Kein Angebot, keine Gast-Annahme** | ⚠ Lücke |
| E6 | KI später | Kein KI-Code (✅ belegt: keine KI-Pakete/Aufrufe) | 🗓 |
| E7 | Privacy by Design / Datenminimierung | Teilweise (Honeypot, Rate-Limit, Anonymisierung, signierte Links); Lücken in Löschung, Logs, Sessions | ⚠ Teilweise |
## 2. Neue/präzisierte Befunde (Delta zum Audit)
| ID | Prio | Befund | Beleg | Folge |
|---|---|---|---|---|
| D1 | **K** | Portalgäste existieren im System nicht (nur Zeitraum). Entscheidung E1/E2 erfordert Erweiterung des Datenmodells | `app/Models/BlockedPeriod.php`, `ProcessPortalMail`, `SyncChannel` | → DATENMODELL-KONZEPT.md |
| D2 | **K** | Kein Angebot-/Annahme-Mechanismus, keine Dokumentation des Vertragsschlusses (Zeitpunkt, Inhalt, IP/Nachweis) | `BookingStatus`, `ConfirmBooking` | → BUCHUNGSPROZESS.md |
| D3 | **H** | Stornierung = reiner Statuswechsel im Admin (`ViewBooking`), ohne Stornokosten-Berechnung, Gast-Benachrichtigung, Rückerstattungsbuchung, Beleg | `ViewBooking.php` Z. ~112; `RecordPayment` erlaubt negative Beträge als Erstattung (nur Hinweis im Docblock) | → BUCHUNGSPROZESS.md |
| D4 | **H** | Stornobedingungen nur als optionaler Freitext (`stay.cancellation`, Default `null`), nicht maschinenlesbar | `config/content.php` | Staffel als Daten modellieren |
| D5 | **H** | iCal-`SUMMARY` wird in `blocked_periods.reason` übernommen („Portalname: Summary“). Falls ein Portal Namen im SUMMARY liefert, würden Gästenamen ungeplant gespeichert; keine Löschung | `app/Actions/SyncChannel.php` Z. ~67, `ICalParser` | Prüfen, was FeWo-direkt tatsächlich liefert (❓); ggf. SUMMARY nicht speichern |
| D6 | **H** | `portal_emails.excerpt` (500 Zeichen) kann Namen/Kontaktdaten enthalten; keine Frist, keine Anonymisierung | `ProcessPortalMail` | Löschfrist (z. B. kurz nach Verarbeitung) oder Felder gezielt extrahieren |
| D7 | **H** | Dublettenprüfung nur exakt über E-Mail (`firstOrNew` auf `email`, kleingeschrieben). Keine Zusammenführung, keine Mehrfach-Identitäten, keine Quelle/Importzeitpunkt am Gast | `CreateReservation` Z. ~52, `Guest` | → DATENMODELL-KONZEPT.md |
| D8 | **H** | Bei Anfrage über E-Mail-Adresse eines bestehenden Gastes werden dessen Stammdaten per `fill()` **überschrieben** (Adresse/Telefon) – fremde Person könnte mit bekannter E-Mail Daten verändern | `CreateReservation` | Stammdaten versionieren/Bestätigung vor Überschreiben |
| D9 | **M** | Kurtaxe/Kurabgabe nur als Textinfo; keine Daten (Personen, Alter, Befreiung), keine Meldung, keine Abführung | `PricesSection`, Mail-Views; `docs/PORTALE.md` | → BUCHUNGSPROZESS.md §Kurabgabe |
| D10 | **M** | feratel-Meldeschein-Anbindung nur als Plan (Schnittstelle für Software-Partner, Konditionen offen) | `docs/PORTALE.md` | Klärung mit Tourist-Information; ⚖ |
| D11 | **M** | Portalgebühren/Provisionen: nicht modelliert | – | Felder in Buchung/Finanzposten |
| D12 | **M** | Nachrichtenhistorie (ein-/ausgehend) wird nicht gespeichert; versendete System-Mails nur im Mail-Log/Postfach | `app/Mail/*` | Nachrichtenprotokoll ohne Volltext oder mit Frist |
| D13 | **M** | Quelle: `bookings.source` (string, z. B. `website`); `referral_source` ist Marketing-Herkunft. Keine externe Buchungsreferenz an `Booking`; `BlockedPeriod.external_uid` und `PortalEmail.reference` existieren | Migrationen | Bestehende Felder wiederverwenden |
| D14 | **M** | Art. 14 DSGVO (Portalgäste): Informationspflicht gegenüber Gästen, deren Daten aus Portalen kommen, ist nicht umgesetzt | – | Information im Erstkontakt/Vertragsmail; ⚖ Ausnahme Art. 14 (5) prüfen |
| D15 | **M** | Staging-Mailer `log`: Gästemails (Vertrag, Preis, Namen) im Logfile; Log-Level `debug` per Default | `docs/BETRIEB.md` | Nur Testdaten verwenden; Produktiv-Logging härten |
## 3. Was bereits wiederverwendbar ist
- `Guest` (Stammdaten, Anonymisierung, Marketing-Consent), `Booking` (Status, `quote`, Beträge, Zahlungstermine, `contract_path`), `Payment` (negative Beträge möglich), `PortalEmail` (Typ, Status, Referenz, Zeitraum), `Channel`/`ChannelTask`/`ChannelSyncLog`, Actions-Muster in `app/Actions`, Observer-Mechanik, signierte URLs, Rate-Limiter, Rollen-Policies, Pflicht-2FA für Admins.
- `PriceQuote`/`bookings.quote`: Preisaufschlüsselung als JSON → Basis für Angebots- und Rechnungsdarstellung.
## 4. Quellenlage Portaldaten (nichts raten)
| Quelle | Verfügbare Daten | Gästedaten | Status |
|---|---|---|---|
| iCal | Zeitraum, UID, SUMMARY (portalabhängig) | keine zugesichert | ✅ implementiert |
| Portal-E-Mail | Typ, Zeitraum, Referenz (heuristisch geparst); Mailtext enthält ggf. Gast-/Preisdaten | Nur nachweislich im Text vorhandene Daten; Parser extrahiert aktuell **nur** Typ/Zeitraum/Referenz | ✅ Code, ❓ reale Mails |
| Autorisierte API (Channel-Manager/Partner) | Gast, Preis, Gebühren, Nachrichten (je Anbieter) | ja (vertragsabhängig) | 🗓 nicht implementiert |
Regel: Felder ohne belegte Quelle bleiben leer (`NULL`) mit Kennzeichnung `unbekannt`; keine Ableitung aus Nachnamen, Telefonnummern o. Ä.
+58
View File
@@ -0,0 +1,58 @@
# GO-LIVE-CHECKLISTE – priorisierte Maßnahmen
> **Hinweis (22.10.2026):** Von einem Analyse-Agenten erstellt. Die als „verbindlich“ bezeichneten Entscheidungen (E1–E7) sind Annahmen des Agenten, keine Festlegungen der Betreiber. Maßgeblich sind die Entscheidungen in [KONZEPT.md §6a/6b](KONZEPT.md) (u. a. Buchungsweg 1 über Angebot + Annahme, Weg 2 Direktbuchung später; Kurabgabe vor Ort durch Ferienservice Balu).
Stand: 22.10.2026 · Priorität: **P0** Blocker (ohne diese nicht produktiv) · **P1** unmittelbar nach Go-Live bzw. vor Portalintegration · **P2** Ausbau. Die Checkliste ist eine *Maßnahmenplanung*; Konformität ist **nicht** nachgewiesen. Umsetzung nur nach Freigabe. Verweise: [GAP-DELTA.md](GAP-DELTA.md), [DATENSCHUTZ-AUDIT.md](DATENSCHUTZ-AUDIT.md).
## P0 – Blocker
| ☐ | Maßnahme | Bezug | Wer |
|---|---|---|---|
| ☐ | Impressum und Datenschutzerklärung erstellen, juristisch prüfen, im Footer + Buchungsformular verlinken | G1, G2 | Rechtsberatung/Betreiberin |
| ☐ | AVV mit STRATO prüfen/abschließen; Verarbeitungsverzeichnis anlegen; DSB-Pflicht prüfen | Faktenbasis | Betreiberin/DSB |
| ☐ | Produktiv-`.env` härten: `APP_ENV=production`, `APP_DEBUG=false`, `MAIL_MAILER=smtp` (TLS), `LOG_CHANNEL=daily`, `LOG_LEVEL` ≥ warning, `SESSION_SECURE_COOKIE=true` | G8 | Technik |
| ☐ | Browser-Verifikation Staging: Netzwerk/Cookies/Storage; Ergebnis in DSE | G9 | Technik |
| ☐ | Backup-Verfahren festlegen, Restore testen, Aufbewahrung dokumentieren | G5 | Technik |
| ☐ | Fristen des Löschkonzepts bestätigen lassen (Steuerberatung/Recht) | LOESCHKONZEPT | Steuerberatung/Recht |
| ☐ | Stornobedingungen, AGB, Widerrufs-/Verbraucherhinweise rechtlich klären (§§ 312g, 312i, 312j, 312k BGB) | BUCHUNGSPROZESS §7 | Recht |
| ☐ | Entscheidung: Direktbuchung vorerst als „Anfrage → Bestätigung“ betreiben (ohne Angebot/Annahme-Funktion) **oder** Go-Live erst nach Umsetzung des Angebot-/Annahmeprozesses | D2 | Betreiberin |
| ☐ | Staging mit Testdaten betreiben (kein Echtdaten-Import); Mail-Log nur Testadressen | D15 | Technik |
## P1 – Kurzfristig (Go-Live / vor Portal-Echtbetrieb)
| ☐ | Maßnahme | Bezug |
|---|---|---|
| ☐ | Löschjobs: Anfragen ohne Vertrag, `portal_emails.excerpt`, UTM, privates Review-Feedback; `anonymize()` um `internal_notes`, Review-Anzeigename erweitern | G3, G4, D6 |
| ☐ | Tokens aus Query-Parametern in Header verlegen (`/health/sync`, `/automation/scheduler`) | G6 |
| ☐ | Security-Header (HSTS, CSP, X-Frame-Options, Referrer-Policy, Permissions-Policy) | G11 |
| ☐ | Pflicht-2FA auch für Rolle `rentals`; Audit-Log für Export/Anonymisierung/Statuswechsel | G14, G15 |
| ☐ | Throttle für Bewertungs-/Annahme-/Storno-Routen | G12 |
| ☐ | iCal-`SUMMARY` prüfen (Portal liefert Namen?) und ggf. nicht speichern | D5 |
| ☐ | Gästestammdaten bei bekannter E-Mail nicht stillschweigend überschreiben | D8 |
| ☐ | Prozess Betroffenenrechte (Auskunft/Löschung) dokumentieren, Frist 1 Monat | G13 |
| ☐ | Art. 14-Information für Portalgäste (erste Mail + DSE-Abschnitt) | D14 |
| ☐ | n8n/Privatserver: Standort, Betreiber, Datenumfang dokumentieren; keine Gästedaten in Webhooks | G7 |
| ☐ | Cron/Scheduler produktiv einrichten und überwachen | `docs/BETRIEB.md` |
## P2 – Ausbau (Entscheidungen E1–E5)
| ☐ | Maßnahme | Bezug |
|---|---|---|
| ☐ | Datenmodell: `documents`, `messages`, Gebühren/Kurtaxe, Quelle/Importzeitpunkt (additiv, ohne Migrationsausführung vor Freigabe) | DATENMODELL-KONZEPT |
| ☐ | Portalbuchungen als `Booking` führen (Importpfad Portal-Mail); Merge-Kandidaten + manuelle Zusammenführung | DATENMODELL §5 |
| ☐ | Angebot + Annahme (signierter Link), Annahmenachweis, Empfangsbestätigung | BUCHUNGSPROZESS §3 |
| ☐ | Stornoformular ohne Konto, Stornokosten-Policy als Daten, Erstattungs-Action | BUCHUNGSPROZESS §5 |
| ☐ | Kurabgabe/Gästemeldung: Klärung mit Tourist-Information/feratel; getrennte Tabellen mit eigener Löschfrist | BUCHUNGSPROZESS §6 |
| ☐ | Steuerliche Nachweise: Rechnungen/Belege, Hash, `retain_until`, Export für Steuerberater | LOESCHKONZEPT |
| ☐ | Channel-Manager/API-Connector (nur nach AVV-/Anbieterprüfung) | PORTALE.md |
| ☐ | KI-Agent: Anbieter/Region/Training-Opt-out, Pseudonymisierung, Freigabe bei Preis/Angebot/Absage, Audit-Log, DSFA-Prüfung | Audit §5 |
## Entscheidungsbedarf (offen)
1. Portalbuchungen als `Booking` (empfohlener Entwurf) – bestätigen?
2. Angebot/Annahme **vor** oder **nach** Go-Live?
3. Gästedaten-Frist: 3 Jahre + Beleg (Vorschlag) – bestätigen nach Rechtsprüfung.
4. Bestehende `Confirmed`-Buchungen: als „angenommen“ migrieren?
5. Soll Annahmenachweis IP/User-Agent speichern (⚖) oder nur Zeitpunkt + Versionshash?
6. Kurabgabe/Gästemeldung: selbst erfassen oder über feratel/Tourist-Information?
7. Freigabe zur Umsetzung der Punkte P0/P1 (Code, Migrationen, Deployments erst auf Zuruf).
+22 -1
View File
@@ -48,7 +48,7 @@ ## 4a. Theme- und Vorlagensystem (Entscheidungen vom 22.10.2026 – umgesetzt, D
- **Themes** (Design) als Code-Pakete mit Manifest, eigenen Vorlagen und eigenem CSS; was ein Theme nicht mitbringt, kommt aus einem vollständigen **Basis-Theme** (Child-Theme-Prinzip). Erstes Theme: **„Ostsee-Licht“** (Entwurf A, orientiert an der bisherigen Webseite). Die Entwürfe B/C können später als weitere Themes folgen.
- **Bausteinsystem (geführt):** Seiten werden aus einem festen Katalog von Abschnitten zusammengestellt (Reihenfolge, Sichtbarkeit); Seiten und Menüs können je Ausrichtung unterschiedlich sein. Keine freie Seitengestaltung.
- **Saisonale Erscheinungsbilder:** wechseln Fotos, Texte, Farben/Akzente, Banner und hervorgehobene Angebote – nicht den Aufbau. Zeitplan jährlich wiederkehrend mit Priorität und Standard; Vorschau-Link vor Aktivierung. Startset: **Sommer** (Strand, Baden), **Winter** (raue See, stimmungsvoller Himmel), **Weihnachten** (gemütlich, besinnlich), **Silvester** (Party, Feuerwerk). Klickbare Vorschau: lokale HTML-Datei (Scratchpad der Sitzung).
- **Saisonale Erscheinungsbilder:** wechseln Fotos (Titelbild und **Bilder je Baustein**), Texte, Farben/Akzente und Banner – nicht den Aufbau. Bausteine können **nur in bestimmten Erscheinungsbildern** erscheinen (z. B. ein Weihnachts-Baustein). Sonderangebote werden seit 22.10.2026 **unabhängig** davon nach eigenen Regeln beworben (5a). Zeitplan jährlich wiederkehrend mit Priorität und Standard; Vorschau-Link vor Aktivierung. Startset: **Sommer** (Strand, Baden), **Winter** (raue See, stimmungsvoller Himmel), **Weihnachten** (gemütlich, besinnlich), **Silvester** (Party, Feuerwerk). Klickbare Vorschau: lokale HTML-Datei (Scratchpad der Sitzung).
- **Mehrfähigkeit offen halten:** „Site“ = Domain + Theme/Erscheinungsbilder + angezeigte Wohnungen; kein Portal, aber andere Vermieter könnten die Funktionen über eine eigene Domain nutzen (Mandantenfähigkeit vorbereiten, nicht ausbauen).
- **Plugins:** Theme- und Baustein-Plugins als Composer-Pakete (Registry wie bei den Portal-Connectoren); Auslieferung per Deployment – kein Upload von Vorlagen im Admin (Sicherheit).
- **Strato:** CSS aller Themes wird beim Deployment gebaut; Seiten-Cache je Erscheinungsbild.
@@ -88,6 +88,10 @@ ## 5a. Sonderangebote & Sonderkonditionen
Rabatte gelten auf den Übernachtungspreis (nicht auf Endreinigung/Extras); die Anzahlung wird auf den rabattierten Mietpreis berechnet. Treffen mehrere Angebote zu, erhält der Gast automatisch die günstigere Variante: das beste Einzelangebot **oder** die Summe aller als „kombinierbar“ markierten Angebote.
**Angebotsarten** (Entscheidung 22.10.2026): **Rabattaktion** (nur Bedingungen, z. B. Last Minute, „ab 3 Nächten −10 %“, 7 = 6, Special Weekend) · **Fester Termin** (genau diese An-/Abreise, z. B. „Ostsee-Woche 07.–14.11.“, oft mit **Pauschalpreis** für alle Nächte) · **Lückenfüller** (freie Lücken bis N Nächte zwischen zwei Belegungen, automatisch erkannt; kann den Mindestaufenthalt der Saison aufheben). Im Admin gibt es Vorlagen für die typischen Fälle.
**Bewerbung unabhängig vom Erscheinungsbild** (`App\Pricing\OfferShowcase`): gezeigt werden aktive, öffentliche Angebote ohne Code im Buchungszeitraum; feste Termine nur solange frei; Lückenfüller mit bis zu drei konkreten Lücken. Feste Termine und Lücken werden mit dem `PriceCalculator` gerechnet – der beworbene Preis ist exakt der spätere Angebotspreis („499 € statt 640 €“, Link mit vorausgefüllten Daten). Reihenfolge: hervorgehoben → Priorität → frühestes Datum. Gelten mehrere gleichzeitig, zeigt der Baustein sie wahlweise **nebeneinander, als Liste oder rollierend**; das wichtigste hervorgehobene Angebot erscheint optional im Titelbereich.
## 6. Workflows
```
@@ -108,6 +112,23 @@ ## 6. Workflows
Zahlungseingang wird manuell im Admin abgehakt (später optional: Abgleich über Bank-CSV-Import).
### 6a. Buchungswege (Entscheidung Lars Stommer, 22.10.2026)
**Weg 1 – über ein unverbindliches Angebot (jetzt umsetzen):** Der Gast fragt unverbindlich an → der Zeitraum wird vorgemerkt → die Vermieterin erstellt ein **Angebot** (heute manuell im Admin, später mit KI-Entwurf und menschlicher Freigabe) → das Angebot geht per **E-Mail** an den Gast → **nimmt der Gast das Angebot an** (signierter, befristeter Link ohne Gästekonto), ist die Buchung abgeschlossen → Bestätigung + Mietvertrag, Zahlungsfristen laufen. Läuft die Angebotsfrist ab oder lehnt der Gast ab, wird der Kalender wieder frei.
**Weg 2 – verbindliche Direktbuchung (Zukunft):** Der Gast bucht direkt verbindlich, die Bestätigung geht sofort raus, Stornierungsfristen laufen an. Voraussetzung: sehr verlässliche, nahezu sofortige Synchronität mit den anderen Buchungssystemen mit Sofortbuchung (v. a. FeWo-direkt), damit keine Doppelbuchungen entstehen. Erst nach Lösung dieser Voraussetzung (z. B. Channel-Manager-API, siehe PORTALE.md).
Rechtliche Ausgestaltung (Wortlaut des Annahme-Buttons, Informationspflichten, Storno-Regeln, AGB) wird fachkundig geprüft; Impressum und Datenschutzerklärung werden separat erstellt.
### 6b. Weitere Festlegungen (22.10.2026)
- **Kurabgabe** wird vor Ort durch den **Ferienservice Balu** erledigt – das System erhebt und meldet sie nicht. (Offen: ob Balu auch den Meldeschein übernimmt.)
- **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.
- **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.
## 7. Connector-/Plugin-System für Portale
Portale wechseln → jedes Portal ist ein eigenständiger **Channel-Connector** hinter einer gemeinsamen Schnittstelle:
+69
View File
@@ -0,0 +1,69 @@
# LOESCHKONZEPT – Datenkategorien und Fristen
> **Hinweis (22.10.2026):** Von einem Analyse-Agenten erstellt. Die als „verbindlich“ bezeichneten Entscheidungen (E1–E7) sind Annahmen des Agenten, keine Festlegungen der Betreiber. Maßgeblich sind die Entscheidungen in [KONZEPT.md §6a/6b](KONZEPT.md) (u. a. Buchungsweg 1 über Angebot + Annahme, Weg 2 Direktbuchung später; Kurabgabe vor Ort durch Ferienservice Balu).
Stand: 22.10.2026 · **Entwurf.** Alle Fristen sind **Vorschläge bzw. Prüfannahmen und rechtlich zu bestätigen** (Steuerberatung, Rechtsberatung, ggf. Datenschutzbeauftragte/r), sofern nicht „im Code belegt“. Kein Code geändert.
## 1. Prinzipien
1. **Trennung** operativer personenbezogener Daten (Gäste-Kommunikation, Marketing, Anfragen) von **archivierungspflichtigen Nachweisen** (Buchungs-/Zahlungsbelege, Verträge/Rechnungen).
2. Nach Ablauf des operativen Zwecks: Löschung bzw. Anonymisierung; Nachweise bleiben, werden aber auf das Nötige reduziert und nur noch zugriffsbeschränkt (Einschränkung der Verarbeitung, Art. 18 / Art. 17 (3) b).
3. Steuerliche Aufbewahrung geht der Löschung vor (Art. 17 (3) b DSGVO); Löschung erfolgt unverzüglich nach Fristende.
4. Jede Frist ist maschinell konfigurierbar (`config/fewo.php`) und im Verfahrensverzeichnis dokumentiert.
## 2. Frist-Übersicht
Fristbeginn, wo nicht anders genannt: Ende des Kalenderjahres, in dem das Ereignis eintrat (⚖ je Rechtsnorm bestätigen). Steuerliche Fristen laut AO (§ 147: Buchungsbelege und Handels-/Geschäftsbriefe mit unterschiedlicher Dauer; Änderungen durch das Bürokratieentlastungsgesetz IV ⚖ aktuell prüfen).
| Datenkategorie | Tabelle/Ort | Typ | Vorschlag Frist | Mechanismus Ist | Mechanismus Soll | Status |
|---|---|---|---|---|---|---|
| Unverbindliche Anfrage ohne Folgebuchung | `guests`, `bookings` (Status `reserved`) | operativ | z. B. 3–6 Monate nach Ablauf/Ablehnung ⚖ (Zweck: Rückfragen, Abwehr Ansprüche) | Keine; erst 10-Jahre-Anonymisierung | Job `inquiries:purge` löscht Anfrage + ggf. verwaisten Gast | ❌ Lücke |
| Abgelaufene/abgelehnte Vorreservierung | `bookings` (`expired`/`declined`) | operativ | wie oben ⚖ | Statusjob (`bookings:expire-holds`), keine Löschung | wie oben | ❌ Lücke |
| Verbindliche Buchung – Stammdaten Gast | `guests`, `bookings` | operativ + Nachweis | Gastdaten operativ bis Ende der Gewährleistungs-/Verjährungsfrist (3 Jahre, ⚖ BGB § 195); danach Anonymisierung des Gastes, Buchung bleibt als Beleg | Anonymisierung nach `guest_retention_years` = 10 J. (im Code belegt, ✅ `AnonymizeGuests`) | Zweistufig: Gast nach 3 J. anonymisieren, Beleg bis Steuerfrist | ⚠ zu lang/gebündelt |
| Vertrags-/Rechnungsdokumente | `storage/app/private/contracts` | Nachweis | Steuerliche Aufbewahrung (Prüfannahme 6–10 Jahre, ⚖) | Nicht gelöscht, **nicht** anonymisiert | `documents.retain_until`, Job löscht Datei nach Fristende; Zugriff auf Rolle begrenzen | ❌ Lücke |
| Zahlungen und Belege | `payments` | Nachweis | steuerliche Frist ⚖ | Bleiben (keine Löschung) ✅ gewollt | `retain_until`; `note`/`recorded_by` minimieren | ⚠ |
| Portalnachrichten (E-Mail-Auszug) | `portal_emails.excerpt` | operativ | kurz, z. B. 30–90 Tage nach Verarbeitung ⚖; Referenz/Zeitraum bleiben | Keine | Job leert `excerpt`; Mail im IMAP-Postfach löschen | ❌ Lücke |
| Portal-E-Mails im Postfach | IMAP bei STRATO | operativ/Beleg | Mails mit Buchungsbeleg-Charakter ggf. Geschäftsbrief-Frist ⚖ | Mails werden nur gelesen (`leaveUnread`) | Ablage-/Löschregel im Postfach | ❓ |
| Iterative iCal-Sperren | `blocked_periods.reason` | operativ | Sperren bis Zeitraumende + Frist; `reason` ohne Personenbezug | Behalten | `reason` nicht speichern, wenn Namen enthalten (D5) | ❓ |
| Bewertungen | `reviews` | operativ/Veröffentlichung | Veröffentlichte Bewertung bis Widerruf der Einwilligung; privates Feedback kurz (z. B. 12 Monate) ⚖ | Nicht von `anonymize` erfasst | Bei Gast-Anonymisierung `display_name` neutralisieren, `private_feedback` löschen | ❌ Lücke |
| Marketing-Einwilligungen | `guests.marketing_consent_at` | Nachweis Einwilligung | Bis Widerruf, **Nachweis** der Einwilligung ggf. 3 J. über Widerruf hinaus ⚖ | Widerruf per Link setzt `NULL` (✅); Nachweis geht verloren | Nachweis-Log (Zeitpunkt, DOI-Bestätigung, ohne IP) separat | ⚠ |
| Gästekartei (Notizen, Tags) | `guests.notes/tags` | operativ | mit Gast-Anonymisierung | ✅ bei `anonymize()` | – | ✅ |
| `bookings.message` (Gastnachricht) | `bookings` | operativ | mit Gast-Anonymisierung | ✅ | früher möglich | ✅ |
| `bookings.internal_notes` | `bookings` | operativ | mit Gast-Anonymisierung | ❌ nicht erfasst | in `anonymize()` aufnehmen | ❌ Lücke |
| Herkunft/UTM | `bookings.utm_*`, `referral_source` | operativ (Statistik) | kurz (z. B. 12–24 Monate) oder aggregieren ⚖ | Behalten | Job nullt UTM nach Frist | ❌ Lücke |
| Kurabgabe-/Meldedaten | s. BUCHUNGSPROZESS.md §Kühlungsborn | gesetzlich | Meldeschein: kurz (⚖ BMG § 30: ca. 1 Jahr, danach Vernichtung); Kurabgabe-Nachweise nach Satzung/Steuerrecht ⚖ | nicht implementiert | getrennte Tabelle mit eigener Frist | 🗓 |
| Admin-Konten | `users` | operativ | bis Ausscheiden | manuell | Offboarding-Prozess | ⚠ |
| Sessions | `sessions` (IP, UA) | technisch | Lifetime 120 Min.; Tabellenbereinigung | Laravel-Lotterie-GC (✅ Standard) | täglicher Job + nur bei Bedarf Session starten | ⚠ |
| Rate-Limit-Schlüssel | `cache` (IP-Hash im Key) | technisch | 1 Stunde (✅ im Code `RateLimiter::hit(…, 3600)`) | Laufzeit | – | ✅ |
| Anwendungs-Logs | `storage/logs` | technisch | z. B. 14 Tage (`LOG_DAILY_DAYS` Default) | Default `single` ohne Rotation ❌ | `LOG_CHANNEL=daily` | ❌ Lücke |
| Webserver-Logs STRATO | Hosting | technisch | Anbieterabhängig | ❓ | Strato-Info/AVV | ❓ |
| Audit-Log (neu) | `audit_events` | Nachweis Sicherheit | z. B. 12 Monate ⚖ | existiert nicht | einführen | 🗓 |
| Fehlgeschlagene Jobs | `failed_jobs` | technisch | 30 Tage | Standard behalten | Job `queue:prune-failed` | ⚠ |
| Datenbank-Backups | Strato/eigen | technisch | z. B. 30 Tage rollierend ⚖ | ❓ nicht belegt | dokumentieren; Restore-Test; Löschung aus Backups via Frist | ❓ |
## 3. Löschmechanik (Soll)
- **Zeitgesteuerte Jobs** (Laravel-Scheduler, bereits genutzt: `guests:anonymize` monatlich) je Kategorie, mit Zähler-Log (ohne personenbezogene Inhalte).
- **Zwei Stufen** für Gäste: (1) operative Daten entfernen, (2) Beleg-Datensatz anonymisieren; Buchungsnummer, Beträge, Zeitraum, Steuerdaten bleiben.
- **Dokumente:** Datei und Datensatz am `retain_until` löschen; vorher Dokumentenhash prüfen/protokollieren.
- **Betroffenenrechte:** manuelle Aktion „Gast löschen/anonymisieren“ prüft steuerliche Sperre (offene Fristen) und führt Teil-Löschung durch; Rückmeldung innerhalb eines Monats (⚖ Art. 12).
- **Backups:** Löschung wirkt über Rotation; keine Wiederherstellung gelöschter Daten ohne erneute Löschung (Verfahrensvorgabe).
## 4. Informationspflichten bei Datenherkunft (Art. 13/14)
| Fall | Pflicht | Umsetzungsvorschlag | Status |
|---|---|---|---|
| Direkt erhoben (Formular) | Art. 13: Identität, Zwecke, Rechtsgrundlage, Empfänger, Dauer, Rechte, Beschwerde | Datenschutzerklärung verlinkt am Formular; Kurzinfo in Bestätigungsmail | ❌ DSE leer |
| Aus Portal übernommen (E-Mail/API) | Art. 14: Herkunft, Kategorien; Information binnen 1 Monat, spätestens beim ersten Kontakt | Hinweis in erster Gästemail + DSE-Abschnitt „Portalbuchungen“; ⚖ Ausnahme Art. 14 (5) a (Gast ist bereits durch Portal informiert) prüfen | ❌ offen |
| iCal ohne Gästedaten | keine Gästedaten → keine Pflicht | – | ✅ |
| Marketing (DOI) | Art. 13 + § 7 UWG | Hinweis im Opt-in; Widerruf in jeder Mail | ✅ teilweise |
## 5. Offene Rechtsfragen (Löschkonzept)
1. Konkrete steuerliche Fristen je Dokumentart und Fristbeginn (Steuerberatung).
2. Zulässige Dauer der Speicherung von Anfragen ohne Vertragsschluss.
3. Verjährungs-/Beweiszweck als Grundlage für 3-Jahres-Speicherung von Gästedaten.
4. Nachweis der Einwilligung nach Widerruf (Dauer).
5. Meldeschein-/Kurabgabe-Fristen (Satzung Ostseebad Kühlungsborn; BMG).
6. Ob Portal-E-Mails im Postfach als Handelsbriefe aufbewahrungspflichtig sind.
7. Backup-Retention-Dauer als zulässiges Maß.
+244
View File
@@ -0,0 +1,244 @@
# 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)
> **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.
---
## 1. Grundregeln (nicht verhandelbar)
1. **Nur im eigenen Ordner arbeiten:** `resources/themes/<key>/**`. Zusätzlich erlaubt: `package.json`/`package-lock.json` für **selbst gehostete Schriften** (`@fontsource/*`). Alles andere bleibt unangetastet, insbesondere `resources/themes/ostsee-licht/**`, `app/**`, `config/**`, `database/**`, `routes/**`, `resources/views/livewire/**`.
2. **Neues Theme immer mit `php artisan themes:make <key>` anlegen.** Der Befehl erzeugt das korrekte Format und überschreibt nie einen vorhandenen Ordner.
3. **Nur Optik:** Blade-Vorlagen, CSS, etwas JavaScript, Farb-Tokens. Keine Datenbankabfragen, keine Geschäftslogik und keine neuen PHP-Klassen in Vorlagen. Daten kommen fertig aufbereitet aus den Bausteinen (Variablen siehe [THEMES.md §4–5](THEMES.md)).
4. **Farben nur über Tokens** (`bg-accent`, `text-muted` …), nie fest (`#123456`, `text-blue-700`, `bg-[#…]`, `style="color:#…"`). Sonst wirken die saisonalen Erscheinungsbilder nicht. Ausnahme ohne Saisonbezug: `text-white`/`bg-black` auf Fotos und Overlays.
5. **Nichts von fremden Servern laden:** keine Google Fonts, CDNs, externen Skripte, eingebetteten Karten oder Videos von Drittanbietern. Grund: DSGVO, und die Seite kommt so ohne Cookie-Banner aus.
6. **Pflicht-Markup erhalten** (§6): Verfügbarkeitssuche, Buchungsformular, Lightbox, rollierende Angebote, Echtheitshinweis der Bewertungen, JSON-LD, `noindex` in der Vorschau.
7. **Fertig ist ein Theme erst, wenn** `php artisan themes:check <key>` ohne Fehler, `npm run build` fehlerfrei und `php artisan test --compact` grün ist und die Checkliste in §10 abgehakt ist.
## 2. Schnellstart
```bash
git pull # aktuellen Stand holen
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)
php artisan migrate:fresh --seed # Testdaten: Wohnung, Seiten, 5 Erscheinungsbilder
php artisan photos:import <Ordner> --manifest=database/data/wordpress-photos.csv # optional: echte Fotos (siehe BETRIEB.md)
php artisan themes:make ostsee-nacht --name="Ostsee-Nacht" --description="Dunkel, ruhig, großformatige Fotos"
# → resources/themes/ostsee-nacht/ (erbt zunächst alles von Ostsee-Licht)
npm run dev # oder npm run build
php artisan serve # http://localhost:8000 · Admin: /admin (admin@example.com / password, 2FA beim ersten Login einrichten)
php artisan themes:preview ostsee-nacht # Vorschau-Links: jede Seite × jedes Erscheinungsbild
php artisan themes:check ostsee-nacht # Prüfung gegen diese Anleitung
```
**Key wählen:** Kleinbuchstaben, Ziffern und Bindestriche; Ordnername gleich Key, z. B. `ostsee-nacht`, `kuestenmagazin`. Der Key ist dauerhaft, weil die Website ihn speichert. Der Anzeigename (`name`) darf sich ändern.
## 3. Aufbau eines Themes
```
resources/themes/<key>/
├── theme.json Manifest (Pflicht)
├── theme.css Vite-Einstiegspunkt CSS (Pflicht, sobald das Theme eigenes CSS hat – themes:make legt es an)
├── theme.js Vite-Einstiegspunkt JS (Pflicht zusammen mit theme.css)
├── README.md kurze Beschreibung, welche Vorlagen überschrieben sind
└── views/
├── layouts/app.blade.php optional: Grundgerüst (<head>, Banner, Kopf, Inhalt, Fuß, Lightbox)
├── page.blade.php optional: Ausgabe der Bausteine einer Seite
├── partials/ optional: banner, header, footer, image, mobile-booking-bar + eigene Includes
└── sections/<baustein>.blade.php optional: je Baustein eine Vorlage (Liste in §5)
```
**Vererbung:** Jede Vorlage, die im Theme fehlt, kommt vom Eltern-Theme (`parent`) und zuletzt vom Basis-Theme „Ostsee-Licht“. Ein frisch angelegtes Theme sieht daher genauso aus wie Ostsee-Licht. Man überschreibt Schritt für Schritt nur, was anders werden soll. Für ein komplett neues Design werden in der Regel alle Vorlagen überschrieben. Ausgangspunkt ist dann jeweils die gleichnamige Datei aus `resources/themes/ostsee-licht/views/`: in den eigenen Ordner **kopieren** und umgestalten, das Original nicht ändern.
### 3.1 `theme.json`
```json
{
"key": "ostsee-nacht",
"name": "Ostsee-Nacht",
"version": "0.1.0",
"parent": "ostsee-licht",
"description": "Dunkel, ruhig, großformatige Fotos",
"assets": {
"css": "resources/themes/ostsee-nacht/theme.css",
"js": "resources/themes/ostsee-nacht/theme.js"
},
"tokens": {
"ground": { "label": "Hintergrund", "default": "#0F1A22" },
"accent": { "label": "Akzent (Buttons, Hervorhebungen)", "default": "#E8B04A" }
}
}
```
| Feld | Regel |
|---|---|
| `key` | = Ordnername, `^[a-z0-9]+(-[a-z0-9]+)*$` |
| `name`, `description` | erscheinen im Admin bei der Theme-Auswahl |
| `version` | `MAJOR.MINOR.PATCH`; bei jeder Auslieferung erhöhen |
| `parent` | in der Regel `ostsee-licht`; auch ein anderes installiertes Theme ist möglich |
| `assets.css` / `assets.js` | **genau** `resources/themes/<key>/theme.css` bzw. `theme.js`: Nur diese Dateien baut `vite.config.js` automatisch. Hat ein Theme eigene Assets, ersetzen sie die des Eltern-Themes **vollständig** (deshalb importieren beide Dateien das Eltern-Theme, §3.2/3.3). |
| `tokens` | Farbwerte als `#RRGGBB` mit deutschem `label`. `themes:make` übernimmt alle geerbten Tokens; die Defaults sind neu zu setzen. Alle 12 Basis-Tokens müssen in der Kette vorhanden sein. Neue Tokens sind erlaubt (§4). |
### 3.2 `theme.css` (so legt `themes:make` sie an)
```css
@import 'tailwindcss';
@import '../ostsee-licht/theme-base.css'; /* Schriften, Token-Mapping, Basis-Klassen des Eltern-Themes */
/* eigene Schriften – selbst gehostet */
@import '@fontsource/fraunces/400.css';
/* Vorlagen, deren Tailwind-Klassen gebaut werden – alle drei Zeilen sind Pflicht */
@source '../ostsee-licht/views'; /* geerbte Vorlagen */
@source '../../views/livewire'; /* Buchungs- und Bewertungsformular */
@source './views'; /* eigene Vorlagen */
@theme inline {
--font-display: 'Fraunces', Georgia, serif;
--font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
/* neues Token: */
--color-glow: var(--glow);
}
@layer components {
.heading-display { /* Basis-Klassen dürfen neu definiert werden */ }
}
```
- **Tailwind v4** (kein `tailwind.config.js`, keine `@apply` auf eigene Klassen).
- `theme-base.css` des Eltern-Themes liefert: Schriften von Ostsee-Licht, das Mapping aller Tokens auf Tailwind-Farben (`--color-<token>: var(--<token>)`), Formular-Grundstile, Fokusrahmen, `prefers-reduced-motion`. Dazu kommen die Klassen, die geerbte Vorlagen und die Formulare nutzen: `.eyebrow`, `.heading-display`, `.btn-primary`, `.btn-accent`, `.prose-theme`, `.reveal`. **Wer `theme-base.css` nicht importiert, muss all das selbst bereitstellen.** `themes:check` prüft Mapping und Quellen.
- **Nicht** `../ostsee-licht/theme.css` importieren, sondern `theme-base.css`. Die Quellen gibt das neue Theme selbst an.
### 3.3 `theme.js`
```js
import '../ostsee-licht/theme.js'; // Lightbox, Verfügbarkeitssuche, rollierende Angebote
// eigene, kleine Verbesserungen – progressive enhancement: ohne JS muss alles funktionieren
```
Kein Framework (React/Vue/Alpine-Komponenten), keine externen Skripte. Livewire/Alpine lädt das Layout bereits für das Buchungsformular.
## 4. Farben und Tokens
- Das Layout gibt die Tokens als CSS-Variablen aus (`:root{--accent:#…}`). Die Reihenfolge ist: Theme-Standard → Website (Admin › System › Websites › Farben) → Erscheinungsbild (Admin › Webseite › Erscheinungsbilder › Farben).
- Basis-Tokens (Bedeutung **nicht** umdeuten, nur neu einfärben):
| Token | Tailwind | Verwendung |
|---|---|---|
| `ground` | `bg-ground` | Seitenhintergrund |
| `surface` | `bg-surface` | Karten, Formulare |
| `ink` | `text-ink` | Haupttext |
| `muted` | `text-muted` | Nebentext |
| `line` | `border-line` | Linien, Rahmen |
| `accent` / `accent-ink` | `bg-accent` / `text-accent-ink` | Buttons, Hervorhebungen / Text darauf |
| `band` / `band-ink` / `band-muted` | `bg-band` … | dunkles Band (z. B. Lage) |
| `banner` / `banner-ink` | `bg-banner` … | Hinweis-Banner oben |
- **Kontraste (WCAG 2.2 AA, ≥ 4,5 : 1)** werden von `themes:check` für die Theme-Standards (Fehler) und für jedes aktive Erscheinungsbild der Datenbank (Warnung) geprüft. Paare: ink/muted/accent auf ground und surface, accent-ink auf accent, band-ink/band-muted auf band, banner-ink auf banner. Bei Warnungen in den Erscheinungsbildern die Saisonfarben im Admin anpassen oder die Theme-Standards so wählen, dass die Saisons passen.
- Saisonale Feinheiten im CSS: `<html data-appearance="weihnachten">`, also etwa `[data-appearance=silvester] .hero-overlay { … }`. Schlüssel: `standard`, `sommer`, `winter`, `weihnachten`, `silvester` (Slug des Namens).
- **Neues Token:** in `theme.json › tokens` (mit `label`, `default`) und in `theme.css › @theme inline` als `--color-<token>: var(--<token>);` mappen. Es erscheint dann automatisch als Farbfeld im Admin.
## 5. Bausteine und Vorlagen
Jede Seite ist eine Liste von Bausteinen, die die Vermieterin im Admin anordnet. Für jeden Baustein rendert das System `theme::sections.<key>` mit fertigen Variablen. **Welche Variablen es gibt, steht verbindlich in [THEMES.md](THEMES.md) §5.** Die Vorlagen von Ostsee-Licht sind die Referenz-Implementierung.
| Datei (`views/…`) | Baustein / Zweck |
|---|---|
| `sections/hero` | Titelbereich mit Verfügbarkeitssuche, optional Top-Angebot |
| `sections/facts` | Eckdaten |
| `sections/text_image` | Text mit bis zu 3 Bildern |
| `sections/gallery` | Bildergalerie mit Lightbox |
| `sections/amenities` | Ausstattung |
| `sections/location` | Lage & Umgebung |
| `sections/prices` | Preise & Saisons |
| `sections/offers` | Sonderangebote (nebeneinander / Liste / rollierend) |
| `sections/booking` | Kalender & Anfrage (Livewire) |
| `sections/reviews` | Gästebewertungen |
| `sections/host` | Gastgeberin |
| `sections/faq` | Häufige Fragen |
| `sections/cta` | Abschluss mit Aufruf |
| `sections/contact` | Kontakt |
| `sections/rich_text` | Fließtext (Impressum, Datenschutz …) |
| `layouts/app`, `page`, `partials/*` | Grundgerüst, Kopf, Fuß, Banner, Bild-Helfer, mobile Buchungsleiste |
Regeln für Vorlagen:
- **Immer vorhanden:** `$theme` und `$sectionId`. `$sectionId` für `id`/`aria-labelledby` verwenden, weil ein Baustein mehrfach auf einer Seite stehen kann.
- **Leere Daten abfangen:** Bausteine ohne Inhalt (keine Angebote, keine Bewertungen, kein Foto) rendern nichts bzw. einen ruhigen Platzhalter. Nie mit Fehlern abbrechen.
- **Bilder** immer über `@include('theme::partials.image', ['photo' => $photo, 'sizes' => '(min-width: 1024px) 50vw, 100vw', 'class' => '…', 'eager' => false])`. Das liefert responsives WebP (640/1280/2048 px) und Alt-Text aus dem Admin. `eager => true` nur für das erste große Bild der Seite.
- **Saisonbilder je Baustein** und **Bausteine nur in bestimmten Erscheinungsbildern** regelt das System. Vorlagen nehmen einfach `$photo`/`$photos`.
- **Texte** kommen aus dem Admin. Feste Texte in Vorlagen nur für Bedienelemente („Preis berechnen“, „Schließen“); auf Deutsch, per „Sie“.
- **Eigene Teil-Vorlagen** nach `views/partials/<name>.blade.php` legen und mit `@include('theme::partials.<name>')` einbinden.
- **Buchungs- und Bewertungsformular** (`resources/views/livewire/*.blade.php`) sind für alle Themes gemeinsam und nicht änderbar. Sie nutzen nur Token-Klassen und `.btn-*`; ein Theme passt sie über Tokens und die Basis-Klassen an.
## 6. Pflicht-Markup (wird von `themes:check` geprüft)
| Vorlage | Muss enthalten | Warum |
|---|---|---|
| `layouts/app` | `@vite($theme->assets())`, `{!! $theme->cssVariables() !!}` in `<style>`, `@livewireStyles`, `@livewireScripts`, `@stack('head')`, `@yield('content')`, `data-appearance="{{ $theme->appearanceKey() }}"` am `<html>`, `<meta name="robots" content="noindex">` wenn `$theme->isPreview \|\| ! app()->isProduction()`, Vorschau-Hinweis, `<dialog id="lightbox">` mit `img`, `[data-caption]`, `[data-close]`, Sprunglink `#inhalt` | Assets, Farben, Buchung, SEO-Schutz, Lightbox, Barrierefreiheit |
| `page` | Ausgabe von `$sections` (`{!! $section->render() !!}`) und JSON-LD aus `$structuredData` per `@push('head')` | Inhalt, Google |
| `partials/header` | `$theme->menu('main')` (Links `->url()`, Text `->label()`), Button zur Buchung | Navigation |
| `partials/footer` | `$theme->menu('footer')` (Impressum, Datenschutz) | Rechtspflicht |
| `sections/hero` | GET-Formular an `route('booking.create')` mit `data-availability-search` und Feldern `name="anreise"`, `name="abreise"` (Y-m-d), `name="personen"` | Suche → Buchungsseite |
| `sections/booking` | `<livewire:booking-request :property="$property" />` | Kalender, Preis, Anfrage |
| `sections/gallery` | Links `<a href="{{ $photo->url('lg') }}" data-lightbox data-alt="{{ $photo->alt_text }}">` | Lightbox |
| `sections/offers` | Umsetzung von `$display`: bei `rotating` die Attribute `data-rotator` (Container), `data-rotator-slide` (je Angebot, außer dem ersten `hidden`), `data-rotator-prev`/`-next`, `data-rotator-dot="<index>"` mit `aria-selected` | rollierende Angebote (theme.js) |
| `sections/reviews` | Hinweis: „Bewertungen über unsere Webseite können nur Gäste mit einer Buchung bei uns abgeben …“ (Wortlaut sinngemäß, muss „nur Gäste“ enthalten) | § 5b UWG |
| `sections/faq` | FAQ-JSON-LD per `@push('head')` | Google |
| `partials/mobile-booking-bar` | auf dem Handy immer erreichbarer Buchungs-Button | Konversion |
## 7. Schriften, Bilder, Icons, Bewegung
- **Schriften:** `npm install @fontsource/<schrift>` (oder `@fontsource-variable/<schrift>`), in `theme.css` importieren, in `@theme inline` als `--font-display` / `--font-sans` setzen. Höchstens zwei Familien und wenige Schnitte (Ladezeit). Lizenz: nur Open-Font-Lizenzen (Fontsource sind OFL).
- **Bilder:** nur Fotos aus dem Admin (Webseite › Fotos). Dekorative Grafiken als Inline-SVG in der Vorlage oder als Datei im Theme-Ordner, eingebunden über `{{ Vite::asset('resources/themes/<key>/img/…') }}`. Damit Vite diese Dateien baut, in `theme.js` einmal `import.meta.glob(['./img/**'], { eager: true, query: '?url' });` ergänzen. Keine Bild-URLs von fremden Servern.
- **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`.
## 8. Qualität
Es gelten [THEMES.md](THEMES.md) §8:
- Mobil zuerst (ab 360 px).
- LCP unter 2,5 s.
- WCAG 2.2 AA mit Kontrasten, Tastaturbedienung, sichtbarem Fokus und genau einem `h1` je Seite.
- Reduced Motion wird respektiert.
- SEO-Ausgaben bleiben erhalten.
## 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.
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.
## 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
- [ ] 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
- [ ] Tastatur: alles erreichbar, Fokus sichtbar; Reduced Motion an → keine Animation
- [ ] Nur selbst gehostete Schriften, keine externen Anfragen (Browser-Netzwerkanalyse)
- [ ] `npm run build` fehlerfrei, `php artisan test --compact` grün
- [ ] `README.md` des Themes: welche Vorlagen überschrieben sind, Schriften, Besonderheiten; `version` erhöht
## 11. Gut zu wissen
- **Tailwind-Klassen werden themeübergreifend gesammelt:** Das Vite-Plugin sammelt beim Build die Klassen aller Themes, deshalb kann die CSS-Datei jedes Themes auch Klassen der anderen enthalten. Das ist harmlos (etwas größer). Eigene Schriften, Tokens und Komponenten-Stile bleiben dagegen im jeweiligen Theme, das ist geprüft.
- **Strato hat ein Datei-Limit:** Bilder im Theme-Ordner sparsam einsetzen; Fotos gehören in den Admin.
- **Ein Theme pro Website:** Weitere Vermieter mit eigener Domain können später ein anderes Theme nutzen (Admin › Websites).
## 12. Auftrag für die Design-Sitzung (zum Kopieren)
> Lies `CLAUDE.md`, `docs/THEME-ERSTELLUNG.md` und `docs/THEMES.md` vollständig. Erstelle mit dem Skill `frontend-design` ein **neues, zusätzliches Theme** für die Ferienwohnung Stommer in Kühlungsborn. Lege es mit `php artisan themes:make <key> --name="…" --description="…"` an und arbeite ausschließlich in `resources/themes/<key>/` (plus `package.json` für `@fontsource`-Schriften). Verändere `resources/themes/ostsee-licht` nicht. Kopiere die Referenzvorlagen aus `resources/themes/ostsee-licht/views` in dein Theme und gestalte sie neu. Halte dabei den Vorlagen-Vertrag (THEMES.md §5) und das Pflicht-Markup (THEME-ERSTELLUNG.md §6) ein. Nur Token-Farben, keine externen Quellen, mobil zuerst, WCAG 2.2 AA. Prüfe laufend mit `php artisan themes:check <key>` und sieh jede Seite in allen Erscheinungsbildern über `php artisan themes:preview <key>` an. Abschluss: Checkliste §10, `npm run build`, `php artisan test --compact`, Commit nur der Theme-Dateien.
>
> Gestalterische Leitideen: siehe THEMES.md §10.
+15 -9
View File
@@ -3,6 +3,8 @@ # Theme-System – Architektur, Vorlagen-Vertrag, Übergabe Design
Stand: 22.10.2026 · Basis-Theme: **„Ostsee-Licht“** (`resources/themes/ostsee-licht`) · Entscheidungen: `docs/KONZEPT.md` §4a
> **Kurz:** Logik, Daten und Admin sind fertig und getestet. Ein Theme ist **nur Optik**: Blade-Vorlagen, CSS, ein wenig JS und Farb-Tokens. Für ein neues Design wird ausschließlich unter `resources/themes/<theme>/` gearbeitet.
>
> **Neues Theme bauen:** verbindliche Schritt-für-Schritt-Anleitung in [THEME-ERSTELLUNG.md](THEME-ERSTELLUNG.md) (`themes:make`, `themes:check`, `themes:preview`).
---
@@ -26,7 +28,7 @@ ## 1. Überblick
| **Theme** | `resources/themes/<key>/` | Manifest `theme.json`, Vorlagen `views/`, `theme.css`, `theme.js` |
| **Seite** | `pages`, Admin › Webseite › Seiten | Adresse, Menü (Haupt/Fuß/keins), SEO, **Bausteine** (Builder) |
| **Baustein** (Section) | `app/Themes/Sections/*`, Katalog in `config/themes.php` | Admin-Formular + Datenaufbereitung; Darstellung: `theme::sections.<key>` |
| **Erscheinungsbild** (Appearance) | `appearances`, Admin › Webseite › Erscheinungsbilder | Jährlicher Zeitraum + Priorität; ersetzt Farben (Tokens), Titelbild, ausgewählte Texte, Banner, hervorgehobenes Angebot – **nicht** den Aufbau |
| **Erscheinungsbild** (Appearance) | `appearances`, Admin › Webseite › Erscheinungsbilder | Jährlicher Zeitraum + Priorität; ersetzt Farben (Tokens), Titelbild, **Bilder je Baustein**, ausgewählte Texte, Banner – **nicht** den Aufbau. Bausteine können auf Erscheinungsbilder beschränkt werden. Sonderangebote sind **unabhängig** davon (`OfferShowcase`) |
Code: `app/Themes/` (Theme, ThemeFactory, ThemeRegistry, ThemeManifest, SectionRegistry, Sections/), `app/Http/Middleware/ResolveTheme.php`, `app/Http/Controllers/PageController.php`, `app/Providers/ThemeServiceProvider.php`.
@@ -35,7 +37,8 @@ ## 2. Aufbau eines Themes
```
resources/themes/ostsee-licht/
├── theme.json Manifest
├── theme.css Tailwind v4 + Schriften + Token-Mapping
├── theme.css Vite-Einstieg: @import 'tailwindcss' + theme-base.css + @source der Vorlagen
├── theme-base.css wiederverwendbar: Schriften, Token-Mapping, Basis-Klassen (Child-Themes importieren diese Datei)
├── theme.js kleine Verbesserungen (Lightbox, Suche)
└── views/
├── layouts/app.blade.php Grundgerüst: <head>, Banner, Kopf, @yield('content'), Fuß, Lightbox
@@ -58,8 +61,8 @@ ### theme.json
}
```
- **Vererbung:** Vorlagen, die ein Theme nicht hat, kommen vom Eltern-Theme, zuletzt vom Basis-Theme (`config('themes.base')`). Ein Child-Theme kann also mit einer einzigen Datei beginnen (z. B. nur `sections/hero.blade.php`). Hat ein Child-Theme keine eigenen `assets`, werden die des Eltern-Themes geladen.
- **Neues Theme anlegen:** Ordner `resources/themes/<key>/` mit `theme.json` (+ optional eigene Assets) → erscheint automatisch in Admin › System › Websites › Theme. `npm run build` baut alle Themes (`vite.config.js` liest die Ordner).
- **Vererbung:** Vorlagen, die ein Theme nicht hat, kommen vom Eltern-Theme, zuletzt vom Basis-Theme (`config('themes.base')`). Ein Child-Theme kann also mit einer einzigen Datei beginnen (z. B. nur `sections/hero.blade.php`). Hat ein Child-Theme keine eigenen `assets`, werden die des Eltern-Themes geladen – das reicht nur ohne eigene Vorlagen; sobald es Vorlagen gibt, braucht das Theme eigene `theme.css`/`theme.js` (sonst fehlen deren Tailwind-Klassen; `themes:check` meldet das).
- **Neues Theme anlegen:** `php artisan themes:make <key>` (überschreibt nie etwas) → erscheint automatisch in Admin › System › Websites › Theme (mit „Vorschau“). `npm run build` baut alle Themes (`vite.config.js` liest die Ordner). Prüfen: `php artisan themes:check`; Vorschau-Links: `php artisan themes:preview <key>` (signiert, `?theme=<key>` und optional `&vorschau=<Erscheinungsbild-ID>`). Details: [THEME-ERSTELLUNG.md](THEME-ERSTELLUNG.md).
- **Plugins:** Ein Theme-Paket legt seinen Ordner unter einen Pfad aus `config('themes.paths')`. Themes werden **nie** über den Admin hochgeladen (Vorlagen sind ausführbarer Code).
## 3. Design-Tokens (Farben)
@@ -83,6 +86,7 @@ ## 4. Was Layout und Vorlagen zur Verfügung haben
| `$theme->appearanceKey()` | z. B. `weihnachten` – steht als `data-appearance` am `<html>`; für saisonale CSS-Details nutzbar: `[data-appearance=silvester] .hero {…}` |
| `$theme->text($key, $fallback)` | Text des Erscheinungsbilds oder Fallback (Schlüssel: `Appearance::OVERRIDABLE`) |
| `$theme->heroPhoto($fallback)` | Titelbild des Erscheinungsbilds oder Fallback |
| `$theme->sectionPhotoIds($sectionId, $slot)` / `sectionPhotoMode($sectionId)` | Saisonbilder eines platzierten Bausteins (in Bausteinen über `seasonalPhoto()`, `seasonalPhotos()`, `withSeasonalPhotos()` der Basisklasse) |
| `$theme->property()` | Hauptwohnung der Site |
| `$theme->menu('main' \| 'footer')` | veröffentlichte Seiten des Menüs (`->url()`, `->label()`) |
| `$theme->tokens()`, `cssVariables()`, `assets()` | für das Layout |
@@ -97,14 +101,14 @@ ## 5. Bausteinkatalog – Vertrag der Vorlagen
| Key | Admin-Name | Variablen |
|---|---|---|
| `hero` | Titelbereich mit Suche | `$eyebrow`, `$title` (Text, `*Wort*` = Hervorhebung), `$text`, `$photo`, `$showSearch`, `$property` – Suche als GET-Formular an `route('booking.create')` mit `anreise`, `abreise` (Y-m-d), `personen` |
| `hero` | Titelbereich mit Suche | `$eyebrow`, `$title` (Text, `*Wort*` = Hervorhebung), `$text`, `$photo`, `$showSearch`, `$property`, `$featuredOffer` (`AdvertisedOffer`\|null: wichtigstes hervorgehobenes Angebot) – Suche als GET-Formular an `route('booking.create')` mit `anreise`, `abreise` (Y-m-d), `personen` |
| `facts` | Eckdaten | `$heading`, `$property`, `$highlights` (Collection<string>), `$fromPrice` (Cent\|null) |
| `text_image` | Text mit Bildern | `$eyebrow`, `$heading`, `$text` (HtmlString\|null), `$photos` (≤3), `$imagePosition` (`left`\|`right`), `$linkLabel`, `$linkUrl` |
| `gallery` | Bildergalerie | `$heading`, `$photos` – Lightbox: `<a href="{{ $photo->url('lg') }}" data-lightbox data-alt="…">` |
| `amenities` | Ausstattung | `$heading`, `$groups` (Bereich ⇒ Collection<Amenity>) |
| `location` | Lage & Umgebung | `$eyebrow`, `$heading`, `$text`, `$address`, `$mapUrl` (OpenStreetMap-Link, keine eingebettete Karte), `$photos` |
| `prices` | Preise & Saisons | `$eyebrow`, `$heading`, `$text`, `$property`, `$seasons` (nächste 12 Monate), `$extras`, `$featuredSeason` (Name des Erscheinungsbilds) |
| `offers` | Sonderangebote | `$heading`, `$offers` (öffentlich, ohne Code), `$featuredId` |
| `offers` | Sonderangebote | `$heading`, `$display` (`grid`\|`list`\|`rotating`), `$offers` (Collection<`App\Pricing\AdvertisedOffer`>: `title`, `description`, `advantage`, `conditions`, `arrival`/`departure`/`nights()` bei festen Terminen und Lücken, `quote` + `regularTotal()` für „statt …“, `bookingUrl()`). Rollierend: `data-rotator`, `data-rotator-slide`, `data-rotator-prev/next/dot` (theme.js) |
| `booking` | Kalender & Anfrage | `$heading`, `$text`, `$property` – bindet `<livewire:booking-request :property="$property" />` ein |
| `reviews` | Gästebewertungen | `$heading`, `$reviews`, `$count`, `$average`, `$categories` – **Pflichthinweis** zur Echtheit (§ 5b UWG) muss sichtbar bleiben |
| `host` | Gastgeber | `$heading`, `$quote`, `$text`, `$photo`, `$name` |
@@ -115,11 +119,13 @@ ## 5. Bausteinkatalog – Vertrag der Vorlagen
Rich-Text-Variablen sind bereits bereinigt (HtmlString) und werden mit `{{ $text }}` ausgegeben.
**Jeder platzierte Baustein** hat `data.id` (feste UUID, `Page::assignSectionIds` beim Speichern; Kopien bekommen eine neue) und `data.appearances` (Erscheinungsbild-IDs; leer = immer sichtbar, sonst nur in diesen – z. B. ein Weihnachts-Baustein). Bausteine mit Bildern melden ihre Bildplätze über `photoSlots()` (`single`, `multiple`, `collection` = automatisch gewählte Bilder, die ein Erscheinungsbild ersetzen oder voranstellen kann); daraus baut das Erscheinungsbild-Formular „Bilder je Baustein“ (`appearances.section_photos[<id>][<slot>]`, bei Sammlungen zusätzlich `mode`). Alle Bildauswahlen nutzen `App\Filament\Forms\Components\PhotoSelect` (Vorschaubild + Beschreibung, nach Kategorie gruppiert).
**Neuer Baustein** (auch als Plugin): Klasse `extends App\Themes\Sections\Section` (`key()`, `label()`, `icon()`, `schema()` = Admin-Felder, `data()` = Variablen) → in `config/themes.php › sections` eintragen → Vorlage `sections/<key>.blade.php` im Basis-Theme anlegen (Test `test_base_theme_is_discovered_and_provides_a_view_for_every_section` erzwingt das). Unbekannte Bausteine werden auf der Seite übersprungen, nie ein Fehler.
## 6. Erscheinungsbilder
- Felder: Name, Zeitraum `TT.MM.`–`TT.MM.` (jährlich, darf über Silvester laufen), Priorität, Standard, aktiv, Titelbild, hervorgehobenes Angebot, Texte (`banner.text`, `banner.link_label`, `banner.link_url`, `hero.eyebrow`, `hero.title`, `hero.text`, `cta.title`, `cta.text`), Farben.
- Felder: Name, Zeitraum `TT.MM.`–`TT.MM.` (jährlich, darf über Silvester laufen), Priorität, Standard, aktiv, Titelbild, **Bilder je Baustein** (alle Bausteine mit Bildern auf allen Seiten; leer = Bild aus der Seite), Texte (`banner.text`, `banner.link_label`, `banner.link_url`, `hero.eyebrow`, `hero.title`, `hero.text`, `cta.title`, `cta.text`), Farben.
- Startset (Seeder): Standard · Sommer 01.06.–31.08. · Winter 01.11.–31.03. · Weihnachten 01.12.–25.12. (Prio 20) · Silvester 26.12.–03.01. (Prio 20).
- **Vorschau:** Admin › Erscheinungsbilder › „Vorschau“ = signierter Link (24 h), `noindex`.
- Ohne Erscheinungsbild-Banner wird der neueste aktive Hinweis (Admin › Hinweis-Banner) gezeigt.
@@ -153,9 +159,9 @@ ## 9. Lokal starten und prüfen
## 10. Übergabe: Auftrag für die Design-Sitzung (privater Rechner, Plugin `frontend-design`)
**Ziel:** Das Basis-Theme „Ostsee-Licht“ gestalterisch auf ein wirklich herausragendes Niveau heben (Recherche & Ideen: Chat vom 22.10.2026, Zusammenfassung unten), oder ein neues Theme als Child bzw. eigenständiges Theme anlegen und im Admin umschalten.
**Ziel:** Ein **neues, zusätzliches Theme** auf wirklich herausragendem Niveau (Recherche & Ideen: Chat vom 22.10.2026, Zusammenfassung unten), angelegt mit `themes:make`, auswählbar im Admin – „Ostsee-Licht“ bleibt unverändert als Basis und Rückfall. **Verbindliche Anleitung und Auftragstext: [THEME-ERSTELLUNG.md](THEME-ERSTELLUNG.md).**
**Arbeitsbereich:** nur `resources/themes/<theme>/**` – dazu bei Bedarf die theme-neutralen Livewire-Formulare `resources/views/livewire/*.blade.php` (nur Klassen, keine Logik).
**Arbeitsbereich:** nur `resources/themes/<neues-theme>/**` (+ `package.json` für `@fontsource`-Schriften). Die Livewire-Formulare `resources/views/livewire/*.blade.php` sind für alle Themes gemeinsam und werden nicht verändert.
**Nicht anfassen:** `app/**` (außer ein neuer Baustein wird bewusst gebraucht – dann §5), Datenbank, Admin, `config/**`.
@@ -0,0 +1,143 @@
/* Reusable styles of "Ostsee-Licht" (fonts, token mapping, base classes) – imported by theme.css and by child themes. */
/* Self-hosted fonts (no request to Google – GDPR). */
@import '@fontsource/cormorant-garamond/500.css';
@import '@fontsource/cormorant-garamond/500-italic.css';
@import '@fontsource/cormorant-garamond/600.css';
@import '@fontsource/figtree/400.css';
@import '@fontsource/figtree/500.css';
@import '@fontsource/figtree/600.css';
/*
* Colour tokens come from theme.json and can be changed per site and per appearance; the layout prints them
* as CSS variables. Tailwind classes such as bg-accent or text-muted refer to these variables.
*/
@theme inline {
--color-ground: var(--ground);
--color-surface: var(--surface);
--color-ink: var(--ink);
--color-muted: var(--muted);
--color-line: var(--line);
--color-accent: var(--accent);
--color-accent-ink: var(--accent-ink);
--color-band: var(--band);
--color-band-ink: var(--band-ink);
--color-band-muted: var(--band-muted);
--color-banner: var(--banner);
--color-banner-ink: var(--banner-ink);
--font-display: 'Cormorant Garamond', Georgia, serif;
--font-sans: 'Figtree', ui-sans-serif, system-ui, sans-serif;
}
@layer base {
html {
scroll-behavior: smooth;
}
body {
background: var(--ground);
color: var(--ink);
transition: background-color 0.4s, color 0.4s;
}
input:not([type='checkbox']):not([type='radio']),
select,
textarea {
border-width: 1px;
border-color: var(--line);
padding: 0.6rem 0.8rem;
background-color: var(--surface);
color: var(--ink);
}
input[type='checkbox'] {
width: 1rem;
height: 1rem;
accent-color: var(--accent);
}
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
}
@layer components {
.eyebrow {
@apply mb-3 text-xs font-semibold tracking-[0.24em] text-accent uppercase;
}
.heading-display {
@apply font-display text-4xl leading-[1.08] font-medium sm:text-[2.875rem];
}
.btn-primary {
@apply inline-flex min-h-11 items-center justify-center rounded-full bg-ink px-6 py-3 text-[15px] font-semibold text-ground transition hover:opacity-90;
}
.btn-accent {
@apply inline-flex min-h-11 items-center justify-center rounded-full bg-accent px-6 py-3 text-[15px] font-semibold text-accent-ink transition hover:opacity-90;
}
.prose-theme {
@apply text-muted;
}
.prose-theme p {
@apply mb-4;
}
.prose-theme ul,
.prose-theme ol {
@apply mb-4 ml-5 list-outside;
}
.prose-theme ul {
@apply list-disc;
}
.prose-theme ol {
@apply list-decimal;
}
.prose-theme a {
@apply text-accent underline;
}
.prose-theme h2,
.prose-theme h3 {
@apply mt-6 mb-2 font-display text-2xl text-ink;
}
}
/* Gentle reveal while scrolling – only where supported and only without "reduce motion". */
@media (prefers-reduced-motion: no-preference) {
@supports (animation-timeline: view()) {
.reveal {
animation: reveal linear both;
animation-timeline: view();
animation-range: entry 0% entry 35%;
}
@keyframes reveal {
from {
opacity: 0;
transform: translateY(24px);
}
}
}
}
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
*,
*::before,
*::after {
transition-duration: 0.01ms !important;
animation-duration: 0.01ms !important;
}
}
+5 -142
View File
@@ -1,146 +1,9 @@
/*
* Entry point of the theme "Ostsee-Licht": Tailwind, the reusable theme styles and the template sources.
* Child themes import theme-base.css (not this file) and list their own sources – see docs/THEME-ERSTELLUNG.md.
*/
@import 'tailwindcss';
/* Self-hosted fonts (no request to Google – GDPR). */
@import '@fontsource/cormorant-garamond/500.css';
@import '@fontsource/cormorant-garamond/500-italic.css';
@import '@fontsource/cormorant-garamond/600.css';
@import '@fontsource/figtree/400.css';
@import '@fontsource/figtree/500.css';
@import '@fontsource/figtree/600.css';
@import './theme-base.css';
@source './views';
@source '../../views/livewire';
/*
* Colour tokens come from theme.json and can be changed per site and per appearance; the layout prints them
* as CSS variables. Tailwind classes such as bg-accent or text-muted refer to these variables.
*/
@theme inline {
--color-ground: var(--ground);
--color-surface: var(--surface);
--color-ink: var(--ink);
--color-muted: var(--muted);
--color-line: var(--line);
--color-accent: var(--accent);
--color-accent-ink: var(--accent-ink);
--color-band: var(--band);
--color-band-ink: var(--band-ink);
--color-band-muted: var(--band-muted);
--color-banner: var(--banner);
--color-banner-ink: var(--banner-ink);
--font-display: 'Cormorant Garamond', Georgia, serif;
--font-sans: 'Figtree', ui-sans-serif, system-ui, sans-serif;
}
@layer base {
html {
scroll-behavior: smooth;
}
body {
background: var(--ground);
color: var(--ink);
transition: background-color 0.4s, color 0.4s;
}
input:not([type='checkbox']):not([type='radio']),
select,
textarea {
border-width: 1px;
border-color: var(--line);
padding: 0.6rem 0.8rem;
background-color: var(--surface);
color: var(--ink);
}
input[type='checkbox'] {
width: 1rem;
height: 1rem;
accent-color: var(--accent);
}
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
}
@layer components {
.eyebrow {
@apply mb-3 text-xs font-semibold tracking-[0.24em] text-accent uppercase;
}
.heading-display {
@apply font-display text-4xl leading-[1.08] font-medium sm:text-[2.875rem];
}
.btn-primary {
@apply inline-flex min-h-11 items-center justify-center rounded-full bg-ink px-6 py-3 text-[15px] font-semibold text-ground transition hover:opacity-90;
}
.btn-accent {
@apply inline-flex min-h-11 items-center justify-center rounded-full bg-accent px-6 py-3 text-[15px] font-semibold text-accent-ink transition hover:opacity-90;
}
.prose-theme {
@apply text-muted;
}
.prose-theme p {
@apply mb-4;
}
.prose-theme ul,
.prose-theme ol {
@apply mb-4 ml-5 list-outside;
}
.prose-theme ul {
@apply list-disc;
}
.prose-theme ol {
@apply list-decimal;
}
.prose-theme a {
@apply text-accent underline;
}
.prose-theme h2,
.prose-theme h3 {
@apply mt-6 mb-2 font-display text-2xl text-ink;
}
}
/* Gentle reveal while scrolling – only where supported and only without "reduce motion". */
@media (prefers-reduced-motion: no-preference) {
@supports (animation-timeline: view()) {
.reveal {
animation: reveal linear both;
animation-timeline: view();
animation-range: entry 0% entry 35%;
}
@keyframes reveal {
from {
opacity: 0;
transform: translateY(24px);
}
}
}
}
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
*,
*::before,
*::after {
transition-duration: 0.01ms !important;
animation-duration: 0.01ms !important;
}
}
+25
View File
@@ -43,3 +43,28 @@ document.addEventListener('submit', (event) => {
form.querySelector('[name=anreise]').focus();
}
});
// Rotating offers: one slide at a time, advancing every 7 s; pauses on hover/focus and
// does not advance by itself when the visitor prefers reduced motion.
document.querySelectorAll('[data-rotator]').forEach((rotator) => {
const slides = [...rotator.querySelectorAll('[data-rotator-slide]')];
const dots = [...rotator.querySelectorAll('[data-rotator-dot]')];
let current = 0;
let paused = false;
const show = (index) => {
current = (index + slides.length) % slides.length;
slides.forEach((slide, i) => { slide.hidden = i !== current; });
dots.forEach((dot, i) => dot.setAttribute('aria-selected', i === current ? 'true' : 'false'));
};
rotator.querySelector('[data-rotator-prev]')?.addEventListener('click', () => show(current - 1));
rotator.querySelector('[data-rotator-next]')?.addEventListener('click', () => show(current + 1));
dots.forEach((dot, i) => dot.addEventListener('click', () => show(i)));
['mouseenter', 'focusin'].forEach((type) => rotator.addEventListener(type, () => { paused = true; }));
['mouseleave', 'focusout'].forEach((type) => rotator.addEventListener(type, () => { paused = false; }));
if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
setInterval(() => { if (!paused && !document.hidden) show(current + 1); }, 7000);
}
});
@@ -20,7 +20,7 @@
<meta property="og:image" content="{{ $ogImage }}">
@endisset
<link rel="canonical" href="{{ url()->current() }}">
@if ($theme->isPreview)
@if ($theme->isPreview || ! app()->isProduction())
<meta name="robots" content="noindex">
@endif
@vite($theme->assets())
@@ -32,7 +32,7 @@
<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 des Erscheinungsbilds „{{ $theme->appearance?->name }}“</div>
<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')
@@ -5,6 +5,17 @@
@if ($eyebrow)<p class="eyebrow">{{ $eyebrow }}</p>@endif
<h1 id="{{ $sectionId }}-title" class="font-display text-[2.5rem] leading-[1.02] font-medium sm:text-[3.5rem]">{!! preg_replace('/\*(.+?)\*/u', '<em>$1</em>', e($title)) !!}</h1>
@if ($text)<p class="mt-4 text-muted">{{ $text }}</p>@endif
@if ($featuredOffer ?? null)
<a href="{{ $featuredOffer->bookingUrl() }}" class="mt-5 flex items-center gap-3 rounded border border-accent p-3 hover:bg-surface">
<span class="rounded bg-accent px-2 py-1 text-sm font-semibold whitespace-nowrap text-accent-ink">{{ $featuredOffer->advantage }}</span>
<span class="text-sm">
<strong>{{ $featuredOffer->title }}</strong>
@if ($featuredOffer->arrival)
· {{ $featuredOffer->arrival->format('d.m.') }}–{{ $featuredOffer->departure->format('d.m.') }}
@endif
</span>
</a>
@endif
</div>
</div>
</section>
@@ -1,17 +1,74 @@
{{-- Contract: $heading, $display (grid|list|rotating), $offers (Collection of App\Pricing\AdvertisedOffer) --}}
@if ($offers->isNotEmpty())
<section class="mx-auto max-w-7xl px-4 py-16 sm:px-8" aria-labelledby="{{ $sectionId }}-title">
<h2 id="{{ $sectionId }}-title" class="heading-display mb-8">{{ $heading }}</h2>
<ul class="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
@foreach ($offers as $offer)
<li @class(['reveal rounded bg-surface p-7', 'ring-2 ring-accent' => $offer->id === $featuredId])>
<p class="font-display text-2xl">{{ $offer->name }}</p>
@if ($offer->public_description)<p class="mt-2 text-muted">{{ $offer->public_description }}</p>@endif
@if ($offer->stay_from || $offer->stay_until)
<p class="mt-3 text-sm text-muted">Reisezeitraum {{ $offer->stay_from?->format('d.m.Y') ?? 'ab sofort' }} – {{ $offer->stay_until?->format('d.m.Y') ?? 'offen' }}</p>
@endif
@php($layout = $display === 'rotating' && $offers->count() === 1 ? 'grid' : $display)
@php($rotating = $layout === 'rotating')
<section class="mx-auto max-w-7xl px-4 py-16 sm:px-8" aria-labelledby="{{ $sectionId }}-title"
@if ($rotating) data-rotator aria-roledescription="Karussell" @endif>
<div class="mb-8 flex items-end justify-between gap-4">
<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>
@if ($rotating)
<div class="flex gap-2">
<button type="button" data-rotator-prev class="rounded border border-line px-3 py-1.5 hover:bg-surface" aria-label="Vorheriges Angebot">←</button>
<button type="button" data-rotator-next class="rounded border border-line px-3 py-1.5 hover:bg-surface" aria-label="Nächstes Angebot">→</button>
</div>
@endif
</div>
<ul @class([
'grid gap-4 sm:grid-cols-2 lg:grid-cols-3' => $layout === 'grid',
'grid gap-4' => $layout === 'list',
'relative' => $rotating,
]) @if ($rotating) data-rotator-track aria-live="polite" @endif>
@foreach ($offers as $advertised)
<li data-offer="{{ $advertised->key() }}" @class([
'reveal flex flex-col rounded bg-surface p-7',
'ring-2 ring-accent' => $advertised->offer->is_featured,
'sm:flex-row sm:items-center sm:gap-8' => $layout === 'list',
]) @if ($rotating) data-rotator-slide @if (! $loop->first) hidden @endif aria-label="Angebot {{ $loop->iteration }} von {{ $offers->count() }}" @endif>
<div class="flex-1">
<p class="inline-block rounded bg-accent px-2.5 py-1 text-sm font-semibold text-accent-ink">{{ $advertised->advantage }}</p>
<p class="mt-3 font-display text-2xl">{{ $advertised->title }}</p>
@if ($advertised->arrival)
<p class="mt-1 font-semibold">
{{ $advertised->arrival->locale('de')->isoFormat('dd DD.MM.') }} – {{ $advertised->departure->locale('de')->isoFormat('dd DD.MM.YYYY') }}
· {{ $advertised->nights() }} {{ $advertised->nights() === 1 ? 'Nacht' : 'Nächte' }}
</p>
@endif
@if ($advertised->description)<p class="mt-2 text-muted">{{ $advertised->description }}</p>@endif
@if ($advertised->conditions)
<ul class="mt-3 flex flex-wrap gap-2 text-sm text-muted">
@foreach ($advertised->conditions as $condition)
<li class="rounded border border-line px-2 py-0.5">{{ $condition }}</li>
@endforeach
</ul>
@endif
</div>
<div @class(['mt-5', 'sm:mt-0 sm:text-right' => $layout === 'list'])>
@if ($advertised->quote)
<p class="text-lg">
<strong>{{ \App\Support\Money::format($advertised->quote->total()) }}</strong>
@if ($advertised->regularTotal() > $advertised->quote->total())
<span class="text-muted">statt <s>{{ \App\Support\Money::format($advertised->regularTotal()) }}</s></span>
@endif
</p>
<p class="text-sm text-muted">für {{ $advertised->quote->guests }} {{ $advertised->quote->guests === 1 ? 'Person' : 'Personen' }} inkl. Endreinigung</p>
@endif
<a href="{{ $advertised->bookingUrl() }}" class="mt-3 inline-block rounded bg-accent px-5 py-2.5 font-semibold text-accent-ink hover:opacity-90">
{{ $advertised->arrival ? 'Diesen Termin anfragen' : 'Preis berechnen' }}
</a>
</div>
</li>
@endforeach
</ul>
<p class="mt-4 text-sm text-muted">Angebote werden bei der Preisberechnung automatisch berücksichtigt.</p>
@if ($rotating)
<div class="mt-4 flex justify-center gap-2" role="tablist" aria-label="Angebote">
@foreach ($offers as $advertised)
<button type="button" data-rotator-dot="{{ $loop->index }}" role="tab" aria-label="Angebot {{ $loop->iteration }}"
aria-selected="{{ $loop->first ? 'true' : 'false' }}" class="size-2.5 rounded-full bg-line aria-selected:bg-accent"></button>
@endforeach
</div>
@endif
<p class="mt-4 text-sm text-muted">Angebote werden bei der Preisberechnung automatisch berücksichtigt – Sie erhalten immer das für Sie günstigste.</p>
</section>
@endif
+6 -5
View File
@@ -1,8 +1,8 @@
# Copy to scripts/deploy.production.env (or deploy.staging.env) and fill in. These files are not committed.
# SSH access (Strato: Kundenlogin › Datenbanken und Webspace › SFTP & SSH)
DEPLOY_HOST=ssh.strato.de
DEPLOY_USER=www.fewo-stommer.de
# SSH access (Strato: Kundenlogin › Datenbanken und Webspace › SFTP & SSH › Details › "Server", e.g. 12345678.ssh.w1.strato.hosting)
DEPLOY_HOST=12345678.ssh.w1.strato.hosting
DEPLOY_USER=stu123456789
DEPLOY_PORT=22
# Optional: private key file (otherwise the SSH agent / default key is used)
# DEPLOY_SSH_KEY=~/.ssh/strato_fewo
@@ -16,8 +16,9 @@ DEPLOY_PHP=/opt/RZphp84/bin/php-cli
# Public address for the health check after switching (empty = no check, no automatic rollback)
DEPLOY_URL=https://www.fewo-stommer.de
# Number of releases kept on the server for rollbacks
DEPLOY_KEEP=5
# After a successful deployment, tag the commit as deploy/<environment>/<timestamp> and push the tag to Gitea
# (the server keeps only the active release; going back = deploy an older tag). 0 = no tags.
DEPLOY_TAG=1
# Local build: how Composer is called (Windows example: "php /c/path/to/composer.phar")
# COMPOSER_BIN=composer
+92 -17
View File
@@ -3,18 +3,22 @@
# Deployment to Strato (or any SSH host offering bash, tar and a PHP CLI) with atomic releases.
#
# scripts/deploy.sh <environment> setup create the folder structure on the server (once)
# scripts/deploy.sh <environment> deploy build, upload, migrate, switch, health check (rollback on failure)
# scripts/deploy.sh <environment> rollback switch back to the previous release
# scripts/deploy.sh <environment> releases list releases on the server
# scripts/deploy.sh <environment> deploy [ref] build a Git commit/tag (default HEAD), upload, migrate, switch,
# health check (switch back on failure), tag it in Gitea
# scripts/deploy.sh <environment> rollback switch back while the previous release is still on the server
# scripts/deploy.sh <environment> releases active release on the server and deployment tags in Git
# scripts/deploy.sh <environment> artisan <args> run an artisan command in the active release
#
# Settings come from scripts/deploy.<environment>.env (not committed, see scripts/deploy.example.env)
# or from environment variables (CI). Server layout below DEPLOY_PATH:
#
# releases/<timestamp>/ one folder per release (code, vendor, built assets)
# releases/<timestamp>/ the active release (code, vendor, built assets); during a deployment also the new one.
# Older releases are not kept (Strato file quota) – history lives in Git as tags
# deploy/<environment>/<timestamp>; going back = deploy that tag again.
# shared/.env production settings – created by hand once
# shared/storage/ uploads, logs, sessions, cache – survive every release
# current -> releases/… active release; the domain's target directory is current/public
# current -> releases/… active release (CLI, cron); the domain points at DEPLOY_PATH, whose .htaccess
# forwards to the active release's public folder
#
set -euo pipefail
@@ -34,9 +38,10 @@ fi
DEPLOY_USER="${DEPLOY_USER:-}"
DEPLOY_PORT="${DEPLOY_PORT:-22}"
DEPLOY_PHP="${DEPLOY_PHP:-/opt/RZphp84/bin/php-cli}"
DEPLOY_KEEP="${DEPLOY_KEEP:-5}"
DEPLOY_TAG="${DEPLOY_TAG:-1}"
DEPLOY_URL="${DEPLOY_URL:-}"
DEPLOY_SSH_KEY="${DEPLOY_SSH_KEY:-}"
DEPLOY_SSH_KEY="${DEPLOY_SSH_KEY/#\~/$HOME}"
COMPOSER_BIN="${COMPOSER_BIN:-composer}"
say() { printf '\n\033[1;34m▶ %s\033[0m\n' "$*"; }
@@ -50,25 +55,62 @@ base="$1"; php="$2"; cmd="$3"; shift 3
mkdir -p "$base"
cd "$base"
# The web is served from the concrete release folder, not through the "current" symlink: Strato's
# OPcache keys scripts by the symlinked path and would keep serving the previous release.
# Strato: the web server's PHP version can be chosen per folder; use the same version as the CLI.
write_htaccess() {
local target="$1"
local web_php
web_php="$(printf '%s' "$php" | grep -oE 'RZphp[0-9]+' | grep -oE '[0-9]+' || true)"
{ [[ -n "$web_php" ]] && echo "AddType application/x-httpd-php$web_php .php"; cat <<HTACCESS
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(releases/(?!$target/public/)|shared(/|$)|current(/|$)|\.|upload-) - [F,L]
RewriteCond %{REQUEST_URI} !^/releases/$target/public/
RewriteRule ^(.*)\$ releases/$target/public/\$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
Require all denied
</IfModule>
HTACCESS
} > .htaccess.new
mv -f .htaccess.new .htaccess
}
switch_to() {
ln -sfn "$1" current.new
mv -Tf current.new current
write_htaccess "$(basename "$1")"
}
case "$cmd" in
setup)
mkdir -p releases shared/storage/app/public shared/storage/framework/cache/data shared/storage/framework/sessions shared/storage/framework/views shared/storage/logs
# For hosting panels that cannot point a domain at a symlink: the domain points at this folder,
# .htaccess forwards to the active release's public folder and blocks all internal files.
active="$(readlink current 2>/dev/null || true)"
if [[ -n "$active" ]]; then write_htaccess "$(basename "$active")"; else printf 'Require all denied
' > .htaccess; fi
echo ".htaccess angelegt (Domain-Ziel: $base)."
if [[ -f shared/.env ]]; then echo "shared/.env vorhanden."; else echo "HINWEIS: Bitte $base/shared/.env anlegen (Vorlage: .env.production.example)."; fi
echo "PHP: $("$php" -v | head -n 1)"
;;
receive)
release="$1"
mkdir -p "releases/$release"
tar -xzf "upload-$release.tgz" -C "releases/$release"
tar -xzf "upload-$release.tgz" -C "releases/$release" || { rm -rf "releases/$release" "upload-$release.tgz"; exit 1; }
rm -f "upload-$release.tgz"
;;
cleanup)
# Everything except the active release: older releases, leftovers of aborted uploads.
active="$(basename "$(readlink current 2>/dev/null || echo none)")"
for dir in releases/*; do
[[ -d "$dir" && "$(basename "$dir")" != "$active" ]] && rm -rf "$dir" && echo "Entfernt: $dir"
done
rm -f upload-*.tgz
;;
activate)
release="$1"; keep="$2"; dir="releases/$release"
release="$1"; dir="releases/$release"
[[ -f shared/.env ]] || { echo "shared/.env fehlt – erst anlegen (siehe docs/DEPLOYMENT.md)." >&2; exit 1; }
rm -rf "$dir/storage"
ln -s ../../shared/storage "$dir/storage"
@@ -83,7 +125,6 @@ case "$cmd" in
)
readlink current > .previous_release 2>/dev/null || true
switch_to "$dir"
ls -1d releases/* | sort | head -n -"$keep" | xargs -r rm -rf
echo "Aktiv: $release"
;;
rollback)
@@ -92,13 +133,13 @@ case "$cmd" in
if [[ -z "$target" || "$target" == "$active" || ! -d "$target" ]]; then
target="$(ls -1d releases/* | sort | grep -vx "$active" | tail -n 1 || true)"
fi
[[ -n "$target" && -d "$target" ]] || { echo "Keine frühere Version vorhanden." >&2; exit 1; }
[[ -n "$target" && -d "$target" ]] || { echo "Keine frühere Version mehr auf dem Server – stattdessen einen Deploy-Tag erneut ausliefern (siehe: releases)." >&2; exit 1; }
switch_to "$target"
echo "$active" > .previous_release
echo "Zurückgeschaltet auf: $target (Datenbank-Migrationen werden dabei nicht zurückgenommen)"
;;
releases)
ls -1 releases
echo "Auf dem Server: $(ls -1 releases | tr '\n' ' ')"
echo "Aktiv: $(readlink current 2>/dev/null || echo '–')"
;;
artisan)
@@ -140,29 +181,54 @@ upload() {
fi
}
# Strato limits the number of files per package (inode quota), and every release carries ~19,000 files.
# Removes what the application never loads at runtime: translations other than de/en, tests and docs.
prune_vendor() {
local before
before="$(find vendor -type f | wc -l)"
find vendor -mindepth 5 -maxdepth 5 -type d -path '*/resources/lang/*' ! -name de ! -name en -exec rm -rf {} +
find vendor/nesbot/carbon/src/Carbon/Lang -type f ! -name 'de*' ! -name 'en*' -delete 2>/dev/null || true
find vendor -mindepth 3 -maxdepth 3 -type d \( -name tests -o -name docs -o -name .github \) -exec rm -rf {} +
find vendor -type f \( -iname '*.md' -o -name 'phpunit.xml*' -o -name '.gitattributes' -o -name '.editorconfig' \) -delete
echo "vendor: $before → $(find vendor -type f | wc -l) Dateien"
}
build() {
say "Baue Version aus Git-Stand $(git -C "$ROOT" rev-parse --short HEAD)"
if [[ -n "$(git -C "$ROOT" status --porcelain)" ]]; then
REVISION="$(git -C "$ROOT" rev-parse --verify "$REF^{commit}")" || fail "Unbekannter Git-Stand: $REF"
say "Baue Version aus Git-Stand $REF (${REVISION:0:7})"
if [[ "$REF" == "HEAD" && -n "$(git -C "$ROOT" status --porcelain)" ]]; then
echo "Hinweis: Nicht committete Änderungen werden NICHT ausgeliefert (gebaut wird der letzte Commit)."
fi
BUILD_DIR="$(mktemp -d)"
git -C "$ROOT" archive --format=tar HEAD | tar -x -C "$BUILD_DIR"
git -C "$ROOT" archive --format=tar "$REVISION" | tar -x -C "$BUILD_DIR"
(
cd "$BUILD_DIR"
$COMPOSER_BIN install --no-dev --prefer-dist --optimize-autoloader --no-interaction --no-progress
npm ci --no-audit --no-fund
npm run build
rm -rf node_modules tests docs .gitea .github scripts storage .env.example .env.production.example .ai .claude .cursor AGENTS.md CLAUDE.md boost.json phpunit.xml
git -C "$ROOT" rev-parse HEAD > REVISION
rm -rf node_modules tests docs styles .gitea .github scripts storage .env.example .env.production.example .ai .claude .cursor AGENTS.md CLAUDE.md boost.json phpunit.xml
prune_vendor
echo "$REVISION" > REVISION
)
ARCHIVE="$BUILD_DIR.tgz"
tar -czf "$ARCHIVE" -C "$BUILD_DIR" .
echo "Paket: $(du -h "$ARCHIVE" | cut -f1)"
}
# Records the live version in Git (and Gitea) – the release history, since the server keeps no old releases.
tag_release() {
[[ "$DEPLOY_TAG" == "1" ]] || return 0
local tag="deploy/$ENVIRONMENT/$1"
git -C "$ROOT" -c user.name="${GIT_AUTHOR_NAME:-deploy}" -c user.email="${GIT_AUTHOR_EMAIL:-deploy@localhost}" tag -a "$tag" -m "Deployed to $ENVIRONMENT" "$REVISION" || { echo "Hinweis: Git-Tag $tag konnte nicht angelegt werden."; return 0; }
git -C "$ROOT" push -q origin "$tag" 2>/dev/null || git -C "$ROOT" push -q origin "$tag" || echo "Hinweis: Tag $tag nur lokal angelegt – bitte später 'git push origin $tag'."
echo "Git-Tag: $tag"
}
health_check() {
[[ -n "$DEPLOY_URL" ]] || { echo "Kein DEPLOY_URL gesetzt – Gesundheitscheck übersprungen."; return 0; }
# First deployment: the domain does not point to current/public yet.
[[ "${SKIP_HEALTH_CHECK:-}" == "1" ]] && { echo "SKIP_HEALTH_CHECK=1 – Gesundheitscheck übersprungen."; return 0; }
say "Prüfe $DEPLOY_URL/up"
for attempt in 1 2 3 4 5; do
if curl -fsS --max-time 15 "$DEPLOY_URL/up" > /dev/null; then
@@ -180,18 +246,24 @@ case "$COMMAND" in
remote setup
;;
deploy)
REF="${1:-HEAD}"
build
RELEASE="$(date -u +%Y%m%d%H%M%S)"
say "Räume Server auf (nur die aktive Version bleibt)"
remote cleanup
say "Übertrage Version $RELEASE"
upload "$ARCHIVE" "$RELEASE"
remote receive "$RELEASE"
say "Migrieren, Caches aufwärmen, umschalten"
remote activate "$RELEASE" "$DEPLOY_KEEP"
remote activate "$RELEASE"
if ! health_check; then
say "Gesundheitscheck fehlgeschlagen – schalte zurück"
remote rollback
remote cleanup
fail "Deployment zurückgerollt. Logs: scripts/deploy.sh $ENVIRONMENT artisan about / shared/storage/logs"
fi
remote cleanup
tag_release "$RELEASE"
rm -rf "$BUILD_DIR" "$ARCHIVE"
say "Fertig: Version $RELEASE ist live."
;;
@@ -201,6 +273,9 @@ case "$COMMAND" in
;;
releases)
remote releases
echo "Deploy-Tags in Git (neueste zuerst; zurück mit: scripts/deploy.sh $ENVIRONMENT deploy <tag>):"
git -C "$ROOT" fetch -q --tags origin 2>/dev/null || true
git -C "$ROOT" tag -l "deploy/$ENVIRONMENT/*" --sort=-refname | head -n 10
;;
artisan)
remote artisan "$@"
Binary file not shown.

After

Width:  |  Height:  |  Size: 417 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 830 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 KiB

+42
View File
@@ -0,0 +1,42 @@
# Markenelemente FeWo Stommer
Stand: 22.10.2026
## Inhalt
| Ordner/Datei | Status | Verwendung |
|---|---|---|
| `ChatGPT-Bild …-1.png` … `-5.png` | **Original-Entwürfe** (KI-generiert, transparent) | Vorlage; nicht direkt auf der Webseite einsetzen (300–850 KB) |
| `*.svg` im Ordner `styles/` | automatisch nachgezeichnete Entwürfe | **nicht verwenden:** Löcher/Sprenkel in Flächen, treppige Kanten, Icons sind Ausschnitte mit Resten der Nachbarsymbole, 6–170 KB je Datei |
| `final/` | **saubere Fassungen zur Verwendung** | siehe unten |
## `final/` – freigegebene Fassungen
| Datei | Größe | Zweck |
|---|---|---|
| `mark.svg` | 1,4 KB | Bildmarke (Haus, Wellen, Sonne) – Kopfzeile, Fußzeile, Ladeanzeigen |
| `logo.svg` | 2,3 KB | Bildmarke + Schriftzug „FeWo Stommer“ + Unterzeile. Der Schriftzug ist SVG-Text mit fester Breite (Schrift: Cormorant Garamond, sonst Georgia); auf der Webseite besser Bildmarke + HTML-Text in der Theme-Schrift |
| `logo-600.png` | 87 KB | Logo für E-Mails und das Vertrags-PDF (Mail-Programme zeigen SVG nicht zuverlässig) |
| `favicon.svg` | 0,8 KB | Browser-Tab; im Dunkelmodus des Browsers mit hellem Dach |
| `apple-touch-icon.png` | 11 KB | Symbol beim „Zum Home-Bildschirm“ (180 × 180) |
| `icon-apartment.svg`, `icon-sea.svg`, `icon-terrace.svg`, `icon-location.svg` | je ≈ 1 KB | Symbole für Eckdaten, Ausstattung, Lage |
| `wave-divider.svg` | 1,6 KB | Trenner zwischen Abschnitten, Abschluss des Titelbereichs (skaliert auf volle Breite) |
| `coastal-illustration-1200.webp` | 85 KB | Illustration „Haus in den Dünen“ – Platzhalter ohne Foto, Fehlerseite, Design-Akzent |
## Farben
| Variable | Standard | Bedeutung |
|---|---|---|
| `--brand-navy` | `#0B2E55` | Dach, Schrift, Symbole |
| `--brand-teal` | `#0286A2` | Welle (kräftig) |
| `--brand-wave` | `#6DBFC2` | Welle (hell) |
| `--brand-sun` | `#F2C27A` | Sonne, Spiegelung, Zierlinien |
Alle SVGs nutzen diese Variablen mit Standardwert. Als `<img>` eingebunden zeigen sie die Markenfarben. **Inline** in einer Blade-Vorlage eingebunden übernehmen sie Werte, die ein Theme oder Erscheinungsbild setzt, z. B. `--brand-navy: var(--ink)`. So bleibt das Logo im dunklen Silvester-Erscheinungsbild sichtbar.
## Regeln
- Keine Verzerrung, keine Schatten oder Effekte; Mindestbreite der Bildmarke 24 px, des Logos mit Schriftzug 160 px.
- Schutzraum rund um das Logo: mindestens die Höhe des Dachfensters.
- Das Logo ist KI-generiert. Vor einer Anmeldung als Marke die Rechtslage fachkundig prüfen lassen.
- Einbau in die Webseite: Logo und Favicon gehören zur **Website** (Admin › Websites), nicht zu einem Theme. Wellenband, Symbole und Illustration gehören ins Theme (siehe `docs/THEME-ERSTELLUNG.md`).
+18
View File
@@ -0,0 +1,18 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1448" height="1086" viewBox="0 0 1448 1086" role="img" aria-label="coastal-illustration"><title>coastal-illustration</title>
<path fill="#026e8f" fill-rule="evenodd" d="M1382,818 L1356,808 L1352,808 L1339,803 L1328,801 L1324,799 L1307,796 L1298,793 L1279,790 L1278,789 L1261,787 L1260,786 L1232,783 L1231,782 L1208,781 L1207,780 L1189,780 L1188,779 L1146,780 L1145,781 L1136,781 L1135,782 L1127,782 L1126,783 L1114,784 L1113,785 L1089,789 L1076,793 L1072,793 L1036,804 L1035,806 L1033,805 L1032,807 L1030,806 L1018,810 L1015,812 L987,821 L985,823 L984,822 L982,824 L981,823 L980,825 L978,824 L977,826 L976,825 L949,835 L946,835 L933,840 L923,842 L921,844 L919,843 L918,845 L915,844 L907,846 L907,847 L938,846 L939,845 L947,845 L948,844 L970,842 L971,841 L976,841 L977,840 L982,840 L983,839 L1002,836 L1032,828 L1036,828 L1040,826 L1044,826 L1061,821 L1065,821 L1070,819 L1074,819 L1094,814 L1099,814 L1111,811 L1125,810 L1126,809 L1146,808 L1147,807 L1160,807 L1161,806 L1215,806 L1216,807 L1230,807 L1231,808 L1253,809 L1254,810 L1261,810 L1262,811 L1269,811 L1270,812 L1277,812 L1278,811 L1319,812 L1320,813 L1332,813 L1333,814 L1362,816 L1363,817 L1381,818 L1382,819 Z M1238,690 L1246,690 L1247,691 L1242,694 L1269,694 L1263,694 L1261,691 L1257,691 L1256,690 Z M1195,672 L1227,671 L1228,670 L1233,670 L1229,670 L1228,669 L1229,668 L1234,668 L1214,666 L1218,666 L1224,668 L1222,669 L1223,670 L1222,671 Z M1094,666 L1091,665 L1094,663 L1092,659 L1089,661 L1079,661 L1091,661 L1092,664 L1091,665 L1087,665 L1088,666 Z M23,725 L24,726 L36,723 L43,723 L44,722 L50,722 L51,721 L57,721 L58,720 L64,720 L65,719 L71,719 L72,718 L78,718 L86,716 L93,716 L94,715 L101,715 L102,714 L118,713 L119,712 L128,712 L129,711 L138,711 L139,710 L148,710 L149,709 L162,709 L163,708 L176,708 L177,707 L194,707 L195,706 L264,706 L265,707 L283,707 L284,708 L297,708 L298,709 L305,708 L310,710 L314,709 L319,711 L336,712 L344,714 L358,715 L364,717 L367,716 L370,718 L375,718 L376,719 L381,719 L382,720 L406,724 L450,735 L530,761 L543,767 L551,769 L559,773 L567,775 L607,791 L615,793 L637,802 L638,801 L645,805 L661,806 L668,808 L688,810 L689,811 L694,811 L707,814 L714,814 L727,817 L755,820 L763,822 L790,824 L791,825 L803,825 L804,826 L818,826 L819,827 L883,826 L884,825 L904,824 L905,823 L912,823 L913,822 L941,819 L947,817 L953,817 L921,814 L920,813 L914,813 L913,812 L872,806 L862,803 L857,803 L838,798 L829,797 L820,794 L816,794 L780,785 L776,783 L761,780 L757,778 L746,776 L742,774 L735,773 L731,771 L724,770 L717,767 L693,761 L625,739 L622,737 L614,735 L611,733 L603,731 L579,721 L574,720 L569,717 L559,714 L526,700 L521,699 L518,697 L499,691 L479,683 L476,683 L456,676 L449,675 L442,672 L438,672 L422,667 L418,667 L413,665 L398,663 L392,661 L373,659 L372,658 L365,658 L364,657 L337,656 L336,655 L314,655 L313,656 L282,657 L281,658 L273,658 L272,659 L265,659 L264,660 L257,660 L256,661 L243,662 L236,664 L230,664 L229,665 L224,665 L203,670 L198,670 L193,672 L184,673 L175,676 L163,678 L159,680 L147,682 L143,684 L136,685 L132,687 L108,693 L95,698 L92,698 L89,700 L86,700 L66,708 L58,710 L44,717 L39,718 L25,725 Z M392,511 L388,514 L388,516 L386,518 L387,517 L392,518 L393,515 L391,512 Z"/>
<path fill="#fce8c7" fill-rule="evenodd" d="M1179,655 L1207,655 L1208,656 L1300,655 L1295,655 L1294,654 L1279,654 L1278,655 L1227,654 L1234,654 L1235,655 L1234,656 L1206,655 L1205,654 L1182,654 Z M1235,655 L1236,654 L1251,654 L1252,655 L1251,656 L1236,656 Z M316,653 L342,653 L343,654 L355,654 L356,655 L374,656 L375,657 L388,658 L389,659 L394,659 L395,660 L419,664 L435,668 L439,670 L446,671 L453,674 L456,674 L488,684 L491,686 L510,692 L524,698 L525,697 L527,699 L528,698 L529,700 L530,699 L534,702 L535,701 L539,704 L544,706 L545,705 L549,708 L554,709 L557,711 L558,710 L568,715 L569,714 L570,716 L588,723 L590,722 L591,724 L592,723 L593,725 L596,726 L597,725 L601,728 L603,727 L604,729 L607,730 L608,729 L610,731 L611,730 L612,732 L613,731 L615,733 L620,734 L623,736 L625,735 L626,737 L643,742 L646,744 L648,743 L650,745 L656,747 L658,746 L659,748 L680,755 L683,754 L684,756 L693,759 L696,759 L750,775 L752,774 L753,776 L755,775 L757,777 L759,776 L761,778 L765,779 L767,778 L769,780 L771,779 L773,781 L774,780 L780,783 L782,782 L784,784 L788,785 L791,784 L792,786 L796,787 L799,786 L800,788 L804,789 L807,788 L809,790 L813,791 L816,790 L817,792 L819,791 L821,793 L825,792 L826,794 L828,793 L830,795 L833,794 L835,796 L837,795 L840,797 L841,796 L845,798 L847,797 L849,799 L852,798 L853,800 L857,799 L858,801 L862,800 L864,802 L866,801 L869,803 L872,802 L874,804 L878,803 L879,805 L881,804 L885,806 L886,805 L890,805 L891,806 L890,807 L894,806 L896,808 L902,808 L903,809 L907,808 L909,810 L930,812 L931,813 L935,813 L936,812 L940,814 L947,814 L948,815 L950,814 L957,814 L958,816 L992,811 L993,810 L1009,808 L1010,807 L988,806 L987,805 L979,805 L978,804 L967,804 L966,803 L947,802 L946,801 L939,801 L932,799 L920,798 L919,797 L909,796 L892,792 L879,787 L875,783 L875,780 L881,775 L894,771 L924,766 L933,763 L934,759 L928,756 L920,755 L919,754 L913,754 L912,753 L905,753 L904,752 L895,752 L894,751 L847,749 L846,748 L832,748 L831,747 L819,747 L818,746 L806,746 L805,745 L787,744 L786,743 L779,743 L778,742 L770,742 L763,740 L750,739 L749,738 L732,736 L731,735 L712,732 L707,730 L703,730 L687,726 L683,724 L680,724 L673,721 L670,721 L667,719 L647,712 L646,711 L647,710 L624,702 L621,700 L613,698 L610,696 L602,694 L597,691 L599,690 L593,691 L591,689 L587,688 L584,689 L583,688 L584,687 L581,688 L580,687 L581,686 L580,687 L578,687 L577,686 L578,685 L575,686 L574,685 L575,684 L573,685 L572,683 L570,684 L569,682 L568,683 L564,682 L563,680 L562,681 L559,680 L558,678 L556,679 L555,677 L553,678 L552,676 L550,677 L549,675 L547,676 L546,674 L544,675 L543,673 L541,674 L540,672 L538,673 L537,671 L535,672 L534,670 L532,671 L531,669 L528,670 L527,669 L528,668 L526,669 L524,667 L522,668 L521,667 L522,666 L520,667 L518,665 L515,666 L514,665 L515,664 L512,665 L511,663 L509,664 L508,662 L506,663 L505,661 L502,662 L501,660 L498,661 L497,660 L498,659 L495,660 L494,658 L491,658 L483,655 L480,656 L479,654 L475,655 L474,654 L475,653 L472,654 L471,652 L467,653 L466,652 L467,651 L464,652 L463,650 L449,648 L444,646 L433,645 L427,643 L407,641 L406,640 L372,638 L371,639 L361,639 L360,640 L353,640 L352,641 L346,640 L332,645 Z M286,636 L275,648 L276,649 L275,650 L284,644 L282,645 L280,643 Z M536,633 L535,635 L534,634 L535,635 L531,642 L537,637 Z M332,639 L324,641 L314,646 L307,643 L312,638 L323,631 L309,640 L293,654 L294,653 L303,653 L308,649 L322,642 Z M390,622 L389,626 L395,630 L396,629 L397,630 L392,623 Z M853,619 L859,616 L860,617 L857,620 L865,615 L855,614 Z M792,614 L806,614 L810,613 L811,615 L814,616 L813,615 L814,613 L816,615 L817,613 L818,614 L825,613 L827,615 L829,613 Z M253,608 L248,612 L244,618 L246,616 L247,617 L251,615 L252,612 L251,610 Z M205,592 L199,596 L193,603 L194,602 L195,603 Z M260,596 L256,596 L252,593 L257,590 L252,592 L245,597 L247,596 L251,599 L253,599 Z M406,589 L414,598 L412,601 L413,602 L412,603 L410,602 L419,611 L416,606 L416,604 L417,603 L420,606 L412,595 Z M704,584 L704,586 L699,590 L700,592 L703,592 L705,590 L704,586 L705,585 L706,586 Z M454,584 L459,595 L460,600 L462,585 L462,587 L461,588 L460,586 L459,589 L457,590 Z M464,583 L466,586 L467,598 L468,596 L468,586 L469,585 L472,588 L474,594 L475,603 L475,598 L480,583 L479,582 L477,583 L470,582 L468,584 Z M274,578 L270,579 L269,577 L267,578 L265,576 L267,574 L258,578 L255,581 L257,580 L259,582 L257,583 L259,583 Z M158,574 L154,578 L153,576 L152,577 L151,581 L148,585 L149,586 L147,587 L146,590 L151,582 Z M468,571 L483,574 L487,576 L484,577 L490,576 L506,583 L496,587 L495,586 L494,588 L492,587 L493,590 L486,595 L487,609 L490,602 L498,592 L499,594 L496,599 L495,609 L494,610 L494,616 L498,609 L500,607 L502,608 L500,613 L500,618 L498,621 L503,614 L516,601 L517,603 L513,608 L511,612 L512,613 L510,614 L511,615 L509,616 L510,617 L508,618 L509,619 L507,621 L507,622 L514,614 L515,615 L513,621 L516,623 L512,627 L511,626 L512,623 L510,627 L510,629 L511,629 L520,620 L523,618 L524,619 L521,623 L516,635 L529,623 L530,625 L524,634 L526,633 L535,623 L544,617 L545,618 L538,628 L538,631 L540,632 L539,633 L542,632 Line truncated
<path fill="#f7f6ef" fill-rule="evenodd" d="M1116,745 L1136,745 L1137,746 L1150,746 L1151,747 L1183,749 L1184,750 L1232,755 L1233,756 L1239,756 L1240,757 L1246,757 L1247,758 L1253,758 L1261,760 L1268,760 L1275,762 L1307,765 L1308,766 L1316,766 L1317,767 L1325,767 L1326,768 L1340,768 L1341,769 L1390,769 L1391,768 L1411,767 L1362,767 L1361,766 L1346,766 L1345,765 L1336,765 L1335,764 L1325,764 L1324,763 L1301,761 L1300,760 L1279,758 L1278,757 L1272,757 L1271,756 L1265,756 L1264,755 L1258,755 L1257,754 L1251,754 L1243,752 L1236,752 L1235,751 L1228,751 L1227,750 L1220,750 L1219,749 L1212,749 L1211,748 L1202,748 L1201,747 L1189,747 L1188,746 L1173,746 L1172,745 Z M920,728 L943,729 L944,730 L966,730 L967,731 L1017,732 L1018,733 L1035,733 L1036,734 L1052,734 L1053,735 L1070,735 L1071,736 L1093,737 L1074,736 L1073,735 L1048,733 L1047,732 L1037,732 L1036,731 L1027,731 L1026,730 L1012,730 L1011,729 L936,729 L935,728 Z M283,710 L293,710 L294,711 L303,711 L304,712 L312,712 L313,713 L335,715 L336,716 L335,717 L328,717 L327,716 L315,717 L313,715 L310,715 L307,717 L303,717 L301,719 L299,718 L295,720 L294,719 L293,720 L285,720 L317,723 L318,724 L338,726 L339,727 L362,730 L368,732 L373,732 L438,748 L500,768 L503,770 L522,776 L530,780 L551,787 L559,791 L580,798 L620,814 L678,834 L681,834 L688,837 L716,844 L720,846 L724,846 L736,850 L740,850 L749,853 L758,854 L773,858 L778,858 L779,859 L799,862 L800,863 L806,863 L812,865 L834,867 L835,868 L843,868 L844,869 L853,869 L854,870 L878,871 L879,872 L902,872 L903,873 L934,873 L935,872 L955,872 L956,871 L970,871 L971,870 L996,868 L997,867 L1002,867 L1011,864 L1019,863 L1023,861 L1043,856 L1026,860 L1020,860 L1019,861 L1006,862 L1005,863 L996,863 L995,864 L970,865 L969,866 L949,866 L948,867 L922,867 L921,866 L897,866 L896,865 L882,865 L881,864 L862,863 L861,862 L846,861 L845,860 L839,860 L832,858 L814,856 L803,853 L798,853 L751,842 L747,840 L740,839 L719,832 L716,832 L663,814 L660,812 L636,804 L620,797 L604,792 L596,788 L591,787 L588,785 L583,784 L580,782 L575,781 L567,777 L562,776 L535,765 L527,763 L524,761 L510,757 L498,752 L492,751 L486,748 L483,748 L473,744 L470,744 L442,735 L414,728 L410,728 L405,726 L396,725 L391,723 L386,723 L385,722 L352,717 L351,716 L343,716 L335,714 L308,712 L307,711 Z M935,672 L951,674 L952,675 L988,677 L989,678 L998,678 L999,677 L1004,677 L1005,678 L1007,677 L1009,678 L1010,677 L1005,676 L1004,675 L1007,673 L1005,672 L1006,671 L1005,670 L1003,671 L1000,669 L1002,671 L1001,672 L997,672 L996,671 L997,670 L994,671 L993,670 L994,669 L992,671 L987,671 L984,669 L973,668 L972,671 L968,671 L967,670 L962,670 L961,671 L958,670 L956,671 L953,669 L951,670 L949,668 L948,669 L951,670 L949,672 L948,671 L947,673 Z M1150,681 L1135,679 L1131,677 L1125,677 L1113,674 L1108,674 L1102,672 L1096,672 L1096,673 L1101,676 L1103,676 L1105,679 L1104,680 L1097,679 L1096,678 L1080,676 L1066,672 L1057,671 L1048,668 L1044,668 L1040,666 L1036,666 L1032,664 L1029,664 L1025,662 L1018,661 L1002,656 L1024,663 L1042,667 L1043,668 L1040,671 L1038,671 L1038,676 L1035,677 L1035,678 L1043,678 L1044,679 L1043,680 L1025,680 L1024,681 L1013,681 L1012,682 L985,682 L984,683 L906,685 L905,686 L834,687 L833,688 L794,688 L793,689 L777,689 L776,690 L767,690 L766,691 L757,691 L756,692 L702,693 L701,694 L690,694 L689,695 L674,696 L666,698 L663,700 L664,703 L671,706 L675,706 L676,707 L674,709 L659,709 L658,710 L648,710 L647,711 L667,718 L670,720 L673,720 L687,725 L703,729 L707,729 L712,731 L716,731 L732,735 L737,735 L738,736 L743,736 L744,737 L749,737 L750,738 L763,739 L770,741 L786,742 L787,743 L795,743 L796,744 L805,744 L806,745 L846,747 L847,748 L863,748 L864,749 L879,749 L880,750 L894,750 L895,751 L904,751 L905,752 L912,752 L913,753 L919,753 L920,754 L928,755 L935,759 L935,762 L933,764 L924,767 L890,773 L878,778 L876,780 L876,783 L879,786 L892,791 L909,795 L919,796 L920,797 L932,798 L939,800 L946,800 L947,801 L958,801 L959,802 L978,803 L979,804 L987,804 L988,805 L1004,805 L1005,806 L1015,807 L1016,806 L1025,806 L1036,802 L1035,803 L1030,802 L1014,796 L1010,792 L1009,788 L1015,782 L1033,776 L1044,775 L1045,774 L1067,770 L1071,768 L1074,764 L1069,760 L1059,757 L1041,755 L1040,754 L1033,754 L1045,755 L1055,758 L1059,760 L1061,762 L1061,764 L1058,767 L1050,770 L1013,776 L996,782 L993,785 L992,788 L993,791 L996,794 L1003,798 L1002,799 L968,796 L967,795 L956,794 L955,793 L938,790 L928,786 L924,782 L924,780 L929,775 L937,772 L955,768 L965,764 L967,762 L967,758 L964,755 L957,752 L949,750 L944,750 L943,749 L938,749 L937,748 L922,747 L921,746 L877,744 L876,743 L858,743 L857,742 L842,742 L841,741 L828,741 L827,740 L815,740 L814,739 L804,739 L803,738 L776,736 L775,735 L755,733 L754,732 L749,732 L748,731 L743,731 L742,730 L737,730 L722,726 L718,726 L714,724 L701,721 L695,717 L695,715 L698,713 L708,712 L709,711 L718,711 L719,710 L770,709 L771,708 L866,708 L752,706 L751,707 L707,707 L706,708 L687,708 L686,709 L675,706 L670,701 L672,699 L684,696 L703,695 L704,694 L725,694 L726,693 L786,692 L787,691 L831,691 L832,690 L882,Line truncated
<path fill="#92cdcf" fill-rule="evenodd" d="M1013,809 L994,812 L998,813 L991,816 Z M1263,815 L1232,816 L1231,815 L1232,814 L1239,814 L1240,813 L1257,813 L1224,811 L1223,810 L1207,810 L1206,809 L1168,809 L1167,808 L1161,808 L1165,809 L1164,810 L1146,809 L1149,809 L1150,810 L1149,811 L1135,810 L1138,811 L1137,812 L1127,811 L1128,812 L1127,813 L1119,812 L1121,813 L1114,815 L1107,815 L1105,814 L1107,815 L1106,816 L1100,815 L1102,816 L1101,817 L1094,816 L1096,817 L1095,818 L1089,817 L1090,818 L1089,819 L1084,818 L1085,819 L1084,820 L1079,819 L1081,820 L1080,821 L1076,821 L1075,820 L1076,821 L1075,822 L1070,821 L1071,822 L1070,823 L1066,822 L1065,824 L1061,823 L1062,824 L1061,825 L1057,824 L1058,825 L1057,826 L1053,825 L1052,827 L1049,826 L1048,828 L1045,827 L1044,829 L1040,828 L1041,829 L1040,830 L1037,829 L1036,831 L1032,830 L1031,832 L1028,831 L1029,832 L1028,833 L1024,832 L1023,834 L1020,833 L1019,835 L1015,834 L1014,836 L1011,835 L1010,837 L1006,836 L1005,838 L1002,837 L1001,839 L997,838 L996,840 L994,839 L991,841 L987,840 L986,842 L982,841 L980,843 L976,842 L975,843 L970,843 L968,845 L967,844 L963,844 L961,846 L960,845 L955,845 L956,846 L955,847 L946,846 L943,848 L940,847 L936,848 L922,848 L919,850 L910,850 L909,849 L892,850 L891,849 L894,847 L897,847 L899,845 L902,846 L903,844 L907,845 L908,843 L911,844 L919,842 L920,840 L923,841 L922,840 L923,839 L927,840 L926,839 L927,838 L930,839 L929,838 L930,837 L934,838 L932,837 L935,835 L938,835 L966,825 L962,821 L961,823 L958,823 L952,826 L950,829 L945,829 L944,830 L941,827 L942,826 L941,823 L943,822 L926,824 L925,825 L918,825 L917,826 L909,826 L908,827 L896,826 L898,827 L897,828 L884,827 L886,827 L887,828 L886,829 L869,828 L868,830 L815,829 L814,828 L800,828 L799,827 L770,825 L798,827 L799,828 L811,828 L812,829 L831,829 L832,830 L831,831 L825,831 L828,833 L827,834 L828,836 L826,837 L828,836 L830,837 L831,839 L835,841 L834,843 L836,844 L838,843 L839,846 L838,847 L837,846 L835,851 L836,852 L833,854 L832,853 L833,854 L832,856 L829,857 L837,856 L838,857 L836,858 L844,857 L845,858 L842,859 L850,858 L851,859 L849,860 L859,859 L860,860 L858,861 L866,860 L867,861 L866,862 L876,861 L877,862 L876,863 L885,862 L888,864 L904,864 L905,865 L962,865 L963,864 L978,864 L979,863 L1009,861 L1010,860 L1016,860 L1017,859 L1023,859 L1034,856 L1039,856 L1044,854 L1048,855 L1060,851 L1075,848 L1081,845 L1104,840 L1108,838 L1132,832 L1136,832 L1149,828 L1170,825 L1176,823 L1193,821 L1194,820 L1219,818 L1220,817 L1243,816 L1244,815 Z M1220,816 L1221,815 L1229,815 L1230,816 L1229,817 L1221,817 Z M1162,776 L1146,774 L1145,773 L1135,773 L1134,774 L1126,774 L1125,775 L1119,775 L1112,777 L1106,777 L1097,780 L1085,782 L1068,788 L1070,789 L1069,790 L1071,791 L1070,792 L1066,791 L1067,792 L1066,793 L1054,796 L1047,799 L1044,799 L1038,802 L1051,797 L1076,791 L1078,789 L1080,790 L1082,788 L1084,789 L1086,787 L1089,788 L1090,786 L1093,787 L1095,785 L1098,786 L1100,784 L1103,785 L1104,783 L1109,784 L1108,783 L1109,782 L1113,782 L1114,783 L1113,782 L1114,781 L1121,782 L1119,781 L1120,780 L1128,781 L1127,780 L1128,779 L1135,779 L1136,778 L1143,778 L1144,777 L1157,777 L1156,776 L1157,775 Z M294,739 L308,742 L309,745 L314,746 L316,744 L317,745 L316,747 L320,748 L323,747 L324,749 L327,748 L328,750 L331,751 L334,750 L335,752 L338,751 L339,753 L341,752 L342,754 L344,753 L345,755 L392,770 L395,772 L432,785 L437,788 L457,795 L462,798 L472,801 L484,807 L502,813 L530,825 L563,836 L566,838 L587,844 L590,846 L600,848 L607,851 L610,851 L635,859 L640,858 L641,859 L640,860 L651,862 L655,864 L659,864 L664,866 L668,866 L673,868 L677,868 L698,873 L738,878 L739,879 L747,879 L748,880 L764,881 L765,882 L776,882 L777,883 L790,883 L791,884 L808,884 L809,885 L876,885 L873,884 L874,883 L879,883 L880,885 L883,885 L884,884 L898,884 L899,883 L929,881 L930,880 L943,879 L946,877 L949,878 L953,877 L954,875 L958,876 L959,874 L961,876 L965,873 L967,875 L972,872 L973,874 L974,873 L979,873 L984,871 L992,870 L976,871 L975,872 L964,872 L963,873 L949,873 L948,874 L887,874 L886,873 L872,873 L871,872 L838,870 L837,869 L815,867 L814,866 L791,863 L780,860 L775,860 L774,859 L765,858 L760,856 L751,855 L742,852 L738,852 L718,847 L714,845 L707,844 L686,837 L683,837 L676,834 L673,834 L621,816 L618,814 L589,804 L563,793 L555,791 L547,787 L542,786 L515,775 L507,773 L504,771 L453,754 L450,754 L425,746 L418,745 L414,743 L406,742 L389,737 L384,737 L369,733 L364,733 L363,732 L358,732 L345,729 L339,729 L338,728 L332,728 L331,727 L324,727 L323,726 L317,726 L334,728 L335,731 L333,732 L330,730 L329,732 L328,731 L324,734 L323,732 L325,730 L324,731 L323,729 L324,731 L320,733 L318,729 L316,731 L315,730 L313,732 L314,731 L315,733 L312,734 L308,738 L307,735 L304,739 L299,738 L298,740 Z M814,884 L815,883 L820,883 L821,884 L820,885 L815,885 Z M900,882 L901,881 L908,881 L909,882 L908,883 L901,883 Z M812,702 L818,702 L823,704 L833,703 L837,705 L836,706 L829,706 L927,707 L928,708 L927,709 L877,709 L1072,708 L1049,707 L1048,706 L914,706 L913,707 L889,707 L888,706 L889Line truncated
<path fill="#012b52" fill-rule="evenodd" d="M923,616 L919,618 L919,621 L923,621 Z M824,610 L828,610 L829,611 L852,611 L853,612 L861,612 L862,613 L882,616 L875,615 L871,611 L855,612 L850,607 L841,607 L838,610 Z M819,611 L807,611 L806,610 L807,609 L804,609 L803,607 L794,606 L793,608 L789,610 L791,611 L790,612 L781,611 L777,613 L763,614 L803,612 L804,611 Z M918,601 L923,606 L923,609 L923,601 Z M723,603 L734,601 L735,603 L731,605 L757,612 L748,609 L745,603 L739,600 L738,601 L737,600 L736,601 L735,600 L730,600 Z M852,575 L852,582 L856,596 L879,596 L878,595 L870,595 L869,594 L868,585 L867,584 L868,581 L867,576 L868,575 Z M668,573 L658,577 L655,580 L658,578 L659,580 L667,578 L668,577 L666,575 Z M539,543 L532,545 L532,550 L533,551 L539,549 Z M482,537 L475,542 L475,544 L476,541 L478,542 L477,543 L482,541 Z M336,518 L332,520 L330,522 L330,524 L335,522 Z M764,484 L757,482 L752,482 L751,480 L754,478 L752,478 L748,481 L743,480 L747,481 L729,493 L748,481 Z M616,542 L618,552 L623,552 L627,554 L621,556 L624,555 L632,555 L633,556 L632,558 L620,561 L620,565 L626,563 L632,564 L635,562 L643,560 L647,561 L644,564 L642,564 L632,570 L634,571 L633,572 L638,571 L645,567 L658,564 L659,566 L657,568 L658,567 L659,569 L657,570 L659,571 L654,574 L652,574 L665,570 L668,571 L668,567 L667,566 L668,564 L683,564 L684,565 L683,569 L684,575 L687,575 L691,572 L694,574 L694,578 L693,579 L690,579 L688,577 L683,579 L686,579 L687,580 L686,581 L694,579 L695,577 L695,565 L696,564 L701,564 L703,567 L703,571 L705,577 L709,579 L708,587 L709,582 L712,578 L727,578 L728,579 L728,593 L727,594 L714,594 L713,596 L708,598 L710,597 L714,597 L715,598 L717,597 L727,597 L725,596 L730,594 L730,579 L733,577 L737,577 L739,579 L739,590 L739,586 L740,585 L744,585 L746,588 L746,593 L747,593 L747,579 L748,575 L750,573 L751,574 L752,573 L753,576 L753,571 L754,570 L759,570 L760,571 L761,594 L763,594 L763,590 L762,589 L764,582 L767,583 L767,593 L771,594 L771,590 L772,589 L772,585 L771,584 L773,582 L776,582 L778,584 L778,594 L780,594 L780,584 L786,582 L791,582 L792,583 L794,594 L796,594 L794,587 L794,582 L796,580 L796,576 L801,557 L800,556 L782,556 L778,557 L776,562 L772,562 L771,561 L771,550 L772,549 L775,550 L809,551 L811,553 L811,559 L810,560 L810,568 L811,569 L811,581 L810,583 L811,586 L810,587 L811,595 L813,595 L816,598 L820,598 L821,596 L817,595 L816,591 L816,570 L817,569 L817,556 L816,553 L817,552 L871,554 L872,555 L910,557 L911,558 L911,598 L917,598 L917,559 L918,558 L926,558 L927,554 L921,554 L920,553 L902,553 L901,552 L886,552 L885,551 L882,552 L881,551 L871,551 L870,550 L868,551 L867,550 L855,550 L854,549 L839,549 L838,548 L774,545 L771,543 L771,507 L770,506 L771,504 L770,503 L771,500 L771,486 L772,485 L795,480 L822,495 L799,482 L794,478 L790,477 L789,478 L793,479 L792,481 L784,482 L783,481 L784,480 L774,484 L773,483 L781,477 L779,477 L772,483 L774,484 L773,485 L769,484 L766,485 L768,487 L768,500 L767,501 L770,506 L767,511 L767,543 L766,544 L755,544 L754,543 L743,543 L742,544 L741,543 L739,544 L738,543 L740,537 L745,538 L748,536 L746,534 L743,533 L740,534 L739,533 L739,503 L742,502 L744,505 L745,504 L746,505 L745,508 L747,508 L751,512 L753,511 L753,500 L739,500 L739,542 L738,543 L725,543 L723,540 L723,537 L698,539 L696,541 L695,540 L695,495 L690,495 L689,494 L684,494 L684,540 L683,541 L665,540 L663,536 L660,537 L658,535 L659,520 L658,520 L657,524 L656,525 L655,524 L655,489 L656,488 L658,489 L658,506 L657,507 L658,517 L659,477 L652,470 L646,470 L652,470 L655,472 L655,537 L654,538 L632,540 L624,542 Z M764,570 L767,571 L767,576 L766,577 L763,576 L764,573 L763,571 Z M916,566 L917,567 L917,595 L916,596 L915,595 L915,567 Z M739,567 L742,566 L747,568 L748,570 L746,573 L745,572 L740,573 L739,572 Z M729,567 L730,566 L738,566 L739,567 L739,572 L738,573 L731,573 Z M738,564 L739,563 L738,562 L742,559 L743,560 L749,556 L748,552 L743,549 L744,548 L757,548 L758,549 L766,549 L767,550 L767,561 L766,562 L757,562 L753,558 L752,561 L751,558 L750,558 L751,561 L749,563 L747,563 L746,565 L739,565 Z M726,546 L728,547 L738,547 L739,548 L739,561 L738,562 L729,562 L727,560 L727,556 L725,550 Z M696,545 L698,546 L700,558 L701,559 L700,561 L696,561 L695,560 L695,546 Z M723,542 L725,543 L725,550 L727,556 L726,560 L724,557 L724,553 L723,552 L723,544 L722,543 Z M625,542 L626,541 L632,541 L633,542 L630,544 Z M692,545 L689,547 L688,546 L686,547 L685,549 L684,546 L684,559 L683,560 L668,560 L669,562 L667,565 L667,569 L666,570 L664,569 L663,550 L664,549 L665,550 L666,558 L666,551 L665,550 L665,545 L666,544 L678,544 L680,545 L677,543 L679,541 L686,540 Z M656,529 L658,531 L659,537 L662,537 L665,540 L668,541 L664,545 L663,548 L659,541 L653,541 L649,539 L655,537 L655,530 Z M693,506 L694,507 L694,513 L693,514 L692,513 L692,507 Z M686,504 L689,504 L692,508 L692,527 L692,525 L693,524 L694,525 L694,534 L693,535 L692,534 L690,535 L686,532 L685,533 L684,532 L684,507 Z M694,496 L693,499 L692,498 L685,502 L684,501 L684,497 L685,496 L686,497 L688,495 L693,495 Z M606,466 L606,550 L605,551 L604,550 L599,551 L598,55Line truncated
<path fill="#2e90a6" fill-rule="evenodd" d="M1408,764 L1394,755 L1387,753 L1380,749 L1369,746 L1366,744 L1339,737 L1340,739 L1338,741 L1337,739 L1335,741 L1333,741 L1329,738 L1330,736 L1333,736 L1333,735 L1329,735 L1325,733 L1320,733 L1316,731 L1313,732 L1310,730 L1305,730 L1302,728 L1300,729 L1297,728 L1300,729 L1292,731 L1294,732 L1286,739 L1283,737 L1281,738 L1279,737 L1278,738 L1275,735 L1273,736 L1271,733 L1268,732 L1271,731 L1214,731 L1213,730 L1191,730 L1190,729 L1170,729 L1169,728 L1147,728 L1146,727 L1133,727 L1132,726 L1119,726 L1118,725 L1101,725 L1099,727 L1098,726 L1094,727 L1089,725 L1090,724 L1094,724 L1081,723 L1080,722 L1081,721 L1085,721 L1079,721 L1078,720 L1079,719 L1083,719 L1079,719 L1078,718 L1079,717 L1084,717 L1085,718 L1153,718 L1154,719 L1153,720 L1114,720 L1167,720 L1173,718 L1174,719 L1175,718 L1182,718 L1177,718 L1176,717 L1178,716 L1169,715 L1168,714 L1169,713 L1177,713 L1142,714 L1141,715 L1137,712 L1138,711 L1144,711 L1139,711 L1138,709 L1136,711 L1133,711 L1132,709 L1124,709 L1123,710 L1121,709 L1114,709 L1114,713 L1118,714 L1117,715 L1109,715 L1108,714 L1110,711 L1109,710 L1112,709 L1110,707 L1109,708 L1098,708 L1101,709 L1093,712 L1091,711 L1090,712 L1070,712 L1064,715 L1066,716 L1065,718 L1059,716 L1058,717 L1056,716 L1055,717 L1052,716 L1051,717 L1048,715 L1045,718 L1044,715 L1041,713 L1045,712 L1044,713 L1043,712 L1022,712 L1025,715 L1023,717 L1020,716 L1018,718 L1017,716 L1016,717 L1013,717 L1010,715 L1008,716 L1002,715 L1001,716 L995,714 L996,713 L1007,712 L983,712 L982,711 L980,712 L911,712 L910,711 L912,710 L900,710 L903,710 L904,711 L903,712 L880,712 L879,711 L880,710 L893,710 L869,710 L868,711 L783,711 L782,712 L773,712 L772,711 L773,710 L760,710 L764,711 L763,712 L734,711 L732,713 L716,712 L717,713 L716,714 L711,714 L710,715 L703,715 L701,714 L702,715 L701,716 L698,715 L699,718 L701,717 L702,718 L701,719 L703,718 L704,720 L706,719 L707,721 L710,720 L711,721 L710,722 L714,721 L715,722 L714,723 L715,722 L717,722 L718,724 L722,723 L723,724 L722,725 L727,724 L728,725 L727,726 L732,725 L733,726 L732,727 L737,726 L738,727 L737,728 L742,727 L743,728 L742,729 L749,728 L750,729 L748,730 L750,729 L756,729 L757,730 L754,731 L763,730 L764,731 L761,732 L771,731 L772,732 L786,733 L787,734 L784,735 L796,734 L797,735 L796,736 L793,736 L805,735 L806,736 L803,737 L817,736 L818,737 L817,738 L814,738 L818,738 L819,737 L830,737 L831,738 L830,739 L826,739 L844,738 L845,739 L844,740 L841,740 L862,739 L863,740 L862,741 L855,741 L880,740 L881,741 L880,742 L875,742 L897,741 L898,742 L897,743 L893,743 L910,742 L911,743 L909,744 L915,744 L916,743 L922,743 L923,744 L920,745 L933,744 L941,746 L937,747 L945,746 L946,747 L944,748 L949,747 L950,748 L949,749 L953,748 L954,749 L953,750 L956,749 L957,751 L960,750 L961,751 L960,752 L962,753 L964,752 L965,754 L966,753 L984,753 L985,752 L1034,752 L1039,750 L1048,750 L1056,748 L1065,748 L1066,747 L1074,747 L1075,746 L1083,746 L1084,745 L1115,744 L1106,744 L1105,743 L1106,742 L1142,742 L1143,743 L1147,742 L1178,742 L1179,743 L1194,743 L1195,744 L1205,744 L1206,745 L1231,747 L1232,748 L1246,749 L1247,750 L1253,750 L1260,752 L1257,753 L1266,752 L1267,753 L1274,753 L1281,755 L1278,756 L1287,755 L1288,756 L1285,757 L1294,756 L1295,757 L1292,758 L1300,757 L1301,758 L1300,759 L1306,758 L1307,760 L1315,759 L1316,761 L1319,760 L1325,760 L1326,761 L1323,762 L1326,761 L1334,761 L1335,762 L1333,763 L1344,762 L1345,763 L1343,764 L1348,764 L1349,763 L1355,763 L1358,765 L1366,765 L1367,764 L1376,764 L1377,765 Z M1300,732 L1301,731 L1307,731 L1308,732 L1307,734 L1308,734 L1309,732 L1312,731 L1315,733 L1319,732 L1321,734 L1324,733 L1326,735 L1330,736 L1326,738 L1319,735 L1311,737 L1310,736 L1304,736 L1303,737 L1302,736 L1303,737 L1302,739 L1300,737 L1300,735 L1302,733 L1303,734 L1305,733 L1301,733 Z M904,725 L905,724 L915,724 L916,725 L999,725 L1000,726 L1017,726 L1018,727 L1031,727 L1032,728 L1041,728 L1042,729 L1050,729 L1051,730 L1059,730 L1060,731 L1068,731 L1069,732 L1077,732 L1078,733 L1087,733 L1088,734 L1095,734 L1096,735 L1103,735 L1104,736 L1101,737 L1111,736 L1112,737 L1109,738 L1112,739 L1107,741 L1098,741 L1097,740 L1098,739 L1094,740 L1083,740 L1082,739 L1086,738 L1063,739 L1062,738 L1031,737 L1030,736 L1031,735 L1037,735 L1015,736 L1014,735 L1015,734 L1018,734 L1014,735 L994,735 L993,734 L994,733 L998,733 L963,734 L962,733 L963,732 L969,732 L958,732 L957,733 L942,733 L941,732 L944,731 L927,732 L926,731 L908,730 L907,729 L910,728 L905,728 Z M1132,717 L1135,715 L1140,717 L1139,718 L1133,718 Z M1114,712 L1115,709 L1121,709 L1122,710 L1119,715 L1117,712 L1115,713 Z M1068,686 L997,688 L996,689 L964,688 L971,688 L972,689 L971,690 L945,690 L944,689 L938,689 L943,689 L944,690 L943,691 L909,690 L914,690 L915,691 L914,692 L869,691 L881,691 L882,692 L881,693 L814,692 L807,694 L777,693 L780,694 L779,695 L765,695 L764,694 L749,694 L745,695 L768,696 L769,697 L791,698 L792,699 L802,699 L803,700 L833,701 L834,702 L846,702 L847,701 L852,703 L869,703 L871,702 L879,704 LLine truncated
<path fill="#f8c87b" fill-rule="evenodd" d="M1263,723 L1263,724 L1274,724 L1275,723 L1287,723 L1288,724 L1286,726 L1275,727 L1300,727 L1301,726 L1321,725 L1309,725 L1308,724 L1300,725 L1299,724 L1293,724 L1286,722 Z M1324,674 L1333,674 L1334,675 L1331,676 L1332,677 L1346,677 L1347,676 L1367,675 L1348,674 L1347,673 Z M1308,673 L1302,671 L1299,674 L1296,675 L1300,677 L1296,678 L1300,678 L1299,676 L1300,675 L1304,676 L1305,674 Z M1225,657 L1236,657 L1237,658 L1260,658 L1261,657 Z M10,646 L11,647 L10,648 L12,649 L11,650 L12,651 L14,650 L16,652 L15,650 L16,649 L17,650 L16,649 L17,648 L16,647 L12,648 Z M1042,607 L1031,608 L1024,611 L1023,613 L1022,612 L1021,614 L1028,613 L1031,611 L1035,611 L1036,608 Z M1035,587 L1025,587 L1016,590 L1012,593 L1008,594 L998,603 L1000,602 L1002,604 L1008,600 L1011,600 L1014,597 L1017,597 L1015,595 L1023,593 L1021,592 L1023,590 Z M1002,601 L1006,598 L1009,599 L1004,602 Z M985,571 L980,572 L971,577 L960,588 L963,589 L964,588 L963,586 L964,584 L969,585 L968,584 L975,580 L973,579 L974,578 L978,577 L980,574 L982,574 Z M627,557 L615,560 L607,564 L610,563 L611,564 L609,566 L612,563 Z M578,547 L567,553 L565,555 L566,556 L565,558 L563,557 L565,558 L570,552 Z M537,542 L528,543 L511,552 L518,548 L520,549 L529,544 Z M1136,627 L1136,650 L1137,651 L1179,651 L1180,650 L1187,650 L1188,651 L1199,651 L1200,650 L1337,651 L1338,650 L1338,629 L1337,628 L1337,621 L1334,608 L1327,591 L1313,570 L1300,558 L1285,548 L1271,542 L1252,537 L1233,536 L1232,537 L1223,537 L1222,538 L1217,538 L1209,540 L1203,543 L1198,544 L1177,556 L1160,572 L1150,586 L1142,603 Z M333,536 L332,541 L334,544 L333,547 L335,551 L334,553 L333,552 L337,555 L337,557 L339,559 L337,545 L334,543 L335,540 L333,539 Z M520,528 L513,529 L495,536 L483,545 L486,543 L487,545 L483,548 L488,544 L497,540 L498,537 L502,537 L506,533 Z M299,529 L296,527 L297,526 L286,528 L285,530 L283,529 L282,531 L281,530 L282,531 L278,534 L276,533 L278,530 L277,530 L274,533 L271,534 L270,533 L271,534 L267,536 L266,535 L265,537 L264,536 L265,537 L259,541 L260,542 L258,543 L260,545 L254,549 L253,548 L252,549 L247,548 L239,555 L233,564 L232,563 L233,565 L238,560 L247,555 L252,554 L252,551 L254,549 L256,550 L255,551 L257,550 L260,552 L259,551 L260,550 L262,551 L267,550 L270,547 L266,547 L265,546 L270,543 L278,542 L274,540 L278,537 L286,537 L285,536 L288,535 L287,533 L288,532 Z M282,531 L283,534 L279,535 L278,534 Z M108,488 L106,490 L102,491 L100,498 Z M766,488 L764,486 L760,487 L756,484 L749,483 L741,490 L735,493 L732,493 L728,497 L735,496 L737,498 L738,497 L739,498 L740,497 L753,497 L755,499 L757,498 L758,499 L764,499 L765,498 L765,490 Z M773,490 L773,497 L774,498 L773,499 L775,498 L776,499 L809,498 L810,497 L817,497 L818,496 L815,493 L809,491 L808,489 L806,490 L804,488 L802,488 L797,485 L795,482 L788,484 L778,485 L776,487 L775,486 Z M407,481 L406,483 L404,483 L398,487 L388,497 L385,504 L379,512 L378,518 L375,523 L365,548 L367,546 L370,538 L369,537 L372,534 L376,524 L386,515 L380,521 L379,519 L385,512 L387,512 L391,509 L388,511 L387,510 L387,508 L395,502 L392,504 L391,503 Z M741,481 L738,481 L736,479 L731,481 L720,481 L712,483 L705,483 L704,484 L698,484 L688,487 L674,489 L686,492 L690,491 L704,495 L721,496 L718,495 L720,494 L719,493 L720,492 L722,492 L723,493 L722,494 L739,483 L740,484 Z M804,481 L809,484 L808,485 L809,484 L813,486 L815,489 L816,488 L818,489 L820,492 L821,491 L825,493 L827,495 L826,496 L828,494 L833,495 L846,492 L865,485 L865,484 L836,480 L835,479 L813,478 L812,479 L807,479 Z M136,413 L124,425 L121,431 L116,436 L112,446 L109,448 L108,456 L106,461 L103,464 L102,471 L99,478 L99,484 L97,489 L97,496 L100,483 L103,477 L107,473 L108,474 L103,482 L102,487 L112,478 L115,473 L113,474 L112,472 L119,462 L115,465 L113,464 L123,451 L123,449 L121,450 L120,448 L127,438 L128,435 L127,432 L131,428 L129,426 L134,421 L133,419 L137,414 Z M267,411 L259,414 L244,423 L230,435 L218,448 L197,476 L187,495 L186,506 L190,501 L198,497 L205,491 L200,494 L198,494 L187,503 L186,502 L187,499 L199,487 L204,486 L216,479 L212,479 L211,476 L216,471 L219,470 L230,462 L222,464 L220,462 L225,457 L234,453 L239,448 L236,449 L232,448 L238,443 L244,440 L242,439 L244,437 L246,437 L251,434 L243,434 L242,433 L244,431 L248,430 L258,424 L257,423 L256,424 L253,423 L264,415 L266,412 L267,413 L266,412 Z M222,361 L214,365 L203,373 L198,380 L196,379 L197,378 L178,400 L163,424 L153,445 L152,451 L149,458 L150,458 L153,450 L157,445 L158,447 L153,457 L166,446 L163,447 L161,446 L176,433 L176,432 L172,434 L170,433 L180,424 L178,423 L185,418 L187,415 L186,416 L182,415 L188,411 L195,404 L189,406 L186,405 L194,398 L202,393 L197,394 L195,392 L210,382 L207,383 L203,382 L212,377 L210,378 L208,377 L215,372 L214,371 L215,370 L218,370 L214,369 L221,364 Z"/>
<path fill="#1b819c" fill-rule="evenodd" d="M1147,743 L1177,743 L1178,744 L1203,745 L1204,746 L1213,746 L1214,747 L1237,749 L1238,750 L1244,750 L1245,751 L1259,752 L1266,754 L1273,754 L1274,755 L1300,758 L1260,753 L1259,752 L1247,751 L1246,750 L1232,749 L1231,748 L1206,746 L1205,745 L1179,744 L1178,743 Z M1300,731 L1306,733 L1301,735 L1302,738 L1304,735 L1310,735 L1311,736 L1312,735 L1318,735 L1319,736 L1323,735 L1326,737 L1329,736 L1333,740 L1335,740 L1337,738 L1338,740 L1339,739 L1340,740 L1344,740 L1340,740 L1338,738 L1338,736 L1337,738 L1335,738 L1334,735 L1333,737 L1326,736 L1324,734 L1321,735 L1319,733 L1320,732 L1318,734 L1315,734 L1312,732 L1313,731 L1307,735 L1306,734 L1307,732 L1301,732 Z M926,726 L991,726 L992,727 L1015,727 L1016,728 L1032,729 L1031,728 L1000,727 L999,726 Z M1081,722 L1094,723 L1095,724 L1094,725 L1090,725 L1094,726 L1098,725 L1099,726 L1101,724 L1118,724 L1119,725 L1132,725 L1133,726 L1146,726 L1147,727 L1169,727 L1170,728 L1213,729 L1214,730 L1271,730 L1272,731 L1269,732 L1271,732 L1273,735 L1275,734 L1278,737 L1279,736 L1281,737 L1283,736 L1286,738 L1293,732 L1291,731 L1292,730 L1299,729 L1285,729 L1284,730 L1197,729 L1196,728 L1152,727 L1151,726 L1135,726 L1134,725 L1120,725 L1119,724 L1108,724 L1107,723 Z M911,711 L980,711 L981,710 L983,711 L1007,711 L1008,712 L1007,713 L996,714 L1000,714 L1001,715 L1000,716 L1002,714 L1006,714 L1009,716 L1008,715 L1010,714 L1013,716 L1017,715 L1018,717 L1020,715 L1021,716 L1024,715 L1021,712 L1022,711 L1043,711 L1044,712 L1039,714 L1040,715 L1039,716 L1042,713 L1045,715 L1044,718 L1046,715 L1048,716 L1049,715 L1051,716 L1052,715 L1053,716 L1056,715 L1058,716 L1059,715 L1065,717 L1063,715 L1070,711 L1090,711 L1091,710 L1093,711 L1097,710 L913,710 Z M1052,712 L1053,711 L1059,711 L1060,712 L1056,714 Z M1431,696 L1427,692 L1423,690 L1406,685 L1391,683 L1390,682 L1384,682 L1383,681 L1376,681 L1375,680 L1363,680 L1362,679 L1348,678 L1346,680 L1326,679 L1322,681 L1294,680 L1300,680 L1301,681 L1300,682 L1296,682 L1301,682 L1302,681 L1304,683 L1308,683 L1310,685 L1309,688 L1306,687 L1304,689 L1298,688 L1299,689 L1298,690 L1290,690 L1289,689 L1280,690 L1279,691 L1278,690 L1276,691 L1275,690 L1257,690 L1261,690 L1263,693 L1269,693 L1271,695 L1298,694 L1300,696 L1312,696 L1313,695 L1329,696 L1330,697 L1347,696 L1350,698 L1363,698 L1364,699 L1362,701 L1346,701 L1339,703 L1335,702 L1317,702 L1316,703 L1255,703 L1254,704 L1250,704 L1244,702 L1225,703 L1224,702 L1227,701 L1219,702 L1212,700 L1204,700 L1203,698 L1208,696 L1218,696 L1219,695 L1227,696 L1224,696 L1223,695 L1224,694 L1250,695 L1242,695 L1241,694 L1246,691 L1238,691 L1235,689 L1227,689 L1226,690 L1222,688 L1216,689 L1214,686 L1217,683 L1198,685 L1197,684 L1200,683 L1195,683 L1194,682 L1180,683 L1176,681 L1169,682 L1165,680 L1156,680 L1154,679 L1159,681 L1158,682 L1150,682 L1149,683 L1148,682 L1139,683 L1142,683 L1143,684 L1142,685 L1134,685 L1127,683 L1120,683 L1121,684 L1120,685 L1095,685 L1094,686 L1086,684 L1076,684 L1075,685 L1067,685 L1069,686 L1068,687 L1047,687 L1041,689 L1037,688 L1039,692 L1041,693 L1034,696 L1033,694 L1029,693 L1028,691 L1030,689 L1020,689 L1019,690 L1020,689 L1022,692 L1020,694 L1017,693 L1013,697 L1014,700 L1016,700 L1015,699 L1017,698 L1021,701 L1022,700 L1032,700 L1033,701 L1032,702 L1044,702 L1045,703 L1044,704 L1002,704 L1001,703 L1000,704 L923,704 L1051,704 L1052,705 L1085,706 L1086,707 L1109,707 L1110,706 L1113,709 L1110,710 L1111,711 L1109,714 L1117,714 L1113,713 L1113,709 L1114,708 L1121,708 L1122,709 L1121,710 L1115,710 L1115,712 L1117,711 L1119,714 L1119,712 L1124,708 L1132,708 L1133,710 L1136,710 L1141,714 L1142,713 L1168,713 L1169,714 L1175,714 L1179,716 L1177,717 L1182,717 L1183,718 L1182,719 L1168,720 L1213,720 L1214,719 L1225,719 L1226,718 L1227,719 L1228,718 L1230,719 L1253,718 L1254,719 L1253,720 L1259,720 L1260,719 L1302,720 L1303,719 L1330,719 L1331,718 L1333,719 L1334,718 L1343,718 L1344,717 L1347,718 L1348,717 L1355,717 L1354,716 L1355,715 L1357,716 L1366,716 L1367,715 L1396,712 L1397,711 L1411,709 L1425,704 L1431,699 Z M1136,710 L1138,708 L1139,709 L1156,709 L1157,708 L1205,708 L1206,707 L1220,707 L1221,708 L1255,708 L1256,707 L1266,707 L1271,709 L1275,708 L1288,708 L1289,710 L1296,709 L1301,712 L1298,715 L1282,714 L1285,715 L1284,716 L1276,716 L1275,717 L1273,715 L1264,715 L1271,715 L1272,716 L1271,717 L1246,717 L1245,716 L1227,716 L1225,717 L1220,715 L1192,715 L1191,714 L1169,714 L1168,713 L1154,713 L1153,712 L1138,712 Z M1236,707 L1237,706 L1245,706 L1246,707 L1245,708 L1237,708 Z M1092,706 L1100,704 L1102,706 L1101,707 L1093,707 Z M1052,703 L1053,702 L1057,702 L1058,703 L1068,703 L1069,704 L1068,705 L1056,705 Z M1075,660 L1077,661 L1079,660 L1089,660 L1092,658 L1095,662 L1092,665 L1094,665 L1097,668 L1097,670 L1103,669 L1104,670 L1103,671 L1108,670 L1109,671 L1108,672 L1114,671 L1115,673 L1120,672 L1121,673 L1119,674 L1126,673 L1127,674 L1125,675 L1127,674 L1134,675 L1135,674 L1142,674 L1143,673 L1168,674 L1173,672 L1174,673 L1175,672 L119Line truncated
<path fill="#f3d7a5" fill-rule="evenodd" d="M1094,721 L1137,723 L1138,724 L1155,724 L1156,725 L1175,725 L1176,726 L1234,727 L1235,728 L1277,728 L1274,727 L1279,725 L1286,725 L1287,724 L1263,725 L1262,724 L1263,722 L1273,722 L1257,722 L1256,721 L1255,722 L1254,721 L1175,721 L1174,722 L1162,722 L1161,721 Z M1280,711 L1256,710 L1255,709 L1144,710 L1153,710 L1154,711 L1155,710 L1171,710 L1173,712 L1174,710 L1190,710 L1191,711 L1189,712 L1193,713 L1220,713 L1221,714 L1263,714 L1264,713 L1274,713 Z M1207,698 L1211,699 L1225,699 L1226,700 L1241,700 L1242,701 L1249,701 L1250,700 L1253,701 L1284,701 L1285,700 L1289,701 L1324,701 L1325,700 L1350,700 L1351,699 L1355,699 L1280,697 L1279,696 L1241,696 L1240,697 Z M591,685 L596,685 L605,689 L599,691 L597,690 L598,689 L592,689 L593,690 L597,690 L602,693 L621,699 L645,709 L673,707 L667,706 L663,704 L661,701 L667,696 L675,695 L676,694 L694,693 L695,692 L710,692 L711,691 L755,690 L650,687 L649,686 L638,686 L637,685 L628,685 L627,684 L618,684 L611,682 L598,682 L597,681 L596,683 Z M804,660 L801,663 L805,665 L803,667 L801,666 L799,668 L800,669 L805,666 L807,666 L808,664 L806,663 L802,664 L801,663 Z M578,665 L581,663 L584,665 L583,664 L588,662 L589,660 L586,661 L580,661 L579,660 L583,662 Z M1138,676 L1163,678 L1164,679 L1175,679 L1176,680 L1231,682 L1232,683 L1231,685 L1217,686 L1232,687 L1233,688 L1267,689 L1268,688 L1287,688 L1286,687 L1287,686 L1291,685 L1300,685 L1301,686 L1308,685 L1297,684 L1296,683 L1277,682 L1273,680 L1266,680 L1265,679 L1269,677 L1270,678 L1277,677 L1278,679 L1294,679 L1296,677 L1300,676 L1301,678 L1329,678 L1331,677 L1330,676 L1331,675 L1333,675 L1324,675 L1323,674 L1324,673 L1335,673 L1322,673 L1320,674 L1315,672 L1307,672 L1309,673 L1307,675 L1305,675 L1304,677 L1301,676 L1298,677 L1295,675 L1301,671 L1281,671 L1280,670 L1249,669 L1248,668 L1249,667 L1258,667 L1259,666 L1260,667 L1261,666 L1272,666 L1275,664 L1279,664 L1280,663 L1302,662 L1284,661 L1283,660 L1270,660 L1269,659 L1236,659 L1230,661 L1206,662 L1205,663 L1223,664 L1224,665 L1226,664 L1230,666 L1237,666 L1240,668 L1240,670 L1236,672 L1215,673 L1214,674 L1193,674 L1192,675 L1169,675 L1168,676 Z M1240,682 L1241,681 L1246,681 L1247,682 L1246,683 L1241,683 Z M1310,676 L1311,675 L1319,675 L1320,676 L1319,677 L1311,677 Z M570,657 L571,658 L575,654 L576,655 L577,653 L578,654 L577,653 L574,654 L572,653 L571,654 L572,655 Z M17,649 L16,650 L17,653 L28,663 L31,664 L24,654 L20,650 Z M743,628 L742,629 L739,626 L735,630 L737,630 L739,628 L742,629 L737,633 L738,634 L737,635 L739,632 L743,631 L741,630 Z M398,624 L399,623 L404,629 L405,628 L406,629 L402,623 Z M257,620 L252,622 L244,633 L242,639 L244,637 L243,635 L244,634 L246,635 Z M884,618 L881,621 L878,622 L878,623 L879,622 L881,624 L879,625 L880,626 L878,629 L877,628 L876,630 L877,629 L878,630 L879,628 L880,629 L879,628 L880,627 L886,628 L888,626 L890,630 L889,631 L886,630 L882,633 L884,632 L887,633 L890,631 L891,629 L890,630 L889,628 L892,627 L890,626 L891,625 L890,624 L892,623 L891,621 L887,622 L886,620 L883,620 L882,619 Z M396,636 L385,628 L386,627 L385,626 L386,625 L388,626 L391,622 L389,620 L390,619 L388,618 L382,618 L377,616 L376,617 L378,617 L380,620 L379,621 L380,623 L378,624 L362,620 L359,617 L355,616 L356,617 L355,618 L352,617 L353,618 L352,619 L349,618 L348,620 L346,619 L345,621 L344,620 L336,623 L337,624 L336,625 L334,624 L335,625 L334,626 L332,625 L330,628 L329,627 L330,628 L329,629 L327,628 L323,632 L322,631 L323,632 L320,634 L319,633 L320,634 L317,636 L316,635 L317,636 L314,638 L313,637 L314,638 L311,640 L310,639 L311,640 L308,643 L313,645 L315,644 L318,645 L317,644 L318,643 L320,644 L319,643 L320,642 L322,643 L321,642 L324,640 L328,641 L326,640 L327,639 L331,640 L329,639 L330,638 L334,639 L333,638 L334,637 L338,638 L336,637 L337,636 L342,637 L339,636 L345,634 L352,634 L357,636 L354,638 L347,639 L349,640 L360,639 L361,638 L371,638 L372,637 L376,637 L377,638 L380,637 L393,638 L391,635 L392,633 Z M861,622 L871,619 L872,620 L867,624 L869,625 L873,622 L874,623 L873,622 L877,618 L875,618 L874,616 L869,617 L868,615 L866,615 L863,617 L862,616 L865,618 Z M567,614 L577,619 L582,623 L584,623 L605,634 L619,639 L626,643 L629,643 L641,648 L680,660 L696,664 L710,666 L711,667 L717,667 L718,668 L723,668 L736,671 L751,672 L758,674 L769,674 L770,675 L788,676 L789,677 L798,676 L794,676 L793,675 L790,676 L789,674 L786,675 L784,673 L779,674 L778,673 L779,672 L777,673 L775,672 L775,669 L782,664 L785,660 L773,670 L767,671 L766,670 L767,669 L763,668 L757,669 L756,668 L757,667 L756,668 L754,667 L755,666 L752,667 L748,667 L747,666 L749,665 L745,666 L744,663 L742,665 L740,665 L739,663 L736,664 L735,663 L736,660 L733,661 L732,659 L730,663 L729,661 L728,662 L725,661 L727,660 L724,661 L722,658 L721,660 L720,659 L716,660 L715,659 L716,658 L714,656 L708,658 L706,655 L708,653 L706,655 L702,655 L701,654 L697,655 L693,653 L694,652 L687,654 L686,653 L687,652 L685,653 L681,650 L682,648 L675,652 L672,649 L664,649 L663,647 L665,645 L661,646 L659,648 L656,647 L652,648 L650,64Line truncated
<path fill="#455e41" fill-rule="evenodd" d="M596,680 L594,677 L586,680 L588,681 L587,684 L583,685 L586,686 L591,682 Z M799,665 L794,667 L793,666 L788,672 L791,673 L790,672 Z M583,670 L576,672 L571,675 L568,675 L565,678 L562,678 L561,676 L572,665 L566,666 L564,668 L565,669 L564,670 L562,669 L557,674 L554,675 L556,676 L559,675 L560,676 L559,677 L565,679 L568,678 L571,681 L572,678 Z M16,664 L19,665 L33,678 L41,688 L41,692 L44,691 L43,690 L44,687 L47,691 L54,690 L47,690 L46,689 L48,688 L46,687 L47,686 L46,684 L44,684 L33,672 L26,670 L23,667 Z M29,674 L32,673 L34,677 L33,678 Z M771,659 L770,660 L769,659 L764,662 L761,662 L758,666 L759,665 L761,666 Z M134,657 L132,661 L131,657 L125,674 L129,673 L130,666 Z M130,663 L131,665 L128,670 L127,668 Z M166,652 L163,652 L161,654 L154,667 L155,667 L155,665 L157,663 L158,664 L157,667 L159,662 Z M768,649 L764,650 L747,663 L752,664 L760,658 Z M563,649 L559,653 L558,652 L555,653 L545,662 L543,662 L538,668 L541,669 L546,663 L547,664 L550,662 L551,664 L543,670 L544,672 L547,673 L549,672 L550,673 L560,663 L558,660 L560,658 L554,662 L552,659 L553,658 L554,659 Z M752,646 L748,648 L749,650 L746,655 L744,656 L743,654 L746,650 L745,649 L741,653 L743,652 L744,653 L743,655 L737,661 L741,662 L743,659 L745,660 L750,651 L753,649 L749,648 Z M39,646 L46,657 L48,663 L47,665 L46,664 L50,668 L47,665 L49,664 L48,663 L47,653 L48,652 L51,657 L51,661 L54,668 L55,675 L54,676 L52,672 L53,675 L56,678 L59,687 L60,688 L64,687 L64,683 L57,670 L54,661 L51,658 L47,645 L46,646 L45,644 L41,645 L42,646 L41,648 Z M554,641 L549,644 L547,644 L535,656 L534,655 L536,652 L536,648 L532,652 L528,662 L526,664 L532,660 L533,661 L531,663 L532,665 L531,666 L533,666 L536,669 L534,667 L536,662 L543,652 Z M23,638 L23,642 L27,647 L28,646 L29,647 L28,649 L34,655 L38,662 L36,667 L38,671 L40,669 L41,670 L42,669 L44,671 L38,663 L35,656 L29,650 L30,649 L29,647 L30,646 L40,656 L39,658 L38,657 L39,658 L40,656 L27,643 L29,642 L36,649 L29,642 Z M508,636 L496,649 L494,653 L494,655 L496,656 L495,657 L498,656 L499,658 L505,659 L504,658 L507,653 L503,658 L502,657 L502,653 L508,639 Z M236,636 L232,638 L234,639 L228,649 L218,659 L221,659 L220,658 L224,654 L225,658 L227,656 L231,649 L230,646 L232,643 L233,645 L232,643 L234,642 Z M870,635 L867,634 L864,636 L866,640 Z M743,641 L740,643 L738,643 L737,642 L738,641 L733,642 L730,645 L731,646 L727,648 L725,646 L720,649 L719,648 L720,645 L722,643 L723,644 L725,643 L731,637 L726,638 L719,644 L718,643 L723,637 L724,633 L722,632 L700,652 L702,650 L704,651 L705,650 L706,652 L709,650 L710,654 L712,653 L713,655 L715,653 L713,654 L712,653 L713,652 L711,653 L710,652 L710,649 L712,647 L714,649 L712,650 L715,651 L718,649 L719,650 L718,652 L719,655 L717,657 L720,655 L721,657 L735,648 L735,646 L738,643 L741,643 Z M643,632 L638,636 L640,638 L637,640 L638,639 L641,641 L645,638 L646,640 L644,643 L646,643 L645,642 L646,638 L651,633 L646,638 L644,638 L643,637 L644,636 L643,635 L644,632 Z M1013,637 L1008,639 L1006,638 L1010,633 L1008,631 L995,644 L992,642 L995,639 L989,645 L987,649 L989,647 L990,650 L1005,634 L1006,636 L998,644 L1003,641 L1005,642 L1008,640 L1009,641 Z M866,631 L860,630 L855,632 L850,636 L853,635 L854,636 L853,637 L855,637 L857,634 L863,633 Z M535,630 L528,636 L529,635 L531,637 L528,640 L526,639 L521,645 L516,655 L512,660 L513,661 L512,662 L516,661 L515,660 L517,658 L517,655 L520,651 L519,652 L518,650 L524,642 L525,644 L523,647 L524,646 L525,648 L518,663 L525,648 L524,645 L525,644 L526,645 L528,640 Z M999,653 L1003,654 L1008,652 L1009,656 L1010,653 L1011,654 L1014,653 L1015,654 L1013,656 L1011,656 L1012,657 L1016,656 L1017,657 L1016,658 L1019,657 L1020,658 L1019,659 L1022,658 L1023,660 L1025,659 L1030,662 L1038,664 L1041,663 L1042,665 L1045,664 L1046,666 L1050,667 L1053,666 L1054,668 L1057,667 L1058,669 L1066,670 L1067,671 L1070,670 L1072,672 L1090,675 L1085,673 L1074,672 L1070,670 L1072,669 L1069,668 L1068,669 L1062,669 L1061,668 L1065,664 L1060,666 L1059,665 L1060,664 L1056,664 L1055,663 L1057,661 L1062,660 L1059,659 L1058,660 L1051,660 L1046,662 L1044,661 L1046,658 L1052,655 L1044,656 L1040,658 L1038,657 L1041,654 L1044,654 L1047,652 L1042,654 L1039,653 L1034,657 L1033,656 L1035,653 L1042,649 L1043,647 L1044,648 L1044,647 L1039,648 L1038,650 L1029,657 L1028,655 L1035,648 L1022,655 L1021,653 L1026,648 L1029,643 L1034,639 L1024,644 L1028,645 L1024,648 L1025,649 L1018,654 L1017,652 L1022,647 L1015,654 L1014,650 L1016,648 L1017,649 L1016,648 L1020,645 L1016,647 L1015,646 L1013,648 L1012,646 L1017,642 L1016,641 L1019,638 L1021,639 L1020,640 L1025,635 L1027,630 L1028,631 L1032,629 L1024,631 L1023,632 L1025,633 L1019,637 L1018,636 L1016,638 L1018,639 L1016,641 L1015,640 L1013,642 L1013,644 L1010,647 L1009,646 L1010,647 L1004,653 Z M711,627 L708,629 L706,629 L705,628 L706,627 L704,628 L703,627 L690,639 L683,650 L685,649 L686,650 L688,648 L689,644 L694,640 L695,637 L703,630 L706,629 L707,630 Z M324,627 L313,631 L297,642 L293,644 L295,643 L297,646 L292,650 L288,649 L287,648 L288,647 L282,652 L291,652 L292Line truncated
<path fill="#65774c" fill-rule="evenodd" d="M611,674 L605,673 L603,675 L601,674 L596,677 L594,676 L597,680 L599,678 L603,677 L604,675 L606,676 L605,675 L606,674 L608,675 Z M590,673 L575,679 L574,678 L577,675 L572,679 L572,681 L582,685 L586,684 L587,681 L584,681 L583,684 L579,684 L578,682 L582,678 Z M815,666 L808,667 L807,669 L805,668 L807,669 L806,670 L801,670 L795,673 L795,674 L798,675 L802,674 L803,675 L804,674 L803,673 L806,672 L804,671 L807,669 L809,670 L810,668 L811,669 Z M24,662 L25,663 L24,667 L26,669 L31,670 L35,673 L32,670 L31,667 Z M7,661 L13,665 L18,666 L23,670 L22,672 L21,671 L28,678 L39,693 L41,693 L40,692 L40,688 L38,685 L19,666 L20,665 L18,666 L17,665 L18,664 L16,665 L15,663 Z M802,660 L796,662 L790,668 L787,664 L788,665 L786,667 L780,670 L778,669 L779,668 L777,670 L780,671 L781,669 L786,668 L787,669 L784,672 L783,672 L789,668 L790,669 L787,672 L788,673 L787,672 L792,666 L793,667 L794,666 L794,664 L796,662 Z M780,659 L777,660 L776,662 L775,661 L776,662 L775,663 L770,664 L769,663 L771,660 L770,659 L774,656 L764,661 L762,660 L763,658 L757,666 L761,661 L764,661 L769,658 L771,660 L768,663 L766,663 L762,666 L764,665 L767,668 L766,667 L770,664 L772,666 L772,668 L777,664 Z M172,655 L171,656 L170,655 L165,660 L163,657 L165,655 L156,669 L163,667 L166,661 L169,658 L169,656 Z M600,663 L592,664 L590,666 L588,665 L586,667 L585,666 L579,668 L569,674 L565,675 L564,674 L569,669 L570,670 L578,663 L576,664 L575,663 L576,661 L581,656 L582,657 L581,656 L584,654 L585,655 L584,654 L585,653 L583,653 L567,662 L561,667 L563,666 L564,667 L563,668 L566,665 L569,664 L573,665 L561,678 L565,677 L568,674 L571,674 L581,669 L583,669 L584,670 L583,671 L593,665 Z M574,650 L564,654 L556,660 L558,659 L561,662 L568,655 L567,654 L569,652 Z M782,649 L777,652 L775,651 L772,652 L767,657 L778,652 Z M21,649 L31,660 L38,674 L42,678 L41,679 L39,678 L44,683 L47,684 L46,686 L49,688 L47,689 L52,689 L44,672 L41,669 L38,672 L35,668 L36,664 L37,663 L39,665 L33,655 L29,651 L27,652 Z M526,646 L527,648 L525,649 L519,664 L523,665 L525,664 L529,657 L527,659 L525,657 L526,654 L525,655 L524,654 L526,650 L527,652 L526,649 L527,648 L528,649 Z M1034,655 L1034,656 L1039,652 L1042,653 L1047,651 L1048,652 L1046,654 L1041,655 L1039,657 L1044,655 L1052,654 L1053,655 L1048,658 L1049,659 L1048,660 L1046,659 L1045,661 L1051,659 L1058,659 L1059,658 L1063,660 L1056,663 L1060,663 L1061,664 L1060,665 L1064,664 L1065,665 L1062,668 L1068,668 L1069,667 L1073,669 L1071,670 L1079,672 L1085,672 L1088,674 L1087,673 L1088,672 L1082,672 L1081,669 L1079,669 L1077,671 L1074,671 L1073,670 L1077,666 L1072,668 L1066,666 L1068,663 L1072,662 L1073,660 L1075,661 L1073,660 L1063,664 L1062,662 L1065,659 L1063,659 L1062,657 L1064,656 L1061,656 L1059,658 L1052,658 L1051,657 L1056,653 L1054,652 L1056,651 L1049,655 L1048,653 L1054,647 L1054,646 L1051,646 L1046,649 L1045,647 L1049,644 L1045,646 L1045,648 L1048,650 L1044,652 L1043,649 Z M1040,644 L1033,646 L1030,643 L1022,654 L1028,650 L1034,648 L1035,649 L1026,659 L1030,660 L1028,660 L1027,658 L1038,649 L1039,647 L1042,647 Z M28,643 L41,656 L51,668 L54,675 L53,668 L48,653 L49,663 L50,664 L49,665 L47,664 L45,657 L41,650 L40,652 L31,643 L30,644 Z M1008,642 L1005,645 L1006,646 L1003,650 L1002,649 L1000,652 L1001,651 L1004,652 L1008,647 L1007,648 L1005,645 Z M571,643 L570,642 L564,645 L561,649 L559,648 L560,649 L558,651 L560,653 L561,649 L563,650 L570,642 Z M745,639 L742,641 L743,642 L741,644 L738,644 L735,649 L727,654 L728,656 L726,657 L731,658 L733,656 L734,658 L737,657 L739,658 L744,652 L743,653 L741,652 L744,649 L739,653 L738,650 L740,646 L744,642 Z M1001,637 L999,639 L997,638 L991,644 L993,642 L995,643 Z M145,637 L141,641 L141,643 L137,650 L129,674 L130,673 L135,673 L133,672 L145,645 L142,649 L140,648 Z M101,636 L101,641 L100,642 L101,650 L103,640 L102,641 L101,640 Z M988,635 L977,646 L986,641 L989,638 L989,637 L987,639 L986,638 Z M206,635 L204,636 L203,635 L198,640 L196,640 L195,639 L196,638 L189,646 L193,642 L194,646 L184,657 L182,658 L181,657 L174,666 L181,664 L190,653 L190,650 Z M66,635 L67,638 L66,641 L70,650 L71,650 L70,649 L70,638 L69,637 L68,639 L66,637 Z M889,634 L880,638 L878,637 L876,639 L877,638 L880,639 L877,642 L881,644 L879,643 L882,642 L885,644 L884,645 L886,645 L889,642 L883,642 L882,641 L879,643 L877,642 L886,635 Z M514,634 L508,648 L506,650 L505,649 L506,645 L505,650 L503,653 L503,657 L506,653 L507,654 L505,658 L506,660 L509,658 L514,650 L515,653 L511,658 L511,660 L520,646 L516,650 L515,649 L518,637 L514,643 L515,642 L517,643 L514,649 L513,648 L512,650 L510,649 L511,648 L510,647 L510,643 Z M1041,633 L1032,637 L1026,642 L1021,644 L1020,646 L1018,644 L1015,647 L1017,645 L1020,646 L1014,651 L1015,653 L1012,655 L1010,654 L1010,655 L1013,655 L1016,653 L1019,647 L1021,645 L1022,646 L1028,640 L1036,639 L1035,637 L1037,635 L1041,635 L1039,634 Z M163,633 L162,634 L161,633 L153,639 L150,650 L152,647 L153,648 Z M979,632 L974,635 L971,634 L972,635 L969,637 L966,642 L969,643 L974,638 L975,639 L978,636 Z M735,632 L730,636 L727,637 Line truncated
<path fill="#6ab6bf" fill-rule="evenodd" d="M654,809 L658,808 L664,811 L662,812 L666,811 L667,812 L665,813 L668,812 L669,813 L668,814 L671,813 L672,814 L671,815 L672,814 L674,814 L675,815 L674,816 L677,815 L678,816 L676,817 L679,816 L680,817 L679,818 L682,817 L683,818 L682,819 L685,818 L686,819 L685,820 L688,819 L689,820 L688,821 L691,820 L692,821 L691,822 L694,821 L695,822 L694,823 L696,822 L697,824 L709,828 L711,827 L712,829 L715,828 L716,829 L715,830 L721,831 L742,838 L757,841 L761,843 L778,846 L787,849 L806,852 L807,853 L817,854 L818,855 L844,858 L838,858 L831,856 L835,852 L834,851 L837,845 L838,846 L838,844 L836,845 L833,843 L834,841 L831,840 L826,835 L827,833 L824,831 L825,830 L831,830 L812,830 L811,829 L778,827 L777,826 L778,825 L783,825 L770,826 L769,825 L770,824 L773,824 L763,825 L762,824 L764,823 L759,823 L758,824 L756,824 L755,823 L756,822 L748,823 L747,822 L749,821 L744,821 L743,822 L741,820 L701,815 L688,812 L682,812 L681,811 L675,811 L674,810 L668,810 L660,808 Z M926,782 L929,785 L944,790 L965,793 L966,794 L972,794 L973,795 L999,797 L994,794 L991,790 L991,786 L995,781 L1001,778 L1015,774 L1037,771 L1038,770 L1055,767 L1059,765 L1060,763 L1056,760 L1053,759 L1051,760 L1050,758 L1048,759 L1046,757 L1036,756 L1035,755 L1028,755 L1027,753 L966,754 L969,758 L969,761 L967,764 L960,768 L958,768 L957,770 L955,769 L933,775 L929,777 L928,779 L927,778 Z M1011,790 L1014,794 L1022,798 L1039,802 L1038,801 L1044,798 L1049,799 L1047,798 L1048,797 L1052,798 L1050,797 L1054,795 L1059,796 L1057,795 L1067,791 L1070,791 L1068,790 L1069,789 L1067,788 L1068,787 L1085,781 L1097,779 L1106,776 L1112,776 L1113,775 L1125,774 L1126,773 L1134,773 L1135,772 L1163,771 L1164,770 L1212,771 L1213,772 L1222,772 L1223,773 L1247,775 L1248,776 L1259,777 L1260,778 L1270,779 L1281,782 L1282,781 L1298,781 L1299,780 L1343,780 L1344,779 L1374,778 L1375,777 L1382,777 L1383,776 L1397,774 L1409,769 L1381,770 L1380,771 L1332,770 L1331,769 L1320,769 L1319,768 L1302,767 L1301,766 L1294,766 L1293,765 L1285,765 L1284,764 L1278,764 L1277,763 L1271,763 L1263,761 L1256,761 L1255,760 L1227,757 L1219,755 L1203,754 L1202,753 L1195,753 L1194,752 L1187,752 L1186,751 L1155,749 L1154,748 L1140,748 L1139,747 L1102,747 L1101,746 L1104,745 L1098,745 L1097,746 L1084,746 L1083,747 L1075,747 L1074,748 L1056,749 L1055,750 L1035,752 L1066,757 L1072,760 L1075,763 L1075,766 L1071,770 L1066,772 L1048,775 L1047,776 L1036,777 L1021,781 L1013,785 Z M672,701 L673,702 L672,703 L680,706 L683,705 L684,707 L691,707 L692,706 L725,706 L726,705 L836,705 L833,704 L823,705 L811,702 L812,701 L818,701 L803,701 L802,700 L780,699 L779,698 L757,697 L756,696 L745,696 L744,695 L748,694 L717,695 L711,697 L709,696 L689,697 L688,698 L677,699 Z M669,566 L670,568 L670,577 L671,575 L675,576 L678,575 L679,573 L680,577 L680,566 L671,566 L670,567 Z M667,547 L667,551 L669,554 L668,558 L669,557 L670,558 L674,558 L675,557 L679,557 L680,558 L680,546 L668,546 Z M653,523 L649,525 L649,537 L653,536 Z M660,492 L661,535 L665,535 L669,539 L676,539 L678,538 L678,533 L677,531 L676,533 L675,532 L674,526 L671,524 L671,519 L669,514 L665,514 L661,517 L660,516 Z M653,482 L651,483 L649,482 L649,491 L650,489 L651,490 L653,488 Z"/>
<path fill="#023963" fill-rule="evenodd" d="M694,585 L692,586 L691,585 L692,584 L684,589 L684,590 L693,587 Z M693,574 L691,573 L688,575 L690,578 L688,579 L693,578 Z M720,601 L724,602 L730,599 L735,599 L736,600 L739,599 L744,601 L748,608 L752,610 L755,610 L756,611 L755,612 L757,611 L758,613 L761,612 L762,614 L763,613 L777,612 L781,610 L790,611 L788,610 L793,607 L794,605 L803,606 L804,608 L807,608 L808,609 L807,610 L819,610 L820,611 L824,611 L823,610 L824,609 L838,609 L841,606 L850,606 L855,611 L871,610 L874,612 L873,613 L879,614 L880,615 L879,616 L880,615 L883,616 L892,615 L893,616 L891,617 L900,619 L901,620 L900,621 L901,620 L905,620 L908,622 L921,625 L922,626 L921,627 L923,626 L923,622 L919,622 L918,621 L918,618 L923,615 L923,610 L922,606 L917,601 L918,600 L924,600 L922,598 L911,599 L910,598 L885,598 L881,596 L885,580 L885,577 L882,576 L885,575 L881,575 L880,577 L878,575 L869,575 L868,576 L869,580 L868,584 L869,585 L870,594 L878,594 L880,596 L879,597 L856,597 L855,594 L852,597 L822,596 L820,599 L816,599 L813,596 L810,595 L809,596 L808,595 L782,595 L781,594 L780,595 L773,595 L772,594 L772,590 L772,594 L771,595 L767,594 L766,590 L766,593 L763,595 L755,594 L754,593 L754,572 L755,571 L754,571 L754,576 L753,577 L752,574 L749,575 L748,579 L748,593 L747,594 L745,593 L744,586 L740,586 L740,590 L738,596 L736,594 L731,594 L726,596 L728,597 L726,598 L725,601 L723,600 Z M896,600 L897,599 L902,599 L903,600 L901,602 Z M753,588 L755,595 L754,596 L752,595 L752,591 L751,590 Z M658,568 L657,569 L655,568 L656,569 L655,570 L652,569 L649,572 L648,571 L646,574 L643,575 L645,576 L642,578 L647,575 L648,576 L649,574 L651,575 L652,573 L658,571 L656,570 Z M740,567 L740,572 L744,571 L746,572 L747,569 Z M664,550 L664,564 L665,565 L665,569 L666,569 L666,565 L667,564 L668,566 L667,564 L668,561 L667,558 L666,559 L665,558 Z M754,549 L744,549 L749,552 L750,556 L743,561 L742,560 L739,562 L738,561 L740,563 L739,564 L746,564 L747,562 L750,561 L749,558 L750,557 L752,558 L752,560 L752,558 L753,557 L754,558 Z M656,530 L656,537 L655,538 L654,537 L655,538 L654,539 L650,539 L659,540 L662,543 L663,547 L663,545 L667,541 L665,541 L662,538 L659,538 L658,537 L659,535 L662,536 L659,535 L659,532 L658,536 Z M417,526 L415,526 L413,529 L413,532 L411,533 L410,531 L409,534 L412,533 L413,534 L412,536 L413,534 L412,533 L416,529 Z M683,518 L683,539 L682,540 L676,540 L683,540 L684,541 L683,542 L679,542 L678,545 L670,545 L678,545 L680,544 L683,546 L683,559 L683,546 L684,545 L685,548 L686,546 L691,545 L683,540 Z M686,505 L685,507 L685,532 L686,531 L690,534 L692,533 L693,534 L693,525 L693,527 L692,528 L691,527 L691,508 L689,505 Z M740,503 L740,533 L743,532 L746,533 L749,536 L745,539 L740,538 L740,542 L739,543 L738,542 L739,543 L741,542 L742,543 L743,542 L754,542 L755,543 L754,542 L754,510 L751,513 L747,509 L744,508 L745,505 L744,506 L742,503 Z M693,496 L688,496 L686,498 L685,497 L685,501 L692,497 L693,498 Z M659,488 L659,517 L658,518 L656,511 L656,507 L657,506 L657,489 L656,489 L656,524 L657,520 L659,519 Z M775,482 L772,484 L771,482 L770,483 L769,482 L769,479 L768,482 L765,483 L764,482 L761,484 L762,483 L773,484 Z M635,467 L638,468 L635,469 L643,468 L644,469 L642,470 L646,469 L652,469 L653,470 L649,471 L654,470 L655,471 L654,472 L654,481 L654,472 L655,471 L657,473 L657,475 L659,476 L659,473 L662,471 L664,473 L668,472 L680,473 L681,474 L678,475 L681,474 L683,476 L683,483 L685,481 L687,482 L688,480 L691,479 L690,478 L693,476 L693,468 L694,467 L688,466 L689,468 L687,470 L683,470 L680,467 L682,465 L659,462 L658,461 L659,460 L658,461 L646,460 L645,459 L646,458 L645,459 L640,459 L644,459 L645,460 L640,462 L639,464 L636,463 Z M739,458 L741,460 L751,461 L752,462 L751,461 L752,457 L742,457 Z M768,455 L765,454 L759,456 L762,458 L764,456 Z M633,456 L631,457 L624,457 L623,456 L619,456 L618,455 L619,454 L618,455 L606,454 L610,455 L604,462 L600,462 L593,458 L591,458 L590,461 L594,462 L591,463 L597,462 L599,465 L599,471 L600,472 L600,513 L599,514 L600,517 L600,525 L599,526 L600,542 L598,547 L601,547 L605,550 L605,466 L609,464 L614,464 L617,462 L622,461 L624,457 L636,458 L632,458 L631,457 Z M604,472 L605,473 L605,478 L604,479 L602,477 Z M534,453 L533,454 L533,480 L532,481 L531,480 L531,455 L527,454 L531,455 L531,501 L531,497 L532,496 L533,497 L533,501 L535,502 L535,504 L534,505 L533,504 L532,507 L531,503 L531,525 L532,522 L533,523 L533,528 L536,530 L536,534 L538,534 L538,454 Z M532,486 L533,487 L533,495 L532,496 L531,495 L531,487 Z M568,457 L573,459 L569,460 L579,459 L582,455 L593,454 L594,452 L596,452 L578,450 L577,449 L578,448 L577,449 L571,449 L572,450 L569,453 L570,455 Z M543,445 L545,446 L544,448 L551,455 L554,455 L553,453 L557,450 L557,448 L561,447 Z M527,442 L514,441 L513,440 L501,439 L494,437 L487,437 L486,436 L477,435 L476,433 L476,527 L477,525 L481,528 L482,526 L482,516 L483,515 L483,505 L481,501 L481,448 L482,447 L483,448 L482,446 L483,445 L486,447 L485,448 L495,447 L494,446 L499,442 L505,442 L506,439 L507,440 L513,440 L516,442 L515,443 L511,443 L512,445 L511,448 L505,44Line truncated
<path fill="#b3d1d6" fill-rule="evenodd" d="M1168,808 L1206,808 L1207,809 L1223,809 L1224,810 L1249,811 L1250,812 L1257,812 L1258,813 L1257,814 L1232,815 L1274,814 L1251,812 L1250,811 L1241,811 L1240,810 L1227,810 L1226,809 Z M1023,807 L1016,807 L1017,808 L1016,809 L1014,808 L1004,809 L1009,809 L1010,808 L1014,809 L998,815 L995,814 L997,813 L993,812 L998,810 L1002,810 L981,813 L980,814 L968,815 L967,816 L961,816 L958,818 L943,820 L937,822 L908,825 L907,826 L899,826 L917,825 L918,824 L925,824 L926,823 L943,821 L944,822 L942,823 L943,826 L942,827 L944,829 L945,828 L950,828 L952,825 L958,822 L961,822 L962,820 L967,825 L962,828 L938,836 L935,836 L929,839 L927,839 L936,837 L1000,815 L1003,813 Z M960,817 L961,816 L967,816 L968,817 L967,818 L961,818 Z M967,816 L974,814 L979,814 L980,815 L974,817 L968,817 Z M1128,780 L1146,779 L1147,778 L1169,778 L1170,777 L1177,777 L1178,778 L1205,778 L1206,779 L1214,778 L1219,780 L1229,780 L1230,781 L1238,781 L1246,783 L1251,782 L1253,784 L1257,783 L1260,785 L1266,785 L1279,788 L1281,787 L1284,789 L1303,792 L1308,794 L1310,793 L1312,795 L1315,794 L1316,796 L1319,795 L1321,797 L1325,798 L1328,797 L1329,799 L1331,798 L1314,792 L1311,792 L1307,790 L1300,789 L1281,783 L1277,783 L1273,781 L1268,781 L1267,780 L1251,778 L1250,777 L1244,777 L1243,776 L1237,776 L1236,775 L1218,774 L1217,773 L1204,773 L1203,772 L1158,772 L1157,773 L1146,773 L1160,774 L1161,775 L1157,776 L1158,777 L1157,778 L1144,778 L1143,779 Z M54,724 L63,724 L64,723 L111,723 L112,722 L184,724 L185,725 L195,725 L196,726 L205,726 L206,727 L214,727 L215,728 L246,731 L252,733 L258,733 L259,734 L279,737 L284,739 L289,739 L307,744 L308,743 L298,741 L297,740 L299,737 L304,738 L307,734 L308,737 L312,733 L316,734 L317,732 L318,735 L319,734 L317,732 L319,730 L320,732 L323,731 L324,733 L328,730 L329,731 L330,729 L334,731 L333,730 L334,729 L317,727 L316,726 L317,725 L344,728 L318,725 L317,724 L310,724 L309,723 L302,723 L301,722 L285,721 L284,720 L285,719 L293,719 L294,718 L295,719 L299,717 L301,718 L303,716 L307,716 L310,714 L313,714 L315,716 L319,715 L320,716 L322,715 L335,716 L313,714 L312,713 L304,713 L303,712 L294,712 L293,711 L283,711 L282,710 L286,709 L268,710 L267,709 L268,708 L263,708 L262,709 L222,709 L221,708 L216,708 L215,709 L211,708 L209,709 L208,708 L194,708 L193,709 L162,710 L161,711 L149,711 L148,712 L139,712 L138,713 L129,713 L128,714 L119,714 L118,715 L111,715 L110,716 L94,717 L93,718 L87,718 L79,720 L58,722 L62,723 L61,724 Z M318,728 L319,730 L315,734 L314,732 Z M309,725 L310,724 L315,724 L316,725 L315,726 L310,726 Z M300,724 L301,723 L306,723 L307,724 L306,725 L301,725 Z M442,530 L435,535 L429,542 L433,539 L439,537 L441,531 L442,532 L442,536 L442,532 L441,531 Z M442,430 L441,429 L431,435 L428,435 L426,437 L425,436 L423,438 L421,437 L419,439 L417,438 L405,442 L390,445 L386,447 L371,450 L369,452 L367,451 L344,458 L340,458 L336,460 L275,475 L274,476 L274,508 L275,510 L274,504 L276,503 L282,511 L284,503 L287,502 L288,503 L288,513 L288,505 L289,504 L291,508 L290,510 L295,504 L301,501 L303,503 L303,505 L304,502 L306,503 L306,505 L304,507 L302,507 L299,515 L305,509 L313,504 L314,506 L309,511 L306,517 L307,515 L309,515 L311,513 L321,509 L323,511 L321,513 L323,515 L324,513 L324,508 L323,507 L323,480 L326,477 L342,474 L363,468 L367,468 L388,462 L392,462 L417,455 L419,457 L418,458 L419,459 L418,460 L418,486 L419,487 L418,491 L418,512 L419,515 L418,517 L433,511 L437,511 L438,512 L437,514 L434,514 L424,520 L419,525 L420,526 L419,529 L429,524 L433,524 L434,525 L432,527 L430,527 L419,533 L420,535 L421,534 L424,535 L419,539 L436,527 L442,525 L441,524 L442,523 L442,513 L441,512 L441,508 L442,507 L442,439 L441,438 Z M318,508 L317,510 L311,513 L309,512 L314,507 Z M311,467 L315,465 L319,466 L316,468 L312,468 Z M589,333 L598,342 L621,360 L735,457 L735,440 L731,438 L728,434 L726,434 L722,429 L721,430 L714,422 L713,423 L707,416 L705,416 L700,410 L678,391 L677,392 L668,383 L666,383 L661,377 L658,376 L654,371 L653,372 L648,366 L647,367 L636,356 L635,357 L630,351 L629,352 L625,347 L618,341 L616,341 L611,335 L600,326 Z"/>
<path fill="#8c945c" fill-rule="evenodd" d="M819,672 L810,673 L807,676 L806,675 L807,676 L806,677 L810,677 L815,673 Z M14,666 L21,672 L22,671 L18,667 Z M1067,665 L1067,666 L1070,667 L1077,665 L1078,667 L1074,670 L1077,670 L1079,668 L1081,668 L1082,671 L1084,671 L1082,670 L1083,668 L1081,667 L1083,665 L1080,667 L1078,665 L1073,664 L1072,663 L1073,662 Z M796,663 L795,662 L789,665 L788,663 L791,659 L785,664 L786,665 L781,668 L780,667 L779,669 L786,666 L788,664 L792,665 L794,663 L795,665 Z M793,654 L783,657 L780,660 L778,659 L780,661 L773,668 L780,662 Z M1050,658 L1052,657 L1059,657 L1061,655 L1066,656 L1066,655 L1061,655 L1057,653 L1053,657 Z M777,653 L767,658 L766,656 L771,652 L770,652 L766,656 L765,655 L754,664 L756,663 L757,664 L756,665 L763,657 L764,658 L763,660 L769,657 L771,657 L773,655 L775,655 Z M572,652 L567,655 L568,656 L557,667 L554,671 L555,672 L552,673 L553,674 L552,675 L563,667 L561,666 L559,669 L557,667 Z M232,650 L228,658 L234,658 L232,657 L235,655 L233,655 L231,653 Z M1060,651 L1062,650 L1063,651 L1062,652 L1077,652 L1076,651 L1066,651 L1065,650 L1066,649 L1064,650 L1061,649 Z M1061,645 L1057,644 L1052,645 L1054,645 L1055,647 L1051,650 L1049,654 L1052,653 L1055,650 L1057,650 L1053,649 L1055,647 Z M763,643 L761,643 L760,645 L759,644 L760,645 L759,646 L757,645 L758,646 L753,651 L753,655 L752,656 L750,655 L751,652 L749,656 L750,657 L745,661 L746,660 L747,662 L753,657 L753,653 Z M194,642 L188,648 L181,658 L189,651 L193,646 L192,645 Z M536,640 L531,646 L532,649 L527,653 L526,655 L527,658 L529,656 L529,653 L533,648 L535,643 L537,642 Z M890,641 L888,641 L887,639 L884,638 L876,643 L882,640 L883,641 L889,641 L890,642 L887,645 L888,646 L887,645 Z M1050,640 L1047,639 L1049,637 L1032,644 L1031,643 L1033,641 L1031,644 L1035,645 L1044,641 L1046,642 L1045,643 L1047,641 L1050,641 Z M250,639 L248,640 L246,637 L241,643 L242,642 L243,643 L241,648 L249,643 Z M353,636 L337,639 L322,644 L310,650 L306,654 L312,654 L314,652 L332,643 Z M744,636 L743,635 L739,638 L737,637 L738,636 L736,637 L733,636 L727,643 L730,643 L731,642 L729,641 L732,638 L734,640 L733,641 L740,638 L741,639 L740,641 L742,640 L741,639 Z M764,635 L762,634 L747,640 L745,638 L744,639 L745,642 L740,648 L747,640 L752,638 L755,639 L747,645 L745,648 L749,644 L755,643 L763,634 Z M285,635 L284,634 L279,637 L263,655 L264,654 L266,655 Z M271,637 L269,636 L266,638 L265,637 L268,634 L264,638 L262,642 L264,640 L268,640 Z M40,633 L45,641 L46,641 L45,638 L46,637 L44,637 L43,636 L44,635 L42,633 L41,634 Z M5,631 L8,633 L9,632 L23,646 L26,647 L21,643 L22,642 L21,643 L20,642 L19,638 L15,635 L16,634 L14,633 L12,634 L11,632 L8,633 L7,631 Z M1045,630 L1042,629 L1043,630 L1037,634 L1038,633 L1042,635 L1040,637 L1043,635 L1041,634 L1044,633 Z M733,629 L729,630 L728,632 L727,631 L726,632 L727,634 L724,635 L727,636 L726,635 L728,633 L730,633 L731,634 L729,635 L734,632 L733,633 L731,632 Z M407,629 L409,634 L408,635 L406,633 L410,638 L413,639 L410,632 Z M437,628 L443,638 L442,631 L441,630 L440,631 Z M551,627 L547,631 L544,632 L544,634 L539,641 L539,644 L542,639 L541,638 L544,636 L545,633 Z M681,625 L669,636 L675,633 L680,628 L679,627 Z M536,624 L531,629 L532,630 L522,639 L523,641 L522,642 L521,641 L519,643 L518,641 L520,636 L525,629 L521,632 L518,636 L519,640 L516,649 L525,639 L524,638 L531,632 L532,630 L531,629 Z M242,624 L232,633 L235,634 L243,626 L241,625 Z M876,623 L870,626 L869,628 L870,627 L873,629 L866,632 L860,636 L860,637 L868,632 L873,634 L872,633 L874,629 L877,627 L873,629 L870,626 L871,625 L872,626 Z M865,622 L861,625 L859,623 L855,630 L861,628 L864,624 L865,625 L864,629 L865,629 L864,627 L865,626 L864,624 Z M520,622 L511,630 L512,631 L509,633 L508,632 L506,634 L507,635 L510,632 L513,633 L507,644 L506,649 L512,637 L513,638 L512,636 L513,635 L514,636 L513,634 L515,633 L513,631 L515,629 L516,631 L515,628 L516,627 L517,628 L516,627 L519,625 Z M258,622 L254,626 L254,629 L249,632 L251,630 L254,631 L254,633 L251,637 L256,632 L254,629 Z M185,622 L180,628 L177,635 L172,642 L173,643 L171,644 L172,646 L171,647 L170,646 L171,649 L172,648 L173,649 L181,632 L186,625 L185,626 L183,625 Z M747,621 L730,626 L732,625 L736,627 L735,628 L741,623 Z M510,621 L506,627 L506,629 L503,631 L502,629 L502,632 L500,636 L501,637 L501,642 L498,645 L504,639 L505,636 L503,638 L502,635 L508,628 Z M216,621 L214,623 L211,621 L195,640 L198,639 L204,634 Z M820,620 L821,621 L819,623 L817,621 L816,622 L817,623 L815,624 L821,630 L818,624 L821,623 L825,628 L826,624 L825,625 Z M239,620 L231,630 L232,629 L233,630 L232,629 L240,621 Z M832,619 L831,622 L832,623 L831,624 L833,627 L833,631 L834,631 L834,624 L833,625 L832,624 L834,620 L833,621 Z M669,618 L661,624 L654,632 L657,632 Z M416,618 L415,619 L420,630 L419,631 L412,626 L411,624 L420,633 L425,632 L422,625 L418,619 Z M1020,617 L1016,619 L1014,618 L1007,620 L998,629 L1003,627 L1006,622 L1008,623 Z M339,620 L337,618 L333,617 L334,618 L333,619 L331,618 L332,619 L331,620 L328,619 L329,620 L328,621 L326,620 L327,621 L326,622 L323,621 L299,635 L298,638 L296,637 L2Line truncated
<path fill="#24483d" fill-rule="evenodd" d="M533,660 L527,665 L525,665 L533,668 L533,667 L530,666 L531,665 L530,663 Z M555,657 L549,664 L547,665 L546,664 L541,670 L537,669 L543,671 L542,670 L549,665 Z M488,654 L485,654 L482,652 L483,646 L481,649 L480,648 L479,649 L478,646 L478,650 L477,651 L465,649 Z M1027,645 L1024,645 L1017,654 L1021,650 L1024,649 L1023,648 Z M28,645 L29,646 L28,648 L36,656 L39,663 L45,671 L53,687 L53,689 L55,688 L58,689 L59,688 L57,682 L52,675 L50,669 L41,658 Z M525,642 L518,652 L519,654 L518,658 L516,660 L517,661 L516,662 L511,661 L517,663 L525,646 L524,644 Z M1021,638 L1015,643 L1016,644 L1013,646 L1008,653 L1004,654 L1008,655 L1007,654 L1010,650 L1018,643 Z M309,638 L298,647 L296,646 L297,645 L296,646 L295,645 L296,643 L289,647 L287,649 L288,648 L292,649 L294,648 L295,649 L291,653 L281,653 L291,653 Z M1005,635 L991,650 L992,649 L993,651 L999,652 L997,651 L1000,650 L1008,641 L1006,643 L1004,642 L1000,644 L998,643 Z M224,635 L212,647 L205,657 L200,661 L202,660 L203,661 L211,660 L215,658 L216,654 L221,645 L220,643 Z M1000,634 L995,636 L985,647 L982,647 L989,649 L987,648 L988,645 Z M429,634 L431,642 L439,643 L437,639 L438,642 L437,643 L433,642 L432,641 L433,640 L431,638 L431,636 L433,635 L431,636 Z M262,634 L239,656 L241,655 L249,656 L249,654 L251,653 L255,646 L259,642 L259,640 L261,639 Z M706,630 L698,635 L695,640 L690,644 L689,647 L693,646 L695,648 L699,638 Z M210,630 L207,636 L194,649 L183,664 L185,662 L188,663 L192,662 L193,659 L207,641 L206,639 L211,632 L210,633 L209,632 Z M993,625 L991,627 L988,626 L989,627 L973,643 L971,643 L973,644 L974,643 L975,645 L977,645 L980,641 L977,640 L984,632 L985,634 L983,636 L988,631 L990,631 L991,630 L990,628 Z M689,623 L683,627 L669,641 L669,644 L667,647 L669,646 L670,647 L673,644 L675,646 L687,637 L685,636 L693,630 L692,631 L691,630 L685,636 L684,639 L682,637 L685,633 L685,631 L687,629 L687,625 Z M443,622 L444,632 L447,642 L446,645 L450,646 L448,629 L447,626 Z M975,621 L972,625 L965,629 L958,638 L956,638 L966,641 L973,627 L970,632 L969,630 Z M968,633 L969,635 L966,640 L964,641 L962,639 Z M958,619 L957,619 L955,624 L951,628 L952,630 L954,629 L955,630 L954,631 L960,624 L957,627 L956,626 L959,621 L958,622 L957,621 Z M187,618 L182,619 L173,628 L172,627 L173,623 L154,649 L149,660 L145,665 L144,669 L142,670 L141,669 L145,655 L147,653 L150,640 L153,636 L153,633 L154,632 L151,636 L150,641 L148,642 L148,645 L146,646 L142,654 L135,672 L144,671 L143,670 L145,667 L146,668 L151,668 L152,667 L153,669 L156,668 L156,666 L160,659 L158,662 L157,661 L158,657 L163,651 L166,651 L177,630 L181,624 Z M46,618 L47,620 L47,630 L51,640 L50,643 L47,641 L49,650 L51,653 L52,658 L55,661 L58,670 L65,683 L65,687 L70,686 L63,671 L60,659 L57,654 L58,651 L57,650 L56,639 L54,632 L49,625 Z M674,617 L658,633 L657,635 L658,636 L657,638 L658,641 L656,644 L665,634 L667,635 L670,632 L671,629 L668,628 L669,622 Z M209,617 L203,623 L201,623 L197,627 L196,626 L197,627 L194,629 L195,630 L191,634 L190,633 L189,636 L188,634 L189,636 L176,651 L170,662 L165,667 L167,665 L171,666 L174,665 L175,662 L179,658 L183,651 L196,636 L202,624 Z M956,612 L954,614 L953,612 L949,616 L938,632 L942,633 L942,631 L946,625 L945,623 L946,622 L948,623 Z M149,612 L148,613 L147,612 L146,615 L143,618 L141,624 L130,641 L129,645 L118,666 L117,665 L117,656 L112,670 L112,674 L114,675 L110,677 L118,676 L116,675 L121,673 L123,674 L122,675 L124,674 L127,667 L128,669 L130,665 L130,664 L129,665 L128,664 L129,659 L131,656 L132,660 L134,656 L135,651 L143,634 L144,622 Z M943,609 L940,612 L937,619 L935,621 L931,629 L932,630 L934,630 L939,617 L944,610 Z M181,608 L176,614 L179,613 L182,610 Z M668,603 L658,611 L654,612 L648,618 L650,616 L651,617 L648,622 L644,623 L635,635 L636,637 L642,632 L645,636 L644,637 L646,637 L665,619 L661,618 L653,624 L652,623 L655,616 Z M641,601 L634,607 L624,620 L618,633 L620,633 L619,632 L621,628 L626,623 L627,625 L625,627 L625,629 L622,631 L629,632 L640,619 L643,612 L641,614 L640,612 L631,621 L629,620 L632,615 L632,613 L634,611 L634,608 Z M628,596 L622,599 L624,601 L619,605 L617,609 L610,616 L608,615 L604,622 L608,621 L609,622 L608,625 L613,620 L614,623 L627,608 L628,605 L625,606 L622,609 L621,606 Z M615,593 L607,598 L594,613 L593,616 L597,615 L598,616 L596,618 L598,618 L615,596 L613,598 L612,597 Z M47,593 L46,595 L47,614 L48,611 Z M599,595 L597,595 L591,599 L589,596 L591,592 L586,597 L584,601 L585,603 L582,608 L579,611 L578,609 L576,611 L577,610 L581,614 L578,616 L573,614 L576,616 L581,617 L584,612 L588,608 L589,609 L599,599 L600,597 Z M647,591 L636,598 L635,601 L638,600 L640,598 L639,597 Z M573,584 L567,588 L568,589 L563,596 L562,595 L557,605 L555,606 L558,607 L557,606 L558,603 L562,600 L562,598 L565,593 Z M582,583 L575,589 L577,591 L565,602 L567,605 L566,612 L568,612 L572,603 L575,600 L576,601 L579,597 L578,595 L583,590 L584,587 L577,595 L576,594 L578,588 Z M128,583 L122,594 L116,613 L111,623 L108,634 L105,640 L100,661 L99,680 L100,680 L99,679 L99,673 L100,672 L101,673 L101,678 L104,679 L104,670 L106,666 L108Line truncated
<path fill="#bcb275" fill-rule="evenodd" d="M1092,671 L1091,670 L1092,668 L1087,668 L1081,666 L1082,664 L1090,663 L1076,664 L1078,664 L1084,668 L1083,670 L1085,671 L1087,670 Z M1067,660 L1071,660 L1075,658 L1081,658 L1081,657 L1077,658 L1076,657 L1077,656 L1074,657 L1072,656 L1073,657 L1072,658 L1070,657 Z M10,649 L16,655 L21,663 L20,664 L22,663 L21,661 L22,659 L14,651 Z M1054,649 L1060,649 L1061,647 L1064,649 L1058,653 L1061,654 L1071,653 L1062,653 L1061,652 L1065,648 L1071,646 L1066,648 L1062,648 L1061,647 L1062,645 L1063,645 Z M171,645 L167,653 L166,658 L172,650 L172,649 L171,650 L170,649 Z M1061,640 L1054,644 L1052,643 L1057,640 L1047,642 L1043,645 L1047,644 L1048,642 L1049,643 L1051,642 L1052,643 L1050,645 L1057,643 Z M1058,632 L1057,633 L1054,632 L1055,633 L1052,635 L1048,635 L1047,634 L1044,635 L1032,643 L1046,638 Z M751,631 L747,636 L746,635 L742,639 L746,637 L747,638 L746,640 L749,642 L747,644 L746,643 L745,644 L746,645 L743,648 L754,639 L752,639 L753,640 L752,641 L750,640 L751,641 L750,642 L746,640 Z M1047,625 L1040,629 L1038,628 L1041,626 L1033,630 L1024,639 L1026,640 L1029,636 L1030,637 L1034,635 L1033,634 L1035,632 L1037,633 L1036,634 L1042,630 L1041,629 Z M1035,622 L1028,625 L1026,624 L1029,622 L1026,623 L1025,622 L1026,623 L1025,624 L1020,623 L1016,625 L1021,623 L1024,624 L1022,625 L1023,626 L1016,633 L1010,636 L1016,633 L1018,635 L1013,640 L1012,639 L1009,642 L1008,646 L1014,638 L1018,635 L1017,634 L1023,628 L1024,629 L1026,626 L1027,627 Z M728,621 L727,620 L726,621 L725,619 L725,621 L720,626 L725,624 Z M1023,614 L1019,616 L1018,615 L1017,616 L1010,615 L1007,618 L1004,619 L995,628 L990,635 L1004,623 L1006,624 L1007,623 L1005,621 L1008,619 L1009,616 L1011,618 L1014,617 L1016,618 Z M1001,612 L998,612 L994,614 L992,616 L994,617 L992,619 L990,618 L977,630 L978,631 L990,622 L988,621 L992,619 L993,620 L992,621 L995,618 L994,616 L998,615 Z M230,612 L226,616 L227,617 L226,618 L224,616 L223,617 L225,619 L220,623 L223,622 L229,617 L227,615 Z M161,612 L157,622 L158,624 L156,626 L158,624 L157,622 L158,621 L159,622 L162,617 L163,613 Z M278,608 L266,619 L267,620 L266,619 L268,617 L269,618 L278,610 L277,609 Z M206,606 L195,616 L190,624 L191,626 L189,628 L188,627 L183,636 L187,629 L192,625 L192,623 L199,617 L197,615 Z M968,606 L965,605 L962,609 L960,609 L954,618 L955,619 L952,622 L955,620 L955,617 Z M271,605 L268,608 L267,607 L268,608 L257,617 L260,615 L262,616 L256,623 L258,621 L259,622 L255,629 L256,631 L255,632 L264,624 L265,622 L264,623 L263,622 L259,626 L258,625 L263,613 Z M244,607 L242,607 L241,606 L242,605 L236,608 L235,611 L233,610 L232,611 L233,612 L236,610 L237,611 Z M956,603 L951,605 L946,609 L952,607 Z M990,601 L985,604 L983,607 L982,606 L976,611 L972,612 L971,613 L974,614 L970,618 L969,617 L966,622 L968,623 L969,619 L975,613 L976,614 L980,609 Z M480,601 L479,605 L480,604 L482,607 L482,617 L484,616 L484,612 L487,611 L485,611 L483,609 L483,605 L482,607 Z M483,609 L484,610 L484,616 L483,617 L482,616 L482,610 Z M701,598 L696,599 L695,596 L692,598 L695,600 L691,603 L693,601 L697,600 L700,602 L698,604 L701,605 L691,612 L706,605 L703,606 L702,605 L704,603 L701,604 L699,603 L700,600 L703,601 L701,600 L702,599 Z M156,595 L146,605 L147,606 L142,612 L141,611 L142,612 L139,616 L138,615 L139,616 L137,619 L136,618 L137,619 L134,624 L133,623 L134,624 L132,627 L131,626 L132,630 L134,626 L138,622 L137,621 L141,618 L150,605 L154,601 L155,602 L154,601 L157,599 Z M414,592 L431,609 L430,611 L429,610 L431,612 L432,618 L434,620 L437,627 L440,630 L439,626 L433,615 L435,613 L434,611 L433,612 Z M694,589 L691,589 L686,592 L681,593 L683,592 L685,593 L684,597 L691,590 Z M314,587 L313,588 L314,587 L313,586 L309,587 L299,592 L297,595 L296,594 L289,599 L293,600 L297,597 L298,598 L304,593 L311,589 L310,590 L308,589 L312,586 Z M947,585 L944,587 L935,600 L931,611 L939,596 Z M685,586 L683,584 L674,585 L673,583 L673,585 L671,587 L668,588 L667,587 L667,589 L663,591 L659,596 L669,589 L672,590 L666,594 L670,592 L676,587 L678,588 L672,595 L679,594 L677,593 Z M676,578 L673,577 L670,578 L667,581 L666,580 L665,582 L664,581 L660,582 L661,583 L660,584 L656,583 L655,584 L656,586 L652,591 L662,586 L669,581 L676,580 Z M656,577 L655,578 L652,576 L649,577 L650,578 L649,580 L642,583 L640,585 L647,582 L648,583 L647,585 L648,585 L653,578 L654,579 Z M611,572 L608,574 L607,573 L605,574 L600,579 L611,574 Z M645,572 L644,573 L641,571 L642,572 L641,573 L639,572 L638,574 L636,573 L632,575 L629,578 L632,576 L633,578 L624,585 L627,583 L631,583 L636,578 L640,576 L643,572 L644,573 Z M630,568 L628,569 L627,568 L628,567 L618,576 L613,584 L623,575 L626,574 L630,570 L629,569 Z M278,568 L276,567 L269,568 L242,580 L221,594 L222,595 L221,598 L223,598 L225,596 L223,597 L222,596 L223,595 L221,594 L228,589 L230,590 L231,587 L233,588 L235,587 L238,589 L231,596 L234,593 L235,594 L234,593 L245,584 L251,582 L260,575 L270,571 L268,570 L270,568 L273,567 Z M250,580 L249,583 L245,584 L240,588 L237,586 L237,584 L239,582 L246,578 L248,579 L247,580 L248,579 Z M612,564 L611,563Line truncated

After

Width:  |  Height:  |  Size: 163 KiB

+7
View File
@@ -0,0 +1,7 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1254" height="1254" viewBox="0 0 1254 1254" role="img" aria-label="favicon"><title>favicon</title>
<path fill="#0185a0" fill-rule="evenodd" d="M27,858 L28,859 L33,858 L80,823 L115,800 L143,784 L177,768 L214,755 L242,748 L262,745 L263,744 L268,744 L274,742 L282,742 L283,741 L290,741 L291,740 L302,740 L303,739 L315,739 L316,738 L360,738 L361,739 L384,740 L385,741 L391,741 L392,742 L398,742 L399,743 L420,746 L456,755 L488,766 L518,778 L523,781 L525,781 L626,829 L628,829 L635,833 L675,849 L729,866 L751,870 L760,873 L765,873 L766,874 L771,874 L777,876 L795,878 L802,880 L816,881 L817,882 L840,883 L841,884 L887,883 L888,882 L896,882 L897,881 L914,879 L944,872 L950,869 L974,862 L1007,847 L1009,847 L1013,844 L1023,840 L1029,836 L1033,835 L1039,831 L1068,817 L1071,814 L1071,811 L1067,810 L1061,813 L1045,817 L1041,819 L1019,823 L1018,824 L1008,825 L1007,826 L985,828 L977,830 L949,831 L948,832 L913,832 L912,831 L882,830 L881,829 L857,827 L856,826 L838,824 L827,821 L822,821 L788,813 L764,805 L761,805 L707,785 L679,772 L677,772 L652,759 L650,759 L559,712 L557,712 L541,704 L508,691 L505,691 L489,685 L482,684 L474,681 L470,681 L461,678 L456,678 L439,674 L433,674 L432,673 L424,673 L423,672 L415,672 L414,671 L403,671 L402,670 L359,670 L358,671 L347,671 L346,672 L339,672 L338,673 L313,676 L277,685 L235,700 L181,726 L169,734 L164,736 L128,760 L93,788 L73,806 L48,831 L32,849 L27,856 Z"/>
<path fill="#f8c87d" fill-rule="evenodd" d="M1050,846 L1051,848 L1056,851 L1055,852 L1057,851 L1058,852 L1057,853 L1059,852 L1060,854 L1062,853 L1063,855 L1069,854 L1070,855 L1068,856 L1073,856 L1074,855 L1095,855 L1096,856 L1177,856 L1109,856 L1108,855 L1109,854 L1179,854 L1183,855 L1194,850 L1200,844 L1201,839 L1197,834 L1195,835 L1194,834 L1195,833 L1192,832 L1106,832 L1123,832 L1124,833 L1123,834 L1074,833 L1081,833 L1082,834 L1081,835 L1066,834 L1070,834 L1071,835 L1070,836 L1065,836 L1064,835 L1059,836 L1055,838 L1056,839 L1051,842 Z M1227,780 L1225,778 L1224,779 L1220,779 L1219,778 L1220,777 L1223,777 L1218,777 L1217,776 L1215,776 L1217,776 L1218,777 L1217,778 L1008,778 L1007,777 L944,777 L981,777 L982,778 L981,779 L942,779 L941,778 L936,778 L937,779 L936,780 L933,779 L930,780 L928,784 L929,787 L933,791 L932,790 L934,789 L938,791 L941,795 L943,794 L944,796 L948,795 L949,797 L957,797 L958,796 L988,796 L989,797 L988,798 L964,798 L990,798 L991,797 L992,798 L1016,798 L1017,797 L1018,798 L1017,797 L1018,796 L1024,798 L1026,797 L1037,797 L1038,798 L1039,797 L1205,797 L1197,797 L1196,796 L1197,795 L1210,796 L1209,795 L1210,794 L1214,795 L1213,794 L1215,792 L1216,794 L1219,793 L1226,787 L1225,786 L1227,785 L1225,784 L1227,782 L1226,781 Z M1185,796 L1186,795 L1195,795 L1196,796 L1195,797 L1186,797 Z M1159,796 L1160,795 L1184,795 L1185,796 L1184,797 L1160,797 Z M1149,796 L1150,795 L1158,795 L1159,796 L1158,797 L1150,797 Z M1134,796 L1135,795 L1142,795 L1143,796 L1142,797 L1135,797 Z M1124,796 L1125,795 L1133,795 L1134,796 L1133,797 L1125,797 Z M890,661 L891,666 L893,667 L892,670 L893,671 L892,672 L893,671 L902,680 L903,679 L911,685 L910,686 L911,685 L915,688 L914,689 L915,688 L922,693 L921,694 L922,693 L925,695 L924,696 L925,695 L933,700 L934,701 L933,702 L934,701 L938,705 L939,704 L942,706 L941,707 L942,706 L945,707 L947,709 L946,710 L947,709 L950,710 L952,712 L951,713 L953,712 L954,713 L953,714 L955,713 L956,714 L955,715 L957,714 L958,715 L957,716 L959,715 L963,718 L978,725 L977,726 L978,725 L980,726 L979,727 L981,726 L982,727 L981,728 L983,727 L989,730 L988,731 L991,730 L994,732 L993,733 L995,732 L999,734 L998,735 L999,734 L1001,736 L1003,735 L1004,736 L1003,737 L1004,736 L1009,737 L1012,739 L1011,740 L1015,739 L1018,741 L1017,742 L1020,741 L1024,743 L1023,744 L1026,743 L1027,744 L1026,745 L1030,744 L1034,746 L1033,747 L1036,746 L1054,751 L1062,752 L1063,753 L1061,754 L1068,753 L1072,754 L1073,755 L1072,756 L1073,755 L1080,755 L1081,756 L1091,757 L1092,758 L1090,759 L1096,758 L1097,761 L1130,761 L1131,760 L1138,760 L1139,761 L1186,761 L1185,759 L1186,758 L1187,749 L1189,746 L1190,749 L1190,746 L1188,745 L1188,743 L1190,739 L1191,741 L1191,736 L1189,735 L1189,730 L1190,729 L1189,709 L1190,708 L1191,709 L1191,705 L1190,707 L1188,704 L1188,698 L1187,697 L1187,694 L1188,693 L1189,694 L1189,691 L1188,692 L1187,691 L1188,686 L1186,678 L1187,681 L1186,682 L1184,681 L1183,677 L1184,674 L1185,676 L1184,672 L1183,674 L1180,668 L1182,666 L1181,667 L1179,665 L1181,664 L1179,659 L1178,661 L1176,658 L1178,657 L1175,656 L1175,654 L1172,649 L1174,648 L1172,644 L1171,646 L1169,643 L1171,642 L1165,632 L1161,630 L1162,628 L1159,626 L1160,625 L1153,616 L1129,594 L1130,595 L1128,596 L1126,594 L1127,593 L1126,592 L1125,593 L1122,589 L1117,586 L1118,587 L1116,588 L1114,586 L1115,585 L1114,586 L1112,585 L1113,584 L1108,581 L1109,582 L1108,583 L1104,581 L1106,580 L1102,578 L1099,579 L1098,578 L1099,577 L1096,578 L1095,577 L1096,576 L1094,575 L1091,576 L1090,575 L1092,574 L1088,575 L1087,574 L1089,573 L1085,574 L1084,573 L1086,572 L1083,571 L1078,572 L1077,571 L1080,570 L1072,568 L1065,569 L1064,568 L1067,567 L1057,566 L1056,565 L1029,564 L1028,565 L1012,566 L1014,567 L1013,568 L1006,567 L1001,569 L997,569 L970,579 L971,580 L970,581 L967,580 L960,584 L961,585 L960,586 L958,585 L959,586 L957,588 L955,587 L956,586 L949,591 L950,592 L949,593 L947,592 L945,595 L944,594 L934,602 L935,603 L932,605 L931,604 L929,606 L930,607 L923,614 L922,613 L921,614 L922,615 L920,617 L919,616 L916,619 L918,620 L914,624 L913,623 L911,625 L912,627 L911,628 L910,627 L908,629 L909,628 L910,630 L908,632 L907,631 L906,632 L907,634 L906,635 L905,634 L900,641 L901,642 L899,643 Z M1098,760 L1099,759 L1106,759 L1107,760 L1106,761 L1099,761 Z M1056,567 L1057,566 L1062,566 L1063,567 L1062,568 L1057,568 Z M1045,566 L1046,565 L1054,565 L1055,566 L1054,567 L1046,567 Z M1018,566 L1019,565 L1028,565 L1029,566 L1028,567 L1019,567 Z"/>
<path fill="#012f5b" fill-rule="evenodd" d="M962,722 L963,723 L962,726 L965,727 L965,731 L966,730 L969,731 L969,729 L970,728 L972,729 L971,728 L972,727 L974,728 L973,727 L974,726 L972,727 L971,726 L972,725 L970,726 L969,725 L970,724 L968,725 L967,724 L968,723 L965,724 L963,722 L964,721 Z M573,640 L572,643 L568,643 L565,647 L567,648 L573,642 Z M562,618 L565,619 L568,618 L574,618 L575,619 L579,618 L587,619 L589,618 L590,619 L594,619 L596,625 L599,626 L599,624 L596,623 L597,619 L600,619 L604,623 L607,619 L609,621 L608,623 L609,625 L609,633 L607,635 L606,631 L605,632 L602,631 L602,635 L605,636 L605,638 L602,639 L603,642 L605,643 L602,646 L599,643 L600,641 L598,643 L595,643 L597,645 L597,647 L598,643 L601,646 L599,654 L597,653 L598,649 L594,648 L593,649 L597,653 L596,657 L593,653 L589,653 L588,652 L591,649 L589,644 L585,644 L584,641 L579,642 L576,640 L577,639 L575,640 L575,641 L576,640 L577,642 L579,642 L580,645 L583,646 L583,648 L580,649 L580,655 L584,654 L585,657 L584,658 L583,657 L585,659 L589,656 L590,659 L587,660 L585,666 L574,666 L573,663 L565,656 L566,653 L563,648 L562,648 L563,650 L562,655 L561,656 L560,655 L560,621 L559,622 L560,623 L559,625 L560,628 L559,629 L560,631 L559,632 L560,634 L559,638 L560,640 L559,642 L560,644 L559,645 L559,664 L560,666 L562,667 L607,667 L610,664 L609,619 L604,617 L598,617 L597,618 L593,618 L592,617 L590,618 L589,617 L587,618 L586,617 L585,618 L582,617 L566,618 L565,617 Z M561,656 L564,664 L563,666 L560,663 L560,657 Z M608,648 L609,649 L609,654 L608,655 L609,658 L605,659 L604,661 L602,661 L600,657 Z M603,646 L605,645 L608,648 L604,649 Z M492,619 L493,622 L491,623 L491,664 L494,667 L539,667 L542,665 L542,620 L539,618 L534,618 L533,617 L529,618 L501,618 L500,617 L499,618 L495,617 Z M514,664 L515,663 L519,663 L521,665 L520,666 L516,666 Z M494,662 L497,664 L495,667 L492,664 Z M496,658 L497,661 L495,663 L493,660 Z M511,658 L512,657 L516,658 L520,657 L521,660 L517,662 L513,661 Z M540,650 L541,651 L541,663 L539,665 L535,666 L534,665 L534,659 L536,658 L535,655 L538,652 L539,655 L539,651 Z M524,642 L525,645 L522,647 L521,644 Z M528,635 L532,639 L531,641 L532,643 L531,644 L532,645 L531,648 L536,652 L536,654 L533,656 L531,653 L527,653 L529,655 L525,658 L524,657 L525,655 L522,653 L522,651 L524,649 L525,650 L527,648 L529,648 L526,646 L526,642 L524,638 Z M536,618 L537,619 L539,618 L541,620 L541,634 L540,635 L539,633 L538,634 L540,637 L539,638 L541,640 L541,646 L540,647 L539,646 L539,641 L536,641 L535,639 L532,639 L530,636 L533,633 L530,632 L530,627 L533,626 L531,625 L534,623 L537,624 L535,620 Z M497,650 L498,647 L494,642 L494,640 L495,639 L496,640 L495,637 L493,636 L494,635 L493,634 L497,631 L495,630 L496,629 L494,631 L492,628 L494,625 L492,623 L494,620 L496,622 L495,620 L496,618 L500,619 L502,618 L524,618 L525,619 L524,625 L525,625 L524,624 L525,621 L529,621 L531,623 L530,627 L525,628 L527,630 L524,632 L523,638 L520,641 L519,640 L520,638 L516,634 L514,636 L510,637 L513,639 L512,643 L510,641 L507,643 L510,642 L511,643 L510,646 L506,646 L502,651 L499,652 Z M522,557 L515,558 L516,560 L515,562 L516,563 L511,567 L514,566 L516,567 L514,566 L518,561 L517,560 L520,557 Z M562,554 L559,557 L559,564 L560,565 L559,566 L559,580 L560,581 L559,582 L559,597 L560,598 L559,601 L560,604 L562,605 L566,604 L567,605 L573,605 L574,604 L577,605 L579,604 L582,605 L607,605 L610,601 L610,589 L609,588 L610,587 L609,586 L610,585 L609,584 L610,581 L609,580 L610,576 L609,575 L609,569 L610,568 L609,567 L609,562 L610,561 L609,560 L609,556 L607,554 L571,554 L579,555 L580,556 L580,560 L579,561 L578,559 L575,563 L570,563 L567,560 L565,561 L566,567 L564,568 L562,564 L562,570 L563,571 L561,574 L560,573 L560,557 L563,555 Z M595,576 L601,578 L599,583 L598,582 L595,583 L592,580 L594,579 L593,578 Z M607,555 L609,557 L609,561 L608,562 L608,566 L607,567 L606,566 L606,567 L609,569 L607,573 L606,572 L604,573 L604,575 L605,574 L606,575 L606,578 L604,580 L599,576 L599,573 L598,575 L594,575 L593,577 L590,576 L589,578 L586,577 L583,578 L584,582 L589,580 L590,584 L592,584 L595,587 L594,589 L595,588 L597,589 L597,592 L595,593 L595,595 L597,597 L594,600 L588,599 L585,604 L564,604 L563,603 L567,602 L568,600 L566,602 L562,601 L561,603 L560,602 L560,576 L561,575 L563,577 L563,580 L563,575 L564,574 L565,575 L568,574 L567,573 L568,569 L570,570 L572,568 L573,571 L576,572 L577,570 L575,568 L574,571 L572,568 L572,566 L574,564 L576,565 L575,566 L578,566 L577,565 L579,564 L580,567 L582,567 L581,564 L579,563 L580,562 L585,562 L586,561 L589,563 L587,561 L587,559 L589,557 L587,557 L586,556 L587,555 L590,555 L591,557 L593,557 L594,555 L598,555 L599,556 L598,557 L601,558 L600,560 L601,560 L601,556 L602,555 Z M540,554 L533,554 L532,555 L526,554 L526,555 L535,555 L536,558 L535,559 L533,558 L534,559 L533,560 L534,564 L533,568 L529,565 L530,563 L527,560 L527,558 L528,557 L529,558 L529,557 L526,557 L525,559 L524,558 L524,560 L530,566 L529,567 L530,569 L526,570 L526,571 L530,573 L529,575 L531,577 L530,578 L523,577 L526,580 L524,582 L524,585 L526,584 L527,586 LLine truncated
<path fill="#6ebfc3" fill-rule="evenodd" d="M63,863 L63,864 L69,863 L86,855 L128,841 L134,838 L137,838 L154,832 L157,832 L161,830 L181,825 L201,822 L202,821 L207,821 L208,820 L228,818 L229,817 L253,816 L254,815 L300,815 L301,816 L313,816 L314,817 L322,817 L323,818 L330,818 L331,819 L348,821 L395,833 L451,854 L460,859 L505,877 L512,881 L541,891 L549,895 L597,910 L618,914 L619,915 L623,915 L624,916 L628,916 L629,917 L648,919 L649,920 L657,920 L658,921 L669,921 L670,922 L718,921 L719,920 L727,920 L728,919 L739,918 L740,917 L744,917 L745,916 L766,912 L789,903 L792,900 L791,898 L767,899 L766,900 L725,898 L724,897 L699,894 L663,885 L656,882 L653,882 L616,869 L577,851 L575,851 L541,834 L528,826 L454,790 L408,774 L380,767 L364,765 L363,764 L357,764 L356,763 L336,762 L335,761 L298,761 L297,762 L285,762 L284,763 L268,764 L267,765 L256,766 L255,767 L236,770 L231,772 L227,772 L193,782 L168,793 L166,793 L140,806 L115,821 L85,843 L67,858 Z"/>
<path fill="#002d59" fill-rule="evenodd" d="M1056,755 L1064,756 L1068,758 L1064,759 L1062,761 L1077,761 L1075,760 L1076,759 L1080,759 Z M1026,747 L1037,750 L1038,751 L1035,752 L1039,753 L1040,755 L1044,754 L1045,755 L1046,753 L1054,754 Z M1011,742 L1018,745 L1017,746 L1013,745 L1015,747 L1014,751 L1009,754 L1008,758 L1006,757 L1007,759 L1006,761 L1007,762 L1011,762 L1012,763 L1015,762 L1021,762 L1022,763 L1035,763 L1036,762 L1039,763 L1040,762 L1041,763 L1041,761 L1039,760 L1038,761 L1036,759 L1035,760 L1027,761 L1028,762 L1027,763 L1024,762 L1022,763 L1017,761 L1015,759 L1016,758 L1015,757 L1017,755 L1019,756 L1020,749 L1022,748 L1021,747 L1022,746 L1024,746 Z M937,730 L939,731 L935,735 L934,734 L932,736 L935,739 L935,741 L937,740 L938,742 L936,745 L934,744 L932,745 L934,744 L940,748 L948,750 L949,749 L947,748 L949,746 L947,747 L946,745 L949,743 L950,740 L946,737 L944,737 L943,733 L940,732 L939,730 Z M936,735 L937,734 L939,736 L938,734 L940,733 L942,736 L940,738 L938,738 Z M911,723 L911,727 L914,730 L913,729 L914,728 L917,729 L916,735 L915,736 L911,732 L909,733 L908,730 L909,731 L908,732 L905,732 L909,735 L918,739 L917,740 L919,739 L921,741 L926,741 L924,737 L924,734 L925,733 L929,734 L930,733 L929,730 L930,729 L932,730 L931,728 L928,730 L930,732 L927,733 L926,730 L924,729 L926,727 L925,728 L924,727 L923,729 L921,728 L918,730 L917,728 L919,727 L916,726 L914,723 L915,722 L921,723 L922,721 L927,720 L927,719 L922,719 L920,722 L916,721 L914,723 Z M948,713 L952,716 L951,718 L953,720 L949,724 L947,722 L946,724 L946,734 L948,734 L953,740 L953,742 L951,744 L956,741 L961,748 L965,751 L963,753 L959,753 L972,757 L974,755 L971,752 L972,748 L974,746 L978,746 L979,745 L979,742 L980,741 L981,742 L982,740 L981,739 L982,737 L981,734 L984,731 L997,737 L994,740 L990,741 L989,742 L990,745 L987,747 L986,750 L984,750 L986,755 L984,757 L984,759 L986,760 L994,760 L993,757 L996,754 L998,754 L999,746 L1001,744 L1000,743 L1001,741 L999,739 L1000,738 L1003,739 L987,733 L978,728 L976,728 Z M956,739 L957,738 L959,739 L960,742 L958,743 Z M966,732 L969,736 L966,738 L964,736 Z M961,722 L963,721 L965,723 L963,725 L965,723 L967,723 L974,727 L972,728 L973,729 L972,730 L970,729 L969,732 L967,731 L965,732 L964,731 L964,727 L963,728 L961,726 L962,723 Z M165,689 L163,689 L164,690 L162,692 L161,691 L158,692 L157,691 L158,690 L156,689 L154,690 L155,694 L153,695 L152,698 L151,696 L150,697 L152,699 L151,700 L149,699 L148,700 L149,701 L147,705 L146,704 L147,705 L144,706 L145,708 L144,707 L147,705 L148,706 L149,704 L151,703 L152,704 L153,702 L154,703 L156,700 L155,697 L157,695 L158,696 L154,693 L156,691 L158,693 L160,693 L161,694 L160,695 L162,697 L163,696 L162,694 L163,693 L165,694 Z M888,716 L893,716 L900,721 L905,721 L902,718 L899,720 L897,717 L900,714 L901,716 L902,715 L902,712 L900,711 L900,708 L902,706 L904,706 L902,704 L903,703 L907,704 L909,699 L912,701 L912,699 L910,698 L911,696 L913,697 L915,696 L919,698 L921,696 L934,705 L931,708 L928,707 L927,709 L924,709 L920,706 L921,707 L920,708 L923,709 L922,711 L923,712 L922,713 L920,712 L920,715 L921,714 L923,715 L927,713 L930,716 L929,713 L930,711 L932,713 L933,711 L934,713 L936,713 L935,712 L937,710 L941,709 L946,712 L922,697 L909,687 L911,689 L909,690 L910,692 L908,694 L906,693 L900,700 L898,700 L901,703 L901,705 L899,707 L894,706 L894,708 L895,706 L896,707 L896,712 L894,714 L889,713 Z M173,676 L171,675 L164,680 L161,684 L160,683 L159,687 L157,685 L158,688 L160,686 L162,687 L166,684 L166,680 L172,678 Z M886,669 L892,674 L891,680 L893,680 L895,682 L900,680 L902,682 Z M828,672 L830,674 L830,677 L834,676 L835,674 L837,674 L841,677 L834,671 L834,669 L833,670 L835,672 L834,675 L832,675 Z M877,663 L878,665 L877,668 L880,669 L884,668 L881,664 L878,662 Z M512,658 L513,660 L517,661 L520,660 L520,658 L519,659 Z M608,644 L606,647 L604,646 L604,648 L607,648 L608,650 L601,657 L602,660 L604,660 L605,658 L608,658 L607,655 L608,654 L608,649 L606,647 L608,646 Z M233,631 L234,632 L234,638 L236,638 L238,640 L242,640 L240,639 L243,637 L246,638 L248,636 L245,637 L237,636 L236,632 L238,630 L236,632 L234,631 L237,628 Z M267,621 L265,622 L268,623 L266,625 L267,627 L266,629 L262,626 L261,627 L258,626 L261,629 L259,632 L260,633 L261,630 L266,630 L267,631 L268,630 L267,628 L268,624 Z M561,618 L559,621 L560,620 L561,621 L561,655 L562,652 L561,648 L563,647 L566,650 L567,653 L566,656 L574,663 L574,665 L585,665 L585,662 L587,659 L589,659 L589,657 L585,660 L583,658 L586,653 L582,656 L579,655 L579,649 L581,647 L582,648 L582,646 L580,646 L579,643 L577,643 L576,641 L577,640 L579,641 L584,640 L585,643 L589,643 L592,647 L592,649 L588,653 L589,652 L593,652 L596,656 L596,653 L592,649 L594,647 L598,648 L599,649 L598,653 L599,653 L599,647 L604,643 L601,640 L603,637 L604,638 L604,636 L601,635 L601,631 L602,630 L604,631 L606,630 L607,634 L608,633 L608,625 L607,624 L608,621 L607,620 L604,624 L600,620 L596,619 L594,620 L590,620 L589,619 L587,620 L581,620 L580,619 L578,620 L574,619 L565,620 Z M564,647 L568,642 L572,642 L573,643 L567,649 Z M6Line truncated
<path fill="#fcd385" fill-rule="evenodd" d="M1008,777 L1217,777 L1214,776 L1211,777 L1210,776 L1206,777 L1196,777 L1195,776 L1193,777 L1192,776 L1188,777 L1186,776 L1183,777 L1175,777 L1174,776 L1159,776 L1158,777 L1156,776 L1152,776 L1151,777 L1150,776 L1147,777 L1145,776 L1143,777 L1142,776 L1141,777 L1140,776 L1139,777 L1135,777 L1134,776 L1125,776 L1124,777 L1119,777 L1118,776 L1103,776 L1102,777 L1093,777 L1092,776 L1087,776 L1086,777 L1085,776 L1083,777 Z M1002,736 L1030,746 L1033,746 L1037,748 L1057,753 L1062,753 L1073,756 L1096,759 L1081,757 L1080,756 L1073,756 L1068,754 L1063,754 L1041,748 L1037,748 Z M1190,709 L1190,716 L1191,717 L1190,735 L1191,735 L1191,710 Z M891,662 L888,668 L895,674 L891,670 L892,669 L892,667 L890,666 Z"/></svg>

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

+8
View File
@@ -0,0 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="1 10 62 50">
<style>.navy{fill:#0B2E55}@media (prefers-color-scheme:dark){.navy{fill:#F6F2EA}}</style>
<circle cx="50" cy="34" r="9" fill="#F2C27A"/>
<path class="navy" d="M4 34 L28 16 L37 23 L37 18 L42 18 L42 27 L54 36 L49 36 L28 21 L7 37 Z"/>
<g class="navy"><rect x="24.5" y="25" width="3.5" height="3.5" rx=".5"/><rect x="29" y="25" width="3.5" height="3.5" rx=".5"/><rect x="24.5" y="29.5" width="3.5" height="3.5" rx=".5"/><rect x="29" y="29.5" width="3.5" height="3.5" rx=".5"/></g>
<path fill="#0286A2" d="M2 48 C10 40 20 37 28 38 C38 39 46 45 62 44 C54 50 44 51 36 49 C26 46 16 43 2 48 Z"/>
<path fill="#6DBFC2" d="M6 55 C14 50 22 48 30 49.5 C37 51 42 54 50 54.5 C44 57.5 36 57.5 30 56 C22 54 14 52.5 6 55 Z"/>
</svg>

After

Width:  |  Height:  |  Size: 790 B

Loaded 100 of 124 files, more files were not shown because too many files have changed in this diff. Show more