/* ========================================
   RIVCA - Modern Clean Design System
   Uses MudBlazor v9 native theming for colors.
   This file only defines custom design tokens
   and component-specific styles.
   ======================================== */

/* === 1. CSS Variables & Design Tokens === */
:root {
    /* MudBlazor 9 gibt nur noch --mud-palette-background-gray (US-Schreibweise) aus.
       Viele Komponenten nutzen historisch -grey (MudBlazor 6 kannte beide).
       Alias, damit Grau-Flächen in Hell UND Dunkel wieder aus dem Theme kommen. */
    --mud-palette-background-grey: var(--mud-palette-background-gray, #E2E8F0);

    /* Primary Colors - driven by MudBlazor theme */
    --color-primary: var(--mud-palette-primary, #06B6D4);
    --color-primary-dark: var(--mud-palette-primary-darken, #0891B2);
    --color-primary-light: var(--mud-palette-primary-lighten, #22D3EE);
    --color-primary-rgb: var(--mud-palette-primary-rgb, 6, 182, 212);

    /* Neutral Colors - Light Mode */
    --color-slate-50: #EDF2F7;
    --color-slate-100: #F1F5F9;
    --color-slate-200: #E2E8F0;
    --color-slate-300: #CBD5E1;
    --color-slate-400: #94A3B8;
    --color-slate-500: #64748B;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1E293B;
    --color-slate-900: #0F172A;

    /* Semantic Colors - driven by MudBlazor theme */
    --color-success: var(--mud-palette-success, #10B981);
    --color-warning: var(--mud-palette-warning, #F59E0B);
    --color-error: var(--mud-palette-error, #EF4444);
    --color-info: var(--mud-palette-info, #3B82F6);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows - Light Mode */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Sidebar width (overridden by UI-scale compact) */
    --rivca-sidebar-width: 250px;

    /* Staff-Nav — Light Mode: helle Sidebar, dunkle Schrift */
    --rivca-nav-bg-start: #EDF2F7;
    --rivca-nav-bg-end: #F1F5F9;
    --rivca-nav-text: #334155;
    --rivca-nav-text-muted: #64748B;
    --rivca-nav-text-strong: #0F172A;
    --rivca-nav-hover: rgba(15, 23, 42, 0.06);
    --rivca-nav-active: rgba(0, 107, 109, 0.12);
    --rivca-nav-active-text: #006B6D;
    --rivca-nav-section-open: rgba(15, 23, 42, 0.04);
    --rivca-nav-border: #E2E8F0;
    --rivca-nav-divider: rgba(15, 23, 42, 0.12);
    --rivca-nav-icon-filter: invert(1) brightness(0.28);
}

/* === Dark Mode: custom design tokens only (NO --mud-palette-* overrides) === */
html.mud-theme-dark {
    --color-primary: var(--mud-palette-primary, #22D3EE);
    --color-primary-dark: var(--mud-palette-primary-darken, #06B6D4);
    --color-primary-light: var(--mud-palette-primary-lighten, #67E8F9);
    --color-primary-rgb: var(--mud-palette-primary-rgb, 34, 211, 238);

    --color-slate-50: #0F172A;
    --color-slate-100: #1E293B;
    --color-slate-200: #334155;
    --color-slate-300: #475569;
    --color-slate-400: #64748B;
    --color-slate-500: #94A3B8;
    --color-slate-600: #CBD5E1;
    --color-slate-700: #E2E8F0;
    --color-slate-800: #F1F5F9;
    --color-slate-900: #F8FAFC;

    --color-success: var(--mud-palette-success, #34D399);
    --color-warning: var(--mud-palette-warning, #FBBF24);
    --color-error: var(--mud-palette-error, #F87171);
    --color-info: var(--mud-palette-info, #60A5FA);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);

    --rivca-nav-bg-start: #0F172A;
    --rivca-nav-bg-end: #0F172A;
    --rivca-nav-text: #E2E8F0;
    --rivca-nav-text-muted: rgba(255, 255, 255, 0.55);
    --rivca-nav-text-strong: #FFFFFF;
    --rivca-nav-hover: rgba(255, 255, 255, 0.08);
    --rivca-nav-active: rgba(34, 211, 238, 0.16);
    --rivca-nav-active-text: #22D3EE;
    --rivca-nav-section-open: rgba(255, 255, 255, 0.04);
    --rivca-nav-border: rgba(255, 255, 255, 0.08);
    --rivca-nav-divider: rgba(255, 255, 255, 0.12);
    --rivca-nav-icon-filter: none;
}

/* === 1b. UI-Skalierung (User-Preference, Cookie rivca-ui-scale) ===
   Kompakt/Ultra = Dichte zuerst (Tabellen, Felder, Padding), Schrift nur leicht kleiner.
   Checkout/Gäste (.page--public-guest) bleiben unberührt. */
html.rivca-scale-ultracompact { font-size: 85%; }
html.rivca-scale-compact { font-size: 90%; }
html.rivca-scale-normal  { font-size: 100%; }
html.rivca-scale-large   { font-size: 112.5%; }

html.rivca-scale-ultracompact {
    --spacing-xs: 0.15rem;
    --spacing-sm: 0.35rem;
    --spacing-md: 0.5rem;
    --spacing-lg: 0.85rem;
    --spacing-xl: 1.1rem;
    --mud-drawer-width-left: 200px;
    --mud-appbar-height: 48px;
    --rivca-sidebar-width: 200px;
    --rivca-density-cell-pad: 4px 8px;
    --rivca-density-input-min: 32px;
    --rivca-density-btn-pad-y: 2px;
    --rivca-density-btn-pad-x: 10px;
    --rivca-density-control-mb: 4px;
    --rivca-density-card-pad: 8px 12px;
    --rivca-density-dialog-pad: 10px 14px;
}

html.rivca-scale-compact {
    --spacing-md: 0.75rem;
    --spacing-lg: 1.25rem;
    --spacing-xl: 1.5rem;
    --mud-drawer-width-left: 220px;
    --mud-appbar-height: 56px;
    --rivca-sidebar-width: 220px;
    --rivca-density-cell-pad: 6px 10px;
    --rivca-density-input-min: 36px;
    --rivca-density-btn-pad-y: 4px;
    --rivca-density-btn-pad-x: 12px;
    --rivca-density-control-mb: 6px;
    --rivca-density-card-pad: 12px 16px;
    --rivca-density-dialog-pad: 12px 16px;
}

html.rivca-scale-normal,
html:not(.rivca-scale-ultracompact):not(.rivca-scale-compact):not(.rivca-scale-large) {
    --rivca-sidebar-width: 250px;
}

html.rivca-scale-large {
    --rivca-sidebar-width: 250px;
}

html.rivca-scale-compact .page:not(.page--public-guest) .mud-table-cell,
html.rivca-scale-ultracompact .page:not(.page--public-guest) .mud-table-cell,
html.rivca-scale-compact .page:not(.page--public-guest) .mud-simple-table th,
html.rivca-scale-compact .page:not(.page--public-guest) .mud-simple-table td,
html.rivca-scale-ultracompact .page:not(.page--public-guest) .mud-simple-table th,
html.rivca-scale-ultracompact .page:not(.page--public-guest) .mud-simple-table td {
    padding: var(--rivca-density-cell-pad) !important;
}

html.rivca-scale-compact .page:not(.page--public-guest) .mud-input-control,
html.rivca-scale-ultracompact .page:not(.page--public-guest) .mud-input-control {
    margin-top: 2px;
    margin-bottom: var(--rivca-density-control-mb);
}

html.rivca-scale-compact .page:not(.page--public-guest) .mud-input .mud-input-slot,
html.rivca-scale-ultracompact .page:not(.page--public-guest) .mud-input .mud-input-slot {
    min-height: var(--rivca-density-input-min);
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

html.rivca-scale-compact .page:not(.page--public-guest) .mud-button:not(.mud-icon-button),
html.rivca-scale-ultracompact .page:not(.page--public-guest) .mud-button:not(.mud-icon-button) {
    padding: var(--rivca-density-btn-pad-y) var(--rivca-density-btn-pad-x);
    min-height: var(--rivca-density-input-min);
}

html.rivca-scale-compact .page:not(.page--public-guest) .mud-icon-button,
html.rivca-scale-ultracompact .page:not(.page--public-guest) .mud-icon-button {
    padding: 6px;
}

html.rivca-scale-ultracompact .page:not(.page--public-guest) .mud-icon-button {
    padding: 4px;
}

html.rivca-scale-compact .page:not(.page--public-guest) .mud-card-content,
html.rivca-scale-ultracompact .page:not(.page--public-guest) .mud-card-content,
html.rivca-scale-compact .page:not(.page--public-guest) .mud-card-header,
html.rivca-scale-ultracompact .page:not(.page--public-guest) .mud-card-header,
html.rivca-scale-compact .page:not(.page--public-guest) .mud-card-actions,
html.rivca-scale-ultracompact .page:not(.page--public-guest) .mud-card-actions {
    padding: var(--rivca-density-card-pad);
}

html.rivca-scale-compact .page:not(.page--public-guest) .mud-dialog .mud-dialog-title,
html.rivca-scale-ultracompact .page:not(.page--public-guest) .mud-dialog .mud-dialog-title,
html.rivca-scale-compact .page:not(.page--public-guest) .mud-dialog .mud-dialog-content,
html.rivca-scale-ultracompact .page:not(.page--public-guest) .mud-dialog .mud-dialog-content,
html.rivca-scale-compact .page:not(.page--public-guest) .mud-dialog .mud-dialog-actions,
html.rivca-scale-ultracompact .page:not(.page--public-guest) .mud-dialog .mud-dialog-actions {
    padding: var(--rivca-density-dialog-pad);
}

html.rivca-scale-compact .page:not(.page--public-guest) .mud-toolbar,
html.rivca-scale-ultracompact .page:not(.page--public-guest) .mud-toolbar {
    min-height: 44px;
    padding-left: 8px;
    padding-right: 8px;
}

html.rivca-scale-ultracompact .page:not(.page--public-guest) .mud-toolbar {
    min-height: 40px;
}

html.rivca-scale-compact .page:not(.page--public-guest) .mud-tab,
html.rivca-scale-ultracompact .page:not(.page--public-guest) .mud-tab {
    min-height: 36px;
    padding: 6px 12px;
}

html.rivca-scale-ultracompact .page:not(.page--public-guest) .mud-tab {
    min-height: 32px;
    padding: 4px 10px;
}

html.rivca-scale-compact .page:not(.page--public-guest) .mud-list-item,
html.rivca-scale-ultracompact .page:not(.page--public-guest) .mud-list-item {
    min-height: 36px;
    padding-top: 4px;
    padding-bottom: 4px;
}

html.rivca-scale-ultracompact .page:not(.page--public-guest) .mud-list-item {
    min-height: 32px;
}

html.rivca-scale-compact .page:not(.page--public-guest) .mud-chip,
html.rivca-scale-ultracompact .page:not(.page--public-guest) .mud-chip {
    height: 24px;
}

html.rivca-scale-ultracompact .page:not(.page--public-guest) .mud-chip {
    height: 22px;
}

html.rivca-scale-compact .page:not(.page--public-guest) .mud-alert,
html.rivca-scale-ultracompact .page:not(.page--public-guest) .mud-alert {
    padding: 6px 12px;
}

html.rivca-scale-compact .page:not(.page--public-guest) .mud-expand-panel-header,
html.rivca-scale-ultracompact .page:not(.page--public-guest) .mud-expand-panel-header {
    min-height: 40px;
    padding: 8px 12px;
}

html.rivca-scale-compact .content,
html.rivca-scale-ultracompact .content {
    padding-top: 1rem;
}

html.rivca-scale-ultracompact .content {
    padding-top: 0.65rem;
}

/* === 2. Typography === */
html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--mud-palette-text-primary, var(--color-slate-900));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.mud-typography-h1 { font-size: 3rem; font-weight: 700; }
.mud-typography-h2 { font-size: 2.25rem; font-weight: 700; }
.mud-typography-h3 { font-size: 1.875rem; font-weight: 600; }
.mud-typography-h4 { font-size: 1.5rem; font-weight: 600; }
.mud-typography-h5 { font-size: 1.25rem; font-weight: 600; }
.mud-typography-h6 { font-size: 1.125rem; font-weight: 500; }

.mud-typography-body1 { font-size: 1rem; line-height: 1.6; }
.mud-typography-body2 { font-size: 0.875rem; line-height: 1.5; }

/* === 3. Buttons (shape/animation only, colors handled by MudBlazor theme) === */
.mud-button-filled-primary {
    transition: all var(--transition-base);
    border-radius: var(--radius-md);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.mud-button-filled-primary:hover {
    transform: translateY(-2px);
}

.mud-button-outlined {
    transition: all var(--transition-base);
    border-radius: var(--radius-md);
    font-weight: 500;
}

.mud-button-text {
    font-weight: 500;
    transition: all var(--transition-base);
}

/* === 4. Cards === */
.mud-paper {
    border-radius: var(--radius-lg);
    transition: all var(--transition-slow);
}

.feature-card {
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-slow);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* === 5. Hero Section === */
.hero-section {
    background: linear-gradient(135deg, var(--color-slate-50) 0%, var(--color-slate-100) 100%);
    padding: 5rem 0;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(var(--color-primary-rgb), 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-weight: 700;
    color: var(--color-slate-900);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: var(--color-slate-600);
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.6;
}

.hero-cta { padding: 0.875rem 2rem; font-size: 1.125rem; }

.hero-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    opacity: 0.9;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(var(--color-primary-rgb), 0.2));
}

.hero-logo:hover {
    opacity: 1;
    transform: scale(1.02);
    filter: drop-shadow(0 8px 24px rgba(var(--color-primary-rgb), 0.3));
}

.hero-logo-lottie {
    aspect-ratio: 2 / 1;
    display: block;
}

.hero-logo-lottie svg {
    width: 100%;
    height: 100%;
    display: block;
}

.login-logo-wrapper {
    display: flex;
    justify-content: center;
    margin: 1rem 0 2rem;
}

.login-logo {
    width: 240px;
    max-width: 80%;
    aspect-ratio: 2 / 1;
    filter: drop-shadow(0 4px 12px rgba(var(--color-primary-rgb), 0.15));
}

.login-logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Kompaktes RIVCA-Logo auf der internen «Aktuell»-Startseite */
.user-home-logo {
    max-width: 168px;
    width: 100%;
    height: auto;
    opacity: 0.92;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(var(--color-primary-rgb), 0.18));
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.user-home-logo:hover {
    opacity: 1;
    transform: scale(1.02);
}

.user-home-logo-lottie {
    aspect-ratio: 2 / 1;
    display: block;
}

.user-home-logo-lottie svg {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 600px) {
    .user-home-header {
        flex-direction: column-reverse;
        align-items: flex-start !important;
    }

    .user-home-logo {
        max-width: 140px;
        align-self: center;
    }
}

/* Auth-Seiten (Login/Register) - Zentrierter, maximal begrenzter Container */
.auth-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.auth-page h1 {
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.auth-page h2 {
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    color: var(--mud-palette-text-secondary, #64748B);
}

.auth-page hr {
    opacity: 0.25;
}

/* Bootstrap form controls im Dark Mode (Identity-Seiten nutzen .form-control / .form-floating,
   nicht MudBlazor-Inputs, daher muessen wir sie hier explizit einfaerben). */
html.mud-theme-dark .form-control,
html.mud-theme-dark .form-select,
html.mud-theme-dark .form-control-plaintext {
    background-color: var(--mud-palette-surface, #1E293B);
    color: var(--mud-palette-text-primary, #F1F5F9);
    border-color: var(--mud-palette-lines-inputs, #334155);
}

html.mud-theme-dark .form-control:focus,
html.mud-theme-dark .form-select:focus {
    background-color: var(--mud-palette-surface, #1E293B);
    color: var(--mud-palette-text-primary, #F1F5F9);
    border-color: var(--color-primary, #22D3EE);
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb, 34, 211, 238), 0.25);
}

html.mud-theme-dark .form-control::placeholder,
html.mud-theme-dark .form-floating > .form-control::placeholder {
    color: var(--mud-palette-text-disabled, #64748B);
}

html.mud-theme-dark .form-floating > label {
    color: var(--mud-palette-text-secondary, #94A3B8);
}

html.mud-theme-dark .form-floating > .form-control:focus ~ label,
html.mud-theme-dark .form-floating > .form-control:not(:placeholder-shown) ~ label,
html.mud-theme-dark .form-floating > .form-select ~ label {
    color: var(--mud-palette-text-secondary, #94A3B8);
    background-color: transparent;
}

/* Autofill-Farben in Chromium ueberschreiben (sonst behaelt Browser weissen Hintergrund) */
html.mud-theme-dark .form-control:-webkit-autofill,
html.mud-theme-dark .form-control:-webkit-autofill:hover,
html.mud-theme-dark .form-control:-webkit-autofill:focus,
html.mud-theme-dark .form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--mud-palette-surface, #1E293B) inset !important;
    -webkit-text-fill-color: var(--mud-palette-text-primary, #F1F5F9) !important;
    caret-color: var(--mud-palette-text-primary, #F1F5F9);
    transition: background-color 5000s ease-in-out 0s;
}

html.mud-theme-dark .form-check-input {
    background-color: var(--mud-palette-surface, #1E293B);
    border-color: var(--mud-palette-lines-inputs, #334155);
}

html.mud-theme-dark .form-check-input:checked {
    background-color: var(--color-primary, #22D3EE);
    border-color: var(--color-primary, #22D3EE);
}

html.mud-theme-dark .form-check-label,
html.mud-theme-dark .auth-page label {
    color: var(--mud-palette-text-primary, #F1F5F9);
}

/* Bootstrap Cards im Dark Mode (z.B. /Account/Manage Profile) */
html.mud-theme-dark .card {
    background-color: var(--mud-palette-surface, #1E293B);
    color: var(--mud-palette-text-primary, #F1F5F9);
    border-color: var(--mud-palette-lines-default, #334155);
}

html.mud-theme-dark .card-header,
html.mud-theme-dark .card-footer {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: var(--mud-palette-lines-default, #334155);
    color: var(--mud-palette-text-primary, #F1F5F9);
}

html.mud-theme-dark .card-title,
html.mud-theme-dark .card-subtitle,
html.mud-theme-dark .card-text {
    color: var(--mud-palette-text-primary, #F1F5F9);
}

/* Outline-Buttons (z.B. "Bild waehlen") im Dark Mode lesbar halten */
html.mud-theme-dark .btn-outline-primary,
html.mud-theme-dark .btn-outline-secondary {
    color: var(--color-primary-light, #67E8F9);
    border-color: var(--color-primary, #22D3EE);
    background-color: transparent;
}

html.mud-theme-dark .btn-outline-primary:hover,
html.mud-theme-dark .btn-outline-secondary:hover {
    background-color: rgba(var(--color-primary-rgb, 34, 211, 238), 0.12);
    color: var(--color-primary-light, #67E8F9);
}

/* List-Group (Identity-Seiten nutzen .list-group fuer Navigation im Profil) */
html.mud-theme-dark .list-group-item {
    background-color: var(--mud-palette-surface, #1E293B);
    color: var(--mud-palette-text-primary, #F1F5F9);
    border-color: var(--mud-palette-lines-default, #334155);
}

html.mud-theme-dark .list-group-item.active {
    background-color: var(--color-primary-dark, #0891B2);
    border-color: var(--color-primary-dark, #0891B2);
    color: #ffffff;
}

html.mud-theme-dark .list-group-item-action:hover,
html.mud-theme-dark .list-group-item-action:focus {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--mud-palette-text-primary, #F1F5F9);
}

/* Tabellen (Identity uses plain <table>) */
/* Canvas-Hintergrund fuer Workflow-Builder und aehnliche "Bastel-Flaechen",
   loest den haesslichen #f5f5f5 inline-style in beiden Themes ab. */
.workflow-canvas {
    background-color: #f5f5f5;
}

html.mud-theme-dark .workflow-canvas {
    background-color: var(--mud-palette-background, #0F172A);
    border: 1px solid var(--mud-palette-lines-default, #334155);
}

html.mud-theme-dark .table {
    color: var(--mud-palette-text-primary, #F1F5F9);
    --bs-table-bg: transparent;
    --bs-table-color: var(--mud-palette-text-primary, #F1F5F9);
    --bs-table-border-color: var(--mud-palette-lines-default, #334155);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
}

@media (max-width: 960px) {
    .hero-logo { max-width: 280px; }
}

/* === 6. Sidebar Navigation === */
.sidebar {
    background: linear-gradient(180deg, var(--rivca-nav-bg-start) 0%, var(--rivca-nav-bg-end) 100%);
    box-shadow: none;
    border-right: 1px solid var(--rivca-nav-border);
}

html.mud-theme-dark .sidebar {
    background: var(--mud-palette-background, #0F172A);
    box-shadow: none;
    border-right: 1px solid var(--rivca-nav-border);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-primary-light);
    text-shadow: 0 0 20px rgba(var(--color-primary-rgb), 0.3);
}

/* Section Headers — einheitlich, ohne Kategorie-Farben */
.nav-section-header {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--rivca-nav-text-muted);
    padding: 0.55rem 0.75rem;
    margin: 0;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 6px;
    background: transparent;
    border-left: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    position: relative;
}

.nav-section-header:hover {
    background-color: var(--rivca-nav-hover);
    color: var(--rivca-nav-text-strong);
}

.nav-section-header.nav-section-active {
    background-color: var(--rivca-nav-active);
    color: var(--rivca-nav-active-text);
}

/* Nav Items — Primary-only, kein translateX, kein Border-Shift */
.nav-item .nav-link {
    color: var(--rivca-nav-text);
    background: none;
    border: none;
    border-radius: 6px;
    box-shadow: none;
    transform: none;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nav-item .nav-link:hover {
    background-color: var(--rivca-nav-hover);
    color: var(--rivca-nav-text-strong);
    transform: none;
    box-shadow: none;
}

.nav-item a.active,
.nav-item .nav-link.active {
    background-color: var(--rivca-nav-active);
    box-shadow: none;
    color: var(--rivca-nav-active-text);
    font-weight: 600;
    transform: none;
}

/* Entity Badges — ausgeblendet (technische Namen, Zwei-Zeilen-Shift) */
.entity-badge-small {
    display: none !important;
}

/* Separator */
.nav-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--rivca-nav-divider), transparent);
    margin: 0.75rem 0.6rem;
}

/* Collapsible Navigation */
.nav-section-collapsible { margin: 0.2rem 0.45rem; }

.nav-scrollable .bi[class*="-nav-menu"] {
    filter: var(--rivca-nav-icon-filter);
}

.collapse-icon {
    font-size: 0.7rem;
    margin-left: auto;
    transition: transform var(--transition-base);
    color: var(--rivca-nav-text-muted);
}

.collapse-icon.expanded { transform: rotate(-180deg); }

/* Top Row */
.top-row {
    background-color: var(--mud-palette-surface, white);
    border-bottom: 1px solid var(--color-slate-200);
    box-shadow: var(--shadow-sm);
}

/* === 7. Stepper === */
.mud-stepper {
    border-radius: var(--radius-lg);
}

.mud-step-label { font-weight: 500; }
.mud-step-label-active { font-weight: 600; }

/* === 8. Forms & Inputs === */
.mud-input {
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.mud-input:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

/* === 9. Tables === */
.mud-table {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* MudTable Striped - im Dark Mode waren die abwechselnden Zeilen zu hell,
   weil MudBlazor --mud-palette-table-striped auf einen zu hellen Wert setzt.
   Wir zwingen die Palette-Variable global im Dark Mode auf einen subtilen
   schwarzen Overlay und ueberschreiben zusaetzlich die Zeilenregeln explizit. */
html.mud-theme-dark {
    --mud-palette-table-striped: rgba(0, 0, 0, 0.25);
    --mud-palette-table-hover: rgba(255, 255, 255, 0.04);
}

html.mud-theme-dark .mud-table-root.mud-table-striped tbody .mud-table-row:nth-of-type(odd),
html.mud-theme-dark .mud-table.mud-table-striped tbody tr:nth-of-type(odd),
html.mud-theme-dark .mud-table-striped tbody .mud-table-row:nth-of-type(odd),
html.mud-theme-dark .mud-table-root.mud-table-striped tbody .mud-table-row:nth-of-type(even),
html.mud-theme-dark .mud-table.mud-table-striped tbody tr:nth-of-type(even),
html.mud-theme-dark .mud-table-striped tbody .mud-table-row:nth-of-type(even) {
    background-color: transparent !important;
}

html.mud-theme-dark .mud-table-root.mud-table-striped tbody .mud-table-row:nth-of-type(odd),
html.mud-theme-dark .mud-table.mud-table-striped tbody tr:nth-of-type(odd),
html.mud-theme-dark .mud-table-striped tbody .mud-table-row:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.25) !important;
}

html.mud-theme-dark .mud-table.mud-table-hover tbody .mud-table-row:hover,
html.mud-theme-dark .mud-table-root.mud-table-hover tbody tr.mud-table-row:hover {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

/* Partner bearbeiten: Chrome = Surface (Kopf + Tab-Leiste); darunter Seitenhintergrund; Inhalt hell via MudPaper */
.partner-edit-top-chrome .mud-tabs-toolbar,
.partner-edit-top-chrome .mud-tabs-toolbar-wrapper {
    background-color: transparent;
}

/* Entity detail pages: einheitlicher Kopfbereich mit Titel + Aktionen (Workspace, Verlauf, Zur Liste).
   Sticky bei vertikalem und horizontalem Scroll in main (z. B. breite Edit-Formulare / viele Tabs). */
.entity-detail-chrome {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 50;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--mud-palette-surface, #fff);
    /* Dünne Kante unten: trennt Chrome vom scrollenden Seiteninhalt (vermeidet Weiß-auf-Weiß) */
    border-bottom: 1px solid var(--mud-palette-divider, #E2E8F0);
    box-shadow: 0 1px 3px -1px rgba(15, 23, 42, 0.08);
}

html.mud-theme-dark .entity-detail-chrome {
    box-shadow: 0 1px 3px -1px rgba(0, 0, 0, 0.35);
}

.entity-detail-chrome__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 12px;
    padding: 8px 16px 4px;
    position: relative;
    z-index: 2;
}

.entity-detail-chrome__title {
    flex: 1 1 12rem;
    min-width: 0;
    margin-right: auto;
}

.entity-detail-chrome__title-stack {
    min-width: 0;
    max-width: 100%;
}

.entity-detail-chrome__title-icon {
    flex-shrink: 0;
}

.entity-detail-chrome__title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.entity-detail-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 1 auto;
    max-width: 100%;
}

.entity-detail-header-actions__badge-wrap {
    display: inline-flex;
    overflow: visible;
    padding-top: 4px;
    padding-right: 4px;
    line-height: 0;
}

.entity-detail-header-actions__badge {
    overflow: visible;
}

.entity-detail-header-actions__back {
    flex-shrink: 0;
}

.entity-detail-chrome .mud-tabs-toolbar {
    position: relative;
    z-index: 1;
}

.entity-detail-chrome__groups {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4px;
    padding: 0 8px;
    overflow: visible;
    min-height: 40px;
}

.tsd-nav-groups-desktop {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4px;
    width: 100%;
}

.tsd-nav-groups-mobile {
    display: none;
    width: 100%;
}

.entity-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    margin: 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--mud-palette-text-secondary);
    padding: 8px 10px;
    cursor: pointer;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
}

.entity-nav-item--active {
    border-bottom-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary);
}

.entity-nav-item:hover {
    color: var(--mud-palette-primary);
}

.entity-nav-item__label--short {
    display: none;
}

.tsd-nav-mobile-heading {
    padding: 10px 16px 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
}

@media (max-width: 959.98px) {
    .entity-nav-item {
        flex: 1 1 0;
        justify-content: center;
        min-height: 44px;
        padding: 10px 4px;
    }

    .entity-nav-item__current {
        display: none;
    }

    .entity-nav-bar--direct .entity-nav-item__label--full {
        display: none;
    }

    .entity-nav-bar--direct .entity-nav-item__label--short {
        display: inline;
    }
}

@media (max-width: 640.98px) {
    .entity-detail-chrome__header {
        flex-wrap: wrap;
        gap: 6px;
        padding: 6px 8px 2px;
    }

    .entity-detail-header-actions {
        flex-wrap: wrap;
        gap: 4px;
    }

    .entity-detail-chrome__groups {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .entity-detail-header-actions__back .mud-button-label {
        display: none;
    }

    .entity-detail-header-actions__back {
        min-width: 36px !important;
        padding-left: 8px;
        padding-right: 8px;
    }

    .tsd-nav-groups-desktop {
        display: none;
    }

    .tsd-nav-groups-mobile {
        display: block;
    }

    .tsd-nav-groups-mobile .mud-menu {
        display: block;
        width: 100%;
    }

    .tsd-nav-mobile {
        width: 100%;
        justify-content: flex-start;
        min-height: 44px;
        padding: 10px 12px;
    }

    .tsd-nav-mobile__label {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
    }

    .entity-nav-bar--direct .entity-nav-item__label,
    .entity-nav-bar--direct .entity-nav-item__label--full,
    .entity-nav-bar--direct .entity-nav-item__label--short {
        display: none;
    }
}

.partner-edit-top-chrome .mud-tabs-panels {
    background-color: var(--mud-palette-background, var(--color-slate-50));
}

/* Volle Breite: kein max-width auf den Panels (sonst weisse Streifen links/rechts zur Surface-Chrome).
   Breitenbegrenzung bleibt pro Tab im MudContainer. */
.partner-edit-tab-panels {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

/* Ehemals MudTabs Class="px-2" auf ganzer Komponente — würde in der grauen Panel-Zone weisse Seitenränder erzeugen */
.partner-edit-page-tabs.mud-tabs {
    padding-left: 0;
    padding-right: 0;
}

.partner-edit-page-tabs .mud-tabs-toolbar-wrapper {
    padding-left: 16px;
    padding-right: 16px;
}

/* Partner bearbeiten / Tab Ressourcen: Kapazitätseinheiten mit Hochstellung (m², m³, …)
   — dichtes Layout + globales .mud-table { overflow: hidden } clippt sonst die Oberkante */
.partner-edit-resources-table.mud-table {
    overflow: visible;
}
.partner-edit-resources-table .mud-table-cell {
    overflow: visible;
    line-height: 1.45;
    padding-top: 10px;
    padding-bottom: 10px;
    vertical-align: middle;
}

/* BaseTrips-Liste (/base-trips): gleiche Zeilenhoehe */
.base-trips-index-table .mud-table-root tbody .mud-table-row,
.base-trips-index-table tbody tr.mud-table-row {
    height: 4rem;
}
.base-trips-index-table .mud-table-cell {
    vertical-align: middle;
    max-height: 4rem;
    overflow: hidden;
}
.base-trips-index-table .mud-table-cell:last-child {
    overflow: visible;
}
.base-trips-index-name-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.125rem;
    min-width: 0;
    min-height: 2.5rem;
}
.base-trips-index-name-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

/* Tabellen-Desktop (>=960px, MudTable-Karten darunter): Namensspalte begrenzen — 14"-Laptop, kein Mini-H-Scroll */
@media (min-width: 960px) and (max-width: 1919.98px) {
    .base-trips-index-table .base-trips-name-col {
        max-width: clamp(9rem, 17vw, 13.5rem);
        box-sizing: border-box;
    }

    .trip-start-dates-index-table th:nth-child(2),
    .trip-start-dates-index-table td:nth-child(2),
    .trip-start-dates-index-table .trip-start-dates-trip-col {
        width: 16.5rem;
        min-width: 16.5rem;
        max-width: 16.5rem;
        box-sizing: border-box;
    }
}

@media (min-width: 1920px) {
    .base-trips-index-table .base-trips-name-col {
        max-width: min(36rem, 28vw);
    }

    .trip-start-dates-index-table th:nth-child(2),
    .trip-start-dates-index-table td:nth-child(2),
    .trip-start-dates-index-table .trip-start-dates-trip-col {
        width: 18rem;
        min-width: 18rem;
        max-width: 18rem;
    }
}
.base-trips-index-desc {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
}
.pressmind-locale-chips-scroll-x {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
}

/* Pressmind Inline-Summary (Regionen als Text, eine Zeile, Ellipsis) */
.pressmind-locales-inline-summary {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--mud-palette-text-secondary, var(--color-slate-600));
    cursor: default;
}

/* Pressmind-Sprachen: schmale Tabellenspalte (Listen, z. B. BaseTrips / BaseExcursions) */
.pressmind-locales-col {
    max-width: 6.75rem;
    box-sizing: border-box;
    vertical-align: middle;
}

@media (min-width: 1400px) {
    .pressmind-locales-col {
        max-width: 8.25rem;
    }
}

.pressmind-locales-col .pressmind-locale-chips-scroll-x {
    max-width: 100%;
}

/* Filter-Toolbars (z. B. /base-trips, /trip-start-dates): kein Page-Overflow durch min-width */
.toolbar-filter-field {
    flex: 1 1 160px;
    min-width: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
}

.toolbar-filter-field--search {
    flex: 2 1 220px;
}

.toolbar-filter-meta {
    align-self: center;
}

@media (max-width: 960px) {
    .toolbar-filter-field {
        flex-basis: 100%;
        width: 100%;
    }

    .toolbar-filter-field--search {
        flex-basis: 100%;
    }
}

/* Breite Tabellen: horizontal nur innerhalb dieses Bereichs scrollen */
.table-scroll-x {
    overflow-x: auto;
    max-width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
}

/* Listen-Seiten: Flex-/Grid-Child darf schrumpfen (verhindert Seiten-Scroll) */
.rivca-list-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* === Listen im Vollbreite-Modus (Pilot: BaseTrips) ===
   MudContainer ohne MaxWidth + kompakte Kommandoleiste statt Titelblock. */
.rivca-list-page--wide.mud-container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

article.content:has(.rivca-list-page--wide) {
    padding-top: 0.5rem;
    /* Hellmodus: Surface (weiß) — Seite und Tabelle eine Fläche, kein Graurand. */
    background-color: var(--mud-palette-surface, #fff);
}

html.mud-theme-dark .page,
html.mud-theme-dark main,
html.mud-theme-dark article.content,
html.mud-theme-dark article.content:has(.rivca-list-page--wide) {
    /* Eine durchgehende dunkle Fläche wie die Sidebar — kein heller Mittelstreifen. */
    background-color: var(--mud-palette-background, #0F172A);
}

html.mud-theme-dark .rivca-list-page--wide .rivca-cmdbar.mud-paper,
html.mud-theme-dark .rivca-list-page--wide .mud-table,
html.mud-theme-dark .rivca-list-page--wide .mud-table-container,
html.mud-theme-dark .rivca-list-page--wide .mud-table-root,
html.mud-theme-dark .rivca-list-page--wide .mud-table-head,
html.mud-theme-dark .rivca-list-page--wide .mud-table-body,
html.mud-theme-dark .rivca-list-page--wide .mud-table-pagination {
    background-color: var(--mud-palette-background, #0F172A);
}

@media (min-width: 641px) {
    article.content:has(.rivca-list-page--wide) {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Kommandoleiste: Titel-Label, Info-Tooltip, Meta und Aktionen in einer Zeile */
.rivca-cmdbar__title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    align-self: center;
    min-width: 0;
    padding-right: 0.25rem;
}

.rivca-cmdbar__title-text {
    white-space: nowrap;
    font-weight: 600;
}

.rivca-cmdbar__info {
    display: block;
    cursor: help;
    opacity: 0.55;
}

.rivca-cmdbar__meta {
    align-self: center;
    white-space: nowrap;
}

.rivca-cmdbar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    align-self: center;
    margin-left: 0.25rem;
}

.rivca-cmdbar__extra {
    width: 100%;
    padding-top: 0.15rem;
}

.rivca-cmdbar__extra-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--mud-palette-text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Tabelle füllt die Resthöhe des Viewports: Kopfzeile sticky (FixedHeader),
   Pager klebt unten, gescrollt wird nur innerhalb der Tabelle. */
article.content:has(.rivca-table-fill) {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

article.content:has(.rivca-table-fill) .rivca-list-page--wide {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.rivca-table-fill {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Wrapper (z. B. MudStack in PartnerExcursionCockpitTable) muss die Höhe weitergeben. */
.rivca-table-fill > .mud-stack,
.rivca-table-fill > .rivca-table-fill__host {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.rivca-table-fill > .mud-table,
.rivca-table-fill .rivca-table-fill__table {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.rivca-table-fill > .mud-table .mud-table-container,
.rivca-table-fill .rivca-table-fill__table .mud-table-container {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

/* Pager als erkennbare Fußzeile auf der einheitlichen Fläche */
.rivca-table-fill > .mud-table .mud-table-pagination,
.rivca-table-fill .rivca-table-fill__table .mud-table-pagination {
    border-top: 1px solid var(--mud-palette-divider, var(--color-slate-200));
}

/* Reisetermine: Namensspalte ~2 Zeilen für lange Titel, ohne unnötige Breite */
.trip-start-dates-index-table .trip-start-dates-trip-col {
    width: 16.5rem;
    min-width: 16.5rem;
    max-width: 16.5rem;
    box-sizing: border-box;
    vertical-align: top;
}

.trip-start-dates-index-table .trip-start-dates-trip-col .mud-tooltip-root,
.trip-start-dates-index-table .trip-start-dates-trip-col > span {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.trip-start-dates-trip-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    line-height: 1.25;
    min-width: 0;
    max-width: 100%;
}

.trip-start-dates-shared-hint {
    display: block;
    margin-top: 0.125rem;
    white-space: normal;
}

/* BaseTrips: Beschreibung in der Liste auf schmalen Viewports ausblenden */
@media (max-width: 959.98px) {
    .base-trips-index-desc {
        display: none !important;
    }
}

/* Spaltenbreite steuert der Spalten-Picker, nicht feste nth-child-Positionen. */
.pressmind-locale-chips-row-single {
    flex-wrap: nowrap !important;
}

@media (max-width: 599.98px) {
    .base-trips-index-table .mud-table-root tbody .mud-table-row,
    .base-trips-index-table tbody tr.mud-table-row {
        height: auto;
        min-height: 3rem;
    }
    .base-trips-index-table .mud-table-cell {
        max-height: none;
        overflow: visible;
    }
}

/* === 10. Utility Classes === */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hover-lift { transition: transform var(--transition-base); }
.hover-lift:hover { transform: translateY(-4px); }

/* === 11. Responsive === */
@media (max-width: 960px) {
    .hero-section { padding: 3rem 0; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
}

/* === 12. Animations === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.5s ease-out; }

/* === 13. Content Area === */
.content {
    padding-top: 2rem;
    background-color: var(--mud-palette-background, var(--color-slate-50));
    min-height: calc(100vh - 3.5rem);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* === 14. MudBlazor shape overrides === */
.mud-paper-outlined { border-color: var(--color-slate-200); }
.mud-chip-filled { border-radius: var(--radius-md); }
.mud-dialog { border-radius: var(--radius-lg); }
.mud-snackbar { border-radius: var(--radius-md); }

@media (max-width: 600px) {
    .mud-dialog-container .mud-dialog {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        overflow-y: hidden;
    }

    .mud-dialog-container .mud-dialog .mud-dialog-content {
        overflow-y: auto;
    }

    /* Ausflugskarte: nicht strecken — Abstand oben/unten, Höhe nach Inhalt */
    .mud-dialog-container .mud-dialog.booked-excursion-card-dialog,
    .mud-dialog-container .mud-dialog:has(.card-travel-checkout--dialog) {
        width: calc(100% - 1.5rem) !important;
        height: auto !important;
        max-height: calc(100dvh - 2.5rem) !important;
        margin: 1.25rem 0.75rem !important;
        border-radius: 0 0 0 1.25rem !important;
        overflow-y: auto;
        background: transparent !important;
    }

    .card-travel-checkout--dialog {
        max-width: none;
        width: 100%;
        height: auto;
    }

    .booked-excursion-card-dialog .mud-dialog-content,
    .mud-dialog:has(.card-travel-checkout--dialog) .mud-dialog-content {
        overflow: visible;
        height: auto;
    }
}

/* === 15. Activity Drawer (viewport-festes Panel, kein MudDrawer) ===
   MudDrawer Temporary ignoriert Fixed ausserhalb von MudLayout und wird vom
   main-Scroll mitgenommen -> verquetschtes Fenster oben rechts nach Scroll.
   Deshalb eigenes position:fixed Panel (analog WorkspaceOverlay). */
.activity-drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(500px, 100vw);
    z-index: 1405;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(15, 23, 42, 0.18);
    animation: activity-drawer-slide-in 180ms cubic-bezier(.2, .8, .2, 1);
}

@keyframes activity-drawer-slide-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .activity-drawer-panel {
        animation: none;
    }
}

.activity-drawer-scroll {
    display: flex !important;
    flex-direction: column !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    overscroll-behavior: contain !important;
    background-color: var(--mud-palette-background, #F8FAFC);
}

.activity-drawer-panel__header,
.activity-drawer-scroll .mud-drawer-header {
    flex: 0 0 auto;
    padding: 12px 16px;
    background-color: var(--mud-palette-surface, #FFFFFF);
    border-bottom: 1px solid var(--mud-palette-divider, #E2E8F0);
}

.activity-drawer-scroll .activity-drawer-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-bottom: 2rem;
    background-color: var(--mud-palette-background-gray, #F1F5F9);
}

.activity-drawer-scroll .mud-input-slot.mud-input-root-outlined,
.activity-drawer-scroll .mud-input-outlined .mud-input-slot {
    background-color: var(--mud-palette-surface, #FFFFFF);
}

/* Fix: Rechter Temporary-Drawer (andere Stellen, z.B. YearOverview) darf im
   closed-State weder als "Geist" sichtbar werden noch leeren Layout-Platz
   belegen. MudBlazor 9.x: .mud-drawer-pos-right und .mud-drawer--open. */
.mud-drawer.mud-drawer-temporary.mud-drawer-pos-right,
.mud-drawer.mud-drawer-temporary.mud-drawer-right {
    transition-property: transform, visibility, width, min-width, max-width, box-shadow;
    transition-duration: .225s, 0s, 0s, 0s, 0s, .225s;
    transition-delay: 0s, 0s, 0s, 0s, 0s, 0s;
}

.mud-drawer.mud-drawer-temporary.mud-drawer-pos-right:not(.mud-drawer--open),
.mud-drawer.mud-drawer-temporary.mud-drawer-right:not(.mud-drawer--open) {
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    transition-delay: 0s, .225s, .225s, .225s, .225s, 0s;
}

/* Temporary Drawer ausserhalb MudLayout: Fixed erzwingen (sonst Scroll-Mitnahme). */
.mud-drawer.mud-drawer-temporary.mud-drawer-pos-right.mud-drawer--open,
.mud-drawer.mud-drawer-temporary.mud-drawer-right.mud-drawer--open {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    z-index: 1400 !important;
}

/* Hide "Theme Presets" section in MudThemeManager (not implemented upstream) */
.mud-drawer-right .mud-navmenu > .mud-nav-group:first-child {
    display: none !important;
}

/* === 11. Booking Suite Design Tokens & Components === */
:root {
    --booking-hero-overlay: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.7) 100%);
    --booking-card-radius: 16px;
    --booking-card-hover-shadow: 0 12px 32px -8px rgba(6, 182, 212, 0.18);
    --booking-card-selected-ring: 0 0 0 3px var(--color-primary);
    --booking-cta-shadow: 0 8px 16px -4px rgba(6, 182, 212, 0.32);
    --motion-card-hover: transform 200ms cubic-bezier(.2, .8, .2, 1), box-shadow 200ms;
    --motion-spring: 320ms cubic-bezier(.34, 1.56, .64, 1);
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --motion-card-hover: none;
        --motion-spring: 0ms;
    }
}

html.mud-theme-dark {
    --booking-hero-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.78) 100%);
    --booking-card-hover-shadow: 0 12px 32px -8px rgba(34, 211, 238, 0.28);
}

/* Payment Choice Cards */
.payment-choice {
    border-radius: var(--booking-card-radius);
    background: var(--mud-palette-surface, var(--color-slate-50));
}

.payment-choice__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-md);
}

.payment-choice__card {
    appearance: none;
    border: 1px solid var(--mud-palette-divider, var(--color-slate-200));
    background: var(--mud-palette-surface, #fff);
    color: inherit;
    border-radius: var(--booking-card-radius);
    padding: var(--spacing-lg);
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    transition: var(--motion-card-hover);
    position: relative;
    min-height: 120px;
}

.payment-choice__card:hover {
    transform: translateY(-2px);
    box-shadow: var(--booking-card-hover-shadow);
    border-color: var(--color-primary);
}

.payment-choice__card--disabled,
.payment-choice__card--disabled:hover {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
    border-color: var(--mud-palette-divider, var(--color-slate-200));
}

.payment-choice__card--disabled:focus-visible {
    outline: none;
}

.payment-choice__card:focus-visible {
    outline: none;
    box-shadow: var(--booking-card-selected-ring), var(--booking-card-hover-shadow);
}

.payment-choice__card--selected {
    border-color: var(--color-primary);
    box-shadow: var(--booking-card-selected-ring);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.04) 0%, rgba(6, 182, 212, 0.08) 100%);
}

.payment-choice__card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1rem;
    font-weight: 700;
}

.payment-choice__check {
    margin-left: auto;
}

.payment-choice__title {
    font-weight: 700;
}

.payment-choice__logos {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-xs);
}

.payment-choice__logo {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--color-slate-100);
    color: var(--color-slate-700);
    letter-spacing: 0.02em;
}

html.mud-theme-dark .payment-choice__logo {
    background: rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
}

.payment-choice__hint {
    font-size: 0.85rem;
    color: var(--color-slate-500);
}

html.mud-theme-dark .payment-choice__hint {
    color: #cbd5e1;
}

/* Booking trust bar */
.booking-trust-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--mud-palette-surface, #fff);
    border-radius: var(--radius-lg);
    border: 1px solid var(--mud-palette-divider, var(--color-slate-200));
    font-size: 0.875rem;
    color: var(--color-slate-600);
}

.booking-trust-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

html.mud-theme-dark .booking-trust-bar {
    color: var(--color-slate-200);
}

/* Booking Hero */
.booking-hero {
    position: relative;
    width: 100%;
    min-height: 320px;
    border-radius: var(--booking-card-radius);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    color: #fff;
    background: linear-gradient(135deg, var(--color-slate-700), var(--color-slate-900));
}

.booking-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    z-index: 0;
    image-rendering: auto;
    /* smooth fade-in once loaded to avoid "blurry placeholder" perception */
    opacity: 0;
    animation: hero-image-fadein 0.4s ease-out 0.1s forwards;
}

@keyframes hero-image-fadein {
    to { opacity: 1; }
}

.booking-hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--booking-hero-overlay);
    z-index: 1;
}

.booking-hero__content {
    position: relative;
    z-index: 2;
    padding: var(--spacing-xl);
    width: 100%;
}

.booking-hero__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.booking-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.booking-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-bottom: var(--spacing-sm);
    padding: 0.3rem 0.75rem;
    border-radius: 0.45rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}

.booking-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.45rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.booking-hero__chip .mud-icon-root {
    font-size: 1rem;
    opacity: 0.95;
}

.booking-hero__chip--status {
    border-color: transparent;
    font-weight: 700;
}

@media (max-width: 600px) {
    .booking-hero {
        min-height: 220px;
    }
    .booking-hero__content {
        padding: var(--spacing-md);
    }
}

/* ── Checkout Layout (no sidebar) ─────────────────────────────────────── */
.checkout-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--mud-palette-background, #EDF2F7);
    overflow-x: clip;
}

.checkout-layout__main {
    flex: 1;
    width: 100%;
    max-width: 100%;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Checkout chrome (shared header on CheckoutLayout) */
.checkout-header {
    border-bottom: 1px solid var(--mud-palette-divider, var(--color-slate-200));
    background: var(--mud-palette-surface, #fff);
    padding: var(--spacing-sm) var(--spacing-md);
}

.checkout-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.checkout-header__brand {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: inherit;
}

.checkout-header__logo {
    height: 32px;
    width: auto;
    display: block;
}

.checkout-header__brand-text {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    color: var(--mud-palette-text-primary, var(--color-slate-900));
}

.checkout-header__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-md);
}

.checkout-header__link {
    color: var(--mud-palette-text-secondary, var(--color-slate-600));
    font-size: 0.875rem;
    line-height: 1.43;
    text-decoration: none;
}

.checkout-header__link:hover {
    text-decoration: underline;
}

html.mud-theme-dark .checkout-header {
    background: var(--mud-palette-surface, var(--color-slate-900));
}

.checkout-header__theme-toggle {
    flex-shrink: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--mud-palette-text-primary, #0f172a);
}

.checkout-header__theme-toggle > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.checkout-header__theme-toggle svg,
.checkout-header__theme-toggle .mud-icon-root {
    color: inherit !important;
    fill: currentColor !important;
}

.checkout-header__theme-toggle:hover {
    background: color-mix(in srgb, currentColor 8%, transparent);
}

.checkout-header__theme-toggle:focus-visible {
    outline: 2px solid var(--mud-palette-primary, #06b6d4);
    outline-offset: 2px;
}

html.mud-theme-dark .checkout-header__theme-toggle {
    color: var(--mud-palette-text-primary, #f8fafc);
}

/* ── Sticky Bottom-Sheet Pricing Summary (Mobile) ─────────────────────── */
.booking-sticky-summary-mobile {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--mud-palette-surface, #fff);
    border-top: 1px solid var(--mud-palette-divider, var(--color-slate-200));
    padding: var(--spacing-md);
    box-shadow: 0 -8px 24px -8px rgba(15, 23, 42, 0.18);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
}

.booking-sticky-summary-mobile__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-md);
}

html.mud-theme-dark .booking-sticky-summary-mobile {
    background: var(--mud-palette-surface, var(--color-slate-900));
}

/* MudStepper: CD Nachbuchung – action row on narrow tablets */
@media (max-width: 600px) {
    .cd-rebook-stepper .mud-stepper-actions {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .cd-rebook-stepper .mud-stepper-actions .mud-stack {
        width: 100%;
    }
}

/* Eigene Checkout-Tab-Leiste ersetzt die MudStepper-Navigation */
.excursion-booking-stepper .mud-stepper-nav {
    display: none !important;
}

@media (max-width: 767.98px) {
    .excursion-booking-stepper .mud-stepper-content {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Mobile step progress (replaces hidden MudStepper header) */
.excursion-booking-mobile-steps {
    margin-bottom: 1rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg, 0.75rem);
    background: var(--mud-palette-surface, #fff);
    border: 1px solid var(--mud-palette-divider, var(--color-slate-200));
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.08));
}

.excursion-booking-mobile-steps__counter {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mud-palette-primary);
}

.excursion-booking-mobile-steps__current {
    margin: 0.25rem 0 0.875rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--mud-palette-text-primary);
}

.excursion-booking-mobile-steps__track {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.excursion-booking-mobile-steps__step {
    display: flex;
    align-items: center;
    flex: 1 1 0;
}

.excursion-booking-mobile-steps__step:last-child {
    flex: 0 0 auto;
}

.excursion-booking-mobile-steps__bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid var(--mud-palette-divider, var(--color-slate-300));
    color: var(--mud-palette-text-secondary);
    background: var(--mud-palette-background-gray, var(--color-slate-50));
}

.excursion-booking-mobile-steps__step--active .excursion-booking-mobile-steps__bubble {
    border-color: var(--mud-palette-primary);
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text, #fff);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb, 29, 76, 112), 0.18);
}

.excursion-booking-mobile-steps__step--done .excursion-booking-mobile-steps__bubble {
    border-color: var(--mud-palette-success);
    background: var(--mud-palette-success);
    color: #fff;
}

.excursion-booking-mobile-steps__label {
    display: none;
    margin-left: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--mud-palette-text-secondary);
}

.excursion-booking-mobile-steps__step--active .excursion-booking-mobile-steps__label {
    color: var(--mud-palette-text-primary);
}

.excursion-booking-mobile-steps__step--clickable {
    cursor: pointer;
}

.excursion-booking-mobile-steps__step--clickable .excursion-booking-mobile-steps__bubble:hover {
    filter: brightness(1.08);
}

@media (min-width: 960px) {
    .excursion-booking-mobile-steps__counter,
    .excursion-booking-mobile-steps__current {
        display: none;
    }

    .excursion-booking-mobile-steps__label {
        display: inline;
    }

    .excursion-booking-mobile-steps__track {
        margin-top: 0;
    }
}

.excursion-booking-mobile-steps__connector {
    flex: 1 1 auto;
    height: 2px;
    margin: 0 0.25rem;
    border-radius: 1px;
    background: var(--mud-palette-divider, var(--color-slate-200));
}

.excursion-booking-mobile-steps__connector--done {
    background: var(--mud-palette-success);
}

html.mud-theme-dark .excursion-booking-mobile-steps {
    background: var(--mud-palette-surface);
    border-color: var(--mud-palette-divider);
}

html.mud-theme-dark .excursion-booking-mobile-steps__bubble {
    background: var(--mud-palette-background-gray);
}

.checkout-custom .excursion-booking-mobile-steps__current {
    font-family: var(--cc-heading-font, inherit);
}

.checkout-custom .excursion-booking-mobile-steps__counter {
    color: var(--cc-primary, var(--mud-palette-primary));
}

.checkout-custom .excursion-booking-mobile-steps__step--active .excursion-booking-mobile-steps__bubble {
    background: var(--cc-primary, var(--mud-palette-primary));
    border-color: var(--cc-primary, var(--mud-palette-primary));
}

.checkout-custom .excursion-booking-mobile-steps__step--active .excursion-booking-mobile-steps__label {
    color: var(--cc-primary, var(--mud-palette-primary));
}

/* Confirmation table: stacked rows on small screens */
@media (max-width: 600px) {
    .excursion-booking-mobile-summary-table thead {
        display: none;
    }

    .excursion-booking-mobile-summary-table tbody tr {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
        padding: var(--spacing-sm) 0;
        border-bottom: 1px solid var(--mud-palette-divider, var(--color-slate-200));
    }

    .excursion-booking-mobile-summary-table tbody td {
        text-align: left !important;
        padding: 2px 0 !important;
    }

    .excursion-booking-mobile-summary-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.72rem;
        font-weight: 600;
        color: var(--mud-palette-text-secondary, var(--color-slate-500));
        margin-bottom: 2px;
    }
}

/* Stepper: Zurück / Weiter deutlicher */
.excursion-booking-stepper__actions {
    border-top: 1px solid var(--mud-palette-divider, var(--color-slate-200));
    background: var(--mud-palette-surface, #fff);
    border-radius: var(--radius-lg, 0.75rem);
    gap: 0.75rem;
    flex-wrap: wrap;
}

.excursion-booking-stepper__actions .mud-button-root {
    min-width: 8.5rem;
    font-weight: 700;
    text-transform: none;
}

@media (max-width: 600px) {
    .excursion-booking-stepper__actions .mud-button-root {
        flex: 1 1 auto;
    }
}

/* Bestätigung Schritt 4: Desktop-Tabelle etwas grösser */
.excursion-booking-summary-table.mud-table,
.excursion-booking-summary-table table {
    font-size: 1rem;
}

.excursion-booking-summary-table th,
.excursion-booking-summary-table td {
    font-size: 1rem;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.excursion-booking-summary-table th {
    font-weight: 700;
}

/* Bestätigung Schritt 4: Mobile-Kartenliste */
.excursion-booking-summary-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.excursion-booking-summary-item {
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--mud-palette-divider, var(--color-slate-200));
    border-radius: var(--radius-lg, 0.75rem);
    background: var(--mud-palette-surface, #fff);
    min-width: 0;
}

.excursion-booking-summary-item__name {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--mud-palette-text-primary);
    overflow-wrap: anywhere;
}

.excursion-booking-summary-item__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.excursion-booking-summary-item__price {
    display: block;
    margin: 0.4rem 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
    color: var(--mud-palette-primary);
}

@media (max-width: 767.98px) {
    .excursion-booking-confirm.mud-paper {
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .excursion-booking-confirm > .mud-typography-h5 {
        padding: 0 0.15rem;
        margin-bottom: 0.75rem !important;
    }

    .excursion-booking-confirm__section.mud-paper,
    .excursion-booking-confirm .excursion-booking-confirm__section {
        padding: 0.875rem 1rem !important;
        margin-bottom: 0.75rem !important;
    }

    .excursion-booking-confirm,
    .excursion-booking-confirm__section,
    .excursion-booking-confirm .mud-typography-body1,
    .excursion-booking-confirm .mud-typography-body2 {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .excursion-booking-confirm__price-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.25rem;
    }

    .excursion-booking-confirm__price-row .excursion-booking-summary-item__price {
        margin-top: 0.15rem;
        text-align: left;
    }

    .excursion-booking-promo.mud-paper {
        padding: 0.875rem 1rem !important;
    }

    .excursion-booking-promo__row {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .excursion-booking-promo__row .mud-button-root {
        width: 100%;
        min-height: 2.75rem;
    }
}

/* === Excursion booking: package carousel (card-travel style) ============= */

.excursion-package-slider-bleed {
    width: 100%;
}

@media (max-width: 767.98px) {
    .excursion-package-slider-bleed {
        width: 100dvw;
        max-width: 100dvw;
        position: relative;
        left: 50%;
        margin-left: -50dvw;
        padding-left: 0.4rem;
        padding-right: 0;
    }

    .excursion-package-slider-bleed .card-travel-checkout {
        flex: 0 0 calc(100dvw - 1.15rem);
        max-width: calc(100dvw - 1.15rem);
    }
}

.excursion-package-slider {
    position: relative;
    margin-bottom: 0.75rem;
}

.excursion-package-slider__outer {
    overflow: hidden;
    padding: 0.25rem 0;
}

.excursion-package-slider__track {
    display: flex;
    gap: 0.65rem;
    align-items: stretch;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem 0.15rem 0.5rem;
}

@media (max-width: 767.98px) {
    .excursion-package-slider__track {
        gap: 0.55rem;
        padding: 0.25rem 0.75rem 0.5rem 0;
        scroll-padding-left: 0;
    }
}

.excursion-package-slider__track::-webkit-scrollbar {
    display: none;
}

.excursion-package-slider__controls {
    position: absolute;
    top: 0.5rem;
    left: 0;
    right: 0;
    height: calc(min(92vw, 22rem) * 10 / 16);
    pointer-events: none;
    z-index: 3;
}

.excursion-package-slider__arrow {
    position: absolute;
    top: 50%;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 4.75rem;
    padding: 0;
    border-radius: 0;
    border: none;
    background: var(--mud-palette-tertiary, #f9b233);
    color: #1d4c70;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    transform: translateY(-50%);
}

.excursion-package-slider__arrow--prev {
    left: 0;
    border-radius: 0 0.4rem 0.4rem 0;
}

.excursion-package-slider__arrow--next {
    right: 0;
    border-radius: 0.4rem 0 0 0.4rem;
}

@media (min-width: 768px) {
    .excursion-package-slider__controls {
        height: calc(min(88%, 22rem) * 10 / 16);
    }

    .excursion-package-slider__arrow {
        width: 1.65rem;
        height: 4rem;
    }

    .excursion-package-slider__arrow--prev {
        left: 0.25rem;
        border-radius: 0 0.4rem 0.4rem 0;
    }

    .excursion-package-slider__arrow--next {
        right: 0.25rem;
        border-radius: 0.4rem 0 0 0.4rem;
    }
}

.excursion-package-slider__arrow:hover {
    background: color-mix(in srgb, var(--mud-palette-tertiary, #f9b233) 88%, #000);
}

.excursion-package-slider__arrow:active {
    transform: translateY(-50%) scale(0.98);
    opacity: 0.92;
}

/* Travel-shop inspired package card */
.card-travel-checkout {
    flex: 0 0 min(92vw, 20.5rem);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: auto;
    min-height: 100%;
    border-radius: 0 0 0 1.25rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
    background: var(--mud-palette-primary);
    transition: box-shadow 0.2s, transform 0.2s;
}

@media (min-width: 768px) {
    .card-travel-checkout {
        flex: 0 0 min(88%, 20.5rem);
        flex-basis: calc(50% - 0.4rem);
        max-width: calc(50% - 0.4rem);
    }
}

@media (min-width: 992px) {
    .card-travel-checkout {
        flex-basis: calc(33.333% - 0.45rem);
        max-width: calc(33.333% - 0.45rem);
    }
}

.card-travel-checkout:hover {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

.card-travel-checkout--selected {
    box-shadow: 0 0 0 3px var(--mud-palette-success, #2e7d32),
                0 12px 32px rgba(15, 23, 42, 0.18);
}

/* Häkchen-Badge oben rechts auf dem Kartenbild, wenn ausgewählt */
.card-travel-checkout__selected-check {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}

.card-travel-checkout__selected-check .mud-icon-root {
    font-size: 1.6rem;
    color: var(--mud-palette-success, #2e7d32);
}

.card-travel-checkout__image {
    position: relative;
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--mud-palette-primary-darken, #153752);
}

.card-travel-checkout__image-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-travel-checkout__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.45);
    background: linear-gradient(135deg, var(--mud-palette-primary-darken) 0%, var(--mud-palette-primary) 100%);
}

.card-travel-checkout__badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    max-width: calc(100% - 1.5rem);
    pointer-events: none;
}

.card-travel-checkout__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    max-width: 100%;
}

.card-travel-checkout__badges .card-travel-checkout__badge {
    position: static;
    top: auto;
    left: auto;
}

.card-travel-checkout__badge--accent {
    background: var(--mud-palette-tertiary, #f9b233);
    color: #212529;
}

.card-travel-checkout__badge--primary {
    background: var(--mud-palette-primary);
    color: #fff;
}

.card-travel-checkout__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.55rem;
    min-height: 0;
    padding: 0.85rem 1rem 1rem;
    color: #fff;
    background: var(--mud-palette-primary);
}

.card-travel-checkout__top {
    flex: 1 1 auto;
    min-height: 0;
}

.card-travel-checkout__bottom {
    margin-top: auto;
    flex: 0 0 auto;
}

.card-travel-checkout__title {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.25em * 2);
}

.card-travel-checkout__description {
    margin: 0 0 0.35rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-travel-checkout__excursions {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.card-travel-checkout__excursion {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.84rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
}

.card-travel-checkout__excursion-icon {
    color: #86efac !important;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.card-travel-checkout__excursion-warn {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.25);
    color: #fde68a;
}

.card-travel-checkout__excursion--cancelled {
    opacity: 0.65;
}

.card-travel-checkout__excursion-link {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.6rem;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.card-travel-checkout__excursion-link:hover {
    text-decoration: underline;
}

.card-travel-checkout__excursion-date,
.card-travel-checkout__excursion-people {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.card-travel-checkout__excursions--booked {
    gap: 0.65rem;
}

.card-travel-checkout__excursions--booked .card-travel-checkout__excursion {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
}

.card-travel-checkout__excursions--booked .card-travel-checkout__excursion-link {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.12rem;
    min-width: 0;
    width: 100%;
}

.card-travel-checkout__excursions--booked .card-travel-checkout__excursion-name {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.card-travel-checkout__excursions--booked .card-travel-checkout__excursion-people {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.55rem;
    overflow-wrap: anywhere;
}

.card-travel-checkout__person {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem;
}

.card-travel-checkout__person--requested {
    color: #fde68a;
}

.card-travel-checkout__person-flag {
    display: inline-block;
    margin-left: 0.3rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: #f59e0b;
    color: #212529;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    vertical-align: 0.05em;
}

.card-travel-checkout__excursion-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.card-travel-checkout__excursion-actions .mud-icon-button {
    color: rgba(255, 255, 255, 0.85);
}

.card-travel-checkout__package-actions {
    margin-top: 0.75rem;
}

.card-travel-checkout__together {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.card-travel-checkout__alt-group {
    margin-bottom: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

.card-travel-checkout__alt-title {
    margin: 0 0 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.95);
}

.card-travel-checkout__alt-options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.card-travel-checkout__alt-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    margin: 0;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.card-travel-checkout__alt-option:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.38);
}

.card-travel-checkout__alt-option--selected {
    border-color: rgba(249, 178, 51, 0.95);
    background: rgba(249, 178, 51, 0.16);
    box-shadow: inset 0 0 0 1px rgba(249, 178, 51, 0.35);
}

.card-travel-checkout__alt-option:disabled {
    opacity: 0.82;
    cursor: default;
}

.card-travel-checkout__alt-radio {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    background: transparent;
    position: relative;
    transition: border-color 0.15s, background-color 0.15s;
}

.card-travel-checkout__alt-option--selected .card-travel-checkout__alt-radio {
    border-color: #f9b233;
    background: #f9b233;
}

.card-travel-checkout__alt-option--selected .card-travel-checkout__alt-radio::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: #1d4c70;
    transform: translate(-50%, -50%);
}

.card-travel-checkout__alt-label {
    flex: 1 1 auto;
    min-width: 0;
}

.card-travel-checkout__alt-option .card-travel-checkout__excursion-date {
    flex-shrink: 0;
}

.card-travel-checkout__alt-option:focus-visible {
    outline: 2px solid rgba(249, 178, 51, 0.85);
    outline-offset: 2px;
}

.card-travel-checkout__alt-option:disabled {
    opacity: 0.75;
    cursor: default;
}

.card-travel-checkout__alt-hint {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: #fde68a;
}

.card-travel-checkout__meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
}

.card-travel-checkout__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.35rem;
}

.card-travel-checkout__price strong {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}

.card-travel-checkout__price-old {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.65);
}

.card-travel-checkout__price-badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: var(--mud-palette-success);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.card-travel-checkout__savings {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #86efac;
}

.card-travel-checkout__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-travel-checkout__btn,
.mud-button-root.card-travel-checkout__btn {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border: none;
    text-transform: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.15s, opacity 0.15s, transform 0.1s;
}

.card-travel-checkout__btn:disabled,
.mud-button-root.card-travel-checkout__btn:disabled,
.mud-button-root.card-travel-checkout__btn.mud-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.card-travel-checkout__btn:not(:disabled):active,
.mud-button-root.card-travel-checkout__btn:not(:disabled):active {
    transform: scale(0.98);
}

.card-travel-checkout__btn--accent,
.mud-button-root.card-travel-checkout__btn--accent {
    background: var(--mud-palette-tertiary, #f9b233);
    color: #1d4c70;
}

.card-travel-checkout__btn--accent:not(:disabled):hover,
.mud-button-root.card-travel-checkout__btn--accent:not(:disabled):hover {
    background: color-mix(in srgb, var(--mud-palette-tertiary, #f9b233) 88%, #000);
}

.card-travel-checkout__btn--selected,
.mud-button-root.card-travel-checkout__btn--selected {
    background: var(--mud-palette-success, #2e7d32);
    color: #fff;
}

.card-travel-checkout__btn--selected:not(:disabled):hover,
.mud-button-root.card-travel-checkout__btn--selected:not(:disabled):hover {
    background: color-mix(in srgb, var(--mud-palette-success, #2e7d32) 85%, #000);
}

.card-travel-checkout__btn--light,
.mud-button-root.card-travel-checkout__btn--light {
    background: #d2dff2;
    color: #1d4c70;
}

.card-travel-checkout__btn--light:not(:disabled):hover,
.mud-button-root.card-travel-checkout__btn--light:not(:disabled):hover {
    background: color-mix(in srgb, #d2dff2 88%, #1d4c70);
}

.card-travel-checkout__btn--ghost,
.mud-button-root.card-travel-checkout__btn--ghost {
    flex: 0 1 auto !important;
    overflow: visible !important;
    min-width: 0;
    min-height: 2.15rem;
    height: auto;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.92) !important;
    background: transparent !important;
}

.mud-button-root.card-travel-checkout__btn--ghost .mud-button-label,
.mud-button-root.card-travel-checkout__btn--ghost .mud-button-icon-start,
.mud-button-root.card-travel-checkout__btn--ghost .mud-icon-root {
    overflow: visible !important;
}

.mud-button-root.card-travel-checkout__btn--ghost .mud-button-icon-start {
    margin-inline-start: 0 !important;
    margin-left: 0 !important;
}

.mud-button-root.card-travel-checkout__btn--ghost .mud-icon-root {
    font-size: 1.2rem !important;
}

.card-travel-checkout__people {
    margin: 0.65rem 0 0.85rem;
}

.card-travel-checkout__people-title {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.card-travel-checkout__people-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.card-travel-checkout__person {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    margin: 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
    transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.card-travel-checkout__person:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.card-travel-checkout__person:not(:disabled):active {
    transform: scale(0.985);
}

.card-travel-checkout__person--selected {
    border-color: rgba(249, 178, 51, 0.95);
    background: rgba(249, 178, 51, 0.18);
    box-shadow: inset 0 0 0 1px rgba(249, 178, 51, 0.4);
}

.card-travel-checkout__person--selected:not(:disabled):hover {
    background: rgba(249, 178, 51, 0.26);
    border-color: #f9b233;
}

.card-travel-checkout__person:focus-visible {
    outline: 2px solid rgba(249, 178, 51, 0.85);
    outline-offset: 2px;
}

.card-travel-checkout__person--disabled {
    opacity: 0.62;
    cursor: default;
}

.card-travel-checkout__person-check {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.3rem;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
    position: relative;
    transition: border-color 0.15s, background-color 0.15s;
}

.card-travel-checkout__person--selected .card-travel-checkout__person-check {
    border-color: #f9b233;
    background: #f9b233;
}

.card-travel-checkout__person--selected .card-travel-checkout__person-check::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 44%;
    width: 0.28rem;
    height: 0.52rem;
    border: solid #1d4c70;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.card-travel-checkout__person-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1 1 auto;
}

.card-travel-checkout__person-name {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    overflow-wrap: anywhere;
}

.card-travel-checkout__person-meta {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.72);
}

.card-travel-checkout__person-meta--ok {
    color: #86efac;
}

.card-travel-checkout__person-meta--warn {
    color: #fde68a;
}

.card-travel-checkout__person-price {
    flex-shrink: 0;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.2;
    white-space: nowrap;
}

.card-travel-checkout__person--selected .card-travel-checkout__person-price {
    background: #f9b233;
    color: #1d4c70;
}

html.mud-theme-dark .card-travel-checkout__people-title,
html.mud-theme-dark .card-travel-checkout__person,
html.mud-theme-dark .card-travel-checkout__person-name,
html.mud-theme-dark .card-travel-checkout__person-price {
    color: #fff;
}

html.mud-theme-dark .card-travel-checkout__person-meta {
    color: rgba(255, 255, 255, 0.74);
}

html.mud-theme-dark .card-travel-checkout__person--selected .card-travel-checkout__person-price {
    background: #f9b233;
    color: #1d4c70;
}

.card-travel-checkout__actions--split {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
}

.card-travel-checkout__actions--split .card-travel-checkout__btn--ghost {
    align-self: flex-start;
    padding-left: 0 !important;
}

.card-travel-checkout__meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.78);
}

.card-travel-checkout__meta-line .mud-icon-root {
    font-size: 0.95rem !important;
    opacity: 0.9;
}

.card-travel-checkout__chip {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.card-travel-checkout__chip--empty {
    display: none;
}

.card-travel-checkout__status {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
}

.card-travel-checkout__status--ok {
    color: #86efac;
}

.card-travel-checkout__status--warn {
    color: #fde68a;
}

.card-travel-checkout__status--error {
    color: #fca5a5;
}

.card-travel-checkout__badge--warn {
    background: rgba(239, 68, 68, 0.92);
    color: #fff;
}

.card-travel-checkout--unavailable {
    opacity: 0.68;
}

.card-travel-checkout--conflict {
    opacity: 0.78;
}

.card-travel-checkout--full:not(.card-travel-checkout--selected) {
    opacity: 0.92;
}

/* ---------------------------------------------------------------------------
   Order-Dossier "Meine Buchungen" (Checkout-Look)
   --------------------------------------------------------------------------- */

.card-travel-checkout--cancelled {
    opacity: 0.62;
}

.card-travel-checkout--cancelled .card-travel-checkout__title {
    text-decoration: line-through;
}

.card-travel-checkout__badge--success {
    background: var(--mud-palette-success);
    color: #fff;
}

.card-travel-checkout__badge--warning {
    background: #f59e0b;
    color: #212529;
}

.card-travel-checkout__badge--error {
    background: rgba(239, 68, 68, 0.92);
    color: #fff;
}

.card-travel-checkout__price-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.dossier-section {
    background: var(--mud-palette-surface);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 14px rgba(15, 23, 42, 0.05);
}

.dossier-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.dossier-section__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mud-palette-text-primary);
}

.dossier-section__title .mud-icon-root {
    color: var(--mud-palette-primary);
    font-size: 1.3rem;
}

.dossier-section__count {
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
    color: var(--mud-palette-primary);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.dossier-section__header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dossier-section__header--toggle {
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    padding: 0;
}

.dossier-section--collapsed .dossier-section__header {
    margin-bottom: 0;
}

.dossier-section__header--toggle:hover .dossier-section__title {
    color: var(--mud-palette-primary);
}

.dossier-section__header--toggle:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
    border-radius: 0.5rem;
}

.dossier-section__chevron {
    color: var(--mud-palette-text-secondary);
    flex-shrink: 0;
}

.dossier-section__count--cancelled {
    background: color-mix(in srgb, var(--mud-palette-error) 12%, transparent);
    color: var(--mud-palette-error);
}

.dossier-customer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
    gap: 0.9rem 1.5rem;
}

.dossier-customer__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 0.15rem;
}

.dossier-customer__value,
.dossier-customer__value-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    word-break: break-word;
}

.dossier-customer__value-link {
    display: inline-block;
    line-height: 1.35;
}

.dossier-payments {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.dossier-payments::before {
    content: "";
    position: absolute;
    left: 0.34rem;
    top: 0.45rem;
    bottom: 0.45rem;
    width: 2px;
    background: var(--mud-palette-divider);
}

.dossier-payments__item {
    position: relative;
    display: grid;
    grid-template-columns: 0.85rem 1fr;
    column-gap: 0.85rem;
    padding-bottom: 1.05rem;
}

.dossier-payments__item:last-child {
    padding-bottom: 0;
}

.dossier-payments__dot {
    width: 0.7rem;
    height: 0.7rem;
    margin-top: 0.38rem;
    border-radius: 50%;
    background: var(--mud-palette-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mud-palette-primary) 16%, transparent);
    z-index: 1;
}

.dossier-payments__item--ok .dossier-payments__dot {
    background: var(--mud-palette-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mud-palette-primary) 16%, transparent);
}

.dossier-payments__item--warn .dossier-payments__dot {
    background: var(--color-warning);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-warning) 20%, transparent);
}

.dossier-payments__item--error .dossier-payments__dot {
    background: var(--color-error);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-error) 18%, transparent);
}

.dossier-payments__item--credit .dossier-payments__dot {
    background: var(--mud-palette-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mud-palette-primary) 16%, transparent);
}

.dossier-payments__item--muted .dossier-payments__dot {
    background: var(--mud-palette-text-secondary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--mud-palette-text-secondary) 14%, transparent);
}

.dossier-payments__body {
    min-width: 0;
}

.dossier-payments__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
}

.dossier-payments__amount {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--mud-palette-text-primary);
}

.dossier-payments__item--credit .dossier-payments__amount {
    color: var(--mud-palette-primary);
}

.dossier-payments__item--error .dossier-payments__amount {
    color: var(--color-error);
}

.dossier-payments__item--muted .dossier-payments__amount {
    color: var(--mud-palette-text-secondary);
}

.dossier-payments__status {
    flex: 0 0 auto;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
    color: var(--mud-palette-primary);
}

.dossier-payments__item--ok .dossier-payments__status {
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
    color: var(--mud-palette-primary);
}

.dossier-payments__item--warn .dossier-payments__status {
    background: color-mix(in srgb, var(--color-warning) 16%, transparent);
    color: var(--color-warning);
}

.dossier-payments__item--error .dossier-payments__status {
    background: color-mix(in srgb, var(--color-error) 14%, transparent);
    color: var(--color-error);
}

.dossier-payments__item--muted .dossier-payments__status {
    background: color-mix(in srgb, var(--mud-palette-text-secondary) 12%, transparent);
    color: var(--mud-palette-text-secondary);
}

.dossier-payments__meta,
.dossier-payments__note,
.dossier-payments__tx {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--mud-palette-text-secondary);
}

.dossier-payments__tx {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    word-break: break-all;
}

.dossier-payments__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mud-palette-primary);
    text-decoration: none;
}

.dossier-payments__link:hover {
    text-decoration: underline;
}

.dossier-payments__link .mud-icon-root {
    font-size: 1rem;
}

.dossier-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.dossier-stats__item {
    flex: 1 1 8rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
    background: var(--mud-palette-surface);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.dossier-stats__item .mud-icon-root {
    color: var(--mud-palette-primary);
    font-size: 1.5rem;
}

.dossier-stats__value {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--mud-palette-text-primary);
}

.dossier-stats__label {
    display: block;
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
}

.dossier-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
    gap: 1rem;
    overflow: visible;
}

/* Schwebende Auswahl-Pille (Nachbuchung): erscheint unten mittig, Desktop + Mobile */
.dossier-nachbuchung-bar {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    z-index: 1300;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: calc(100vw - 1.5rem);
    padding: 0.5rem 0.6rem 0.5rem 1.15rem;
    background: var(--mud-palette-surface, #fff);
    border: 1.5px solid var(--color-slate-300, #cbd5e1);
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12),
                0 16px 40px -8px rgba(15, 23, 42, 0.45);
    white-space: nowrap;
    animation: dossier-nachbuchung-bar-in 0.25s ease;
}

@keyframes dossier-nachbuchung-bar-in {
    from {
        opacity: 0;
        transform: translate(-50%, 12px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.dossier-nachbuchung-bar__info {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    min-width: 0;
}

.dossier-nachbuchung-bar__info strong {
    font-size: 0.95rem;
}

.dossier-nachbuchung-bar__sum {
    font-size: 0.9rem;
    color: var(--mud-palette-text-secondary, var(--color-slate-500));
}

.dossier-nachbuchung-bar__sum::before {
    content: "·";
    margin-right: 0.5rem;
}

.dossier-nachbuchung-bar__actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dossier-nachbuchung-bar__cta {
    border-radius: 999px !important;
}

.dossier-nachbuchung-bar__edit {
    border-radius: 999px !important;
}

html.mud-theme-dark .dossier-nachbuchung-bar {
    background: #1e293b;
    border-color: #64748b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45),
                0 16px 40px -8px rgba(0, 0, 0, 0.65);
    color: #f8fafc;
}

html.mud-theme-dark .dossier-nachbuchung-bar__info strong {
    color: #f8fafc;
}

html.mud-theme-dark .dossier-nachbuchung-bar__sum {
    color: #cbd5e1;
}

html.mud-theme-dark .dossier-nachbuchung-bar .mud-icon-button {
    color: #e2e8f0;
}

html.mud-theme-dark .dossier-nachbuchung-bar .mud-icon-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* Outline «Teilnehmer anpassen»: helles Cyan, nicht Primary-Text (oft dunkel) */
html.mud-theme-dark .dossier-nachbuchung-bar__edit {
    color: #67e8f9 !important;
    border-color: #67e8f9 !important;
    background: transparent !important;
}

html.mud-theme-dark .dossier-nachbuchung-bar__edit .mud-button-label,
html.mud-theme-dark .dossier-nachbuchung-bar__edit .mud-icon-root {
    color: #67e8f9 !important;
}

html.mud-theme-dark .dossier-nachbuchung-bar__edit:hover {
    background: rgba(103, 232, 249, 0.12) !important;
}

/* Filled «Nachbuchen»: gesättigtes Teal, weisse Schrift (Primary-Text ist oft zu dunkel) */
html.mud-theme-dark .dossier-nachbuchung-bar__cta {
    background: #0e7490 !important;
    color: #fff !important;
}

html.mud-theme-dark .dossier-nachbuchung-bar__cta .mud-button-label,
html.mud-theme-dark .dossier-nachbuchung-bar__cta .mud-icon-root {
    color: #fff !important;
}

html.mud-theme-dark .dossier-nachbuchung-bar__cta:hover {
    background: #155e75 !important;
}

.dossier-page:has(.dossier-nachbuchung-bar) {
    padding-bottom: 5.5rem;
}

/* CD-Interface: untere Navigation ist auch auf Desktop sichtbar -> Pille darüber platzieren */
.cd-layout-root .dossier-nachbuchung-bar {
    bottom: calc(64px + 1rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 640.98px) {
    .dossier-nachbuchung-bar {
        bottom: calc(64px + 0.75rem + env(safe-area-inset-bottom, 0px));
        width: calc(100vw - 1.5rem);
        justify-content: space-between;
        padding: 0.45rem 0.5rem 0.45rem 0.9rem;
    }

    /* Gast-Ansicht (nicht eingeloggt): keine Mobile-Bottom-Nav -> Pille ganz nach unten */
    .page--public-guest .dossier-nachbuchung-bar {
        bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    }

    /* Anzahl und Summe zweizeilig, damit nichts abgeschnitten wird */
    .dossier-nachbuchung-bar__info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .dossier-nachbuchung-bar__info strong {
        font-size: 0.85rem;
    }

    .dossier-nachbuchung-bar__sum {
        font-size: 0.8rem;
    }

    .dossier-nachbuchung-bar__sum::before {
        content: none;
        margin: 0;
    }

    /* «Teilnehmer anpassen» auf Mobile nur als Icon, damit die Leiste nicht überläuft */
    .dossier-nachbuchung-bar__edit .dossier-nachbuchung-bar__edit-label {
        display: none;
    }

    .dossier-nachbuchung-bar__edit {
        min-width: 0;
        padding: 6px 10px;
    }

    .dossier-nachbuchung-bar__edit .mud-button-icon-start {
        margin-left: 0;
        margin-right: 0;
    }

    .dossier-page:has(.dossier-nachbuchung-bar) {
        padding-bottom: calc(64px + 5.5rem + env(safe-area-inset-bottom, 0px));
    }

    .page--public-guest .dossier-page:has(.dossier-nachbuchung-bar) {
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }
}

.dossier-card-grid .card-travel-checkout {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-height: 0;
}

.booked-excursion-card-dialog {
    background: transparent !important;
    box-shadow: none !important;
}

.booked-excursion-card-dialog .mud-dialog-content,
.mud-dialog:has(.card-travel-checkout--dialog) .mud-dialog-content {
    padding: 0 !important;
    overflow: visible;
}

.card-travel-checkout--dialog {
    max-width: 36rem;
    width: min(36rem, calc(100vw - 2rem));
    margin: 0 auto;
}

.card-travel-checkout--dialog .card-travel-checkout__image {
    aspect-ratio: 16 / 8;
}

.card-travel-checkout--dialog .card-travel-checkout__image-media--hero {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.card-travel-checkout--dialog .card-travel-checkout__image-media--hero.is-ready {
    opacity: 1;
}

.card-travel-checkout__description--dialog {
    -webkit-line-clamp: 12;
}

.dossier-slider {
    padding: 0.5rem 0.25rem 1rem;
}

@media (min-width: 960px) {
    .dossier-sidebar {
        position: sticky;
        top: 1rem;
    }
}

.dossier-summary__rows {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.dossier-summary__items {
    display: flex;
    flex-direction: column;
}

.dossier-summary__item {
    padding: 0.65rem 0;
}

.dossier-summary__item:first-child {
    padding-top: 0;
}

.dossier-summary__item + .dossier-summary__item {
    border-top: 1px solid color-mix(in srgb, var(--mud-palette-divider) 60%, transparent);
}

.dossier-summary__item-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.dossier-summary__item-name {
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.35;
    color: var(--mud-palette-text-primary);
    overflow-wrap: anywhere;
}

.dossier-summary__item-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
    white-space: nowrap;
}

.dossier-summary__item-was {
    font-size: 0.72rem;
    color: var(--mud-palette-text-secondary);
    text-decoration: line-through;
    white-space: nowrap;
}

.dossier-summary__item-now {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--mud-palette-text-primary);
    white-space: nowrap;
}

.dossier-summary__item--discounted .dossier-summary__item-now {
    color: var(--mud-palette-success-darken, var(--mud-palette-success));
}

.dossier-summary__item-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.55rem;
    row-gap: 0.2rem;
    margin-top: 0.3rem;
}

.dossier-summary__chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    color: var(--mud-palette-text-secondary);
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.dossier-summary__chip + .dossier-summary__chip:not(.dossier-summary__chip--discount)::before {
    content: "·";
    margin-right: 0.55rem;
    color: var(--mud-palette-divider);
}

.dossier-summary__chip--discount {
    padding: 0.06rem 0.5rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--mud-palette-success) 14%, transparent);
    color: var(--mud-palette-success);
    font-size: 0.72rem;
    font-weight: 700;
}

.dossier-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.92rem;
    color: var(--mud-palette-text-primary);
}

.dossier-summary__row > span:last-child {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.dossier-summary__row--discount {
    color: var(--mud-palette-success);
    font-size: 0.88rem;
    font-weight: 600;
}

.dossier-summary__header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.dossier-summary__header-actions .mud-menu .mud-icon-button {
    color: var(--mud-palette-text-secondary);
}

.dossier-summary__rules {
    max-width: 21rem;
    padding: 0.9rem 1.1rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--mud-palette-text-primary);
}

.dossier-summary__rules p {
    margin: 0;
}

.dossier-summary__rules-title {
    margin-bottom: 0.35rem !important;
    font-size: 0.9rem;
    font-weight: 700;
}

.dossier-summary__rules-heading {
    margin-top: 0.65rem !important;
    font-weight: 650;
    color: var(--mud-palette-primary);
}

.dossier-summary__rules ul {
    margin: 0.15rem 0 0;
    padding-left: 1.1rem;
}

.dossier-summary__rules li {
    margin: 0.1rem 0;
}

.dossier-summary__savings {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    border-radius: 0.6rem;
    background: color-mix(in srgb, var(--mud-palette-success) 10%, transparent);
    color: var(--mud-palette-success);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.4;
}

.dossier-summary__savings .mud-icon-root {
    flex-shrink: 0;
    margin-top: 0.1rem;
    font-size: 1.05rem;
}

.dossier-summary__divider {
    height: 1px;
    background: var(--mud-palette-divider);
    margin: 0.15rem 0;
}

.dossier-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 2px solid var(--mud-palette-primary);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mud-palette-text-primary);
}

.dossier-summary__total span:last-child {
    color: var(--mud-palette-primary);
    font-size: 1.3rem;
}

.dossier-summary__rows--balance {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--mud-palette-divider);
}

.dossier-summary__row--balance {
    font-weight: 700;
    color: var(--mud-palette-warning);
}

.dossier-summary__row--credit {
    font-weight: 700;
    color: var(--mud-palette-success);
}

.customer-excursion-detail__hero,
.customer-excursion-detail__slide {
    width: 100%;
    height: 220px;
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--mud-palette-background-gray, #f1f5f9);
}

.customer-excursion-detail__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.customer-excursion-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.customer-excursion-detail__description {
    max-height: 45vh;
    overflow: auto;
    line-height: 1.5;
    color: var(--mud-palette-text-primary);
}

.customer-excursion-detail__description img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.dossier-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dossier-table-scroll > .mud-table,
.dossier-table-scroll table {
    min-width: 28rem;
}

.dossier-status-banner {
    width: 100%;
}

.dossier-guest-actions {
    width: 100%;
}

/* Dossier / Booking-Access — Mobile */
@media (max-width: 600px) {
    .dossier-page.mud-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .dossier-section {
        padding: 0.9rem 0.75rem;
        border-radius: 0.75rem;
        margin-bottom: 0.85rem;
    }

    .dossier-section__header {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .dossier-section__title {
        font-size: 0.98rem;
    }

    .dossier-stats {
        gap: 0.5rem;
        margin-bottom: 0.85rem;
    }

    .dossier-stats__item {
        flex: 1 1 calc(50% - 0.5rem);
        padding: 0.65rem 0.75rem;
        min-width: 0;
    }

    .dossier-card-grid {
        gap: 0.75rem;
        grid-template-columns: 1fr;
    }

    .dossier-card-grid .card-travel-checkout {
        min-height: 0;
    }

    /* Umbuchen / Kontingent / Stornieren: volle Kartenbreite */
    .dossier-card-grid .card-travel-checkout__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .dossier-card-grid .card-travel-checkout__actions .mud-tooltip-root {
        display: block;
        width: 100%;
    }

    .dossier-card-grid .card-travel-checkout__actions .card-travel-checkout__btn--ghost,
    .dossier-card-grid .card-travel-checkout__actions .mud-button-root.card-travel-checkout__btn--ghost {
        flex: 1 1 auto !important;
        width: 100%;
        justify-content: center;
    }

    /* Nachbuch-Liste: vertikaler Stack statt horizontalem Karussell */
    .dossier-slider.excursion-package-slider__track,
    .excursion-package-slider__track.dossier-slider {
        display: flex;
        flex-direction: column;
        overflow-x: visible;
        scroll-snap-type: none;
        gap: 0.75rem;
        padding: 0 0 0.25rem;
    }

    .dossier-slider .card-travel-checkout,
    .excursion-package-slider__track.dossier-slider .card-travel-checkout {
        flex: none;
        width: 100%;
        max-width: none;
        min-height: 0;
    }

    .dossier-status-banner {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem;
    }

    .dossier-status-banner .mud-button-root {
        width: 100%;
    }

    .dossier-guest-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .dossier-guest-actions .mud-button-root {
        width: 100%;
    }

    .dossier-summary__row {
        font-size: 0.88rem;
        gap: 0.75rem;
    }

    .dossier-summary__item {
        padding: 0.55rem 0;
    }

    .dossier-summary__item-name,
    .dossier-summary__item-now {
        font-size: 0.86rem;
    }

    .dossier-summary__total {
        font-size: 1rem;
        margin-top: 0.65rem;
        padding-top: 0.65rem;
    }

    .dossier-summary__total span:last-child {
        font-size: 1.15rem;
    }

    .dossier-table-scroll > .mud-table,
    .dossier-table-scroll table {
        min-width: 26rem;
    }

    .dossier-journey-tabs {
        padding: 0.75rem !important;
    }

    .dossier-journey-tabs .mud-tabs-panels {
        padding: 0.75rem !important;
    }

    /* Journey Timeline — feste Desktop-Höhen aufheben */
    .journey-timeline-map-paper,
    .journey-timeline-list-paper {
        height: auto !important;
        min-height: 0 !important;
    }

    .journey-timeline-map {
        height: 280px !important;
    }
}

.excursion-package-detail {
    border: 1px solid var(--mud-palette-divider, var(--color-slate-200));
    border-radius: var(--booking-card-radius);
    background: var(--mud-palette-surface, #fff);
}

html.mud-theme-dark .excursion-package-slider__arrow {
    background: var(--mud-palette-tertiary, #f9b233);
    color: #1d4c70;
}

html.mud-theme-dark .excursion-package-slider__arrow:hover {
    background: color-mix(in srgb, var(--mud-palette-tertiary, #f9b233) 88%, #000);
}

html.mud-theme-dark .excursion-package-detail {
    background: var(--mud-palette-surface);
}

/* === Excursion Kontingent-Erklärung (Popover) === */
.excursion-quota-help-popover {
    max-width: 440px;
}

.excursion-quota-help-content {
    padding: 12px 16px;
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.excursion-quota-help-content .eqh-title {
    font-weight: 700;
}

.excursion-quota-help-content .eqh-intro {
    color: var(--mud-palette-text-secondary, var(--color-slate-500));
}

.excursion-quota-help-content .eqh-category {
    margin: 0;
}

.excursion-quota-help-content .eqh-category-head {
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.excursion-quota-help-content .eqh-category-head.eqh-bottleneck {
    color: var(--mud-palette-warning, #d97706);
}

.excursion-quota-help-content .eqh-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--mud-palette-warning, #d97706);
    color: #fff;
    border-radius: 6px;
    padding: 1px 6px;
}

.excursion-quota-help-content .eqh-lines {
    list-style: disc;
    margin: 2px 0 0 0;
    padding-left: 20px;
    font-size: 0.78rem;
    color: var(--mud-palette-text-secondary, var(--color-slate-500));
}

.excursion-quota-help-content .eqh-lines li {
    margin: 1px 0;
}

.excursion-quota-help-content .eqh-maxline,
.excursion-quota-help-content .eqh-result {
    font-size: 0.82rem;
    border-top: 1px solid var(--mud-palette-divider, var(--color-slate-200));
    padding-top: 6px;
}

.excursion-quota-help-content .eqh-note {
    font-style: italic;
}

/* Ausflug-Instanz-Dialog (Bearbeiten + Ressourcen): Fullscreen, scrollbarer Tab-Inhalt */
.mud-dialog:has(.excursion-instance-dialog-body),
.mud-dialog.excursion-instance-dialog {
    display: flex !important;
    flex-direction: column;
    height: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}

.mud-dialog:has(.excursion-instance-dialog-body) .mud-dialog-title,
.mud-dialog.excursion-instance-dialog .mud-dialog-title {
    flex: 0 0 auto;
}

.mud-dialog:has(.excursion-instance-dialog-body) .mud-dialog-actions,
.mud-dialog.excursion-instance-dialog .mud-dialog-actions {
    flex: 0 0 auto;
}

.mud-dialog:has(.excursion-instance-dialog-body) .mud-dialog-content,
.mud-dialog.excursion-instance-dialog .mud-dialog-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 0.5rem;
}

.excursion-instance-dialog-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.excursion-instance-tabs {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.excursion-instance-tabs > .mud-tabs-toolbar {
    flex: 0 0 auto;
}

.excursion-instance-tabs .mud-tabs-panels {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    height: 100%;
}

.excursion-instance-tabs .mud-tab-panel,
.excursion-instance-tab-panel {
    height: 100%;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Ressourcen-Dialog (BaseTrip AssignExcursions): breiter für Tabelleninhalt */
.mud-dialog:has(.assign-excursion-resource-table):not(:has(.excursion-instance-dialog-body)) {
    max-width: min(96rem, 98vw) !important;
    width: 98vw;
}

.mud-dialog:has(.assign-excursion-resource-table):not(:has(.excursion-instance-dialog-body)) .mud-dialog-content {
    min-width: min(84rem, 96vw);
    max-height: 85vh;
    overflow-y: auto;
}

/* BaseTrip / TripStartDate: Guide-Sprachen in Ressourcen-Tabelle */
.assign-exc-stop-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
}

.assign-exc-stop-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--mud-palette-background-grey, #f1f5f9);
    color: var(--mud-palette-text-secondary);
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
}

.assign-exc-stop-pill--has {
    color: var(--mud-palette-text-primary);
    box-shadow: inset 0 0 0 1px var(--mud-palette-lines-default, #e2e8f0);
}

.assign-exc-stop-pill__count {
    min-width: 1.1rem;
    text-align: center;
    font-weight: 700;
}

.assign-exc-stop {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 0.55rem 0 0.3rem;
}

.assign-exc-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 16px;
}

.assign-exc-card__time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    font-size: 0.8125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
}

.assign-exc-card__title {
    flex: 1 1 12rem;
    min-width: 0;
}

.assign-exc-card__status {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.assign-exc-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    margin-top: 6px;
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
}

.assign-exc-card__warn {
    color: var(--mud-palette-warning);
    font-weight: 600;
}

.assign-exc-card__resources {
    padding-left: 8px;
}

.partner-cancel-help-tooltip.mud-tooltip,
.mud-tooltip:has(.partner-cancel-help-tooltip__body) {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

.partner-cancel-help-tooltip__body {
    max-width: 380px;
    padding: 4px 2px;
    color: #f8fafc;
}

.partner-cancel-help-tooltip__body p {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #f8fafc;
}

.partner-cancel-help-tooltip__title {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #ffffff;
}

.partner-cancel-help-tooltip__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
    color: #e2e8f0;
}

.partner-cancel-help-tooltip__muted {
    color: #cbd5e1 !important;
}

@media (max-width: 640.98px) {
    .assign-exc-card__status {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
}

.assign-excursion-resource-table {
    table-layout: auto;
}

.assign-excursion-resource-table th:nth-child(4),
.assign-excursion-resource-table td:nth-child(4) {
    min-width: 13rem;
}

.assign-excursion-guide-lang-select {
    min-width: 12rem;
    width: 100%;
}

.assign-excursion-guide-lang-select .mud-input-slot {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.excursion-resource-cell {
    display: inline-flex;
    align-items: center;
    min-width: 2.5rem;
}

.excursion-resource-badge {
    display: inline-flex;
}

.excursion-internal-note-cell {
    min-width: 14rem;
    max-width: 22rem;
}

/* === Aktuell (User Home) — Action-Hub === */

/* Next-Best-Action-Banner */
.user-home-focus-banner,
.user-home-card.user-home-focus-card {
    border-left: 4px solid var(--mud-palette-primary, var(--color-primary));
}

.user-home-focus-error {
    border-left-color: var(--color-error);
}

.user-home-focus-warning {
    border-left-color: var(--color-warning);
}

.user-home-focus-info {
    border-left-color: var(--mud-palette-primary, var(--color-primary));
}

.user-home-focus-success {
    border-left-color: var(--mud-palette-primary, var(--color-primary));
}

/* Kennzahlen */
.user-home-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 8px;
    height: 100%;
    align-content: start;
}

.user-home-kpi-card {
    border: 1px solid var(--mud-palette-divider, var(--color-slate-200));
    border-radius: var(--radius-md, 8px);
    padding: 0.75rem 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    background: var(--mud-palette-surface, #fff);
}

.user-home-kpi-card.user-home-kpi-clickable { cursor: pointer; }

.user-home-kpi-card.user-home-kpi-clickable:hover {
    border-color: var(--mud-palette-primary, var(--color-primary));
}

.user-home-kpi-value {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--mud-palette-text-primary, var(--color-slate-800));
}

.user-home-kpi-ok { opacity: 0.7; }

.user-home-kpi-error .user-home-kpi-value { color: var(--color-error); }

.user-home-kpi-warning .user-home-kpi-value { color: var(--color-warning); }

/* Abreise-Timeline */
.user-home-timeline {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.user-home-timeline-scroll {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 0.35rem 0.25rem 0.5rem;
    container-type: size;
}

.user-home-timeline-item {
    --ring: clamp(48px, min(46cqh, 20cqi), 112px);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    min-width: max(148px, calc(var(--ring) * 2.1));
    padding: 0 0.75rem;
    text-align: center;
    cursor: pointer;
    border-radius: var(--radius-md, 8px);
    transition: background var(--transition-base, 0.2s);
}

.user-home-timeline-item:hover {
    background: rgba(var(--color-primary-rgb), 0.06);
}

.user-home-timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: calc(var(--ring) / 2);
    left: calc(50% + var(--ring) / 2 + 6px);
    width: calc(100% - var(--ring) - 12px);
    height: 1px;
    background: var(--mud-palette-divider, var(--color-slate-200));
}

.user-home-timeline-ring {
    --ring: 48px;
    position: relative;
    width: var(--ring);
    height: var(--ring);
    flex: 0 0 var(--ring);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-home-ring-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.user-home-ring-track,
.user-home-ring-progress {
    fill: none;
    stroke-width: 2.6;
}

.user-home-ring-track {
    stroke: var(--mud-palette-divider, var(--color-slate-200));
}

.user-home-ring-progress {
    stroke-linecap: round;
}

.user-home-timeline-ring--primary .user-home-ring-progress {
    stroke: var(--mud-palette-primary, var(--color-primary));
}

.user-home-timeline-ring--warning .user-home-ring-progress {
    stroke: var(--color-warning);
}

.user-home-timeline-ring--error .user-home-ring-progress {
    stroke: var(--color-error);
}

.user-home-timeline-ring .user-home-timeline-percent {
    position: absolute;
    font-size: clamp(0.62rem, calc(var(--ring) * 0.22), 0.95rem);
    font-weight: 600;
    line-height: 1;
}

.user-home-timeline-name {
    font-size: 0.8rem;
    font-weight: 600;
    max-width: max(148px, calc(var(--ring) * 2.1));
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.user-home-timeline-date,
.user-home-timeline-ready,
.user-home-timeline-meta {
    font-size: 0.72rem;
    color: var(--mud-palette-text-secondary, var(--color-slate-500));
    max-width: max(148px, calc(var(--ring) * 2.1));
}

.user-home-timeline-meta {
    display: none;
}

@container (min-height: 168px) {
    .user-home-timeline-meta {
        display: block;
    }
}

@media (max-width: 700px) {
    .user-home-timeline-scroll {
        --ring: 48px;
        flex-direction: column;
        gap: 0.5rem;
        overflow-x: visible;
        container-type: normal;
    }

    .user-home-timeline-item {
        flex-direction: row;
        min-width: 0;
        text-align: left;
        padding: 0.4rem 0.5rem;
        gap: 0.75rem;
    }

    .user-home-timeline-item:not(:last-child)::after { display: none; }

    .user-home-timeline-name,
    .user-home-timeline-date,
    .user-home-timeline-ready,
    .user-home-timeline-meta {
        max-width: none;
    }

    .user-home-timeline-meta { display: block; }

    .user-home-timeline-text { align-items: flex-start !important; }
}

.user-home-shortcut {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--mud-palette-divider, var(--color-slate-200));
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
}

.user-home-shortcut__main {
    flex: 1;
    justify-content: flex-start !important;
    min-width: 0;
}

.user-home-shortcut-ext {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.55rem;
    color: var(--mud-palette-text-secondary, var(--color-slate-500));
    border-left: 1px solid var(--mud-palette-divider, var(--color-slate-200));
}

.user-home-shortcut-ext:hover {
    color: var(--mud-palette-primary, var(--color-primary));
}

.user-home-editing {
    padding-right: min(440px, 42vw);
}

@media (max-width: 900px) {
    .user-home-editing {
        padding-right: 0;
        padding-bottom: 2rem;
    }
}

.user-home-store-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 100vw);
    z-index: 1405;
    display: flex;
    flex-direction: column;
    background-color: var(--mud-palette-surface, #fff);
    border-left: 1px solid var(--mud-palette-divider, var(--color-slate-200));
    box-shadow: -4px 0 24px rgba(15, 23, 42, 0.12);
}

.user-home-store-panel__header {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 12px 16px;
    border-bottom: 1px solid var(--mud-palette-divider, var(--color-slate-200));
}

.user-home-store-panel__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
}

.user-home-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 56px;
    grid-template-rows: repeat(var(--user-home-rows, 8), 56px);
    gap: 12px;
    position: relative;
    min-height: calc(var(--user-home-rows, 8) * 68px);
}

@media (max-width: 640.98px) {
    .user-home-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(8rem, auto);
        grid-template-rows: none;
        min-height: 0;
    }

    .user-home-grid-item {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }
}

.user-home-grid--editing {
    outline: 1px dashed var(--mud-palette-divider, var(--color-slate-200));
    outline-offset: 6px;
    border-radius: var(--radius-md, 8px);
}

.user-home-grid-item {
    min-width: 0;
    min-height: 0;
    position: relative;
}

.user-home-grid-item--dragging {
    pointer-events: none;
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.12));
    opacity: 0.95;
}

.user-home-widget--fill {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.user-home-widget-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.user-home-widget-body > .mud-paper,
.user-home-widget-body > .user-home-card,
.user-home-widget-body > .user-home-focus-banner,
.user-home-widget-body > .user-home-kpi-row,
.user-home-widget-body > .mud-grid {
    height: 100%;
}

.user-home-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.user-home-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    padding: 0 0.65rem;
    box-sizing: border-box;
    overflow: hidden;
    border-bottom: 1px solid var(--mud-palette-divider, var(--color-slate-200));
    flex: 0 0 auto;
}

.user-home-card__title-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    height: 100%;
}

.user-home-card__title-row .mud-chip {
    height: 20px !important;
    min-height: 20px !important;
    font-size: 0.7rem;
    padding-inline: 6px !important;
}

.user-home-card__title-row .mud-chip .mud-chip-content {
    padding: 0 !important;
    line-height: 20px;
}

.user-home-card__title {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: 0.01em;
    color: var(--mud-palette-text-secondary, var(--color-slate-500));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-home-card__actions {
    display: flex;
    align-items: center;
    height: 100%;
    flex: 0 0 auto;
}

.user-home-card__actions .mud-button,
.user-home-card__actions .mud-button-root {
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-size: 0.72rem;
    line-height: 1;
}

.user-home-card__actions .mud-progress-circular {
    width: 14px !important;
    height: 14px !important;
}

.user-home-card__body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 0.45rem 0.7rem 0.55rem;
}

.user-home-card.user-home-timeline .user-home-card__body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0.2rem 0.45rem 0.35rem;
}

.user-home-widget-toolbar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.25rem;
    cursor: grab;
    user-select: none;
    touch-action: none;
    border-bottom: 1px solid var(--mud-palette-divider, var(--color-slate-200));
    background: var(--mud-palette-surface, #fff);
    border-radius: var(--radius-md, 8px) var(--radius-md, 8px) 0 0;
}

.user-home-widget-toolbar:active {
    cursor: grabbing;
}

.user-home-drag-icon {
    color: var(--mud-palette-text-secondary, #64748B);
}

.user-home-resize {
    position: absolute;
    z-index: 3;
    background: transparent;
    touch-action: none;
}

.user-home-resize-n,
.user-home-resize-s {
    left: 8px;
    right: 8px;
    height: 8px;
    cursor: ns-resize;
}

.user-home-resize-e,
.user-home-resize-w {
    top: 8px;
    bottom: 8px;
    width: 8px;
    cursor: ew-resize;
}

.user-home-resize-n { top: 0; }
.user-home-resize-s { bottom: 0; }
.user-home-resize-e { right: 0; }
.user-home-resize-w { left: 0; }

.user-home-resize-ne,
.user-home-resize-nw,
.user-home-resize-se,
.user-home-resize-sw {
    width: 12px;
    height: 12px;
}

.user-home-resize-ne { top: 0; right: 0; cursor: nesw-resize; }
.user-home-resize-nw { top: 0; left: 0; cursor: nwse-resize; }
.user-home-resize-se { bottom: 0; right: 0; cursor: nwse-resize; }
.user-home-resize-sw { bottom: 0; left: 0; cursor: nesw-resize; }

.user-home-grid--editing .user-home-grid-item {
    outline: 1px solid var(--mud-palette-divider, var(--color-slate-200));
    border-radius: var(--radius-md, 8px);
}

.user-home-store-group {
    border: 1px solid var(--mud-palette-divider, var(--color-slate-200));
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
}

.user-home-store-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--mud-palette-divider, var(--color-slate-200));
}

.user-home-store-row:last-child {
    border-bottom: none;
}

.user-home-timeline-ring--compact {
    --ring: 36px;
}

.user-home-analytics {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.user-home-analytics-rings {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.user-home-analytics-metric {
    --ring: clamp(52px, 18cqh, 88px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.user-home-analytics-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.user-home-stack {
    display: flex;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--mud-palette-background-grey, var(--color-slate-100));
}

.user-home-stack-seg {
    height: 100%;
}

.user-home-stack-seg--ok {
    background: var(--mud-palette-primary, var(--color-primary));
}

.user-home-stack-seg--warn {
    background: var(--color-warning);
}

.user-home-stack-seg--muted {
    background: var(--mud-palette-lines-default, var(--color-slate-300));
}

.user-home-stack-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: var(--mud-palette-text-secondary, var(--color-slate-500));
}

.user-home-stack-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.user-home-stack-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.user-home-scope-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
}

.user-home-card__title-row .user-home-scope-toggle .mud-button,
.user-home-card__title-row .user-home-scope-toggle .mud-button-root {
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    min-width: 0 !important;
    padding: 0 7px !important;
    font-size: 0.68rem;
    line-height: 1;
}

/* === Checkout legal texts (AGB, Impressum) =============================== */

.checkout-legal-page__title {
    font-weight: 700;
}

.checkout-legal-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--mud-palette-text-primary);
}

.checkout-legal-content h1,
.checkout-legal-content h2,
.checkout-legal-content h3 {
    margin: 1rem 0 0.5rem;
    font-weight: 700;
    line-height: 1.25;
}

.checkout-legal-content p,
.checkout-legal-content ul,
.checkout-legal-content ol {
    margin: 0 0 0.75rem;
}

.checkout-legal-content ul,
.checkout-legal-content ol {
    padding-left: 1.25rem;
}

.checkout-legal-content--dialog {
    max-height: min(60vh, 28rem);
    overflow-y: auto;
}

.checkout-legal-acceptance {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkout-legal-acceptance__row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.checkout-legal-acceptance__box {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.1rem;
    border: 2px solid var(--mud-palette-primary);
    border-radius: 0.3rem;
    background: #fff;
    color: #fff;
    transition: background-color 0.15s, border-color 0.15s;
}

.checkout-legal-acceptance__row--on .checkout-legal-acceptance__box {
    background: var(--mud-palette-primary);
    border-color: var(--mud-palette-primary);
}

.checkout-legal-acceptance__label {
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--mud-palette-text-primary);
}

.checkout-legal-acceptance__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding-left: 2.1rem;
}

.checkout-legal-link {
    padding: 0;
    border: none;
    background: transparent;
    color: var(--mud-palette-primary);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.checkout-legal-link:hover {
    color: var(--mud-palette-primary-darken, var(--mud-palette-primary));
}

.checkout-custom .checkout-legal-link {
    color: var(--cc-primary, var(--mud-palette-primary));
}

.checkout-custom .checkout-legal-acceptance__row--on .checkout-legal-acceptance__box {
    background: var(--cc-primary, var(--mud-palette-primary));
    border-color: var(--cc-primary, var(--mud-palette-primary));
}
