/* ── Color Scheme for native browser elements ── */
[data-theme="dark"] { color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }

/* ── CSS Variables: Dark (default) ── */
:root, [data-theme="dark"] {
    --app-background: #2b2e3a;
    --app-surface: #363944;
    --app-surface-strong: #3d4150;
    --app-surface-soft: #32353f;
    --app-border: rgba(148, 163, 184, 0.28);
    --app-text-primary: #f8fafc;
    --app-text-secondary: rgba(226, 232, 240, 0.78);
    --app-text-muted: rgba(148, 163, 184, 0.68);
    --app-accent: #6670b5;
    --app-accent-soft: rgba(74, 79, 117, 0.25);
    --app-avatar-bg: #5c6189;
    --app-border-subtle: rgba(255, 255, 255, 0.05);
    --app-border-subtle-stronger: rgba(255, 255, 255, 0.06);
    --app-border-subtle-faint: rgba(255, 255, 255, 0.03);
    --app-border-subtle-separator: rgba(255, 255, 255, 0.1);
    --app-border-grid-card: rgba(148, 163, 184, 0.08);
    --app-grid-select: rgba(139, 92, 246, 0.25);
    --app-alt-row: rgba(255, 255, 255, 0.015);
    --app-row-hover: rgba(59, 130, 246, 0.06);
    --app-header-cell-bg: rgba(30, 32, 44, 0.4);
    --app-header-cell-color: #64748b;
    --app-detail-label-color: #64748b;
    --app-detail-value-color: #cbd5e1;
    --app-toolbar-bg: rgba(30, 32, 44, 0.3);
    --app-detail-panel-bg: rgba(30, 32, 44, 0.5);
    --app-dropdown-bg: #2a2d36;
    --app-dropdown-border: rgba(148, 163, 184, 0.12);
    --app-dropdown-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --app-dropdown-item-color: #cbd5e1;
    --app-dropdown-item-hover: rgba(255, 255, 255, 0.08);
    --app-dropdown-item-hover-color: #f1f5f9;
    --app-dropdown-icon-color: #94a3b8;
    --app-splitter-bar: rgba(148, 163, 184, 0.15);
    --app-splitter-bar-hover: rgba(245, 158, 11, 0.4);
    --app-splitter-handle: rgba(148, 163, 184, 0.3);
    --app-splitter-handle-hover: rgba(245, 158, 11, 0.6);
    --app-dialog-backdrop: rgba(0, 0, 0, 0.15);
    --app-dialog-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
    --app-dialog-border: rgba(148, 163, 184, 0.10);
    --app-dialog-title-bg: rgba(30, 32, 44, 0.4);
    --app-dialog-actions-bg: rgba(30, 32, 44, 0.25);
}

/* ── CSS Variables: Light ("Slate Indigo") ── */
[data-theme="light"] {
    /* Grundflächen — kühles Schieferblau statt steriles Weiß */
    --app-background: #dcdfe8;
    --app-surface: #e9ebf3;
    --app-surface-strong: #d3d6e2;
    --app-surface-soft: #e2e4ee;
    --app-border: rgba(55, 65, 100, 0.18);
    /* Text — tiefes Indigo-Schwarz für guten Kontrast */
    --app-text-primary: #1a1f36;
    --app-text-secondary: rgba(26, 31, 54, 0.72);
    --app-text-muted: rgba(70, 80, 115, 0.72);
    /* Akzent — etwas kräftiger als im Dark Mode */
    --app-accent: #4f59a0;
    --app-accent-soft: rgba(79, 89, 160, 0.14);
    --app-grid-select: rgba(79, 89, 160, 0.20);
    /* AppBar bleibt dunkel (wie Dark Mode) */
    --app-avatar-bg: #6670b5;
    /* Borders — sichtbarer, mit Indigo-Unterton */
    --app-border-subtle: rgba(55, 65, 100, 0.10);
    --app-border-subtle-stronger: rgba(55, 65, 100, 0.14);
    --app-border-subtle-faint: rgba(55, 65, 100, 0.06);
    --app-border-subtle-separator: rgba(55, 65, 100, 0.16);
    --app-border-grid-card: rgba(55, 65, 100, 0.12);
    /* Dialog */
    --app-dialog-backdrop: rgba(26, 31, 54, 0.30);
    /* Grid rows */
    --app-alt-row: rgba(55, 65, 100, 0.04);
    --app-row-hover: rgba(79, 89, 160, 0.08);
    /* Grid Header + Details */
    --app-header-cell-bg: rgba(55, 65, 100, 0.07);
    --app-header-cell-color: #4b5578;
    --app-detail-label-color: #4b5578;
    --app-detail-value-color: #2a3150;
    /* Toolbar + Panel */
    --app-toolbar-bg: rgba(55, 65, 100, 0.05);
    --app-detail-panel-bg: rgba(55, 65, 100, 0.04);
    /* Dialog */
    --app-dialog-title-bg: rgba(55, 65, 100, 0.06);
    --app-dialog-actions-bg: rgba(55, 65, 100, 0.04);
    --app-dialog-shadow: 0 8px 32px rgba(26, 31, 54, 0.18), 0 0 0 1px rgba(55, 65, 100, 0.08);
    --app-dialog-border: rgba(55, 65, 100, 0.14);
    /* Dropdown */
    --app-dropdown-bg: #e9ebf3;
    --app-dropdown-border: rgba(55, 65, 100, 0.16);
    --app-dropdown-shadow: 0 4px 16px rgba(26, 31, 54, 0.18);
    --app-dropdown-item-color: #2a3150;
    --app-dropdown-item-hover: rgba(79, 89, 160, 0.10);
    --app-dropdown-item-hover-color: #1a1f36;
    --app-dropdown-icon-color: #4b5578;
    /* Splitter */
    --app-splitter-bar: rgba(55, 65, 100, 0.14);
    --app-splitter-bar-hover: rgba(245, 158, 11, 0.4);
    --app-splitter-handle: rgba(55, 65, 100, 0.20);
    --app-splitter-handle-hover: rgba(245, 158, 11, 0.6);
}

.mud-layout {
    --mud-appbar-height: 44px;
}

/* ── AppBar ── */
.app-bar-themed { background: linear-gradient(135deg, #3a3f5c 0%, #4a4f75 50%, #5a5f85 100%); }

.mud-appbar {
    min-height: 44px !important;
    height: 44px !important;
    z-index: 1300 !important;
}

/* Override MudBlazor dense-appbar layout (assumes 3/4 height, but we use full 44px) */
.mud-appbar-dense ~ .mud-drawer-fixed.mud-drawer-clipped-always {
    top: var(--mud-appbar-height) !important;
    height: calc(100% - var(--mud-appbar-height)) !important;
}

.mud-appbar-dense ~ .mud-main-content {
    padding-top: var(--mud-appbar-height) !important;
}

.mud-appbar .mud-toolbar {
    min-height: 44px !important;
    height: 44px !important;
    padding-left: 0 !important;
}

/* Logo-Button */
.gaston-logo-button {
    padding: 0 !important;
    height: 44px;
    margin-left: 0 !important;
    margin-right: 0;
    width: 64px;
    display: flex;
    align-items: center;
    overflow: visible;
    position: relative;
    background: transparent !important;
    border-radius: 0 !important;
}

.gaston-logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #fff;
    height: 44px;
    width: 64px;
    padding: 0 6px 0 12px;
    border-radius: 0 22px 22px 0;
    box-shadow: 2px 1px 6px rgba(0, 0, 0, 0.3);
    transition: width 0.25s ease, padding-left 0.25s ease, box-shadow 0.25s ease;
    will-change: width, padding-left;
    position: relative;
    left: 0;
}

.gaston-logo-button:hover .gaston-logo-container {
    width: 90px;
    padding-left: 30px;
    box-shadow: 3px 2px 10px rgba(0, 0, 0, 0.4);
}

.gaston-logo {
    width: 40px;
    height: 40px;
    padding: 4px;
    display: block;
    background: white;
    border-radius: 50%;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* ── Drawer layout (sticky footer) ── */
.drawer-content { display: flex; flex-direction: column; height: 100%; }
.drawer-scroll  { flex: 1; overflow-y: auto; overflow-x: hidden; }
.drawer-footer  { flex-shrink: 0; padding-bottom: 4px; }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ── Client Selector (AppBar Badge + Search Popup) ── */
.client-selector-container { position: relative; display: flex; align-items: center; margin-right: 4px; }

.client-selector-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.client-selector-badge:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

.client-selector-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.client-selector-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--app-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.client-selector-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 140px;
}

.client-selector-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-selector-location {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-selector-chevron {
    color: rgba(255, 255, 255, 0.45);
    font-size: 16px !important;
    margin-left: -2px;
    flex-shrink: 0;
}

/* Popup */
.client-selector-overlay { position: fixed; inset: 0; z-index: 9998; }

.client-selector-popup {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 9999;
    width: 320px;
    background: var(--app-surface);
    border-radius: 12px;
    border: 1px solid var(--app-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--app-border-subtle);
    animation: clientSelectorSlideIn 0.15s ease-out;
    overflow: hidden;
}

.client-selector-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--app-border-subtle-separator);
}

.client-selector-search-icon { color: var(--app-text-secondary); flex-shrink: 0; }

.client-selector-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--app-text-primary);
    font-size: 0.85rem;
    font-family: inherit;
}

.client-selector-search-input::placeholder { color: var(--app-text-secondary); opacity: 0.7; }

.client-selector-search-clear {
    cursor: pointer;
    color: var(--app-text-secondary);
    display: flex;
    align-items: center;
    padding: 2px;
    border-radius: 4px;
    transition: background 0.15s;
}

.client-selector-search-clear:hover { background: rgba(255, 255, 255, 0.08); }

.client-selector-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 4px;
}

.client-selector-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.client-selector-item:hover { background: var(--app-dropdown-item-hover); }
.client-selector-item.active { background: var(--app-accent-soft); }

.client-selector-item-icon { flex-shrink: 0; }

.client-selector-item-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--app-surface-strong);
    color: var(--app-text-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background 0.15s, color 0.15s;
}

.client-selector-item-initials.active {
    background: var(--app-accent);
    color: #fff;
}

.client-selector-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.client-selector-item-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--app-text-primary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-selector-item-location {
    font-size: 0.7rem;
    color: var(--app-text-secondary);
    line-height: 1.2;
}

.client-selector-item-check { color: var(--app-accent); flex-shrink: 0; margin-left: auto; }

.client-selector-empty {
    padding: 20px;
    text-align: center;
    color: var(--app-text-secondary);
    font-size: 0.82rem;
}

@keyframes clientSelectorSlideIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
    .client-selector-info { display: none; }
    .client-selector-popup { width: calc(100vw - 16px); right: -8px; }
}

/* ── User Menu (AppBar Avatar + Dropdown) ── */
.user-menu-container { position: relative; display: flex; align-items: center; margin-left: 8px; }

.user-menu-trigger {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
}

.user-menu-initials {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--app-avatar-bg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.2s;
    user-select: none;
}

.user-menu-trigger:hover .user-menu-initials { border-color: rgba(255, 255, 255, 0.45); }

.user-menu-indicator {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    border: 2px solid rgba(58, 63, 92, 1);
    pointer-events: none;
}

.user-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
}

.user-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 9999;
    width: 280px;
    background: var(--app-surface);
    border-radius: 12px;
    border: 1px solid var(--app-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--app-border-subtle);
    animation: userMenuSlideIn 0.15s ease-out;
    overflow: hidden;
}

.user-menu-header {
    padding: 20px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
}

.user-menu-header-initials {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--app-avatar-bg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    user-select: none;
}

.user-menu-name {
    font-weight: 500;
    color: var(--app-text-primary);
    font-size: 0.95rem;
    line-height: 1.3;
}

.user-menu-email {
    font-size: 0.8rem;
    color: var(--app-text-secondary);
    margin-bottom: 4px;
    word-break: break-all;
}

.user-menu-divider {
    height: 1px;
    background: var(--app-border-subtle-separator);
    margin: 0 12px;
}

.user-menu-items { padding: 6px 8px; }

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--app-text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 0.85rem;
    background: transparent;
    border: none;
    width: 100%;
    font-family: inherit;
}

.user-menu-item:hover {
    background: var(--app-dropdown-item-hover);
    color: var(--app-dropdown-item-hover-color);
}

.user-menu-theme-row {
    display: flex;
    align-items: center;
    padding: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.user-menu-theme-row:hover { background: var(--app-dropdown-item-hover); }

.user-menu-item-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    flex: 1;
    font-size: 0.85rem;
    color: var(--app-text-primary);
}

