@php $branding = app(\App\Support\Branding::class); // Erzwungene Darstellung aus dem Erscheinungsbild, sonst die Wahl der Person; ?modus= nur für die Vorschau. $theme = $branding->forcedColorMode() ?? (auth()->user()?->theme ?? 'system'); if ($branding->isPreviewing() && in_array(request()->query('modus'), ['hell', 'dunkel'], true)) { $theme = request()->query('modus') === 'dunkel' ? 'dark' : 'light'; } @endphp $theme === 'dark']) data-theme="{{ $theme }}">