.user-menu-theme-icon {
    padding: 8px 10px 8px 0;
    color: var(--app-text-secondary);
}

.user-menu-logout { color: #ef4444 !important; }
.user-menu-logout:hover { background: rgba(239, 68, 68, 0.1) !important; color: #ef4444 !important; }

@keyframes userMenuSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .user-menu-dropdown { width: calc(100vw - 16px); right: -8px; }
}

/* ── Global Syncfusion Grid Overrides ── */
.e-grid {
    background: transparent !important;
    border: 1px solid var(--app-border) !important;
    border-radius: 8px !important;
}
.e-grid .e-gridheader {
    background: var(--app-surface-strong) !important;
}
.e-grid .e-headercell {
    background: transparent !important;
    color: var(--app-text-secondary) !important;
}
.e-grid .e-detailheadercell,
.e-grid .e-grouptopleftcell,
.e-grid .e-lastgroupleftcell {
    background: var(--app-surface-strong) !important;
}
.e-grid .e-rowcell {
    background: transparent !important;
    color: var(--app-text-primary) !important;
    border-color: var(--app-border) !important;
}
.e-grid .e-row:hover .e-rowcell {
    background: var(--app-grid-select) !important;
}
.e-grid .e-gridcontent {
    background: transparent !important;
}
.e-grid .e-content {
    background: transparent !important;
}
.e-grid .e-table {
    background: transparent !important;
}
.e-grid .e-pager {
    background: var(--app-surface-strong) !important;
    border-color: var(--app-border) !important;
    color: var(--app-text-secondary) !important;
}
.e-grid .e-pagercontainer {
    background: transparent !important;
}
.e-grid .e-pager .e-numericcontainer {
    background: transparent !important;
}
.e-grid .e-pager .e-numericitem,
.e-grid .e-pager .e-first,
.e-grid .e-pager .e-prev,
.e-grid .e-pager .e-next,
.e-grid .e-pager .e-last {
    background: var(--app-surface) !important;
    color: var(--app-text-secondary) !important;
    border-color: var(--app-border) !important;
}
.e-grid .e-pager .e-numericitem:hover,
.e-grid .e-pager .e-first:hover,
.e-grid .e-pager .e-prev:hover,
.e-grid .e-pager .e-next:hover,
.e-grid .e-pager .e-last:hover {
    background: var(--app-grid-select) !important;
    color: var(--app-text-primary) !important;
}
.e-grid .e-pager .e-currentitem {
    background: var(--app-accent) !important;
    color: white !important;
    border-color: var(--app-accent) !important;
}
.e-grid .e-pager .e-pagerexternalmsg,
.e-grid .e-pager .e-pagerconstant {
    color: var(--app-text-secondary) !important;
}
.e-grid .e-pager .e-icons {
    color: var(--app-text-secondary) !important;
}
.e-grid .e-toolbar {
    background: var(--app-surface-strong) !important;
    border-color: var(--app-border) !important;
}
.e-grid .e-toolbar-items {
    background: transparent !important;
}
.e-grid .e-toolbar-item {
    background: transparent !important;
}
.e-grid .e-input-group {
    background: var(--app-surface) !important;
}
.e-grid .e-filterbar {
    background: var(--app-surface-strong) !important;
}
/* SfGrid: Selektion auch bei Fokus-Verlust sichtbar halten */
.e-grid .e-selectionbackground.e-rowcell,
.e-grid .e-row.e-active .e-rowcell,
.e-grid .e-row[aria-selected="true"] .e-rowcell,
.e-grid tr[aria-selected="true"] td.e-rowcell {
    background-color: var(--app-grid-select) !important;
}
/* Syncfusion Filled-Inputs: einheitlicher grauer Hintergrund */
.e-filled .e-input-group,
.e-filled .e-input-group.e-control-wrapper,
.e-input-group.e-filled,
.e-input-group.e-control-wrapper.e-filled {
    background: var(--app-surface-strong) !important;
    border-radius: 4px 4px 0 0 !important;
    border-bottom: 1px solid var(--app-border) !important;
}

/* ── Grid Card ── */
.grid-card {
    background: var(--app-surface);
    overflow: hidden;
    border: 1px solid var(--app-border-grid-card);
    border-radius: 8px;
    margin-top: 8px;
}
.grid-card .grid-card-bar {
    height: 4px;
}
.grid-card .grid-card-header {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--app-border-subtle);
}
.grid-card .grid-card-icon {
    border-radius: 8px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.grid-card .grid-card-footer {
    padding: 6px 16px 8px;
    border-top: 1px solid var(--app-border-subtle-faint);
}
.grid-card .grid-card-toolbar {
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 2px;
    border-bottom: 1px solid var(--app-border-subtle);
    background: var(--app-toolbar-bg);
}
/* Toolbar SfButtons: etwas groesser */
.grid-card-toolbar .e-btn.e-small {
    padding: 6px 8px;
    min-width: 32px;
    height: 32px;
}
.grid-card-toolbar .e-btn.e-small .e-btn-icon {
    font-size: 16px;
}
/* Custom minus icon */
.e-btn-icon.e-icon-minus::before {
    content: '\2212';
    font-size: 16px;
    font-weight: 700;
}
/* Toolbar danger-Button: Icon rot */
.grid-card-toolbar .e-btn.e-danger .e-btn-icon,
.grid-card-toolbar .e-btn.e-flat.e-danger .e-btn-icon {
    color: #ef4444 !important;
}
/* ButtonGroup: Outline-Buttons zarteren Rand */
.e-btn-group .e-btn.e-outline {
    border-color: rgba(148, 163, 184, 0.3) !important;
}

/* Toolbar MudMenu Dropdown-Popup kompakter */
.toolbar-dropdown .mud-menu-item {
    padding: 4px 12px !important;
    min-height: 32px !important;
    font-size: 0.8rem !important;
}
.toolbar-dropdown .mud-menu-item .mud-menu-item-text,
.toolbar-dropdown .mud-menu-item .mud-menu-item-text * {
    font-size: 0.8rem !important;
}
.toolbar-dropdown .mud-menu-item .mud-menu-item-icon {
    font-size: 1rem !important;
}
.toolbar-menu-btn .mud-button-root {
    text-transform: none !important;
}
.grid-card .grid-card-toolbar .toolbar-separator {
    width: 1px;
    height: 20px;
    background: var(--app-border-subtle-separator);
    margin: 0 6px;
}
/* Toolbar dropdown: compact popup */
.e-dropdown-popup {
    background: var(--app-dropdown-bg);
    border: 1px solid var(--app-dropdown-border);
    border-radius: 6px;
    box-shadow: var(--app-dropdown-shadow);
}
.e-dropdown-popup ul {
    padding: 2px 0;
    min-width: unset !important;
    background: transparent;
}
.e-dropdown-popup .e-item {
    font-size: 12px;
    height: 26px;
    line-height: 26px;
    padding: 0 10px;
    color: var(--app-dropdown-item-color);
    background: transparent;
}
.e-dropdown-popup .e-item:hover {
    background: var(--app-dropdown-item-hover);
    color: var(--app-dropdown-item-hover-color);
}
.e-dropdown-popup .e-item .e-menu-icon {
    color: var(--app-dropdown-icon-color);
}
.grid-card .e-grid {
    border: none !important;
    border-radius: 0 !important;
}
.grid-card .e-grid .e-gridheader {
    border-bottom: 1px solid var(--app-border-subtle-stronger) !important;
}
.grid-card .e-grid .e-headercell {
    background: var(--app-header-cell-bg) !important;
}
.grid-card .e-grid .e-headercelldiv {
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--app-header-cell-color) !important;
}
.grid-card .e-grid .e-rowcell {
    font-size: 0.78rem !important;
    padding: 6px 10px !important;
    border-bottom: 1px solid var(--app-border-subtle-faint) !important;
    border-right: none !important;
    vertical-align: middle !important;
}
.grid-card .e-grid .e-altrow .e-rowcell {
    background-color: var(--app-alt-row) !important;
}
.grid-card .e-grid .e-row:hover .e-rowcell {
    background-color: var(--app-row-hover) !important;
    transition: background-color 0.15s ease;
}
.grid-card .e-grid .e-row {
    cursor: pointer;
}
.grid-card .e-grid .e-selectionbackground.e-rowcell,
.grid-card .e-grid .e-row.e-active .e-rowcell,
.grid-card .e-grid .e-row[aria-selected="true"] .e-rowcell,
.grid-card .e-grid tr[aria-selected="true"] td.e-rowcell {
    background-color: var(--app-grid-select) !important;
}
.grid-card .e-grid .e-pager {
    font-size: 0.72rem !important;
    background: transparent !important;
    border-top: 1px solid var(--app-border-subtle-faint) !important;
}
.grid-card .e-grid .e-gridcontent {
    background: transparent !important;
}
.grid-card .e-grid .e-groupdroparea {
    font-size: 0.7rem !important;
    padding: 4px 8px !important;
    min-height: 28px !important;
    display: flex !important;
    align-items: center !important;
    line-height: 28px !important;
}

/* Splitter innerhalb grid-card */
.grid-card .e-splitter {
    border: none !important;
    background: transparent !important;
}
.grid-card .e-splitter .e-split-bar.e-split-bar-horizontal {
    background: var(--app-splitter-bar) !important;
    width: 5px !important;
}
.grid-card .e-splitter .e-split-bar.e-split-bar-horizontal:hover,
.grid-card .e-splitter .e-split-bar.e-split-bar-horizontal.e-split-bar-hover {
    background: var(--app-splitter-bar-hover) !important;
}
.grid-card .e-splitter .e-split-bar .e-resize-handler {
    background: var(--app-splitter-handle) !important;
    border-color: var(--app-splitter-handle) !important;
}
.grid-card .e-splitter .e-split-bar:hover .e-resize-handler {
    background: var(--app-splitter-handle-hover) !important;
    border-color: var(--app-splitter-handle-hover) !important;
}

/* Splitter panes: overflow + height propagation */
.grid-card .e-splitter .e-pane {
    overflow: hidden !important;
}

/* Grid Card — detail panel */
.grid-card .detail-panel {
    padding: 12px 16px;
    background: var(--app-detail-panel-bg);
    display: flex;
    flex-direction: column;
}

/* SfTab innerhalb detail-panel: flex column, volle Höhe */
.grid-card .detail-panel > .e-tab {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
}

/* Tab-Content-Bereich: restliche Höhe ausfüllen */
.grid-card .detail-panel > .e-tab > .e-content {
    flex: 1 1 0;
    overflow: hidden;
    min-height: 0;
}

/* Aktives Tab-Item: volle Höhe */
.grid-card .detail-panel > .e-tab > .e-content > .e-item.e-active {
    height: 100%;
}

/* MudBlazor-Labels im detail-panel */
.grid-card label.mud-input-label {
    font-size: 0.7rem !important;
    color: var(--app-text-muted) !important;
}

/* Einheitliche Schriftgroesse: Grid-Rows, Inputs, Checkboxen */
.grid-card .e-small .e-input,
.grid-card .e-small.e-input-group input.e-input,
.grid-card .e-small .e-input-group input.e-input,
.grid-card .e-input-group.e-small input.e-input,
.grid-card .e-small .e-numerictextbox input.e-input,
.grid-card .e-small.e-checkbox-wrapper .e-label,
.grid-card .e-small .e-checkbox-wrapper .e-label,
.grid-card .e-checkbox-wrapper .e-label {
    font-size: 0.78rem !important;
}
.grid-card .detail-panel .detail-label {
    display: block;
    font-size: 0.6rem;
    color: var(--app-detail-label-color);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}
.grid-card .detail-panel .detail-value {
    display: block;
    font-size: 0.75rem;
    color: var(--app-detail-value-color);
}

/* ══════════════════════════════════════════════════════════════
   Identity Pages (Login, Register, etc.) — Photo Background
   ══════════════════════════════════════════════════════════════ */

.identity-body {
    min-height: 100dvh;
    width: 100%;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.87);
    background: #1a1c28 url('images/login-bg.jpg') center / cover no-repeat fixed;
    position: relative;
    overflow: hidden;
}

/* Dark overlay so card text stays readable */
.identity-body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        165deg,
        rgba(20, 22, 36, 0.55) 0%,
        rgba(20, 22, 36, 0.35) 40%,
        rgba(20, 22, 36, 0.50) 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* Bottom vignette for depth */
.identity-body::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center bottom, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.identity-brand {
    width: 100%;
    height: 64px;
    background: rgba(30, 32, 48, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.25rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
    z-index: 10;
}

.identity-brand-logo {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.identity-brand-logo img { width: 100%; height: auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3)); }

.identity-brand-name {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.identity-shell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem 1rem;
    z-index: 1;
}

.identity-card {
    width: 100%;
    max-width: 420px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 16px;
    background: rgba(36, 39, 54, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
}

.identity-card-content {
    position: relative;
    color: rgba(255, 255, 255, 0.87);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.identity-card-content h1,
.identity-card-content h2,
.identity-card-content h3,
.identity-card-content label,
.identity-card-content p,
.identity-card-content span,
.identity-card-content a { color: rgba(255, 255, 255, 0.87); }

.identity-card-content .text-muted,
.identity-card-content small { color: rgba(255, 255, 255, 0.5) !important; }

/* StatusMessage alerts inside identity card */
.identity-card-content .alert-danger {
    color: #f44336;
    background: rgba(244, 67, 54, 0.12);
    border: 1px solid rgba(244, 67, 54, 0.2);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    border-left: 3px solid #f44336;
}

.identity-card-content .alert-success {
    color: #66bb6a;
    background: rgba(102, 187, 106, 0.12);
    border: 1px solid rgba(102, 187, 106, 0.2);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    border-left: 3px solid #66bb6a;
}

/* Photo credit — bottom right */
.identity-photo-credit {
    position: fixed;
    bottom: 8px;
    right: 12px;
    z-index: 2;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
}

.identity-photo-credit a {
    color: rgba(255, 255, 255, 0.45) !important;
    text-decoration: none;
}

.identity-photo-credit a:hover { color: rgba(255, 255, 255, 0.7) !important; }

/* ── Login Form ── */

.login-section {
    width: 100%;
    margin: 0 auto;
}

.login-container { position: relative; width: 100%; }

.login-form {
    position: relative;
    background: transparent;
    border: none;
    animation: loginFormSlideIn 0.5s ease-out;
}

.login-header {
    text-align: center;
    padding: 0 0 1.5rem;
}

.login-title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.login-title-icon { color: #8891cf; font-size: 1.5rem !important; }

.login-subtitle {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.login-content { padding: 0; }

.login-form-group { margin-bottom: 1.25rem; }

.login-form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6) !important;
}

.login-form-label .material-icons { color: rgba(255, 255, 255, 0.5) !important; font-size: 1.1rem !important; }

.login-form-input {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-form-input:focus {
    outline: none;
    border-color: rgba(136, 145, 207, 0.6);
    box-shadow: 0 0 0 2px rgba(136, 145, 207, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.login-form-input::placeholder { color: rgba(255, 255, 255, 0.3); }

.login-password-container { position: relative; }

.login-password-toggle {
    position: absolute;
    right: 0.5rem; top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.login-password-toggle:hover {
    color: rgba(255, 255, 255, 0.87);
}

/* ── Checkbox ── */

.login-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.login-remember-me { display: flex; align-items: center; }

.login-checkbox-input { display: none; }

.login-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7) !important;
    user-select: none;
}

.login-checkmark {
    width: 18px; height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.login-checkbox-input:checked + .login-checkbox-label .login-checkmark {
    background: #6670b5;
    border-color: #6670b5;
}

.login-checkbox-input:checked + .login-checkbox-label .login-checkmark::after {
    content: "";
    position: absolute;
    left: 5px; top: 2px;
    width: 4px; height: 8px;
    border: 2px solid white;
    border-top: none; border-left: none;
    transform: rotate(45deg);
}

/* ── Forgot Password ── */

.login-forgot-password {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #a0a8e0 !important;
    text-decoration: none !important;
    font-size: 0.875rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.login-forgot-password:hover {
    color: #c0c6f0 !important;
}

.login-forgot-password:visited,
.login-forgot-password:active { color: #a0a8e0 !important; }

/* ── Validation ── */

.login-validation-error {
    display: block;
    color: #f44336 !important;
    font-size: 0.8rem;
    margin-top: 0.375rem;
    font-weight: 400;
}

.login-validation-summary { margin-bottom: 1rem; }
.login-validation-summary ul { list-style: none; margin: 0; padding: 0; }

.login-validation-summary li {
    color: #f44336 !important;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(244, 67, 54, 0.12);
    border-radius: 8px;
    border-left: 3px solid #f44336;
}

/* ── Login Button ── */

.login-actions { padding: 1.25rem 0 0; }

.login-button {
    width: 100%;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #5a63a5, #6670b5);
    color: white;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(102, 112, 181, 0.25);
}

.login-button:hover {
    background: linear-gradient(135deg, #6670b5, #7880c5);
    box-shadow: 0 4px 16px rgba(102, 112, 181, 0.4);
    transform: translateY(-1px);
}

.login-button:active {
    background: linear-gradient(135deg, #4f58a0, #5a63a5);
    transform: translateY(0);
}

.login-button-icon { transition: transform 0.2s ease; }
.login-button:hover .login-button-icon { transform: translateX(3px); }

/* ── Divider + Passkey ── */

.login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.login-alt-actions { text-align: center; }

.login-passkey-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(136, 145, 207, 0.35);
    border-radius: 8px;
    color: #a0a8e0 !important;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.login-passkey-button:hover {
    background: rgba(136, 145, 207, 0.12);
    border-color: rgba(136, 145, 207, 0.5);
    color: #c0c6f0 !important;
}

/* ── Animation ── */

@keyframes loginFormSlideIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Identity Pages Responsive ── */

@media (max-width: 768px) {
    .identity-shell {
        padding: 1.5rem 1rem;
    }

    .identity-card {
        max-width: 100%;
    }

    .login-header { padding: 0 0 1rem; }
    .login-actions { padding: 1rem 0 0; }
    .login-form-group { margin-bottom: 1rem; }
    .login-title { font-size: 1.35rem; }
    .login-subtitle { font-size: 0.8rem; }

    .login-form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .identity-brand {
        height: 56px;
        padding: 0 1rem;
    }

    .identity-brand-logo { width: 30px; height: 30px; }
    .identity-brand-name { font-size: 1.1rem; }

    .identity-shell { padding: 1rem 0.75rem; }

    .identity-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .login-header { padding: 0 0 0.75rem; }
    .login-form-group { margin-bottom: 0.875rem; }
    .login-form-options { margin-bottom: 0.875rem; }
    .login-title { font-size: 1.2rem; }
    .login-subtitle { font-size: 0.8rem; }
}

/* ══════════════════════════════════════════════════════════════
   Client Home — Betrieb-Dashboard
   ══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════
   Client Home — Dashboard
   ══════════════════════════════════════════════ */
.ch {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: chFadeUp .45s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes chFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero Banner ── */
.ch-hero {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    padding: 36px 32px;
    background: linear-gradient(135deg, var(--hero-c1), var(--hero-c2) 50%, var(--hero-c3));
    box-shadow: 0 2px 24px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.ch-hero.ch-hero-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.ch-hero.ch-hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .25));
    pointer-events: none;
}

.ch-hero.ch-hero-image .ch-hero-content {
    position: relative;
    z-index: 1;
}

.ch-hero-noise {
    position: absolute;
    inset: 0;
    opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.ch-hero-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
}

.ch-hero-avatar {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .15);
}

.ch-hero-avatar span {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
}

.ch-hero-text h1 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.ch-hero-loc {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 4px;
    font-size: .82rem;
    color: rgba(255, 255, 255, .7);
}

.ch-hero-loc .material-icons-outlined {
    font-size: .95rem;
}

/* ── Quick Nav Row ── */
.ch-nav-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.ch-nav-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 18px 16px;
    border-radius: 12px;
    background: var(--app-surface);
    border: 1px solid var(--app-border-grid-card);
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, box-shadow .2s, transform .15s;
    overflow: hidden;
}

.ch-nav-card:hover {
    border-color: rgba(148, 163, 184, .22);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
    transform: translateY(-2px);
}

.ch-nav-icon {
    font-size: 1.5rem !important;
    color: var(--app-accent);
    margin-bottom: 4px;
}

.ch-nav-label {
    font-size: .88rem;
    font-weight: 600;
    color: var(--app-text-primary);
}

.ch-nav-sub {
    font-size: .72rem;
    color: var(--app-text-muted);
}

.ch-nav-arrow {
    position: absolute;
    top: 18px;
    right: 16px;
    font-size: 1.1rem !important;
    color: var(--app-text-muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .2s, transform .2s;
}

.ch-nav-card:hover .ch-nav-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ── Bottom Panels ── */
.ch-bottom {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 14px;
}

.ch-panel {
    background: var(--app-surface);
    border: 1px solid var(--app-border-grid-card);
    border-radius: 12px;
    overflow: hidden;
}

.ch-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--app-text-primary);
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid var(--app-border-subtle);
}

.ch-panel-head .material-icons-outlined {
    font-size: 1.1rem;
    color: var(--app-accent);
}

/* ── Einstellungs-Verknüpfungen ── */
.ch-settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px 18px;
}

/* ── Timeline (Openings) ── */
.ch-timeline {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ch-tl-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    position: relative;
}

.ch-tl-item:not(:last-child) {
    border-bottom: 1px solid var(--app-border-subtle);
}

.ch-tl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--app-accent);
    flex-shrink: 0;
    margin-top: 5px;
    box-shadow: 0 0 0 3px var(--app-accent-soft);
}

.ch-tl-item:first-child .ch-tl-dot {
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, .18);
}

.ch-tl-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ch-tl-date {
    font-size: .84rem;
    font-weight: 500;
    color: var(--app-text-primary);
}

.ch-tl-range {
    color: var(--app-text-secondary);
    font-weight: 400;
}

.ch-tl-meta {
    font-size: .72rem;
    color: var(--app-text-muted);
}

/* ── Contact / Info ── */
.ch-contact-grid {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ch-datum {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ch-datum-icon {
    font-size: 1.05rem !important;
    color: var(--app-text-muted);
    margin-top: 1px;
    flex-shrink: 0;
}

.ch-datum-val {
    font-size: .84rem;
    color: var(--app-detail-value-color);
    line-height: 1.45;
}

.ch-datum-sub {
    font-size: .68rem;
    color: var(--app-text-muted);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.ch-datum-info {
    white-space: pre-line;
}

.ch-datum-wide {
    padding-top: 6px;
    border-top: 1px solid var(--app-border-subtle);
}

/* ── Empty State ── */
.ch-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 18px;
    color: var(--app-text-muted);
    font-size: .82rem;
}

.ch-empty-state .material-icons-outlined {
    font-size: 2rem;
    opacity: .4;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .ch-hero { padding: 26px 22px; }
    .ch-hero-avatar { width: 48px; height: 48px; border-radius: 11px; }
    .ch-hero-avatar span { font-size: 1.1rem; }
    .ch-hero-text h1 { font-size: 1.25rem; }
    .ch-nav-row { grid-template-columns: 1fr; }
    .ch-bottom { grid-template-columns: 1fr; }
    .ch-settings-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   Config Page — Single-Entity Edit
   ══════════════════════════════════════════════ */
.cfg-page {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 96px;
    animation: chFadeUp .45s cubic-bezier(.22, 1, .36, 1) both;
}

/* Floating Action Button — Speichern fix unten rechts */
.settings-form-fab {
    position: fixed !important;
    right: 28px;
    bottom: 28px;
    z-index: 1300;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

.settings-form-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.10) !important;
}

@media (max-width: 640px) {
    .settings-form-fab {
        right: 16px;
        bottom: 16px;
    }
}

.cfg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--app-surface);
    border: 1px solid var(--app-border-grid-card);
    position: sticky;
    top: 0;
    z-index: 10;
}

.cfg-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cfg-header-left h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--app-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cfg-header-sub {
    font-size: .75rem;
    color: var(--app-text-muted);
    white-space: nowrap;
}

.cfg-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ── Card Grid ── */
.cfg-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.cfg-card {
    background: var(--app-surface);
    border: 1px solid var(--app-border-grid-card);
    border-radius: 12px;
    overflow: hidden;
}

.cfg-card-wide {
    grid-column: 1 / -1;
}

.cfg-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--app-text-primary);
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid var(--app-border-subtle);
}

.cfg-card-head .material-icons-outlined {
    font-size: 1.1rem;
    color: var(--app-accent);
}

.cfg-card-body {
    padding: 18px;
}

/* ══════════════════
   Translations-Page (/{ClientId}/Translations)
   ══════════════════ */
.tr-page .cfg-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tr-lang-flags {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-right: 8px;
}

.tr-search-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: var(--app-surface);
    border: 1px solid var(--app-border-subtle);
    border-radius: 8px;
}

.search-page {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: calc(100vh - 76px);
}

.search-hero {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 4px 4px 8px;
}

.search-hero-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--app-accent) 16%, transparent);
    color: var(--app-accent);
}

.search-hero-icon .material-icons-outlined {
    font-size: 1.65rem;
}

.search-hero-text {
    flex: 1;
    min-width: 0;
}

.search-hero-text h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--app-text-primary);
}

.search-hero-text p {
    margin: 2px 0 0;
    font-size: .85rem;
    color: var(--app-text-muted);
}

.search-hero-summary {
    flex-shrink: 0;
    font-size: .78rem;
    font-weight: 500;
    color: var(--app-text-muted);
    white-space: nowrap;
}

.search-panel {
    background: var(--app-surface);
    border: 1px solid var(--app-border-grid-card);
    border-radius: 12px;
    padding: 14px;
    min-height: 260px;
}

.search-input-shell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid var(--app-border-subtle-stronger);
    border-radius: 10px;
    background: var(--app-surface-strong);
}

.search-input-shell .material-icons-outlined {
    color: var(--app-text-muted);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--app-text-primary);
    font-size: .98rem;
}

.search-input::placeholder {
    color: var(--app-text-muted);
    opacity: .82;
}

.search-clear {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--app-text-muted);
    cursor: pointer;
}

.search-clear:hover {
    background: var(--app-row-hover);
    color: var(--app-text-primary);
}

.search-clear .material-icons-outlined {
    font-size: 1.1rem;
}

.search-progress {
    margin-top: 10px;
}

.search-empty {
    min-height: 180px;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.search-result {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid var(--app-border-subtle);
    border-radius: 10px;
    background: var(--app-surface-strong);
    color: var(--app-text-primary);
    cursor: pointer;
    text-align: left;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.search-result:hover {
    background: var(--app-row-hover);
    border-color: var(--app-border-subtle-stronger);
    transform: translateY(-1px);
}

.search-result-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-result-title {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 9px;
    font-weight: 600;
}

.search-result-title span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-number {
    font-size: .82rem;
    color: var(--app-accent);
    font-weight: 700;
    flex-shrink: 0;
}

.search-result-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--app-text-muted);
    font-size: .78rem;
}

.search-result-meta span {
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--app-surface);
    border: 1px solid var(--app-border-subtle);
}

.search-result-side {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.search-match {
    color: var(--app-text-muted);
    font-size: .76rem;
}

@media (max-width: 720px) {
    .search-page {
        padding: 12px;
    }

    .search-result {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .search-result-side {
        width: 100%;
        justify-content: space-between;
    }
}

.tr-search-bar > :first-child {
    flex: 1;
    max-width: 480px;
}

.tr-stats {
    color: var(--app-text-muted);
    white-space: nowrap;
}

.tr-section .cfg-card-head {
    cursor: pointer;
    user-select: none;
}

.tr-section-count {
    margin-left: auto;
    font-size: .72rem;
    color: var(--app-text-muted);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.tr-card-body {
    padding: 6px 12px 14px !important;
}

.tr-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 2fr) 36px;
    gap: 12px;
    align-items: start;
    padding: 8px 6px;
    border-bottom: 1px solid var(--app-border-subtle);
}

.tr-row:last-child {
    border-bottom: none;
}

.tr-row-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tr-key {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    color: var(--app-accent);
    background: rgba(124, 58, 237, 0.08);
    padding: 1px 6px;
    border-radius: 3px;
    align-self: flex-start;
    word-break: break-all;
}

.tr-default {
    font-size: 0.82rem;
    color: var(--app-text-muted);
    font-style: italic;
    white-space: pre-wrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tr-row-input {
    min-width: 0;
}

.tr-row-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 760px) {
    .tr-row {
        grid-template-columns: 1fr 36px;
    }
    .tr-row-input {
        grid-column: 1 / -1;
    }
}

/* ── Sprachflaggen im Card-Head ── */
.cfg-lang-flags {
    margin-left: auto;
    display: flex;
    gap: 6px;
    align-items: center;
}

.cfg-lang-flag {
    border: 2px solid transparent;
    background: transparent;
    padding: 2px 4px;
    cursor: pointer;
    border-radius: 4px;
    line-height: 0;
    opacity: 0.45;
    transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.cfg-lang-flag:hover {
    opacity: 0.85;
}

.cfg-lang-flag:active {
    transform: scale(0.94);
}

.cfg-lang-flag.active {
    opacity: 1;
    border-color: var(--app-accent, #7c3aed);
}

.cfg-lang-flag svg {
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

/* ── Gradient Preview ── */
.cfg-gradient-preview {
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-end;
    min-height: 60px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.cfg-gradient-label {
    font-size: .72rem;
    color: rgba(255, 255, 255, .6);
    font-weight: 500;
    letter-spacing: .3px;
}

/* ── Color Picker Row ── */
.cfg-color-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cfg-color-row label {
    font-size: .75rem;
    color: var(--app-text-secondary);
    font-weight: 500;
}

/* ── Image Thumbnails (Config) ── */
.cfg-image-label {
    font-size: .75rem;
    color: var(--app-text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
}

.cfg-image-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 2px dashed var(--app-border);
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .2s, background .2s;
    color: var(--app-text-muted);
}

.cfg-image-thumb:hover {
    border-color: var(--app-accent);
    background: var(--app-accent-soft);
}

.cfg-image-thumb .material-icons-outlined {
    font-size: 2rem;
    opacity: .5;
}

.cfg-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cfg-image-thumb--square {
    aspect-ratio: 1 / 1;
    max-width: 200px;
}

.cfg-image-thumb--wide {
    aspect-ratio: 8 / 3;
}

.cfg-image-hint {
    font-size: .72rem;
}

/* ── Upload Dialog ── */
.upload-preview {
    margin-bottom: 16px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border-grid-card);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-preview-img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.upload-preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px;
    color: var(--app-text-muted);
}

.upload-hint {
    font-size: .72rem;
    color: var(--app-text-muted);
    margin-top: 6px;
}

/* ── RichTextEditor Dark Theme ── */
.rte-dark.e-richtexteditor {
    background: var(--app-surface) !important;
    border-color: var(--app-border) !important;
}
.rte-dark .e-rte-content,
.rte-dark .e-content {
    background: var(--app-surface) !important;
    color: var(--app-text-primary) !important;
}
.rte-dark .e-toolbar {
    background: var(--app-surface-strong) !important;
    border-color: var(--app-border) !important;
    min-height: 0 !important;
    padding: 2px 4px !important;
}
.rte-dark .e-toolbar .e-toolbar-items {
    min-height: 0 !important;
}
.rte-dark .e-toolbar .e-tbar-btn {
    color: var(--app-text-secondary) !important;
    padding: 2px 6px !important;
    min-height: 26px !important;
    min-width: 26px !important;
}
.rte-dark .e-toolbar .e-tbar-btn .e-icons {
    font-size: 14px !important;
}
.rte-dark .e-toolbar .e-tbar-btn:hover {
    background: var(--app-surface) !important;
    color: var(--app-text-primary) !important;
}
.rte-dark .e-toolbar .e-separator {
    margin: 2px 4px !important;
    height: 20px !important;
}

/* ── Room Image Gallery ── */
.room-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}
.room-thumb-card {
    position: relative;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--app-border);
    background: var(--app-surface);
}
.room-thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.room-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--app-text-muted);
}
.room-thumb-delete {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
}
.room-thumb-card:hover .room-thumb-delete {
    opacity: 1;
}
.room-thumb-clickable {
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.room-thumb-clickable:hover {
    transform: scale(1.04);
    box-shadow: 0 0 0 2px var(--app-accent, #14b8a6);
}

/* ── Image-Preview-Dialog ── */
.image-preview-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    max-height: 80vh;
}
.image-preview-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 6px;
}
.image-preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.room-thumb-add {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    border: 2px dashed var(--app-border);
    background: transparent;
    color: var(--app-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, color 0.15s;
}
.room-thumb-add:hover {
    border-color: var(--app-accent);
    color: var(--app-accent);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .cfg-cards { grid-template-columns: 1fr; }
    .cfg-header-sub { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   Public Booking Page — Light Theme
   ══════════════════════════════════════════════════════════════ */

.booking-layout {
    min-height: 100vh;
    background: #eef0f4;
    color: #1e293b;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    caret-color: transparent;
}

.booking-layout input,
.booking-layout textarea,
.booking-layout select,
.booking-layout [contenteditable="true"] {
    caret-color: auto;
}

/* ── Page Grid ── */
.book-page {
    display: grid;
    grid-template-columns: 280px 1fr 180px;
    min-height: 100vh;
}

/* ── Loading ── */
.book-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 16px;
    color: #64748b;
}

.book-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--book-primary, #1e293b);
    border-radius: 50%;
    animation: bookSpin 0.7s linear infinite;
}

@keyframes bookSpin {
    to { transform: rotate(360deg); }
}

/* ── Sidebar ── einfarbig + dezente Bergsilhouette am unteren Rand ── */
.book-sidebar {
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200' preserveAspectRatio='xMidYMax meet'><path fill='%23ffffff' fill-opacity='0.07' d='M0 200 L90 80 L160 130 L235 40 L320 120 L410 60 L490 140 L600 70 L600 200 Z'/><path fill='%23ffffff' fill-opacity='0.04' d='M0 200 L60 140 L130 170 L210 110 L290 160 L380 100 L460 160 L550 120 L600 160 L600 200 Z'/></svg>") bottom center / 100% auto no-repeat,
        var(--book-sidebar-start, #1e293b);
    border-right: none;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    color: #fff;
    overflow-y: auto;
}

.book-logo {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.book-logo img {
    max-height: 48px;
    max-width: 100%;
    object-fit: contain;
}

.book-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

/* ── Sidebar Header (Wizard, Desktop: großer Name; Mobile: Logo) ── */
.book-sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.book-sidebar-header-logo {
    display: none; /* Default Desktop: oben kein Logo, nur Name */
}

.book-sidebar-title {
    display: block;
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.01em;
    word-break: break-word;
}

.book-sidebar-footer-logo {
    display: block;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    object-fit: contain;
}

/* ── Step Navigation ── */
.book-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.book-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: default;
    transition: background 0.15s;
}

.book-step.completed {
    cursor: pointer;
}

.book-step.completed:hover {
    background: rgba(255,255,255,0.1);
}

.book-step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
}

.book-step.active .book-step-icon {
    background: #fff;
    color: var(--book-sidebar-start, #1e293b);
}

.book-step.completed .book-step-icon {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.book-step-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.book-step-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    transition: color 0.15s;
}

.book-step.active .book-step-title {
    color: #fff;
    font-weight: 600;
}

.book-step.completed .book-step-title {
    color: rgba(255,255,255,0.85);
}

.book-step-subtitle {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
}

.book-step.active .book-step-subtitle {
    color: rgba(255,255,255,0.7);
}

.book-sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.book-sidebar-footer-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.book-sidebar-address {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
}

.book-sidebar-links {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.book-sidebar-link {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.15s;
}

.book-sidebar-link:hover {
    color: #fff;
    text-decoration: underline;
}

.book-sidebar-admin-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.25);
    text-decoration: none;
    transition: color 0.15s;
}

.book-sidebar-admin-link:hover {
    color: rgba(255,255,255,0.7);
}

/* ── Main Content ── */
.book-main {
    background: #fff;
    display: flex;
    flex-direction: column;
}

.book-content {
    max-width: 840px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 40px 120px;
    animation: bookFadeIn 0.35s ease;
}

@keyframes bookFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.book-content h2 {
    margin: 0 0 4px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.book-subtitle {
    margin: 0 0 32px;
    font-size: 0.95rem;
    color: #475569;
}

/* ── Deco ── einfarbig + dezente Bergsilhouette am unteren Rand ── */
.book-deco {
    position: sticky;
    top: 0;
    height: 100vh;
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200' preserveAspectRatio='xMidYMax meet'><path fill='%23ffffff' fill-opacity='0.07' d='M0 200 L90 80 L160 130 L235 40 L320 120 L410 60 L490 140 L600 70 L600 200 Z'/><path fill='%23ffffff' fill-opacity='0.04' d='M0 200 L60 140 L130 170 L210 110 L290 160 L380 100 L460 160 L550 120 L600 160 L600 200 Z'/></svg>") bottom center / 100% auto no-repeat,
        var(--book-sidebar-start, #1e293b);
}

/* ── Bottom Bar ── */
.book-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 280px;
    right: 180px;
    padding: 16px 40px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    z-index: 50;
}

.book-bottom-info {
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
}

.book-bottom-detail {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 400;
}

/* ── Buttons ── */
.book-btn {
    padding: 12px 32px;
    background: var(--book-primary-safe, #1e293b);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.book-btn:hover {
    background: var(--book-primary-safe-hover, #334155);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
}

.book-btn:active {
    transform: translateY(0);
}

.book-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.book-btn-back {
    padding: 12px 24px;
    background: transparent;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.book-btn-back:hover {
    background: #f8f9fb;
    border-color: #cbd5e1;
    color: #1e293b;
}

.book-btn-submit {
    padding: 14px 40px;
    font-size: 1rem;
    background: #16a34a;
}

.book-btn-submit:hover {
    background: #15803d;
}

.book-btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bookSpin 0.7s linear infinite;
}

/* ══════════════════
   Step 1: Calendar
   ══════════════════ */
.book-calendar-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    padding-right: 8px;
    padding-bottom: 20px;
}

.book-cal-month-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    text-transform: capitalize;
}

.book-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}

.book-cal-weekdays span {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 0;
}

.book-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

/* ══════════════════
   Step 0: Welcome / Sidebar-Sprachflaggen
   ══════════════════ */
.book-sidebar-langs {
    display: flex;
    gap: 8px;
    padding: 8px 0 4px;
    justify-content: center;
}

.book-lang-flag {
    border: 2px solid transparent;
    background: transparent;
    padding: 2px 4px;
    cursor: pointer;
    border-radius: 4px;
    line-height: 0;
    opacity: 0.55;
    transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.book-lang-flag:hover {
    opacity: 0.9;
}

.book-lang-flag:active {
    transform: scale(0.94);
}

.book-lang-flag.active {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.85);
}

.book-lang-flag svg {
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.book-welcome-step {
    padding: 40px 20px 80px;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.book-welcome-hero {
    width: 100%;
    aspect-ratio: 8 / 3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    margin-bottom: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .book-welcome-step {
        padding: 24px 16px 80px;
    }
    .book-welcome-hero {
        aspect-ratio: 16 / 9;
        border-radius: 8px;
        margin-bottom: 20px;
    }
}

.book-welcome-flags {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 28px;
}

.book-welcome-flags .book-lang-flag {
    opacity: 0.6;
}

.book-welcome-flags .book-lang-flag.active {
    opacity: 1;
    border-color: var(--book-primary-safe, #1e293b);
}

.book-welcome-flags .book-lang-flag svg {
    width: 44px;
    height: auto;
}

.book-welcome-content h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.book-welcome-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #334155;
}

.book-welcome-text :is(h1, h2, h3) {
    margin-top: 1em;
    margin-bottom: 0.4em;
}

.book-welcome-text p {
    margin: 0 0 0.8em;
}

.book-welcome-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.book-cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.12s;
    position: relative;
    min-height: 44px;
}

.book-cal-day:hover:not(.past):not(.empty):not(.disabled) {
    background: #f1f5f9;
}

.book-cal-day.empty {
    cursor: default;
}

.book-cal-day.past {
    cursor: default;
    opacity: 0.35;
}

.book-cal-day.disabled {
    cursor: default;
    opacity: 0.35;
}

.book-cal-day-num {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
}

.book-cal-day.past .book-cal-day-num {
    color: #94a3b8;
}

.book-cal-day.disabled .book-cal-day-num {
    color: #94a3b8;
}

.book-availability-note,
.book-unavailable-text {
    border: 1px solid #cbd5e1;
    border-left: 4px solid var(--book-primary-safe, #1e293b);
    border-radius: 8px;
    background: #f8fafc;
    color: #1e293b;
}

.book-availability-note {
    margin-bottom: 20px;
    padding: 14px 16px;
}

.book-availability-note > :last-child,
.book-unavailable-text > :last-child {
    margin-bottom: 0;
}

.book-unavailable {
    max-width: 720px;
    justify-content: center;
}

.book-unavailable-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--book-primary-safe, #1e293b);
    background: var(--book-primary-safe-light, #e2e8f0);
    margin-bottom: 18px;
}

.book-unavailable-icon .material-icons-outlined {
    font-size: 32px;
}

.book-unavailable-text {
    padding: 24px;
    width: 100%;
}

/* Anreise: rechte/untere Hälfte gefüllt (Nachmittag belegt) */
.book-cal-day.check-in {
    background: linear-gradient(to top left, var(--book-primary-safe, #1e293b) 50%, transparent 50%);
    border-radius: 8px 0 0 8px;
}

.book-cal-day.check-in .book-cal-day-num,
.book-cal-day.check-out .book-cal-day-num {
    color: #fff;
    font-weight: 700;
    background: var(--book-primary-safe, #1e293b);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Abreise: linke/untere Hälfte gefüllt (Vormittag belegt) */
.book-cal-day.check-out {
    background: linear-gradient(to top right, var(--book-primary-safe, #1e293b) 50%, transparent 50%);
    border-radius: 0 8px 8px 0;
}

.book-cal-day.in-range {
    background: var(--book-primary-safe, #1e293b);
    border-radius: 0;
}

.book-cal-day.in-range .book-cal-day-num {
    color: #fff;
}

/* ══════════════════
   Step 2: Guests
   ══════════════════ */
.book-counters {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 420px;
}

.book-counter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

.book-counter-row:last-child {
    border-bottom: none;
}

.book-counter-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.book-counter-title {
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
}

.book-counter-hint {
    font-size: 0.8rem;
    color: #6b7280;
}

.book-counter {
    display: flex;
    align-items: center;
    gap: 16px;
}

.book-room-guest-counter {
    padding: 14px 16px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    justify-content: space-between;
    gap: 12px;
}

.book-room-guest-counter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-right: auto;
}

.book-room-guest-counter .book-counter-btn {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
}

.book-room-guest-counter .book-counter-value {
    min-width: 28px;
}

.book-counter-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s;
    font-family: inherit;
    line-height: 1;
}

.book-counter-btn:hover:not(:disabled) {
    border-color: #1e293b;
    background: #f8f9fb;
}

.book-counter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.book-counter-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    min-width: 24px;
    text-align: center;
}

/* ══════════════════
   Step 3: Rooms
   ══════════════════ */
.book-room-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.book-room-card {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.book-room-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.book-room-card.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
}

.book-room-card.unavailable:hover {
    transform: none;
    box-shadow: none;
}

.book-room-image {
    height: 180px;
    background: #f1f5f9;
    overflow: hidden;
}

.book-room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.book-room-card:hover .book-room-image img {
    transform: scale(1.03);
}

.book-room-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f8f9fb;
}

.book-room-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.book-room-info h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
}

.book-room-desc {
    margin: 0;
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-room-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.book-room-capacity,
.book-room-beds {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #475569;
}

.book-room-capacity svg {
    flex-shrink: 0;
}

.book-room-unavailable {
    padding: 6px 12px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.book-room-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
}

.book-room-price-amount {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
}

.book-room-price-unit {
    font-size: 0.75rem;
    color: #475569;
    font-weight: 400;
}

.book-room-price-total {
    font-size: 0.8rem;
    color: #475569;
}

.book-room-select-btn {
    margin: 0 16px 16px;
    padding: 10px 0;
    background: var(--book-primary-safe, #1e293b);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.book-room-select-btn:hover {
    background: var(--book-primary-safe-hover, #334155);
}

.book-loading-inline {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.book-empty {
    text-align: center;
    padding: 40px;
    color: #64748b;
    font-size: 0.9rem;
}

/* ── Room Modal ── */
.book-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: bookFadeIn 0.2s ease;
}

.book-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.book-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.15s;
    color: #475569;
}

.book-modal-close:hover {
    background: #f1f5f9;
}

.book-modal-gallery {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.book-modal-gallery img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.book-modal-body {
    padding: 24px;
}

.book-modal-body h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.book-modal-description {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 20px;
}

.book-modal-rates-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 20px 0 12px;
}

.book-modal-rates {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.book-modal-rate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    transition: border-color 0.15s;
}

.book-modal-rate:hover {
    border-color: #94a3b8;
}

.book-modal-rate-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.book-modal-rate-info strong {
    font-size: 0.95rem;
    color: #1e293b;
}

.book-modal-rate-desc {
    font-size: 0.8rem;
    color: #6b7280;
}

.book-modal-rate-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}

/* ── Room Info Button (on card) ── */
.book-room-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.book-room-info-header h3 {
    flex: 1;
    min-width: 0;
}

.book-room-info-btn.mud-icon-button {
    flex-shrink: 0;
    color: #64748b;
    transition: color 0.15s;
}

.book-room-info-btn.mud-icon-button:hover {
    color: #3b82f6;
}

/* ══════════════════════════════
   Room Detail Overlay (Full-page)
   ══════════════════════════════ */
.book-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 41, 59, 0.85);
    z-index: 1000;
    display: flex;
    align-items: stretch;
    justify-content: center;
    animation: bookFadeIn 0.25s ease;
}

.book-detail {
    display: grid;
    grid-template-columns: 1fr 420px;
    width: 100%;
    max-width: 1200px;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.book-detail-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.15s;
    color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.book-detail-close:hover {
    background: #fff;
}

/* ── Gallery ── */
.book-detail-gallery {
    background: #0f172a;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.book-detail-main-image {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}

.book-detail-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.book-detail-no-image {
    background: #1e293b;
}

.book-detail-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    color: #1e293b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.book-detail-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

.book-detail-nav-prev { left: 16px; }
.book-detail-nav-next { right: 16px; }

.book-detail-thumbs {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #0f172a;
    overflow-x: auto;
    flex-shrink: 0;
}

.book-detail-thumb {
    width: 80px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    opacity: 0.6;
    transition: all 0.15s;
}

.book-detail-thumb.active {
    border-color: #fff;
    opacity: 1;
}

.book-detail-thumb:hover {
    opacity: 0.9;
}

.book-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Info Panel ── */
.book-detail-info {
    padding: 32px 28px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.book-detail-info h2 {
    margin: 0 0 4px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.book-detail-capacity {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 16px;
}

.book-detail-price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #475569;
}

.book-detail-price-total strong {
    color: #0f172a;
    font-size: 1rem;
}

.book-detail-section {
    margin-bottom: 20px;
}

.book-detail-section h3 {
    margin: 0 0 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
}

.book-detail-description {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.6;
}

/* ── Rate Cards ── */
.book-detail-rates {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.book-detail-rate-card {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 20px;
    transition: border-color 0.15s;
}

.book-detail-rate-card:hover {
    border-color: #94a3b8;
}

.book-detail-rate-header strong {
    font-size: 1rem;
    color: #0f172a;
}

.book-detail-rate-desc {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
}

.book-detail-rate-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.book-detail-rate-price {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.book-detail-rate-label {
    font-size: 0.75rem;
    color: #64748b;
}

.book-detail-rate-amount {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

/* ── Room Detail Responsive ── */
@media (max-width: 900px) {
    .book-detail {
        grid-template-columns: 1fr;
        grid-template-rows: 50vh 1fr;
    }
}

@media (max-width: 768px) {
    .book-detail {
        grid-template-rows: 40vh 1fr;
    }

    .book-detail-info {
        padding: 24px 20px;
    }

    .book-detail-thumbs {
        padding: 8px 12px;
    }

    .book-detail-thumb {
        width: 60px;
        height: 42px;
    }
}

/* ══════════════════
   Step 4: Contact
   ══════════════════ */
.book-form {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.book-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.book-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.book-form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
}

.book-form-group input,
.book-form-group select {
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    outline: none;
}

.book-form-group input:focus,
.book-form-group select:focus {
    border-color: #1e293b;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.08);
}

.book-form-group input.error {
    border-color: #dc2626;
}

.book-form-group input.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

/* ── Country Dropdown ── */
.book-country-select {
    position: relative;
}

.book-country-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #0f172a;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    text-align: left;
}

.book-country-trigger:focus {
    border-color: #1e293b;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.08);
}

.book-country-trigger span {
    flex: 1;
}

.book-country-chevron {
    flex-shrink: 0;
    color: #64748b;
    transition: transform 0.2s;
}

.book-country-chevron.open {
    transform: rotate(180deg);
}

.book-flag-icon {
    width: 24px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.book-country-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
    max-height: 280px;
    overflow-y: auto;
    animation: bookFadeIn 0.15s ease;
    text-align: left;
}

.book-country-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: #0f172a;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.1s;
}

.book-country-option:hover {
    background: #f1f5f9;
}

.book-country-option.selected {
    background: #e2e8f0;
    font-weight: 600;
}

.book-country-option:first-child { border-radius: 6px 6px 0 0; }
.book-country-option:last-child { border-radius: 0 0 6px 6px; }

.book-form-errors {
    padding: 10px 14px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ══════════════════
   Step 5: Summary
   ══════════════════ */
.book-summary-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
}

.book-summary-section {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.book-summary-section:last-child {
    border-bottom: none;
}

.book-summary-section h3 {
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
}

.book-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.book-summary-row span {
    font-size: 0.9rem;
    color: #475569;
}

.book-summary-row strong {
    font-size: 0.9rem;
    color: #0f172a;
    font-weight: 600;
    text-align: right;
}

.book-summary-category-row strong {
    white-space: nowrap;
}

.book-category-summary-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
    width: 100%;
}

.book-category-summary-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
    color: #475569;
}

.book-category-summary-item strong {
    color: #1e293b;
    white-space: nowrap;
}

.book-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #1e293b;
    color: #fff;
}

.book-summary-total span {
    font-size: 1rem;
    font-weight: 500;
}

.book-summary-total strong {
    font-size: 1.25rem;
    font-weight: 700;
}

/* ── Success ── */
.book-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.book-success-icon {
    margin-bottom: 24px;
}

.book-success h2 {
    margin-bottom: 12px;
}

.book-success-id {
    font-size: 1.05rem;
    color: #334155;
    margin-bottom: 32px;
}

.book-success-hint {
    font-size: 0.85rem;
    color: #64748b;
}

/* ── Success Card (gegliederte Info-Karte) ── */
.book-success-card {
    max-width: 420px;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: left;
    margin-bottom: 28px;
}

.book-success-section {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.book-success-section:last-child {
    border-bottom: none;
}

.book-success-section-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f0f4ff;
    color: #4f6ef7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-success-section-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.book-success-label {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 400;
}

.book-success-value {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 600;
}

.book-success-value-lg {
    font-size: 1.1rem;
}

/* Dates row */
.book-success-dates {
    display: flex;
    gap: 24px;
}

.book-success-date-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.book-success-nights {
    font-size: 0.82rem;
    color: #4f6ef7;
    font-weight: 500;
    margin-top: 4px;
}

/* Price section */
.book-success-section-price {
    flex-direction: column;
    gap: 0;
    padding: 16px 24px;
    background: #f8fafc;
}

.book-success-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.book-success-price-row span {
    font-size: 0.9rem;
    color: #475569;
}

.book-success-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

.book-success-price-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 10px 0;
}

.book-success-deposit {
    font-size: 1rem;
    font-weight: 600;
    color: #4f6ef7;
}

/* ── Deposit / Payment ── */
.book-summary-deposit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: #172554;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.book-summary-deposit span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #93c5fd;
}

.book-deposit-amount {
    color: #60a5fa !important;
    font-size: 1.1rem;
    font-weight: 700;
}

.book-summary-deposit-row strong {
    color: #60a5fa;
}

.book-voucher-section {
    padding: 18px 24px;
    border-top: 1px solid #e2e8f0;
}

.book-voucher-section h3 {
    margin: 0 0 12px;
    font-size: .95rem;
    font-weight: 700;
    color: #1e293b;
}

.book-voucher-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 12px;
}

.book-voucher-row input {
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: .95rem;
}

.book-btn-secondary {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #1e293b;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}

.book-btn-secondary:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.book-voucher-result {
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #eff6ff;
    overflow: hidden;
}

.book-voucher-result .book-summary-row {
    padding: 10px 12px;
}

@media (max-width: 560px) {
    .book-voucher-row {
        grid-template-columns: 1fr;
    }
}

.public-reservation-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background: #f6f7fb;
    color: #111827;
}

.public-reservation-panel {
    width: min(760px, 100%);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .12);
}

.public-reservation-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.public-reservation-kicker,
.public-reservation-grid span,
.public-reservation-deadline span {
    display: block;
    color: #6b7280;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}

.public-reservation-header h1 {
    margin: 0;
    font-size: 1.8rem;
}

.public-reservation-status {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: .82rem;
    font-weight: 700;
}

.public-reservation-status.is-confirmed {
    background: #dcfce7;
    color: #166534;
}

.public-reservation-status.is-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.public-reservation-status.is-new {
    background: #dbeafe;
    color: #1e40af;
}

.public-reservation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.public-reservation-grid > div,
.public-reservation-note,
.public-reservation-deadline {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    background: #fbfdff;
}

.public-reservation-grid strong,
.public-reservation-deadline strong {
    font-size: 1rem;
}

.public-reservation-note {
    margin-bottom: 16px;
}

.public-reservation-note p {
    margin: 0 0 8px;
}

.public-reservation-note p:last-child {
    margin-bottom: 0;
}

.public-reservation-deadline {
    margin-bottom: 16px;
}

.public-reservation-message {
    margin: 0 0 18px;
    color: #374151;
}

.public-reservation-cancel {
    width: 100%;
}

.guest-data-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 18px;
    background: #f6f7fb;
    color: #111827;
}

.guest-data-panel {
    width: min(920px, 100%);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .12);
}

.guest-data-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.guest-data-header h1 {
    margin: 3px 0 0;
    font-size: 1.65rem;
}

.guest-data-form {
    margin-top: 22px;
}

.guest-data-row {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin: 0 0 16px;
    background: #fbfdff;
}

.guest-data-row legend {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    font-weight: 700;
}

.guest-data-row legend span {
    border-radius: 999px;
    padding: 2px 8px;
    background: #dbeafe;
    color: #1e40af;
    font-size: .76rem;
    font-weight: 600;
}

.guest-data-submit {
    width: 100%;
    margin-top: 6px;
}

.cfg-time-input {
    width: 100%;
    min-height: 34px;
    border: 1px solid rgba(120, 130, 150, .35);
    border-radius: 4px;
    padding: 6px 10px;
    background: transparent;
    color: inherit;
}

@media (max-width: 640px) {
    .public-reservation-panel {
        padding: 20px;
    }

    .public-reservation-header {
        flex-direction: column;
    }

    .public-reservation-grid {
        grid-template-columns: 1fr;
    }

    .guest-data-panel {
        padding: 20px;
    }

    .guest-data-header {
        flex-direction: column;
    }
}

/* ── Success Card responsive ── */
@media (max-width: 480px) {
    .book-success-card {
        border-radius: 8px;
    }
    .book-success-section {
        padding: 16px 18px;
        gap: 12px;
    }
    .book-success-section-icon {
        width: 36px;
        height: 36px;
    }
    .book-success-dates {
        flex-direction: column;
        gap: 8px;
    }
}

.book-payment-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 0;
    color: #64748b;
    font-size: 0.95rem;
}

/* ── Stripe Config Hint ── */
.cfg-stripe-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--app-surface-soft);
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--app-text-secondary);
}

.cfg-stripe-hint code {
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    font-size: 0.75rem;
    background: var(--app-surface-strong);
    padding: 2px 6px;
    border-radius: 4px;
    word-break: break-all;
}

/* ── E-Mail Template Config ── */
.cfg-template-panels {
    background: transparent !important;
}

.cfg-template-panels .mud-expand-panel {
    background: var(--app-surface-soft) !important;
    border-radius: 8px !important;
    margin-bottom: 8px;
}

.cfg-tpl-header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.cfg-tpl-name {
    font-weight: 600;
    font-size: .88rem;
}

.cfg-tpl-desc {
    font-size: .78rem;
    color: var(--app-text-secondary);
    margin: 0;
}

.cfg-tpl-placeholders {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cfg-tpl-badge {
    font-size: .7rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    color: var(--app-text-secondary);
    letter-spacing: .3px;
}

.cfg-tpl-badge--success {
    background: rgba(76,175,80,.15);
    color: #66bb6a;
}

.cfg-tpl-badge--info {
    background: rgba(33,150,243,.15);
    color: #42a5f5;
}

/* ── Mail Template Page ── */
.mail-tpl-tabs {
    background: var(--app-surface);
    border-radius: 10px;
    padding: 0;
}

.mail-tpl-content {
    padding: 20px 4px;
}

.mail-tpl-placeholders-wrap {
    margin: 16px 0;
}

.mail-tpl-placeholders-wrap summary {
    font-size: .82rem;
    opacity: .7;
    cursor: pointer;
    user-select: none;
}

.mail-tpl-source-wrap {
    margin-top: 16px;
}

.mail-tpl-source-wrap summary {
    font-size: .82rem;
    opacity: .7;
    cursor: pointer;
    user-select: none;
}

.mail-tpl-source {
    margin-top: 8px;
    padding: 12px;
    background: var(--app-surface-strong);
    border-radius: 8px;
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    font-size: .75rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 300px;
    color: var(--app-text-secondary);
}

.mail-tpl-source--editable {
    display: block;
    width: 100%;
    height: 520px;
    max-height: none;
    resize: vertical;
    white-space: pre;
    word-break: normal;
    border: 1px solid var(--app-border-subtle);
    color: var(--app-text-primary);
    outline: none;
    tab-size: 4;
}

.mail-tpl-source--editable:focus {
    border-color: var(--app-accent);
}

.mail-tpl-preview-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.mail-tpl-preview-meta span {
    color: var(--app-text-muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.mail-tpl-preview-meta strong {
    color: var(--app-text-primary);
    font-size: .95rem;
}

.mail-tpl-preview-frame {
    display: block;
    width: 100%;
    min-height: 70vh;
    border: 1px solid var(--app-border-subtle);
    border-radius: 8px;
    background: #fff;
}

.cfg-tpl-placeholders code {
    font-family: 'Cascadia Code', 'Fira Code', monospace;
    font-size: .72rem;
    background: var(--app-surface-strong);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* ══════════════════
   Booking Responsive
   ══════════════════ */
@media (max-width: 1024px) {
    .book-page {
        grid-template-columns: 240px 1fr;
    }
    .book-deco { display: none; }
    .book-bottom-bar { right: 0; left: 240px; }
}

@media (max-width: 768px) {
    .book-page {
        grid-template-columns: 1fr;
    }

    .book-sidebar {
        position: static;
        height: auto;
        flex-direction: row;
        align-items: center;
        padding: 16px 20px;
        gap: 16px;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .book-logo {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        flex-shrink: 0;
    }

    /* Wizard-Sidebar in Mobile: Logo oben, Title nur als Fallback wenn kein Logo da */
    .book-sidebar-header {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        flex-shrink: 0;
    }
    .book-sidebar-header-logo {
        display: block;
        max-height: 48px;
        max-width: 100%;
        object-fit: contain;
    }
    .book-sidebar-header:has(.book-sidebar-header-logo) .book-sidebar-title {
        display: none;
    }
    .book-sidebar-title {
        font-size: 1.05rem;
    }

    .book-steps {
        flex-direction: row;
        gap: 4px;
        flex: 1;
        overflow-x: auto;
    }

    .book-step {
        flex-shrink: 0;
        padding: 8px 10px;
    }

    .book-step-subtitle,
    .book-sidebar-footer { display: none; }

    /* Sprachauswahl mobil im Header ausblenden – Auswahl erfolgt im ersten Step */
    .book-sidebar-langs { display: none; }

    .book-content {
        padding: 24px 20px 120px;
    }

    .book-bottom-bar {
        left: 0;
        right: 0;
        padding: 12px 20px;
    }

    .book-deco { display: none; }
    .book-room-grid { grid-template-columns: 1fr; }
    .book-form-row-2 { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════
   Zimmerplan (zp-*) — Gantt-style room occupancy grid
   ════════════════════════════════════════════════════════════════ */

.zp-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 44px - 16px); /* AppBar (44px) + bottom padding (16px) */
    margin: 0 -16px -16px -16px; /* negate side+bottom pa-4, keep top (already 44px for AppBar) */
}

.zp-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--app-toolbar-bg);
    border-bottom: 1px solid var(--app-border);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.zp-year {
    font-size: 15px;
    font-weight: 600;
    color: var(--app-text-primary);
    min-width: 44px;
    text-align: center;
}

.zp-month-tabs {
    display: flex;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.zp-month-tab {
    background: transparent;
    border: none;
    color: var(--app-text-secondary);
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.zp-month-tab:hover {
    background: var(--app-accent-soft);
    color: var(--app-text-primary);
}

.zp-month-active {
    background: var(--app-accent);
    color: #fff;
    font-weight: 600;
}

.zp-month-active:hover {
    background: var(--app-accent);
}

.zp-view-tabs {
    display: flex;
    gap: 2px;
    padding: 2px;
    background: var(--app-accent-soft);
    border-radius: 6px;
    flex-shrink: 0;
}

.zp-view-tab {
    background: transparent;
    border: none;
    color: var(--app-text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.zp-view-tab:hover {
    color: var(--app-text-primary);
}

.zp-view-active {
    background: var(--app-accent);
    color: #fff;
}

.zp-range-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--app-text-primary);
    min-width: 220px;
    text-align: center;
    flex: 1;
}

.zp-today-btn {
    margin-left: auto;
}

.zp-unplaced {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #b45309;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
    animation: zp-unplaced-pulse 1.8s ease-out infinite;
}

.zp-unplaced:hover {
    background: #c2620a;
}

.zp-unplaced-count {
    font-size: 14px;
    font-weight: 800;
}

@keyframes zp-unplaced-pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* ── Scroll container ── */
.zp-scroll {
    overflow: auto;
    flex: 1;
    min-height: 0; /* allow flex child to shrink & scroll */
    position: relative;
}

/* ── CSS Grid ── */
.zp-grid {
    display: grid;
    min-width: max-content;
}

/* ── Corner cell (sticky top+left) ── */
.zp-corner {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 25;
    background: var(--app-surface);
    border-right: 1px solid var(--app-border);
    border-bottom: 1px solid var(--app-border);
}

/* ── Headers ── */
.zp-hdr {
    position: sticky;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--app-text-secondary);
    background: var(--app-surface);
    border-bottom: 1px solid var(--app-border-subtle-separator);
    user-select: none;
}

.zp-hdr-kw {
    top: 0;
    font-weight: 600;
    font-size: 10px;
    color: var(--app-text-muted);
    letter-spacing: 0.5px;
    border-right: 1px solid var(--app-border-subtle-separator);
}

.zp-hdr-date {
    top: 20px;
    font-weight: 600;
    color: var(--app-text-primary);
}

.zp-hdr-day {
    top: 44px;
    font-size: 10px;
    color: var(--app-text-muted);
    border-bottom: 1px solid var(--app-border);
}

.zp-hdr-weekend {
    color: var(--app-accent);
}

.zp-hdr-today {
    color: #fff;
    background: var(--app-accent);
    border-radius: 4px;
}

/* ── Room labels (sticky left) ── */
.zp-room {
    position: sticky;
    left: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    background: var(--app-surface);
    border-right: 1px solid var(--app-border);
    border-bottom: 1px solid var(--app-border-subtle-faint);
    white-space: nowrap;
    overflow: hidden;
}

.zp-room-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--app-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
}

.zp-room-beds {
    font-size: 10px;
    color: var(--app-text-muted);
    background: var(--app-surface-strong);
    padding: 1px 5px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* ── Room group header (expandable) ── */
.zp-room-header {
    font-weight: 600;
}

.zp-room-expandable {
    cursor: pointer;
}

.zp-room-expandable:hover {
    background: rgba(102, 112, 181, 0.08);
}

.zp-expand-icon {
    font-size: 0.6rem;
    color: var(--app-text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    display: inline-block;
    width: 12px;
}

.zp-expand-icon.expanded {
    transform: rotate(90deg);
}

/* ── Bed rows ── */
.zp-room-bed {
    padding-left: 28px;
    background: rgba(0, 0, 0, 0.08);
}

.zp-bed-label {
    font-size: 11px;
    color: var(--app-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
}

.zp-cell-bed {
    background: rgba(0, 0, 0, 0.04);
}

.zp-cell-bed.zp-weekend {
    background: rgba(102, 112, 181, 0.04);
}

/* ── Day cells ── */
.zp-cell {
    border-right: 1px solid var(--app-border-subtle-faint);
    border-bottom: 1px solid var(--app-border-subtle-faint);
}

.zp-cell-room,
.zp-cell-bed {
    cursor: pointer;
    transition: background 0.12s ease, box-shadow 0.12s ease;
}

.zp-cell-room:hover,
.zp-cell-bed:hover {
    background: rgba(16, 185, 129, 0.12);
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.4);
}

.zp-weekend {
    background: rgba(102, 112, 181, 0.06);
}

.zp-today {
    background: rgba(102, 112, 181, 0.15);
}

/* ── Reservation bars ── */
.zp-bar-res {
    z-index: 10;
    display: flex;
    align-items: center;
    margin: 4px 1px;
    padding: 0 6px;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: filter 0.15s;
}

.zp-bar-res:hover {
    filter: brightness(1.15);
}

.zp-bar-res[draggable="true"] {
    cursor: grab;
}

.zp-bar-res[draggable="true"]:active {
    cursor: grabbing;
}

.zp-bar-res.zp-manual {
    border: 1px dashed rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.22);
}

.zp-bar-label {
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Status colors */
.zp-status-neu {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.zp-status-bestaetigt {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.zp-status-storniert {
    background: linear-gradient(135deg, #64748b, #94a3b8);
    opacity: 0.5;
}

/* Clip classes for bars extending beyond view */
.zp-clip-left {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: 0;
}

.zp-clip-right {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-right: 0;
}

/* ── Empty state ── */
.zp-empty {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 64px 16px;
    color: var(--app-text-muted);
    font-size: 14px;
}

.manual-res-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.manual-res-target {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin-bottom: 14px;
    padding: 7px 10px;
    border: 1px solid var(--app-border-subtle-separator);
    border-radius: 6px;
    background: var(--app-surface-strong);
    color: var(--app-text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.manual-res-target .material-icons-outlined {
    font-size: 18px;
    color: #10b981;
}

.manual-res-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 30px;
    margin-top: 4px;
    color: var(--app-text-primary);
    font-size: 13px;
    font-weight: 700;
}

.manual-res-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
}

.manual-res-nights {
    min-width: 70px;
    color: var(--app-text-muted);
}

/* ── Impressum Page ── */
.impressum-page {
    min-height: 100vh;
    background: #f8fafc;
    display: flex;
    justify-content: center;
    padding: 48px 24px;
}

.impressum-container {
    max-width: 720px;
    width: 100%;
}

.impressum-logo {
    margin-bottom: 32px;
}

.impressum-logo img {
    max-height: 64px;
    width: auto;
}

.impressum-page h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 24px;
}

.impressum-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #334155;
}

.impressum-content p {
    margin-bottom: 12px;
}

.impressum-content a {
    color: #3b82f6;
    text-decoration: underline;
}

.impressum-empty {
    color: #94a3b8;
    font-style: italic;
}

.impressum-back {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.impressum-back a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s;
}

.impressum-back a:hover {
    color: #1e293b;
}

/* ── Datenschutz: Externe Dienste ── */
.datenschutz-services {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.datenschutz-services h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px;
}

.datenschutz-services ul {
    padding-left: 20px;
    margin: 12px 0 0;
}

.datenschutz-services li {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* ── Cookie Banner ── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0 16px 16px;
    animation: cookieSlideUp 0.35s ease-out;
}

@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.cookie-banner-content {
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    color: #334155;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.cookie-banner-icon {
    flex-shrink: 0;
    color: var(--book-primary-safe, #1e293b);
}

.cookie-banner-icon .material-icons-outlined {
    font-size: 28px;
}

.cookie-banner-text {
    flex: 1;
    font-size: 0.85rem;
    line-height: 1.5;
}

.cookie-banner-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
    color: #0f172a;
}

.cookie-banner-text p {
    margin: 0;
    color: #64748b;
}

.cookie-banner-text a {
    color: var(--book-primary-safe, #1e293b);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-banner-text a:hover {
    color: var(--book-primary-safe-hover, #334155);
}

.cookie-banner-btn {
    flex-shrink: 0;
    background: var(--book-primary-safe, #1e293b);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    white-space: nowrap;
}

.cookie-banner-btn:hover {
    background: var(--book-primary-safe-hover, #334155);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px 20px;
    }

    .cookie-banner-icon {
        display: none;
    }

    .cookie-banner-btn {
        width: 100%;
    }
}

/* ── Anreise Dashboard ── */
.anr-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 24px 28px 96px;
    animation: chFadeUp .45s cubic-bezier(.22, 1, .36, 1) both;
}

.anr-header {
    margin: 0;
}

.anr-datectl {
    display: flex;
    align-items: center;
    gap: 8px;
}

.anr-datepicker {
    width: 230px;
}

/* Datepicker-Popup darf nicht abgeschnitten werden */
.e-datepicker.e-popup.anr-datepicker,
.e-datepicker.e-popup {
    min-width: 256px !important;
    overflow: visible;
}

.e-datepicker.e-popup .e-calendar {
    min-width: 256px;
    width: 100%;
}

.anr-report-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--app-border-subtle);
    border-radius: 8px;
    background: color-mix(in srgb, var(--app-surface) 92%, var(--app-accent) 8%);
}

.anr-report-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.anr-stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.anr-stat {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, var(--anr-tint, rgba(102, 112, 181, .14)) 0%, rgba(54, 57, 68, 0) 60%),
        var(--app-surface);
    border: 1px solid var(--app-border-grid-card);
    border-left: 3px solid var(--anr-accent, var(--app-accent));
    overflow: hidden;
    transition: box-shadow .2s, transform .15s;
}

.anr-stat:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
    transform: translateY(-2px);
}

.anr-stat-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 1.5rem;
    color: var(--anr-accent, var(--app-accent));
    background: var(--anr-tint, rgba(102, 112, 181, .16));
}

.anr-stat-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.anr-stat-num {
    font-size: 1.95rem;
    font-weight: 700;
    line-height: 1.05;
    color: var(--app-text-primary);
}

.anr-stat-label {
    font-size: .82rem;
    color: var(--app-text-secondary);
}

.anr-stat--green  { --anr-accent: #10b981; --anr-tint: rgba(16, 185, 129, .16); }
.anr-stat--amber  { --anr-accent: #f59e0b; --anr-tint: rgba(245, 158, 11, .16); }
.anr-stat--blue   { --anr-accent: #6670b5; --anr-tint: rgba(102, 112, 181, .20); }
.anr-stat--violet { --anr-accent: #a78bfa; --anr-tint: rgba(167, 139, 250, .16); }

/* Kombi-Karte An-/Abreisen */
.anr-stat--split {
    gap: 0;
    padding: 14px 18px;
}

.anr-stat-seg {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 0;
    min-width: 0;
}

.anr-stat--split .anr-stat-icon {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
}

.anr-stat--split .anr-stat-num {
    font-size: 1.5rem;
}

.anr-stat-divider {
    flex: 0 0 auto;
    width: 1px;
    align-self: stretch;
    margin: 4px 14px;
    background: var(--app-border-grid-card);
}

.anr-stat--split .anr-stat-seg:first-child .anr-stat-icon {
    color: #10b981;
    background: rgba(16, 185, 129, .16);
}

.anr-stat--split .anr-stat-seg:last-child .anr-stat-icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, .16);
}

.anr-grid-wrap {
    height: 62vh;
    min-height: 340px;
}

@media (max-width: 768px) {
    .anr-page { padding: 16px 14px 96px; }
    .anr-stat-row { grid-template-columns: 1fr 1fr; }
    .anr-datectl { flex-wrap: wrap; }
    .anr-report-actions { flex-direction: column; }
    .anr-report-group .mud-button-root { flex: 1 1 150px; }
}

/* ── Reservierungs-Detail ── */
/* Profilseite */
.profile-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 24px 28px 96px;
    animation: chFadeUp .45s cubic-bezier(.22, 1, .36, 1) both;
}

.profile-header { margin: 0; }

.profile-role-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--app-text-primary);
    background: var(--app-accent-soft);
    border: 1px solid var(--app-border-subtle-separator);
}

.profile-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    border-radius: 14px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(102, 112, 181, .30), transparent 34%),
        linear-gradient(135deg, var(--app-surface-strong), var(--app-surface));
    border: 1px solid var(--app-border-grid-card);
    box-shadow: 0 2px 24px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.profile-avatar {
    width: 66px;
    height: 66px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 700;
    background: var(--app-avatar-bg);
    border: 1px solid rgba(255, 255, 255, .16);
}

.profile-hero-text {
    min-width: 0;
    flex: 1 1 auto;
}

.profile-hero-text h1 {
    margin: 0;
    color: var(--app-text-primary);
    font-size: 1.45rem;
    font-weight: 650;
    line-height: 1.25;
}

.profile-hero-text div {
    margin-top: 4px;
    color: var(--app-text-secondary);
    font-size: .88rem;
    overflow-wrap: anywhere;
}

.profile-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    flex: 0 0 auto;
}

.profile-state .material-icons-outlined { font-size: 1rem; }

.profile-state-active {
    color: #10b981;
    background: rgba(16, 185, 129, .13);
}

.profile-state-inactive {
    color: #ef4444;
    background: rgba(239, 68, 68, .13);
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 16px;
}

.profile-panel-body { padding: 18px; }

.profile-facts,
.profile-access-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile-fact,
.profile-access-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.profile-fact > .material-icons-outlined,
.profile-access-item > .material-icons-outlined {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--app-accent);
    background: var(--app-accent-soft);
    font-size: 1.1rem;
}

.profile-fact-label,
.profile-section-sub {
    color: var(--app-text-muted);
    font-size: .73rem;
    line-height: 1.35;
}

.profile-fact-value {
    color: var(--app-detail-value-color);
    font-size: .88rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.profile-user-id {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: .76rem;
}

.profile-phone-box {
    display: grid;
    grid-template-columns: minmax(150px, .7fr) minmax(200px, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--app-border-subtle);
}

.profile-section-title {
    color: var(--app-text-primary);
    font-size: .82rem;
    font-weight: 650;
}

.profile-password-panel { overflow: visible; }

.profile-password-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 14px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.profile-field span {
    color: var(--app-text-muted);
    font-size: .74rem;
    font-weight: 600;
}

.profile-input {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--app-text-primary);
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border);
    outline: none;
    font: inherit;
    transition: border-color .15s, box-shadow .15s;
}

.profile-input:focus {
    border-color: var(--app-accent);
    box-shadow: 0 0 0 3px var(--app-accent-soft);
}

.profile-password-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}

.profile-note {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--app-text-secondary);
    font-size: .85rem;
}

.profile-note .material-icons-outlined { color: var(--app-accent); }

.profile-empty {
    min-height: 160px;
    padding: 20px 12px;
}

@media (max-width: 900px) {
    .profile-grid,
    .profile-password-form {
        grid-template-columns: 1fr;
    }

    .profile-phone-box {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .profile-password-actions { justify-content: stretch; }
    .profile-password-actions .mud-button-root { width: 100%; }
}

@media (max-width: 768px) {
    .profile-page { padding: 16px 14px 96px; }

    .profile-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-role-row { justify-content: flex-start; }

    .profile-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-state { align-self: flex-start; }
}

.rdet-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 24px 28px 96px;
    animation: chFadeUp .45s cubic-bezier(.22, 1, .36, 1) both;
}

.rdet-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rdet-header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    color: var(--app-text-secondary);
}

.rdet-header-meta .material-icons-outlined {
    font-size: 1.1rem;
    color: var(--app-accent);
}

.rdet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: start;
}

.rdet-span {
    grid-column: 1 / -1;
}

.rdet-dl {
    margin: 0;
    padding: 8px 18px 16px;
}

.rdet-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--app-border-grid-card);
}

.rdet-row:last-child {
    border-bottom: none;
}

.rdet-row dt {
    font-size: .82rem;
    color: var(--app-text-muted);
}

.rdet-row dd {
    margin: 0;
    font-size: .9rem;
    color: var(--app-text-primary);
    word-break: break-word;
}

.rdet-row dd a {
    color: var(--app-accent);
    text-decoration: none;
}

.rdet-row dd a:hover {
    text-decoration: underline;
}

.rdet-row--block {
    grid-template-columns: 1fr;
    gap: 6px;
}

.rdet-cats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rdet-cats li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rdet-cat-name {
    flex: 1 1 auto;
    min-width: 0;
}

.rdet-cat-dep {
    flex: 0 0 auto;
    color: var(--app-text-secondary);
}

.rdet-stepper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

.rdet-stepper-val {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.rdet-notes {
    white-space: pre-line;
    color: var(--app-text-secondary);
}

.rdet-voucher {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 18px 18px;
    padding: 14px 18px;
    border-radius: 10px;
    background: rgba(102, 112, 181, .14);
    border: 1px solid rgba(102, 112, 181, .35);
}

.rdet-voucher .material-icons-outlined {
    font-size: 1.6rem;
    color: var(--app-accent);
}

.rdet-voucher-label {
    font-size: .78rem;
    color: var(--app-text-muted);
}

.rdet-voucher-code {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--app-text-primary);
}

.rdet-head-pill {
    margin-left: auto;
    font-size: .72rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--app-text-secondary);
}

.rdet-empty {
    padding: 28px 0 32px;
}

.rdet-guests {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}

.rdet-guests th {
    text-align: left;
    padding: 10px 18px;
    font-size: .76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--app-text-muted);
    border-bottom: 1px solid var(--app-border-grid-card);
}

.rdet-guests td {
    padding: 10px 18px;
    color: var(--app-text-primary);
    border-bottom: 1px solid var(--app-border-grid-card);
}

.rdet-guests tr:last-child td {
    border-bottom: none;
}

.rdet-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: .72rem;
    background: rgba(16, 185, 129, .16);
    color: #10b981;
}

@media (max-width: 900px) {
    .rdet-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .rdet-page { padding: 16px 14px 96px; }
    .rdet-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ── Reservierungen Zeitraum-Auswahl ── */
.resv-filter-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 56px 20px;
    width: 100%;
}

.resv-filter-card {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px 28px 24px;
    background: var(--app-surface);
    border: 1px solid var(--app-border-grid-card);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
    animation: chFadeUp .45s cubic-bezier(.22, 1, .36, 1) both;
}

.resv-filter-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.resv-filter-head h2 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--app-text-primary);
}

.resv-filter-head .material-icons-outlined {
    color: var(--app-accent);
}

.resv-filter-sub {
    margin: 0;
    font-size: .88rem;
    color: var(--app-text-secondary);
}

.resv-filter-modes {
    display: flex;
    gap: 8px;
}

.resv-filter-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 4px 0;
}

.resv-dp {
    width: 200px;
}

.resv-filter-dash {
    color: var(--app-text-muted);
}

.resv-filter-apply {
    align-self: flex-start;
    margin-top: 4px;
}

/* ──────────────────────────────────────────────────────────────────
   Landingpage — ÖTK Buchungsplattform (lp-*)
   Public landing under "/", routed via LandingLayout.
   ÖTK-Palette: tiefes Schild-Blau (#0b5394) + Weiß.
   ────────────────────────────────────────────────────────────────── */

.landing-layout {
    background: #f6f8fc;
    color: #1a1f36;
    min-height: 100vh;
}

.lp {
    --lp-blue: #0b5394;
    --lp-blue-dark: #073763;
    --lp-blue-mid: #1a73e8;
    --lp-blue-light: #d8e6f3;
    --lp-text: #1a1f36;
    --lp-muted: #5b6478;
    --lp-bg: #f6f8fc;
    --lp-surface: #ffffff;
    --lp-border: #e3e8f0;

    font-family: 'Roboto', system-ui, -apple-system, Segoe UI, sans-serif;
    color: var(--lp-text);
    background: var(--lp-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Topbar ── */
.lp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--lp-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.lp-topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--lp-blue-dark);
    font-weight: 600;
    font-size: .98rem;
}

.lp-topbar-brand img {
    height: 36px;
    width: 36px;
    object-fit: contain;
}

.lp-topbar-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.lp-topbar-nav a {
    color: var(--lp-muted);
    text-decoration: none;
    font-size: .92rem;
    transition: color .2s ease;
}

.lp-topbar-nav a:hover {
    color: var(--lp-blue);
}

.lp-topbar-login {
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--lp-blue) !important;
    color: #fff !important;
    font-weight: 500;
    transition: background .2s ease, transform .2s ease;
}

.lp-topbar-login:hover {
    background: var(--lp-blue-dark) !important;
    transform: translateY(-1px);
}

/* ── Hero ── */
.lp-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--lp-blue) 0%, var(--lp-blue-dark) 60%, #052444 100%);
    color: #fff;
    padding: 100px 32px 140px;
    text-align: center;
}

.lp-hero::before {
    /* dezentes Berg-Muster aus SVG */
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400' preserveAspectRatio='none'><path fill='%23ffffff' fill-opacity='0.06' d='M0 400 L180 160 L320 260 L470 80 L640 240 L820 120 L980 280 L1200 140 L1200 400 Z'/><path fill='%23ffffff' fill-opacity='0.04' d='M0 400 L120 280 L260 340 L420 220 L580 320 L760 200 L920 320 L1100 240 L1200 320 L1200 400 Z'/></svg>");
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.lp-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.lp-hero-logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .35);
}

.lp-hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    margin: 8px 0 0;
    letter-spacing: -.5px;
    line-height: 1.15;
}

.lp-hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, .9);
    max-width: 560px;
    margin: 0;
}

.lp-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    margin-top: 14px;
    background: #fff;
    color: var(--lp-blue-dark);
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .25);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.lp-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -8px rgba(0, 0, 0, .35);
    background: var(--lp-blue-light);
}

.lp-hero-cta .material-icons {
    font-size: 1.1rem;
    transition: transform .2s ease;
}

.lp-hero-cta:hover .material-icons {
    transform: translateY(2px);
}

.lp-hero-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--lp-bg);
    clip-path: polygon(0 100%, 100% 100%, 100% 50%, 0 100%);
    z-index: 1;
}

/* ── Grid-Section ── */
.lp-grid-section {
    flex: 1;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    padding: 56px 32px 80px;
}

.lp-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--lp-blue-dark);
    margin: 0 0 6px;
    letter-spacing: -.3px;
}

.lp-section-sub {
    color: var(--lp-muted);
    margin: 0 0 36px;
    font-size: 1rem;
}

.lp-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* ── Card ── */
.lp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--lp-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px -4px rgba(11, 83, 148, .12), 0 2px 4px rgba(11, 83, 148, .06);
    transition: transform .25s ease, box-shadow .25s ease;
    border: 1px solid var(--lp-border);
}

.lp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px -14px rgba(11, 83, 148, .35), 0 6px 16px -6px rgba(11, 83, 148, .18);
    border-color: var(--lp-blue-light);
}

.lp-card:focus-visible {
    outline: 3px solid var(--lp-blue);
    outline-offset: 3px;
}

.lp-card-image {
    position: relative;
    height: 200px;
    width: 100%;
    overflow: hidden;
    background: var(--lp-blue-light);
}

.lp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.lp-card:hover .lp-card-image img {
    transform: scale(1.06);
}

.lp-card-image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .95);
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.lp-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 55, 99, .55) 0%, rgba(7, 55, 99, 0) 45%);
    pointer-events: none;
}

.lp-card-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.lp-card-body h3 {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--lp-blue-dark);
    line-height: 1.3;
}

.lp-card-loc {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--lp-muted);
    font-size: .9rem;
}

.lp-card-loc .material-icons-outlined {
    font-size: 1.05rem;
    color: var(--lp-blue);
}

.lp-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 14px;
    color: var(--lp-blue);
    font-weight: 600;
    font-size: .95rem;
    transition: gap .2s ease, color .2s ease;
}

.lp-card-cta .material-icons {
    font-size: 1.05rem;
    transition: transform .2s ease;
}

.lp-card:hover .lp-card-cta {
    color: var(--lp-blue-dark);
    gap: 10px;
}

.lp-card:hover .lp-card-cta .material-icons {
    transform: translateX(3px);
}

/* ── Skeleton (while loading) ── */
.lp-skeleton {
    pointer-events: none;
}

.lp-skeleton .lp-card-image {
    background: linear-gradient(90deg, #e3e8f0 0%, #eef2f9 50%, #e3e8f0 100%);
    background-size: 200% 100%;
    animation: lp-shimmer 1.4s linear infinite;
}

.lp-skel-line {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e3e8f0 0%, #eef2f9 50%, #e3e8f0 100%);
    background-size: 200% 100%;
    animation: lp-shimmer 1.4s linear infinite;
}

.lp-skel-title {
    width: 70%;
    height: 18px;
    margin-bottom: 6px;
}

.lp-skel-sub {
    width: 45%;
}

@keyframes lp-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Empty state ── */
.lp-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--lp-muted);
    background: #fff;
    border-radius: 16px;
    border: 1px dashed var(--lp-border);
}

.lp-empty .material-icons-outlined {
    font-size: 3rem;
    color: var(--lp-blue-light);
    margin-bottom: 12px;
}

.lp-empty p {
    margin: 0;
    font-size: 1.05rem;
}

/* ── Footer ── */
.lp-footer {
    background: #fff;
    border-top: 1px solid var(--lp-border);
    padding: 28px 32px;
    margin-top: auto;
}

.lp-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.lp-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--lp-muted);
    font-size: .9rem;
}

.lp-footer-brand img {
    height: 28px;
    width: 28px;
    object-fit: contain;
}

.lp-footer-nav {
    display: flex;
    gap: 22px;
}

.lp-footer-nav a {
    color: var(--lp-muted);
    text-decoration: none;
    font-size: .9rem;
    transition: color .2s ease;
}

.lp-footer-nav a:hover {
    color: var(--lp-blue);
}

/* ── Responsive ── */
@media (max-width: 720px) {
    .lp-topbar {
        padding: 12px 18px;
    }
    .lp-topbar-brand span {
        display: none;
    }
    .lp-topbar-nav {
        gap: 12px;
    }
    .lp-hero {
        padding: 70px 20px 100px;
    }
    .lp-grid-section {
        padding: 40px 20px 60px;
    }
    .lp-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .lp-card-image {
        height: 180px;
    }
    .lp-footer {
        padding: 22px 18px;
    }
    .lp-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
