/*
 * Gittertier Pro – einheitliches Design (Vorlage: index.html)
 *
 * Wird auf jeder Seite NACH dem seitenspezifischen <style> eingebunden.
 * Es setzt die Design-Tokens aller Seiten auf die Werte der Scanner-Seite:
 * die Index-Familie (--color-accent, --radius …) und die frühere "Glass"-Familie
 * (--color-primary, --gradient-*, --glass-*) von user/loyalty/about/landing.
 * Dunkelmodus wird über body.dark-mode / body.light-mode gesteuert (GT.theme).
 */

:root {
    /* Index tokens */
    --color-bg: #ffffff;
    --color-bg-secondary: #f9fafb;
    --color-surface: #ffffff;
    --color-text: #111111;
    --color-text-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-accent-light: color-mix(in srgb, var(--color-accent, #2563eb) 10%, transparent);
    --color-success: #16a34a;
    --color-success-light: rgba(22, 163, 74, 0.1);
    --color-error: #dc2626;
    --color-error-light: rgba(220, 38, 38, 0.1);
    --color-warning: #d97706;
    --color-warning-light: rgba(217, 119, 6, 0.1);
    --color-info: #2563eb;
    --color-overlay: rgba(0, 0, 0, 0.5);

    --radius: 12px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 4px 10px -5px rgba(0, 0, 0, 0.06);
    --shadow-xl: var(--shadow-lg);
    --focus-ring: 0 0 0 3px color-mix(in srgb, var(--color-accent, #2563eb) 35%, transparent);

    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-system: var(--font-family);
    --font-ui: var(--font-family);
    --header-height: 64px;

    /* Former "glass" family mapped onto the index look: flat, white, thin borders */
    --color-primary: var(--color-accent);
    --color-primary-dark: var(--color-accent-hover);
    --color-dark: #111111;
    --color-light: #f9fafb;
    --color-white: #ffffff;
    --color-gray: #6b7280;
    --color-gray-light: #e5e7eb;
    --color-gray-dark: #374151;
    --color-card-bg: var(--color-surface);
    --color-card-bg-glass: var(--color-surface);
    --color-sidebar-bg: var(--color-surface);
    --color-modal-bg: var(--color-surface);
    --color-hover-gray: rgba(0, 0, 0, 0.04);
    --color-hover-gray-medium: rgba(0, 0, 0, 0.06);
    --glass-blur: none;
    --glass-border: 1px solid var(--color-border);
    --glass-border-dark: 1px solid var(--color-border);
    --glass-shadow: var(--shadow);
    --glass-shadow-lg: var(--shadow-md);
    --glass-shadow-xl: var(--shadow-lg);
    --gradient-primary: linear-gradient(var(--color-accent), var(--color-accent));
    --gradient-accent: linear-gradient(var(--color-accent), var(--color-accent));
    --gradient-success: linear-gradient(var(--color-success), var(--color-success));
    --gradient-warning: linear-gradient(var(--color-warning), var(--color-warning));
    --gradient-error: linear-gradient(var(--color-error), var(--color-error));
    --gradient-glass: linear-gradient(var(--color-surface), var(--color-surface));
    --gradient-glass-dark: linear-gradient(var(--color-surface), var(--color-surface));
    --gradient-gray-hover: linear-gradient(var(--color-hover-gray), var(--color-hover-gray));
}

/* Dark tokens: system preference unless the customer chose light explicitly */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #111827;
        --color-bg-secondary: #1f2937;
        --color-surface: #1f2937;
        --color-text: #f3f4f6;
        --color-text-muted: #9ca3af;
        --color-border: #374151;
        --color-dark: #f3f4f6;
        --color-light: #1f2937;
        --color-white: #1f2937;
        --color-gray-light: #374151;
        --color-hover-gray: rgba(255, 255, 255, 0.05);
        --color-hover-gray-medium: rgba(255, 255, 255, 0.08);
    }
}

body.dark-mode {
    --color-bg: #111827;
    --color-bg-secondary: #1f2937;
    --color-surface: #1f2937;
    --color-text: #f3f4f6;
    --color-text-muted: #9ca3af;
    --color-border: #374151;
    --color-dark: #f3f4f6;
    --color-light: #1f2937;
    --color-white: #1f2937;
    --color-gray-light: #374151;
    --color-hover-gray: rgba(255, 255, 255, 0.05);
    --color-hover-gray-medium: rgba(255, 255, 255, 0.08);
    --color-card-bg: var(--color-surface);
    --color-card-bg-glass: var(--color-surface);
    --color-sidebar-bg: var(--color-surface);
    --color-modal-bg: var(--color-surface);
    --glass-border: 1px solid var(--color-border);
    --glass-border-dark: 1px solid var(--color-border);
}

body.light-mode {
    --color-bg: #ffffff;
    --color-bg-secondary: #f9fafb;
    --color-surface: #ffffff;
    --color-text: #111111;
    --color-text-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-dark: #111111;
    --color-light: #f9fafb;
    --color-white: #ffffff;
    --color-gray-light: #e5e7eb;
    --color-hover-gray: rgba(0, 0, 0, 0.04);
    --color-hover-gray-medium: rgba(0, 0, 0, 0.06);
}

/* ---------------------------------------------------------------- base */
body {
    font-family: var(--font-family);
    background: var(--color-bg);
    color: var(--color-text);
}

/* ---------------------------------------------------------------- header
 * Same bar as the scanner page: 64px, surface colour, hairline border, no blur */
body > header,
body > .admin-header,
.admin-header,
.about-header {
    background: var(--color-surface) !important;
    border-bottom: 1px solid var(--color-border) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    min-height: var(--header-height);
}

.admin-header .logo,
body > header .logo {
    font-weight: 700;
    color: var(--color-text);
}

.admin-header .logo i,
body > header .logo i {
    color: var(--color-accent-text);
}

/* ---------------------------------------------------------------- surfaces */
.admin-sidebar {
    background: var(--color-surface) !important;
    border-right: 1px solid var(--color-border) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body .card,
body .setting-card,
body .settings-card,
body .stat-card,
body .feature-card,
body .tier-card,
body .payment-card,
body .scanner-card,
body .product-card,
body .cart-section,
body .login-container,
body .glass-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Modals: flat surface like the scanner page dialogs */
body .modal-content,
body .modal-container,
body .modal-box {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ---------------------------------------------------------------- controls */
body .btn-primary,
body .btn.primary,
body .modal-btn.primary {
    background: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

body .btn-primary:hover,
body .btn.primary:hover,
body .modal-btn.primary:hover {
    background: var(--color-accent-hover);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* Premium accents stay gold on every page */
.gt-premium-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Cloud sync status pill (settings/products/archive) */
.gt-cloud-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    background: var(--color-surface);
}
.gt-cloud-pill.ok { color: var(--color-success); border-color: var(--color-success); }
.gt-cloud-pill.error { color: var(--color-error); border-color: var(--color-error); }
.gt-cloud-pill.syncing { color: var(--color-accent-text); border-color: var(--color-accent); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------------------------------------------------------------- admin navigation */
.gt-nav-section {
    padding: 14px 16px 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.gt-nav-section:first-child { padding-top: 4px; }
.gt-nav-divider {
    margin: 8px 16px;
    padding: 0;
    border-top: 1px solid var(--color-border);
}
.admin-sidebar .nav-link.active {
    background: var(--color-accent-light);
    color: var(--color-accent-text);
}

/* ---------------------------------------------------------------- mobile (all pages)
 * Grid/flex children default to min-width:auto and grow to their widest
 * content (e.g. 600px tables), which pushed whole admin pages wider than the
 * phone screen. Columns may shrink; wide content scrolls inside itself. */
.admin-container > *,
.admin-content,
.admin-content > *,
main {
    min-width: 0;
}

.admin-sidebar {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

img, video, canvas, svg {
    max-width: 100%;
}

input, select, textarea {
    max-width: 100%;
}

@media (max-width: 768px) {
    /* clip, not hidden: overflow-x: hidden turns html AND body into scroll containers
       (overflow-y becomes auto), so anchor links scroll the wrong element and Chrome
       paints blank areas. clip cuts off just the same without creating a scroller. */
    html, body {
        overflow-x: hidden;
    }
    @supports (overflow-x: clip) {
        html, body { overflow-x: clip; }
    }

    /* Tables scroll horizontally inside their card instead of widening the page */
    .admin-content table,
    main table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    /* iOS zooms into inputs below 16px */
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    select,
    textarea {
        font-size: max(16px, 1rem) !important;
    }

    /* Comfortable touch targets */
    .admin-sidebar .nav-link,
    .btn,
    .modal-btn,
    button.logout-btn {
        min-height: 44px;
    }
    /* nur das Symbol sichtbar: trotzdem eine volle Tippfläche */
    button.logout-btn { min-width: 44px; justify-content: center; padding-left: 10px; padding-right: 10px; }

    /* Header: keep logo + actions, drop the clock */
    .admin-header .time-display {
        display: none;
    }
    .admin-header .logout-btn span,
    .admin-header .admin-link span {
        display: none;
    }

    /* Dialogs fill the width of the phone */
    body .modal-content,
    body .modal-container,
    body .modal-box,
    body .modal {
        max-width: calc(100vw - 24px);
    }
    body .modal-content,
    body .modal-container,
    body .modal-box {
        max-height: calc(100vh - 32px);
        overflow-y: auto;
    }

    /* Multi-column grids collapse to one column */
    .stats-grid, .summary-cards, .charts-grid, .dashboard-grid, .content-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ---------------------------------------------------------------- dynamics
 * Smooth cross-page transitions (Chrome/Edge/Safari 18+); other browsers
 * simply navigate as before. Disabled with "Animationen reduzieren". */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 180ms; }

.gt-reduce-motion *, .gt-shop-reduce-motion *,
.gt-reduce-motion *::before, .gt-shop-reduce-motion *::before,
.gt-reduce-motion *::after, .gt-shop-reduce-motion *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
}
@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
}
.gt-reduce-motion::view-transition-old(root),
.gt-reduce-motion::view-transition-new(root) { animation: none; }

/* Subtle highlight when a list was refreshed with data from another device */
@keyframes gt-flash { from { background-color: var(--color-accent-light); } to { background-color: transparent; } }
.gt-flash { animation: gt-flash 1.2s ease-out; }

/* ---------------------------------------------------------------- compact admin view */
.gt-compact .admin-content { padding: 12px 16px !important; }
.gt-compact .setting-card,
.gt-compact .dashboard-card,
.gt-compact .card,
.gt-compact .stat-card { padding: 12px !important; margin-bottom: 10px !important; }
.gt-compact .page-header { margin-bottom: 12px !important; }
.gt-compact .data-table td,
.gt-compact .data-table th { padding-top: 6px !important; padding-bottom: 6px !important; }

/* ---------------------------------------------------------------- desktop
 * Wide screens: readable line lengths and centred content instead of
 * stretching cards across 2000px. */
@media (min-width: 1280px) {
    /* The sidebar is position: fixed and the pages keep their content next to it
     * with margin-left: var(--sidebar-width). Centre with padding instead of auto
     * margins, otherwise the content slides underneath the sidebar. */
    .admin-content {
        padding-left: max(var(--spacing-lg, 24px), calc((100vw - var(--sidebar-width, 260px) - 1440px) / 2)) !important;
        padding-right: max(var(--spacing-lg, 24px), calc((100vw - var(--sidebar-width, 260px) - 1440px) / 2)) !important;
    }
    .settings-grid {
        column-width: 360px;
    }
}

/* ---------------------------------------------------------------- small phones (≤ 380 px)
 * Nothing may be cut off: rows wrap, paddings shrink, long words break. */
@media (max-width: 380px) {
    .admin-content,
    main.admin-content { padding: 12px 10px !important; }
    .admin-header { padding: 0 8px !important; gap: 6px; }
    .admin-header .logo { gap: 8px !important; min-width: 0; }
    .admin-header .logo span {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 48vw;
    }
    .header-controls { gap: 6px !important; }
    .page-title, h1 { font-size: 1.3rem !important; overflow-wrap: break-word; }
    h2 { font-size: 1.15rem; overflow-wrap: break-word; }
    .setting-card, .dashboard-card, .card, .stat-card, .section-header { padding: 12px !important; }
    .settings-section .section-content { padding: 8px !important; }
    .setting-control, .setting-option, .card-header, .page-header {
        flex-wrap: wrap !important;
        gap: 8px;
    }
    .setting-control > div, .setting-option > div { min-width: 0; flex: 1 1 160px; }
    /* senkrechte Gruppen: Grundgröße gilt sonst als Höhe */
    .setting-control.vertical > div, .setting-option.vertical > div { flex: 0 0 auto; }
    .action-buttons, .toolbar, .filter-controls, .sort-controls, .header-actions, .quick-actions {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .btn, .toolbar-btn, .modal-btn { white-space: normal; }
    .form-input, .form-control, select, textarea, input[type="text"], input[type="search"],
    input[type="number"], input[type="email"], input[type="password"], input[type="time"], input[type="date"] {
        width: 100%;
        min-width: 0;
    }
    .notification-duration { flex-wrap: wrap; }
    code, .key-cell { overflow-wrap: anywhere; }
}

/* ---------------------------------------------------------------- phone tables (≤ 640 px)
 * Tables with 4+ columns become one compact card per row: the first column is
 * the card title, the other values sit in two columns below with their column
 * name (data-label, set by gt-core.js) as a small caption. */
.tables-section > *, .charts-section > *, .table-card, .table-container { min-width: 0; }

@media (max-width: 640px) {
    .admin-content table.gt-stack,
    main table.gt-stack {
        display: block;
        overflow: visible;
        white-space: normal;
        border: 0 !important;
        background: transparent !important;
        min-width: 0 !important;
        width: 100% !important;
    }
    table.gt-stack thead { display: none; }
    table.gt-stack tbody { display: flex; flex-direction: column; gap: 8px; }
    table.gt-stack tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 6px;
        background: var(--color-surface) !important;
        border: 1px solid var(--color-border);
        border-radius: 12px;
        padding: 10px 12px;
    }
    table.gt-stack tr:hover { transform: none; }
    table.gt-stack td {
        display: block;
        padding: 0 !important;
        border: 0 !important;
        text-align: left !important;
        white-space: normal;
        overflow-wrap: break-word;
        min-width: 0;
        max-width: none !important;
        width: auto !important;
        background: transparent !important;
        font-size: 0.9rem;
    }
    table.gt-stack td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--color-text-muted);
        margin-bottom: 1px;
    }
    table.gt-stack td[data-label=""]::before,
    table.gt-stack td:first-child::before,
    table.gt-stack td.gt-full::before { display: none; }
    /* first column = card title */
    table.gt-stack td:first-child {
        grid-column: 1 / -1;
        font-weight: 600;
        font-size: 0.95rem;
        padding-bottom: 6px !important;
        border-bottom: 1px solid var(--color-border) !important;
    }
    /* checkbox column: title row shares the line with it */
    table.gt-stack td:first-child:has(> input[type="checkbox"]:only-child) {
        grid-column: auto; border: 0 !important; padding: 0 !important;
    }
    table.gt-stack td.gt-full { grid-column: 1 / -1; text-align: center !important; }
    /* buttons / action cells use the full card width */
    table.gt-stack td[data-label=""],
    table.gt-stack td:has(button):not(:first-child) {
        grid-column: 1 / -1;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: flex-end;
        padding-top: 6px !important;
        border-top: 1px solid var(--color-border) !important;
    }
    table.gt-stack td:has(button)::before { flex: 1 0 100%; }
    table.gt-stack td > div { display: flex; flex-wrap: wrap; gap: 6px; }
    .table-container, .table-wrapper, .table-responsive { overflow-x: visible !important; }
    /* long lists (e.g. 24 hours) stay a scrolling table */
    .gt-scroll-box { max-height: 60vh; overflow: auto !important; overscroll-behavior: contain; }
}

/* ---------------------------------------------------------------- phone density (≤ 640 px)
 * Less empty space, smaller controls, filter buttons as chips. */
@media (max-width: 640px) {
    .admin-content, main.admin-content { padding: 14px 12px !important; }
    .page-header, .dashboard-header { margin-bottom: 14px !important; }
    .page-title, .admin-content h1 { font-size: 1.35rem !important; line-height: 1.25; }
    .page-subtitle, .page-description, .dashboard-subtitle { font-size: 0.85rem !important; line-height: 1.4; margin-top: 4px !important; }

    /* key figures two per row */
    .stats-grid, .summary-cards, .stats-overview, .kpi-grid, .um-stats, .stats-row, .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    .stat-card, .summary-card, .kpi-card, .um-stat, .metric-card { padding: 12px !important; min-height: 0 !important; }
    .stat-card .stat-value, .stat-value, .summary-card .value, .kpi-value { font-size: 1.25rem !important; white-space: nowrap; }
    .stat-label, .stat-title, .stat-card h3 { font-size: 0.75rem !important; }
    .stat-icon, .stat-card-icon { width: 30px !important; height: 30px !important; font-size: 0.85rem !important; }
    .stat-change, .stat-trend, .stat-card-change { font-size: 0.72rem !important; line-height: 1.3; }
    .stat-card-value { font-size: 1.25rem !important; white-space: nowrap; }
    .stat-card-header { margin-bottom: 8px !important; gap: 6px; }
    .stat-card-title { font-size: 0.75rem !important; }
    .welcome-card { padding: 16px !important; }
    .welcome-title { font-size: 1.2rem !important; }

    /* cards and sections tighter */
    .chart-card, .table-card, .insight-card, .export-section, .insights-section,
    .dashboard-card, .setting-card, .card, .section-card, .content-card {
        padding: 14px !important;
        margin-bottom: 12px;
        border-radius: 14px;
    }
    .charts-section, .tables-section, .insights-grid, .dashboard-grid, .content-grid { gap: 12px !important; margin-bottom: 12px !important; }
    .chart-container { height: 220px !important; }
    .table-card-header, .chart-card-header, .card-header, .section-header { margin-bottom: 10px !important; gap: 8px; }
    .table-card-title, .chart-card-title, .card-title { font-size: 1rem !important; }

    /* filter buttons as a compact chip row */
    .date-range-selector, .filter-buttons, .period-selector, .time-filters, .quick-filters, .filter-tabs {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px !important;
    }
    .date-range-selector > button, .date-btn, .period-btn, .filter-btn, .filter-tab, .range-btn {
        width: auto !important;
        flex: 0 0 auto;
        padding: 6px 12px !important;
        font-size: 0.82rem !important;
        min-height: 34px !important;
        border-radius: 999px !important;
    }
    .custom-date-inputs {
        flex: 1 1 100%;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        gap: 6px !important;
    }
    .custom-date-inputs .apply-date-btn { grid-column: 1 / -1; }
    .custom-date-inputs input { width: 100% !important; min-width: 0; font-size: 14px !important; }

    /* action button groups: two per row instead of one big column */
    .export-actions, .quick-actions, .action-grid, .welcome-actions, .hero-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    .export-actions > *, .quick-actions > *, .action-grid > *, .welcome-actions > *, .hero-actions > * { width: auto !important; min-width: 0; padding: 10px 8px !important; font-size: 0.85rem !important; }

    /* header-row buttons shrink to icon + short label */
    .page-header .btn, .page-actions .btn, .header-actions .btn, .table-card-actions .btn, .card-header .btn {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
        min-height: 38px !important;
    }
}
@media (max-width: 640px) {
    /* card headers: title on its own line, then search + buttons in one wrapping row */
    .card-header, .table-card-header, .section-toolbar {
        flex-wrap: wrap !important;
        align-items: center !important;
    }
    .card-header > .toolbar, .card-header > .header-actions, .card-header > .card-actions, .card-header > .action-buttons {
        flex: 1 1 100%;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100%;
    }
    .toolbar > input, .toolbar > select, .card-header input[type="search"], .card-header input[type="text"] {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
    .toolbar > button, .toolbar > a, .toolbar-btn, .card-header .action-buttons > * {
        flex: 1 1 auto;
        justify-content: center;
        min-height: 38px !important;
        padding: 8px 10px !important;
        font-size: 0.85rem !important;
    }
    /* narrow tables (< 4 columns) use the full card width instead of scrolling */
    .admin-content table:not(.gt-stack):not([data-no-stack]),
    main table:not(.gt-stack):not([data-no-stack]) {
        display: table;
        width: 100% !important;
        white-space: normal;
    }
}
@media (max-width: 340px) {
    .stats-grid, .summary-cards, .stats-overview, .kpi-grid, .um-stats, .stats-row, .metrics-grid { grid-template-columns: 1fr !important; }
}

/* ---------------------------------------------------------------- dialogs
 * Native <dialog class="gt-dialog"> for focused editing (coupon editor, customer
 * account). Header and footer stay visible, the body scrolls; bottom sheet on phones. */
dialog.gt-dialog {
    /* pages reset * { margin: 0 }, which would pin the dialog to the top left corner */
    margin: auto;
    inset: 0;
    border: 0;
    padding: 0;
    border-radius: 16px;
    width: min(680px, calc(100vw - 32px));
    max-height: calc(100dvh - 48px);
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}
dialog.gt-dialog[open] { display: flex; flex-direction: column; animation: gt-dialog-in 160ms ease-out; }
dialog.gt-dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
dialog.gt-dialog > form { display: flex; flex-direction: column; min-height: 0; max-height: inherit; margin: 0; }
@keyframes gt-dialog-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.gt-dialog-header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px; border-bottom: 1px solid var(--color-border);
}
.gt-dialog-header h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.gt-dialog-close {
    width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent;
    color: var(--color-text-muted); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.gt-dialog-close:hover { background: var(--color-bg-secondary); color: var(--color-text); }
.gt-dialog-body { padding: 16px 18px; overflow-y: auto; min-height: 0; }
.gt-dialog-footer {
    display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap;
    padding: 12px 18px; border-top: 1px solid var(--color-border); background: var(--color-bg-secondary);
}
.gt-dialog-error { color: var(--color-error, #dc2626); font-size: 0.85rem; margin-top: 10px; min-height: 1em; }
.gt-dialog-error:empty { display: none; }
@media (max-width: 640px) {
    dialog.gt-dialog {
        width: 100vw; max-width: 100vw;
        max-height: calc(92dvh - var(--gt-kb, 0px));
        margin: auto 0 0; border-radius: 18px 18px 0 0;
        /* --gt-kb: height of the on-screen keyboard (set by gt-core via visualViewport) */
        bottom: var(--gt-kb, 0px);
    }
    dialog.gt-dialog[open] { animation-name: gt-sheet-in; }
    /* eigene Breiten einzelner Dialoge (Konto, Inventur …) gelten nur am Computer – am Handy volle Breite */
    dialog.gt-dialog[open] { width: 100vw !important; max-width: 100vw !important; left: 0; right: 0; }
    .gt-dialog-footer .btn, .gt-dialog-footer button { flex: 1 1 0; justify-content: center; }
}
@keyframes gt-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
.gt-reduce-motion dialog.gt-dialog[open] { animation: none; }

/* ---------------------------------------------------------------- account notices (customer pages) */
#gt-account-banner {
    position: sticky; top: 0; z-index: 1000;
    display: flex; gap: 10px; align-items: flex-start;
    padding: 10px 16px; background: #b91c1c; color: #fff; font-size: 0.9rem; line-height: 1.4;
}
#gt-account-banner i { margin-top: 3px; }
#gt-toasts {
    position: fixed; z-index: 2000; left: 50%; bottom: 20px; transform: translateX(-50%);
    display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100vw - 24px));
}
.gt-toast {
    --gt-toast-c: var(--color-accent, #2563eb);
    position: relative; overflow: hidden;
    display: flex; gap: 10px; align-items: flex-start; padding: 12px 12px 12px 14px; border-radius: 14px;
    background: var(--color-bg, #fff); color: var(--color-text); border: 1px solid var(--color-border);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.06);
    animation: gt-toast-in 220ms cubic-bezier(0.2, 0.9, 0.3, 1.2); font-size: 0.9rem; line-height: 1.45;
}
.gt-toast.out { animation: gt-toast-out 180ms ease-in forwards; }
.gt-toast.success { --gt-toast-c: var(--color-success, #16a34a); }
.gt-toast.warning { --gt-toast-c: #d97706; }
.gt-toast.error { --gt-toast-c: #dc2626; }
.gt-toast-ic { flex: 0 0 auto; margin-top: 2px; font-size: 1.05rem; color: var(--gt-toast-c); }
.gt-toast-n { flex: 0 0 auto; align-self: center; padding: 0 7px; border-radius: 999px; background: var(--color-bg-secondary, #f3f4f6); color: var(--color-text-muted); font-size: 0.72rem; font-weight: 700; }
.gt-toast-n[hidden] { display: none; }
.gt-toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--gt-toast-c); opacity: 0.55; transform-origin: left; transform: scaleX(0); }
.gt-toast.run .gt-toast-bar { animation: gt-toast-bar var(--gt-toast-ms, 5000ms) linear forwards; }
.gt-toast.hold .gt-toast-bar { animation-play-state: paused; }
@keyframes gt-toast-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes gt-toast-out { to { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes gt-toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
/* über der unteren Reiterleiste auf dem Handy */
@media (max-width: 1023px) { body:has(.gt-tabbar, .gt-staff-tabbar, .tabbar) #gt-toasts { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .gt-toast, .gt-toast.out { animation: none; } .gt-toast.run .gt-toast-bar { animation: none; } }
.gt-toast-body { flex: 1; min-width: 0; }
.gt-toast-body ul { margin: 4px 0 0; padding-left: 18px; }
.gt-toast-body p { margin: 4px 0 0; }
.gt-toast-close { border: 0; background: none; font-size: 1.2rem; line-height: 1; color: var(--color-text-muted); cursor: pointer;
    min-width: 32px; min-height: 32px; margin: -6px -8px -6px 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.gt-toast-close:hover { background: rgba(0, 0, 0, 0.06); }

/* Taps: no double-tap zoom delay on controls */
button, a, .btn, [role="button"], input, select, label { touch-action: manipulation; }

/* ---------------------------------------------------------------- guided tour (GT.ui.tour) */
.gt-tour-shade { position: fixed; inset: 0; z-index: 2990; background: transparent; }
.gt-tour-shade.dim { background: rgba(15, 23, 42, 0.55); }
.gt-tour-target { position: relative; z-index: 2995 !important; }
/* Lichtkegel (gleitet zwischen den Zielen) */
.gt-tour-ring {
    position: fixed; z-index: 2996; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; opacity: 0;
    border-radius: 16px; box-shadow: 0 0 0 3px var(--color-accent, #2563eb), 0 0 0 9px color-mix(in srgb, var(--color-accent, #2563eb) 18%, transparent), 0 0 0 100vmax rgba(15, 23, 42, 0.58);
    transition: left 0.38s cubic-bezier(0.3, 0.8, 0.3, 1), top 0.38s cubic-bezier(0.3, 0.8, 0.3, 1), width 0.38s cubic-bezier(0.3, 0.8, 0.3, 1),
        height 0.38s cubic-bezier(0.3, 0.8, 0.3, 1), border-radius 0.38s ease, opacity 0.2s ease;
}
.gt-tour-ring.on { opacity: 1; animation: gt-tour-glow 2.2s ease-in-out infinite; }
@keyframes gt-tour-glow {
    0%, 100% { box-shadow: 0 0 0 3px var(--color-accent, #2563eb), 0 0 0 9px color-mix(in srgb, var(--color-accent, #2563eb) 18%, transparent), 0 0 0 100vmax rgba(15, 23, 42, 0.58); }
    50% { box-shadow: 0 0 0 3px var(--color-accent, #2563eb), 0 0 0 14px color-mix(in srgb, var(--color-accent, #2563eb) 8%, transparent), 0 0 0 100vmax rgba(15, 23, 42, 0.58); }
}
.gt-tour-body.fwd { animation: gt-tour-step 0.3s cubic-bezier(0.2, 0.8, 0.3, 1); }
.gt-tour-body.back { animation: gt-tour-step-back 0.3s cubic-bezier(0.2, 0.8, 0.3, 1); }
@keyframes gt-tour-step { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes gt-tour-step-back { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.gt-tour-body.fwd .gt-tour-icon, .gt-tour-body.back .gt-tour-icon { animation: gt-tour-pop 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.4); }
@keyframes gt-tour-pop { from { transform: scale(0.6) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.gt-confetti { position: fixed; inset: 0; z-index: 3100; pointer-events: none; overflow: hidden; }
.gt-confetti i { position: absolute; width: 8px; height: 12px; border-radius: 2px; opacity: 0; animation: gt-confetti 1.15s cubic-bezier(0.15, 0.6, 0.35, 1) forwards; }
@keyframes gt-confetti {
    0% { opacity: 1; transform: translate(0, 0) rotate(0); }
    70% { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 160px)) rotate(var(--r)); }
}
.gt-reduce-motion .gt-tour-ring, .gt-reduce-motion .gt-tour-body, .gt-reduce-motion .gt-tour-icon { transition: none; animation: none !important; }
@media (prefers-reduced-motion: reduce) { .gt-tour-ring, .gt-tour-body, .gt-tour-icon { transition: none; animation: none !important; } }
.gt-tour {
    position: fixed; z-index: 3000; left: 50%; bottom: 20px; transform: translateX(-50%);
    width: min(460px, calc(100vw - 24px)); background: var(--color-surface); color: var(--color-text);
    border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
    animation: gt-tour-in 200ms ease-out; font-size: 0.95rem;
}
@keyframes gt-tour-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.gt-tour-progress { height: 4px; background: var(--color-border); }
.gt-tour-progress span { display: block; height: 100%; background: var(--color-accent); transition: width 0.25s ease; }
.gt-tour-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px 0; }
.gt-tour-count { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-muted); }
.gt-tour-skip { border: 0; background: none; color: var(--color-text-muted); font: inherit; font-size: 0.85rem; cursor: pointer; padding: 8px 4px; min-height: 40px; }
.gt-tour-skip:hover { color: var(--color-text); }
.gt-tour-body { padding: 10px 18px 4px; }
.gt-tour-icon {
    width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    background: var(--color-accent-light, color-mix(in srgb, var(--color-accent, #2563eb) 10%, transparent)); color: var(--color-accent-text); font-size: 1.15rem; margin-bottom: 10px;
}
.gt-tour-body h3 { margin: 0 0 6px; font-size: 1.12rem; color: var(--color-text); }
.gt-tour-body p { margin: 0; line-height: 1.55; color: var(--color-text-muted); }
.gt-tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 16px; }
.gt-tour-dots { display: flex; gap: 6px; flex-wrap: nowrap; min-width: 0; overflow: hidden; } /* eine Zeile, auch neben langen Knöpfen */
.gt-tour-dots button { width: 8px; height: 8px; min-height: 0; padding: 0; border: 0; border-radius: 999px; background: var(--color-border); cursor: pointer; transition: width 0.2s ease, background 0.2s ease; }
.gt-tour-dots button.on { width: 22px; background: var(--color-accent); }
/* Punkte bleiben klein, die Tippfläche reicht weiter */
.gt-tour-dots button { position: relative; }
.gt-tour-dots button::after { content: ""; position: absolute; inset: -16px -3px; }
.gt-tour-nav { display: flex; gap: 8px; }
.gt-tour-btn {
    display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; cursor: pointer;
    padding: 10px 16px; font: inherit; font-weight: 600; background: var(--color-accent); color: #fff; min-height: 42px;
}
.gt-tour-btn.ghost { background: var(--color-bg-secondary); color: var(--color-text); }
/* Fenster oben, wenn es unten das hervorgehobene Element verdecken würde (z. B. Tab-Leiste) */
.gt-tour.gt-tour-top { top: 16px; bottom: auto; }
/* Desktop: neben dem hervorgehobenen Element */
.gt-tour.gt-tour-side { bottom: auto; transform: none; width: 400px; animation: gt-tour-fade 200ms ease-out; transition: top 0.25s cubic-bezier(0.2, 0, 0, 1), left 0.25s cubic-bezier(0.2, 0, 0, 1); }
@keyframes gt-tour-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 640px) {
    .gt-tour { bottom: 0; width: 100vw; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); }
    .gt-tour.gt-tour-top { top: 0; bottom: auto; border-radius: 0 0 18px 18px; padding-bottom: 0; padding-top: env(safe-area-inset-top); }
}
.gt-reduce-motion .gt-tour { animation: none; }
/* Rundgang: Seite gesperrt; hervorgehobenes Element nicht anklickbar; Tipp-Effekt beim Vorführen */
.gt-tour-target { pointer-events: none !important; }
.gt-tour-tap { animation: gt-tour-tap 0.7s ease-out; }
@keyframes gt-tour-tap {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent, #2563eb) 55%, transparent), 0 0 0 100vmax rgba(15, 23, 42, 0.55); transform: scale(1); }
    30% { transform: scale(0.94); }
    100% { box-shadow: 0 0 0 18px rgba(37, 99, 235, 0), 0 0 0 100vmax rgba(15, 23, 42, 0.55); transform: scale(1); }
}
.gt-tour-nudge { animation: gt-tour-nudge 0.4s ease; }
@keyframes gt-tour-nudge { 0%, 100% { margin-left: 0; } 25% { margin-left: -8px; } 75% { margin-left: 8px; } }
.gt-reduce-motion .gt-tour-progress span, .gt-reduce-motion .gt-tour-target { transition: none; }

/* ---- Personalbereich: Desktop ohne Menüsymbol (Seitenleiste ist dort immer sichtbar) */
@media (min-width: 1025px) {
    .admin-header .hamburger { display: none !important; }
}
/* ---- Personalbereich auf dem Handy: Tab-Leiste mit den Hauptzielen der Rolle */
.gt-staff-tabbar { display: none; }
/* Inventur läuft: Hinweisleiste auf allen Personalseiten */
.gt-inv-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 8px 8px 8px 14px; border-radius: var(--gt-r, 12px);
    background: color-mix(in srgb, var(--color-warning, #d97706) 12%, var(--color-bg, #fff)); border: 1px solid color-mix(in srgb, var(--color-warning, #d97706) 35%, transparent); font-size: 0.86rem; }
.gt-inv-bar > i { color: var(--color-warning, #d97706); }
.gt-inv-bar > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-inv-bar strong { margin-right: 4px; }
.gt-inv-bar-go { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; min-height: 36px; border-radius: var(--gt-r, 9px); background: var(--color-text, #111); color: var(--color-bg, #fff) !important; font-weight: 700; text-decoration: none; }
.gt-inv-bar-go:hover { opacity: 0.9; }
.gt-inv-bar.long { background: color-mix(in srgb, var(--color-error, #dc2626) 10%, var(--color-bg, #fff)); border-color: color-mix(in srgb, var(--color-error, #dc2626) 40%, transparent); }
.gt-inv-bar.long > i { color: var(--color-error, #dc2626); }
@media (max-width: 1024px) {
    body.gt-staff-tabs { padding-bottom: calc(66px + env(safe-area-inset-bottom)) !important; }
    .gt-staff-tabbar {
        display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
        height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
        background: var(--color-surface, #fff); border-top: 1px solid var(--color-border, #e5e7eb);
    }
    .gt-staff-tabbar a, .gt-staff-tabbar button {
        position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        border: 0; background: none; color: var(--color-text-muted, #6b7280); font: inherit; font-size: 0.72rem; font-weight: 600;
        text-decoration: none; cursor: pointer; min-height: 0; padding: 0; -webkit-tap-highlight-color: transparent;
    }
    .gt-staff-tabbar i { font-size: 1.15rem; }
    .gt-staff-tabbar .active { color: var(--color-accent-text); }
    .gt-staff-tabbar .active::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--color-accent, #2563eb); }
    /* schwebende Hilfsknöpfe über der Leiste */
    body.gt-staff-tabs .ai-toggle, body.gt-staff-tabs #ai-toggle { bottom: calc(78px + env(safe-area-inset-bottom)) !important; }
}

/* ---- angemeldetes Personal-Konto unten in der Seitenleiste (gt-core: decorateSidebar) */
.gt-staff-badge {
    display: flex; align-items: center; gap: 10px; width: calc(100% - 16px); margin: 16px 8px 8px; padding: 10px 12px;
    border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-bg-secondary, transparent);
    color: var(--color-text); font: inherit; text-align: left; cursor: pointer;
}
.gt-staff-badge:hover { border-color: var(--color-accent, #2563eb); }
.gt-staff-badge > i { font-size: 1.6rem; color: var(--color-accent-text); flex: 0 0 auto; }
.gt-staff-badge span { display: flex; flex-direction: column; min-width: 0; }
.gt-staff-badge strong { font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-staff-badge small { font-size: 0.75rem; color: var(--color-text-muted); }

/* ---------------------------------------------------------------- Kundenseiten: gemeinsame Navigation (GT.ui.customerShell)
 * Werte 1:1 wie die Kopfzeile und Tab-Leiste der Startseite (index.html: header/.app-header/.tabbar) */
.gt-shell-header {
    position: sticky; top: 0; z-index: 50; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 0 24px; background: var(--color-bg, #fff); border-bottom: 1px solid var(--color-border, #e5e7eb);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.5;
}
.gt-shell-logo { display: flex; align-items: center; gap: 16px; font-weight: 700; font-size: 1.25rem; color: var(--color-text, #111); text-decoration: none; white-space: nowrap; }
.gt-shell-logo i { font-size: 1.25rem; color: var(--color-accent-text); }
.gt-shell-nav { display: none; gap: 4px; margin-right: auto; }
.gt-shell-nav a {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px;
    color: var(--color-text-muted, #6b7280); text-decoration: none; font-weight: 600; font-size: 0.875rem;
}
.gt-shell-nav a:hover { background: var(--color-bg-secondary, #f3f4f6); color: var(--color-text, #111); }
.gt-shell-nav a.active { background: color-mix(in srgb, var(--color-accent, #2563eb) 10%, transparent); color: var(--color-accent-text); }
.gt-shell-tools { display: flex; align-items: center; gap: 16px; }
.gt-shell-points {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; text-decoration: none;
    background: rgba(245, 158, 11, 0.12); color: #b45309; font-weight: 700; font-size: 0.875rem; white-space: nowrap;
}
.gt-shell-points i { font-size: 0.85em; }
.gt-shell-points[hidden] { display: none; }
.dark-mode .gt-shell-points { color: #fbbf24; }
.gt-shell-more { position: relative; }
.gt-shell-more-btn {
    display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 60px; padding: 8px; border: 0; border-radius: 6px;
    background: none; color: var(--color-text-muted, #6b7280); font-size: 0.75rem; cursor: pointer; transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}
.gt-shell-more-btn i { font-size: 1.125rem; }
.gt-shell-more-btn:hover { background: #f9fafb; color: var(--color-text, #111); }
.dark-mode .gt-shell-more-btn:hover { background: #374151; }
.gt-shell-more-btn:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent, #2563eb) 35%, transparent); }
.gt-shell-menu {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 200; min-width: 220px; padding: 6px; border-radius: 14px;
    background: var(--color-surface, var(--color-bg, #fff)); border: 1px solid var(--color-border, #e5e7eb); box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}
.gt-shell-menu[hidden] { display: none; }
.gt-shell-menu a {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px;
    color: var(--color-text, #111); font-size: 0.92rem; text-decoration: none; text-align: left;
}
.gt-shell-menu a:hover { background: var(--color-bg-secondary, #f3f4f6); }
.gt-shell-menu a[hidden] { display: none; }
.gt-shell-menu i { width: 18px; text-align: center; color: var(--color-accent-text); }
:root body .gt-shell-menu a.gt-shell-menu-danger[role="menuitem"], :root body .gt-shell-menu a.gt-shell-menu-danger[role="menuitem"] i { color: var(--color-error, #dc2626) !important; }
:root body .gt-shell-menu a.gt-shell-menu-danger { border-top: 1px solid var(--color-border, #e5e7eb); border-radius: 0 0 10px 10px; margin-top: 4px; }
.gt-tabbar { display: none; }
@media (min-width: 1024px) {
    .gt-shell-header { gap: 32px; padding: 0 max(24px, calc((100vw - var(--gt-frame, 1240px)) / 2)); }
    .gt-shell-nav { display: flex; }
}
@media (max-width: 1023px) {
    .gt-shell-header { height: 56px; }
    .gt-shell-points-label { display: none; }
    body.gt-shell { padding-bottom: calc(62px + 16px + env(safe-area-inset-bottom)) !important; }
    .gt-tabbar {
        display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
        height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
        background: var(--color-bg, #fff); border-top: 1px solid var(--color-border, #e5e7eb);
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
    }
    .gt-tabbar a {
        position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        color: var(--color-text-muted, #6b7280); text-decoration: none; font-size: 0.75rem; font-weight: 600; -webkit-tap-highlight-color: transparent;
    }
    .gt-tabbar i { font-size: 1.2rem; }
    .gt-tabbar a.active { color: var(--color-accent-text); }
    .gt-tabbar a.active::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--color-accent, #2563eb); }
    .gt-tab-badge {
        position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
        background: var(--color-error, #dc2626); color: #fff; font-size: 0.68rem; line-height: 18px; text-align: center;
    }
}
@media (max-width: 480px) {
    .gt-shell-header { padding: 0 16px; }
    .gt-shell-tools { gap: 4px; }
}
@media (max-width: 360px) {
    .gt-shell-header { padding: 0 10px; }
    .gt-shell-tools { gap: 2px; }
    .gt-shell-logo span { display: none; }
    .gt-shell-more-btn { width: 36px; height: 36px; min-width: 36px; padding: 0; justify-content: center; }
}

/* ================================================================ Personalbereich: Desktop und Handy getrennt gestaltet
 * (body.gt-staff wird von gt-core auf allen Seiten mit Seitenleiste gesetzt) */
@media (min-width: 1025px) {
    body.gt-staff { background: var(--color-bg-secondary) !important; }
    body.gt-staff .admin-content { background: transparent !important; padding: 28px 36px 48px !important; }
    body.gt-staff .admin-content > * { max-width: 1440px; }
    body.gt-staff .page-header, body.gt-staff .dashboard-header { margin-bottom: 22px !important; }
    body.gt-staff .page-title, body.gt-staff .dashboard-title { font-size: 1.6rem !important; letter-spacing: -0.01em; }
    body.gt-staff .dashboard-card, body.gt-staff .card, body.gt-staff .settings-section, body.gt-staff .setting-card,
    body.gt-staff .stat-card, body.gt-staff .chart-card, body.gt-staff .table-card, body.gt-staff .scanner-section {
        background: var(--color-surface, #fff) !important; border: 1px solid var(--color-border) !important;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    }
    body.gt-staff .admin-sidebar .nav-link { border-radius: 10px; }
}
@media (max-width: 1024px) {
    /* schlanke Kopfzeile: Seitentitel, Abmelden nur als Symbol, keine Uhr */
    body.gt-staff .admin-header { padding: 0 12px !important; }
    body.gt-staff .admin-header .time-display { display: none !important; }
    body.gt-staff .admin-header .logout-btn span, body.gt-staff .admin-header .admin-link span { display: none !important; }
    body.gt-staff .admin-header .logo { font-size: 1.05rem !important; gap: 10px !important; min-width: 0; }
    body.gt-staff .admin-header .logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    body.gt-staff .admin-content { padding: 14px 12px 24px !important; }
    body.gt-staff .page-header, body.gt-staff .dashboard-header { margin-bottom: 14px !important; }
    body.gt-staff .page-title, body.gt-staff .dashboard-title { font-size: 1.3rem !important; }
    body.gt-staff .page-subtitle, body.gt-staff .dashboard-subtitle { font-size: 0.85rem !important; }
    /* Werkzeugleisten umbrechen statt die Seite zu verbreitern */
    body.gt-staff .toolbar, body.gt-staff .card-header, body.gt-staff .filter-bar, body.gt-staff .filters { flex-wrap: wrap !important; gap: 8px !important; }

    /* Tabellen als beschriftete Karten (gt-core setzt data-label aus den Spaltenköpfen) */
    body.gt-staff table.gt-stack { display: block !important; border: 0 !important; width: 100% !important; }
    body.gt-staff table.gt-stack thead { display: none !important; }
    body.gt-staff table.gt-stack tbody { display: flex !important; flex-direction: column; gap: 10px; }
    body.gt-staff table.gt-stack tr {
        display: block !important; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 12px;
        background: var(--color-surface, #fff);
    }
    body.gt-staff table.gt-stack td {
        display: flex !important; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 0 !important;
        border: 0 !important; text-align: right !important; white-space: normal !important; min-height: 0; font-size: 0.9rem;
    }
    body.gt-staff table.gt-stack td::before {
        content: attr(data-label); flex: 0 0 auto; max-width: 45%; text-align: left;
        color: var(--color-text-muted); font-size: 0.78rem; font-weight: 600;
    }
    body.gt-staff table.gt-stack td[data-label=""]::before { content: none; }
    body.gt-staff table.gt-stack td:first-child { font-weight: 600; }
    body.gt-staff table.gt-stack td[colspan] { justify-content: center; text-align: center !important; }
    body.gt-staff table.gt-stack td[colspan]::before { content: none; }
}

/* ================================================================ Personalbereich: Tabs statt Seitenleiste */
.gt-staff-topnav { display: none; }
@media (min-width: 1025px) {
    body.gt-topnav .admin-sidebar, body.gt-topnav .sidebar-overlay { display: none !important; }
    body.gt-topnav .admin-content { margin-left: 0 !important; width: 100% !important; }
    body.gt-topnav .admin-content > * { margin-left: auto; margin-right: auto; }
    .gt-staff-topnav {
        display: flex; align-items: center; gap: 16px; position: sticky; top: var(--header-height, 64px); z-index: 45;
        padding: 0 36px; background: var(--color-surface, #fff); border-bottom: 1px solid var(--color-border);
    }
    .gt-staff-topnav-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
    .gt-staff-topnav-tabs::-webkit-scrollbar { display: none; }
    .gt-staff-topnav-tabs a {
        display: inline-flex; align-items: center; gap: 8px; padding: 14px 14px 12px; white-space: nowrap;
        color: var(--color-text-muted); text-decoration: none; font-weight: 600; font-size: 0.88rem;
        border-bottom: 3px solid transparent; transition: color 0.15s ease, border-color 0.15s ease;
    }
    .gt-staff-topnav-tabs a:hover { color: var(--color-text); }
    .gt-staff-topnav-tabs a.active { color: var(--color-accent-text); border-bottom-color: var(--color-accent, #2563eb); }
    .gt-staff-topnav-tabs a i { font-size: 0.95rem; }
    .gt-staff-topnav-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
    .gt-staff-topnav-scan {
        width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
        color: var(--color-text-muted); border: 1px solid var(--color-border); text-decoration: none;
    }
    .gt-staff-topnav-scan:hover { color: var(--color-accent-text); border-color: var(--color-accent); }
    .gt-staff-topnav-me {
        display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; cursor: pointer;
        border: 1px solid var(--color-border); background: var(--color-bg-secondary); color: var(--color-text); font: inherit; min-height: 0;
    }
    .gt-staff-topnav-me > i { font-size: 1.5rem; color: var(--color-accent-text); }
    .gt-staff-topnav-me span { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
    .gt-staff-topnav-me strong { font-size: 0.82rem; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .gt-staff-topnav-me small { font-size: 0.7rem; color: var(--color-text-muted); }
}
@media (max-width: 1024px) {
    /* Handy/Tablet: die untere Tab-Leiste mit "Mehr" ersetzt Menüsymbol und Seitenleiste */
    body.gt-staff-tabs .admin-header .hamburger { display: none !important; }
}
.gt-staff-sheet-shade { position: fixed; inset: 0; z-index: 1990; background: rgba(15, 23, 42, 0.45); }
.gt-staff-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000; max-height: 85dvh; overflow-y: auto;
    background: var(--color-surface, #fff); color: var(--color-text); border-radius: 20px 20px 0 0;
    padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.25);
    animation: gt-sheet-in 0.2s ease-out;
}
.gt-staff-sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--color-border); margin: 4px auto 12px; }
.gt-staff-sheet-me { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: var(--color-bg-secondary); margin-bottom: 12px; }
.gt-staff-sheet-me > i { font-size: 1.8rem; color: var(--color-accent-text); }
.gt-staff-sheet-me span { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.gt-staff-sheet-me strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-staff-sheet-me small { color: var(--color-text-muted); font-size: 0.78rem; }
.gt-staff-sheet-me button, .gt-staff-sheet-foot button {
    border: 1px solid var(--color-border); background: var(--color-surface, #fff); color: var(--color-text); border-radius: 10px;
    padding: 9px 14px; font: inherit; font-weight: 600; cursor: pointer; min-height: 0;
}
.gt-staff-sheet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
/* Gruppen-Überschriften über die volle Breite */
.gt-staff-sheet-grid h4 { grid-column: 1 / -1; margin: 14px 2px 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-text-muted); }
.gt-staff-sheet-grid h4:first-child { margin-top: 0; }
.gt-staff-sheet-x { width: 38px; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; }
.gt-staff-sheet-grid a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 2px; min-height: 66px; min-width: 0;
    border: 1px solid var(--color-border); border-radius: 12px; color: var(--color-text) !important; text-decoration: none; font-size: 0.72rem; font-weight: 600; text-align: center; line-height: 1.15;
}
.gt-staff-sheet-grid a span { max-width: 100%; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
/* Profilzeile als Knopf: Bild und Name öffnen „Mein Konto“ */
.gt-staff-sheet-me .gt-staff-sheet-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0 !important; background: none !important;
    padding: 2px 4px !important; text-align: left; color: var(--color-text); cursor: pointer; }
.gt-staff-sheet-who > i.fa-user-circle { font-size: 1.8rem; color: var(--color-accent-text); flex: 0 0 auto; }
.gt-staff-sheet-who:focus-visible { outline: 2px solid var(--color-accent-text); outline-offset: 2px; border-radius: 10px; }
.gt-staff-sheet-chev { margin-left: auto; color: var(--color-accent-text); font-size: 1.15rem; }
/* schmale Handys: Fußzeile einzeilig */
@media (max-width: 360px) {
    .gt-staff-sheet-foot { flex-wrap: nowrap; }
    .gt-staff-sheet-foot button { flex: 1 1 0; min-width: 0; padding: 9px 6px; font-size: 0.8rem; }
}
.gt-staff-sheet-grid a i { font-size: 1.35rem; color: var(--color-accent-text); }
.gt-staff-sheet-grid a.active { border-color: var(--color-accent, #2563eb); background: color-mix(in srgb, var(--color-accent, #2563eb) 8%, transparent); }
.gt-staff-sheet-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }
.gt-staff-sheet-foot .danger { color: var(--color-error, #dc2626); }
.gt-staff-sheet-foot[hidden] { display: none; }
.gt-staff-sheet-foot { flex-wrap: wrap; }
.gt-staff-sheet-foot button { white-space: nowrap; flex: 1 1 auto; }
.gt-staff-sheet-foot .primary { background: var(--color-accent, #2563eb) !important; color: #fff !important; border-color: transparent !important; }
.gt-staff-sheet-foot .primary:disabled { opacity: 0.5; }
.gt-staff-sheet-edit { align-items: center; }
.gt-staff-sheet-edit [data-sheet-count] { flex: 1; font-size: 0.85rem; font-weight: 600; color: var(--color-text-muted); }
/* Leiste anpassen: gewählte Kacheln mit Platznummer, aktive Seite nicht hervorgehoben */
.gt-staff-sheet.editing .gt-staff-sheet-grid a { position: relative; }
.gt-staff-sheet.editing .gt-staff-sheet-grid a.active:not(.picked) { border-color: var(--color-border); background: none; }
.gt-staff-sheet.editing .gt-staff-sheet-grid a.picked { border-color: var(--color-accent, #2563eb); background: color-mix(in srgb, var(--color-accent, #2563eb) 10%, transparent); }
.gt-staff-sheet.editing .gt-staff-sheet-grid a.picked::after { content: attr(data-pick); position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--color-accent, #2563eb); color: #fff; font-size: 0.7rem; font-weight: 700; line-height: 18px; text-align: center; }
.gt-staff-sheet.editing .gt-staff-sheet-me { opacity: 0.4; pointer-events: none; }

/* ---- Hinweis ohne Verbindung (gt-core) */
#gt-offline {
    position: fixed; left: 50%; top: calc(10px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 4000; max-width: calc(100vw - 24px);
    display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
    background: #1e293b; color: #e2e8f0; font-size: 0.82rem; font-weight: 500; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
    animation: gt-offline-in 260ms cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
#gt-offline strong { color: #fff; }
/* eine Zeile statt eines schmalen Zweizeilers; nach ein paar Sekunden nur noch „Offline“ */
#gt-offline { width: max-content; cursor: pointer; transition: padding 0.2s; }
#gt-offline.mini { padding: 6px 12px 6px 10px; }
#gt-offline.mini .gt-offline-more { display: none; }
#gt-offline.back { background: #15803d; color: #fff; padding-left: 14px; }
#gt-offline.out { opacity: 0; transform: translate(-50%, -8px); transition: opacity 0.2s, transform 0.2s; }
.gt-offline-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); animation: gt-offline-pulse 1.6s ease-out infinite; }
@keyframes gt-offline-in { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes gt-offline-pulse { 70% { box-shadow: 0 0 0 7px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }
/* Desktop: unten links, damit die obere Navigation frei bleibt; Handy: unter der Kopfzeile */
@media (min-width: 1024px) {
    #gt-offline { left: 16px; top: auto; bottom: 16px; transform: none; animation-name: gt-offline-up; }
    #gt-offline.out { transform: translateY(8px); }
}
@keyframes gt-offline-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 1023px) { #gt-offline { top: calc(70px + env(safe-area-inset-top, 0px)); } }
@media (max-width: 480px) { #gt-offline { font-size: 0.78rem; } }
@media (prefers-reduced-motion: reduce) { #gt-offline, .gt-offline-dot { animation: none; } }

/* ================================================================ Bereiche (GT.ui.sections): Desktop Liste + Inhalt, Handy Liste → Detail */
.gt-sec { display: grid; gap: 24px; align-items: start; }
.gt-sec-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gt-sec-nav {
    display: flex; flex-direction: column; padding: 6px; border-radius: var(--radius-lg, 16px);
    background: var(--color-bg, #fff); border: 1px solid var(--color-border, #e5e7eb);
}
.gt-sec-nav a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; min-height: 52px;
    color: var(--color-text, #111); text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.gt-sec-nav a:hover { background: var(--color-bg-secondary, #f3f4f6); }
.gt-sec-ico {
    flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--color-accent, #2563eb) 10%, transparent); color: var(--color-accent-text); font-size: 0.95rem;
}
.gt-sec-nav a[data-tone="gold"] .gt-sec-ico { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.gt-sec-nav a[data-tone="green"] .gt-sec-ico { background: rgba(22, 163, 74, 0.12); color: #15803d; }
.gt-sec-nav a[data-tone="red"] .gt-sec-ico { background: rgba(220, 38, 38, 0.1); color: #b91c1c; }
.gt-sec-nav a[data-tone="gray"] .gt-sec-ico { background: var(--color-bg-secondary, #f3f4f6); color: var(--color-text-muted, #6b7280); }
.gt-sec-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gt-sec-txt strong { font-size: 0.95rem; font-weight: 600; }
.gt-sec-txt small { font-size: 0.8rem; color: var(--color-text-muted, #6b7280); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-sec-badge { flex: 0 0 auto; padding: 2px 8px; border-radius: 999px; background: var(--color-bg-secondary, #f3f4f6); color: var(--color-text-muted, #6b7280); font-size: 0.75rem; }
.gt-sec-badge[hidden] { display: none; }
.gt-sec-chev { color: var(--color-text-muted, #9ca3af); font-size: 0.8rem; }
.gt-sec-body { min-width: 0; }
.gt-sec-panel[hidden] { display: none !important; }
.gt-sec-head { margin: 0 0 16px; }
.gt-sec-head h2 { margin: 0; font-size: 1.35rem; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; color: var(--color-text, #111); }
.gt-sec-head h2 i { color: var(--color-accent-text); font-size: 1.05rem; }
.gt-sec-head h2:focus { outline: none; }
.gt-sec-head p { margin: 4px 0 0; color: var(--color-text-muted, #6b7280); font-size: 0.92rem; }
.gt-sec-back {
    display: none; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 12px 8px 6px; border: 0; border-radius: 10px;
    background: transparent; color: var(--color-accent-text); font: inherit; font-weight: 600; cursor: pointer;
}
@media (min-width: 768px) {
    /* Desktop: keine Seitenleiste – Kopfbereich oben, alle Kategorien als Karten in Spalten */
    .gt-sec { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .gt-sec-nav { display: none; }
    .gt-sec-body { columns: 2 460px; column-gap: 20px; }
    .gt-sec-panel {
        break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 20px; padding: 18px 20px; scroll-margin-top: 80px;
        background: var(--color-bg, #fff); border: 1px solid var(--color-border, #e5e7eb); border-radius: var(--radius-lg, 16px);
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }
    .gt-sec-panel[data-wide] { column-span: all; display: block; }
    .gt-sec-head { margin-bottom: 8px; }
    .gt-sec-head h2 { font-size: 1.1rem; }
    .gt-sec-head p { font-size: 0.85rem; }
}

@media (max-width: 767px) {
    .gt-sec { gap: 14px; }
    .gt-sec-nav { padding: 0; overflow: hidden; }
    .gt-sec-nav a { border-radius: 0; padding: 12px 14px; }
    .gt-sec-nav a + a { border-top: 1px solid var(--color-border, #e5e7eb); }
    .gt-sec-nav a:active { background: var(--color-bg-secondary, #f3f4f6); }
    .gt-sec:not(.gt-sec-open) .gt-sec-body { display: none; }
    .gt-sec.gt-sec-open .gt-sec-side { display: none; }
    .gt-sec-back { display: inline-flex; }
    .gt-sec-head h2 { font-size: 1.2rem; }
    /* Reiter-Stil (Inhaltsseiten): Umschalter statt Einstellungs-Liste */
    .gt-sec-tabs .gt-sec-nav {
        position: sticky; top: 56px; z-index: 5; flex-direction: row; gap: 2px; padding: 3px; border-radius: 12px;
        background: var(--color-bg-secondary, #f3f4f6); overflow-x: auto; scrollbar-width: none;
    }
    .gt-sec-tabs .gt-sec-nav a { flex: 1 0 auto; justify-content: center; min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 0 !important; gap: 6px; }
    .gt-sec-tabs .gt-sec-nav a.active { background: var(--color-bg, #fff); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12); }
    .gt-sec-tabs .gt-sec-nav a.active strong { color: var(--color-text, #111); }
    .gt-sec-tabs .gt-sec-ico { width: auto; height: auto; background: none !important; font-size: 0.85rem; }
    .gt-sec-tabs .gt-sec-txt small, .gt-sec-tabs .gt-sec-chev { display: none; }
    .gt-sec-tabs .gt-sec-txt strong { font-size: 0.85rem; white-space: nowrap; }
    .gt-sec-tabs .gt-sec-side { display: contents; }
    .gt-sec-tabs .gt-sec-body { display: block !important; }
    .gt-sec-tabs .gt-sec-back, .gt-sec-tabs .gt-sec-head h2 { display: none !important; }
    .gt-sec-tabs .gt-sec-head { margin-bottom: 10px; }
    /* Seitenkopf in der Detailansicht ausblenden: der Bereichstitel übernimmt */
    body.gt-sec-detail .page-header, body.gt-sec-detail .gt-intro { display: none !important; }
}

/* ================================================================ Kundenseiten: Designsprache der Startseite (index)
 * Seitenrahmen, Einstiegsband, Karten, Titel und Knöpfe mit denselben Werten wie index.html.
 * Gilt für alle Seiten mit GT.ui.customerShell (body.gt-shell). Alte Seitenstile (Glas, Verläufe) werden hier neutralisiert. */
body.gt-shell {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif !important;
    line-height: 1.5; color: var(--color-text); background: var(--color-bg) !important; background-image: none !important;
}
@media (min-width: 1024px) { body.gt-shell { background: var(--color-bg-secondary) !important; } }

/* Seitenrahmen wie <main> auf index */
body.gt-shell .gt-page, body.gt-shell main.admin-content {
    width: 100%; max-width: 880px; margin: 0 auto !important; padding: 32px 24px !important; background: transparent !important;
    min-height: 0 !important; box-shadow: none !important; border: 0 !important;
}
@media (max-width: 768px) { body.gt-shell .gt-page, body.gt-shell main.admin-content { padding: 20px 16px !important; } }
@media (min-width: 1024px) {
    body.gt-shell .gt-page, body.gt-shell main.admin-content { max-width: var(--gt-frame, 1240px); }
    body.gt-shell .gt-page.gt-page-text { max-width: 880px; }
}

/* Einstiegsband wie .welcome-strip: Handy schlicht, Desktop blaues Band */
.gt-intro { margin: 0 0 24px; }
.gt-intro h1 { margin: 0 0 4px; font-size: 1.5rem; line-height: 1.2; font-weight: 700; color: inherit; letter-spacing: 0; }
.gt-intro p { margin: 0; color: var(--color-text-muted); font-size: 1rem; }
.gt-intro-aside { display: none; list-style: none; margin: 0; padding: 0; }
@media (max-width: 1023px) {
    .gt-intro { margin-bottom: 16px; }
    .gt-intro h1 { font-size: 1.25rem; }
    .gt-intro p { font-size: 0.875rem; }
}
@media (min-width: 1024px) {
    .gt-intro {
        display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px;
        padding: 24px 32px; border-radius: 12px; background: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #3b82f6); color: #fff;
    }
    .gt-intro p { color: rgba(255, 255, 255, 0.85); }
    .gt-intro-aside { display: flex; gap: 16px; }
    .gt-intro-aside > * {
        display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; margin: 0;
        background: rgba(255, 255, 255, 0.12); font-size: 0.875rem; line-height: 1.3; color: rgba(255, 255, 255, 0.85); text-decoration: none;
    }
    .gt-intro-aside i { font-size: 1.2rem; opacity: 0.9; }
    .gt-intro-aside span { display: flex; flex-direction: column; }
    .gt-intro-aside strong { color: #fff; }
}

/* Abschnittstitel und Karten wie .section-title / .scanner-card */
.gt-section { margin: 0 0 32px; }
.gt-section-title, body.gt-shell .section-title {
    margin: 0 0 16px !important; padding: 0 !important; font-size: 1.125rem !important; font-weight: 600 !important; line-height: 1.5 !important;
    color: var(--color-text) !important; background: none !important; -webkit-text-fill-color: currentColor !important; text-align: left !important;
}
body.gt-shell .section-title i { color: var(--color-accent-text) !important; margin-right: 8px; -webkit-text-fill-color: currentColor !important; }
.gt-card {
    background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
}
.dark-mode .gt-card { background: #1f2937; }

/* Knöpfe wie .action-btn (Standard) und .add-to-cart-btn (Hauptaktion) */
.gt-btn, body.gt-shell .btn {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px !important;
    border: 1px solid var(--color-border) !important; border-radius: 12px !important; background: var(--color-bg) !important; color: var(--color-text) !important;
    font: inherit; font-size: 0.875rem !important; font-weight: 600 !important; text-decoration: none; cursor: pointer; white-space: nowrap;
    box-shadow: none !important; transform: none !important; transition: background-color 0.2s, border-color 0.2s, color 0.2s !important;
    text-transform: none !important; letter-spacing: 0 !important;
}
.gt-btn:hover, body.gt-shell .btn:hover { background: var(--color-bg-secondary) !important; }
.gt-btn-primary, body.gt-shell .btn-primary, body.gt-shell .btn-premium, body.gt-shell .btn-success, body.gt-shell .btn-accent {
    background: var(--color-accent) !important; border-color: var(--color-accent) !important; color: #fff !important;
}
.gt-btn-primary:hover, body.gt-shell .btn-primary:hover, body.gt-shell .btn-premium:hover, body.gt-shell .btn-success:hover, body.gt-shell .btn-accent:hover {
    background: var(--color-accent-hover, #1d4ed8) !important; border-color: var(--color-accent-hover, #1d4ed8) !important;
}
.gt-btn-danger, body.gt-shell .btn-danger { background: transparent !important; color: #dc2626 !important; border-color: rgba(220, 38, 38, 0.35) !important; }
.gt-btn-danger:hover, body.gt-shell .btn-danger:hover { background: rgba(220, 38, 38, 0.08) !important; }
.gt-btn:disabled, body.gt-shell .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.gt-btn:focus-visible, body.gt-shell .btn:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent, #2563eb) 35%, transparent) !important; }

/* Alte Seitenköpfe (.page-header) wie das Einstiegsband auf dem Handy */
body.gt-shell .page-header { margin: 0 0 16px !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; text-align: left !important; }
body.gt-shell .page-title {
    display: block !important; margin: 0 0 4px !important; font-size: 1.5rem !important; line-height: 1.2 !important; font-weight: 700 !important;
    color: var(--color-text) !important; background: none !important; -webkit-text-fill-color: currentColor !important;
}
body.gt-shell .page-title i { display: none !important; }
body.gt-shell .page-subtitle { margin: 0 !important; color: var(--color-text-muted) !important; font-size: 1rem !important; }
@media (max-width: 1023px) {
    body.gt-shell .page-title { font-size: 1.25rem !important; }
    body.gt-shell .page-subtitle { font-size: 0.875rem !important; }
}

/* Einstellungs-Zeilen, Auswahlfelder, Schalter */
body.gt-shell .settings-section {
    background: var(--color-bg) !important; border: 1px solid var(--color-border) !important; border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04) !important; backdrop-filter: none !important;
}
body.gt-shell .setting-item { margin: 0 !important; background: transparent !important; border-radius: 0 !important; }
body.gt-shell .setting-item + .setting-item { border-top: 1px solid var(--color-border) !important; }
body.gt-shell .setting-label { font-size: 0.95rem !important; font-weight: 600 !important; color: var(--color-text) !important; }
body.gt-shell .setting-description { font-size: 0.85rem !important; color: var(--color-text-muted) !important; }
body.gt-shell select.form-control, body.gt-shell input.form-control {
    min-height: 40px; padding: 8px 12px !important; border: 1px solid var(--color-border) !important; border-radius: 10px !important;
    background: var(--color-bg) !important; color: var(--color-text) !important; font: inherit; font-size: 0.9rem !important; box-shadow: none !important;
}
body.gt-shell input:checked + .slider { background: var(--color-accent) !important; }
body.gt-shell .premium-badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px !important; border-radius: 999px !important; border: 0 !important;
    background: rgba(245, 158, 11, 0.12) !important; color: #b45309 !important; font-size: 0.72rem !important; font-weight: 700 !important; box-shadow: none !important;
}
body.gt-shell .empty-state { color: var(--color-text-muted) !important; text-align: center; padding: 24px 16px !important; background: none !important; border: 0 !important; }
body.gt-shell .empty-state i { font-size: 2rem; opacity: 0.4; display: block; margin-bottom: 8px; color: inherit !important; }

/* keine Hüpf-Effekte auf Kundenseiten (index hat keine) */
body.gt-shell .touch-feedback:active { transform: none !important; }

/* ================================================================ Premium-Abzeichen in der Punkte-Anzeige + Premium-Pass */
.gt-premium-chip { gap: 6px !important; cursor: pointer; }
.gt-premium-chip .gt-tier-tag { font-weight: 800; padding-right: 7px; margin-right: 1px; border-right: 1px solid currentColor; line-height: 1; }
.gt-premium-chip[data-tier="bronze"] { background: rgba(154, 91, 45, 0.14) !important; color: #8a4b1f !important; }
.gt-premium-chip[data-tier="silver"] { background: rgba(100, 116, 139, 0.16) !important; color: #334155 !important; }
.gt-premium-chip[data-tier="gold"] { background: rgba(245, 158, 11, 0.18) !important; color: #a16207 !important; }
.gt-premium-chip[data-tier="platinum"] { background: rgba(14, 116, 144, 0.14) !important; color: #0e7490 !important; }
.gt-premium-chip[data-tier="diamond"] { background: rgba(109, 40, 217, 0.13) !important; color: #6d28d9 !important; }
.dark-mode .gt-premium-chip { filter: brightness(1.6); }
@media (max-width: 1023px) { .gt-premium-chip .gt-tier-tag { padding-right: 6px; } }

dialog.gt-pass {
    width: min(380px, calc(100vw - 32px)); margin: auto; padding: 0; border: 0; border-radius: 16px; overflow: hidden;
    background: var(--color-bg, #fff); color: var(--color-text, #111); box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}
dialog.gt-pass::backdrop { background: rgba(15, 23, 42, 0.5); }
.gt-pass-card { --tier: #9a5b2d; padding: 18px 20px 20px; background: var(--tier); color: #fff; }
.gt-pass-card[data-tier="silver"] { --tier: #64748b; }
.gt-pass-card[data-tier="gold"] { --tier: #b7791f; }
.gt-pass-card[data-tier="platinum"] { --tier: #0e7490; }
.gt-pass-card[data-tier="diamond"] { --tier: #6d28d9; }
.gt-pass-top { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.9; }
.gt-pass-close { width: 32px; height: 32px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.16); color: #fff; cursor: pointer; }
.gt-pass-card h3 { margin: 10px 0 2px; font-size: 1.6rem; line-height: 1.1; color: #fff; }
.gt-pass-points { font-size: 0.95rem; opacity: 0.92; }
.gt-pass-points strong { font-size: 1.25rem; }
.gt-pass-bar { height: 6px; margin: 12px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.gt-pass-bar span { display: block; height: 100%; border-radius: inherit; background: #fff; }
.gt-pass-card small { font-size: 0.8rem; opacity: 0.9; }
.gt-pass-id { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.14); font-size: 0.8rem; }
.gt-pass-id code { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; color: #fff; overflow-wrap: anywhere; text-align: right; }
.gt-pass-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 20px; }
.gt-pass-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: var(--color-text-muted, #6b7280); }
.gt-pass-row strong { color: var(--color-text, #111); }
.gt-pass-feats { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.gt-pass-feats span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--color-bg-secondary, #f3f4f6); font-size: 0.8rem; }
.gt-pass-feats i { color: var(--color-accent-text); }
.gt-pass-feats em { font-size: 0.85rem; color: var(--color-text-muted, #6b7280); }
.gt-pass-body .gt-btn { margin-top: 4px; width: 100%; }
@media (max-width: 600px) {
    dialog.gt-pass { width: 100vw; max-width: 100vw; margin: auto 0 0 !important; border-radius: 16px 16px 0 0; }
    .gt-pass-body { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}

/* ================================================================ Personalbereich: Spenden und Bestandsmeldungen */
.gt-donate-card, .gt-stock-card { padding: 18px 20px; }
.gt-w-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.gt-w-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 600; color: var(--color-text); }
.gt-donate-card .gt-w-head h2 i { color: #dc2626; }
.gt-stock-card .gt-w-head h2 i { color: #d97706; }
.gt-w-badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 0.75rem; line-height: 22px; text-align: center; }
.gt-w-sub { margin: 0 0 12px; font-size: 0.85rem; color: var(--color-text-muted); }
.gt-w-empty { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; }
.gt-w-empty i { color: var(--color-success, #16a34a); margin-right: 6px; }
.gt-donate-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px; align-items: stretch; }
.gt-donate-open { display: flex; flex-direction: column; justify-content: center; padding: 16px; border-radius: 12px; background: rgba(220, 38, 38, 0.07); }
.gt-donate-open.zero { background: var(--color-bg-secondary, #f3f4f6); }
.gt-donate-open small, .gt-donate-kpis small { color: var(--color-text-muted); font-size: 0.78rem; }
.gt-donate-open strong { font-size: 1.9rem; line-height: 1.1; letter-spacing: -0.02em; color: var(--color-text); font-variant-numeric: tabular-nums; }
.gt-donate-open span { font-size: 0.85rem; color: var(--color-text-muted); }
.gt-donate-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gt-donate-kpis div { padding: 10px 12px; border-radius: 10px; background: var(--color-bg-secondary); display: flex; flex-direction: column; }
.gt-donate-kpis b { font-size: 1rem; font-variant-numeric: tabular-nums; }
.gt-w-more { margin-top: 10px; font-size: 0.88rem; }
.gt-w-more summary { cursor: pointer; color: var(--color-accent-text); font-weight: 600; }
.gt-w-more ul { list-style: none; margin: 8px 0 0; padding: 0; }
.gt-w-more li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--color-border); }
.gt-stock-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gt-stock-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 10px; }
.gt-stock-list li > div:first-child { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gt-stock-list small { color: var(--color-text-muted); font-size: 0.78rem; overflow-wrap: break-word; }
.gt-stock-now { padding: 3px 10px; border-radius: 999px; background: rgba(220, 38, 38, 0.12); color: #b91c1c; font-weight: 700; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.gt-stock-acts { display: flex; gap: 6px; }
/* Seitenregeln wie „.toolbar-btn { width: 100% }“ (Produkte am Handy) dürfen die beiden Knöpfe nicht verzerren */
:root body .gt-stock-acts .toolbar-btn { width: auto !important; min-width: 0; white-space: nowrap; justify-content: center; }
:root body .gt-stock-acts .toolbar-btn[data-act="done"] { flex: 0 0 44px; width: 44px !important; padding-left: 0 !important; padding-right: 0 !important; }
.gt-ask .gt-ask-text { margin: 0 0 12px; color: var(--color-text-muted); font-size: 0.9rem; }
.gt-ask .gt-ask-label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-weight: 600; font-size: 0.9rem; }
.gt-ask input { padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 10px; font: inherit; font-size: 1rem; background: var(--color-bg); color: var(--color-text); }
@media (max-width: 640px) {
    .gt-donate-main { grid-template-columns: 1fr; }
    .gt-stock-list li { flex-wrap: wrap; }
    .gt-stock-acts { width: 100%; }
    :root body .gt-stock-acts .toolbar-btn:first-child { flex: 1 1 auto; }
}

/* ================================================================ Personalbereich in der Designsprache der Startseite (index)
 * Eigene Kopfzeile (Logo + Bereiche + Werkzeuge in einer Zeile), Karten/Knöpfe/Schrift wie index, kein blaues Band. */
body.gt-staff {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: var(--color-text); background: var(--color-bg-secondary) !important; background-image: none !important; line-height: 1.5;
}
@media (max-width: 1024px) { body.gt-staff { background: var(--color-bg) !important; } }

/* ---- Kopfzeile Desktop: eine Zeile wie index */
@media (min-width: 1025px) {
    body.gt-topnav .admin-header { display: none !important; }
    body.gt-topnav .gt-staff-topnav {
        top: 0; height: 64px; gap: 24px; padding: 0 max(24px, calc((100vw - 1240px) / 2)); z-index: 50;
        background: var(--color-bg, #fff); border-bottom: 1px solid var(--color-border); box-shadow: none;
    }
    .gt-staff-brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; color: var(--color-text); text-decoration: none; font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
    .gt-staff-brand i { color: var(--color-accent-text); font-size: 1.2rem; }
    .gt-staff-brand small { padding: 2px 8px; border-radius: 999px; background: var(--color-bg-secondary); border: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; }
    body.gt-topnav .gt-staff-topnav-tabs { gap: 4px; overflow: hidden; align-items: center; }
    body.gt-topnav .gt-staff-topnav-tabs a, .gt-staff-more-btn {
        display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 0; border-radius: 10px; white-space: nowrap;
        color: var(--color-text-muted); background: transparent; text-decoration: none; font: inherit; font-weight: 600; font-size: 0.875rem; cursor: pointer;
    }
    body.gt-topnav .gt-staff-topnav-tabs a[hidden] { display: none; }
    body.gt-topnav .gt-staff-topnav-tabs a:hover, .gt-staff-more-btn:hover { background: var(--color-bg-secondary); color: var(--color-text); }
    body.gt-topnav .gt-staff-topnav-tabs a.active { background: color-mix(in srgb, var(--color-accent, #2563eb) 10%, transparent); color: var(--color-accent-text); border: 0; }
    .gt-staff-more { position: relative; flex: 0 0 auto; }
    .gt-staff-more[hidden] { display: none; }
    .gt-staff-more-menu {
        position: absolute; right: 0; top: calc(100% + 8px); z-index: 200; min-width: 220px; padding: 6px; border-radius: 14px;
        background: var(--color-bg, #fff); border: 1px solid var(--color-border); box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    }
    .gt-staff-more-menu[hidden] { display: none; }
    .gt-staff-more-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--color-text); text-decoration: none; font-size: 0.92rem; }
    .gt-staff-more-menu a:hover { background: var(--color-bg-secondary); }
    .gt-staff-more-menu a.active { background: color-mix(in srgb, var(--color-accent, #2563eb) 10%, transparent); color: var(--color-accent-text); }
    .gt-staff-more-menu i { width: 18px; text-align: center; color: var(--color-accent-text); }
    .gt-staff-topnav-out {
        width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; cursor: pointer;
        color: var(--color-text-muted); border: 1px solid var(--color-border); background: transparent; font: inherit; min-height: 0;
    }
    .gt-staff-topnav-out:hover { color: var(--color-error, #dc2626); border-color: rgba(220, 38, 38, 0.4); }
}

/* ---- Kopfzeile Handy: schlicht wie index */
@media (max-width: 1024px) {
    body.gt-staff .admin-header {
        height: 56px !important; background: var(--color-bg) !important; background-image: none !important; color: var(--color-text) !important;
        border-bottom: 1px solid var(--color-border) !important; box-shadow: none !important; backdrop-filter: none !important;
    }
    body.gt-staff .admin-header .logo { color: var(--color-text) !important; font-weight: 700 !important; }
    body.gt-staff .admin-header .logo > i { color: var(--color-accent-text) !important; }
    body.gt-staff .admin-header .logout-btn, body.gt-staff .admin-header .admin-link {
        background: transparent !important; color: var(--color-text-muted) !important; border: 1px solid var(--color-border) !important; box-shadow: none !important;
    }
}

/* ---- Seitenrahmen und Seitentitel wie index (ohne Symbol, ohne Band) */
body.gt-staff .admin-content { background: transparent !important; }
@media (min-width: 1025px) {
    body.gt-staff .admin-content { padding: 32px max(24px, calc((100vw - 1240px) / 2)) 48px !important; max-width: none !important; }
    body.gt-staff .admin-content > * { max-width: 1240px; margin-left: auto !important; margin-right: auto !important; }
}
body.gt-staff .page-header, body.gt-staff .dashboard-header {
    margin: 0 0 24px !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; text-align: left !important;
}
body.gt-staff .page-title, body.gt-staff .dashboard-title {
    display: block !important; margin: 0 0 4px !important; font-size: 1.5rem !important; line-height: 1.2 !important; font-weight: 700 !important; letter-spacing: 0 !important;
    color: var(--color-text) !important; background: none !important; -webkit-text-fill-color: currentColor !important;
}
body.gt-staff .page-title > i, body.gt-staff .dashboard-title > i { display: none !important; }
body.gt-staff .page-subtitle, body.gt-staff .dashboard-subtitle { margin: 0 !important; color: var(--color-text-muted) !important; font-size: 1rem !important; }
@media (max-width: 1024px) {
    body.gt-staff .page-header, body.gt-staff .dashboard-header { margin-bottom: 14px !important; }
    body.gt-staff .page-title, body.gt-staff .dashboard-title { font-size: 1.25rem !important; }
    body.gt-staff .page-subtitle, body.gt-staff .dashboard-subtitle { font-size: 0.875rem !important; }
}

/* ---- Karten wie .scanner-card */
body.gt-staff .dashboard-card, body.gt-staff .card, body.gt-staff .settings-section, body.gt-staff .setting-card, body.gt-staff .stat-card,
body.gt-staff .chart-card, body.gt-staff .table-card, body.gt-staff .scanner-section, body.gt-staff .export-section, body.gt-staff .insight-card {
    background: var(--color-bg) !important; background-image: none !important; border: 1px solid var(--color-border) !important; border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04) !important; backdrop-filter: none !important; transform: none !important;
}
body.dark-mode.gt-staff .dashboard-card, body.dark-mode.gt-staff .card, body.dark-mode.gt-staff .stat-card, body.dark-mode.gt-staff .settings-section { background: #1f2937 !important; }
body.gt-staff .dashboard-card:hover, body.gt-staff .stat-card:hover, body.gt-staff .card:hover { transform: none !important; }
body.gt-staff .card-title, body.gt-staff .section-title {
    font-size: 1.125rem !important; font-weight: 600 !important; color: var(--color-text) !important; background: none !important; -webkit-text-fill-color: currentColor !important; letter-spacing: 0 !important;
}
body.gt-staff .card-title > i, body.gt-staff .section-title > i { color: var(--color-accent-text) !important; -webkit-text-fill-color: currentColor !important; }

/* ---- Kennzahlen */
body.gt-staff .stat-value, body.gt-staff .stat-number { font-size: 1.75rem !important; font-weight: 700 !important; letter-spacing: -0.02em; color: var(--color-text) !important; background: none !important; -webkit-text-fill-color: currentColor !important; }
body.gt-staff .stat-label, body.gt-staff .stat-title { color: var(--color-text-muted) !important; font-size: 0.85rem !important; font-weight: 500 !important; text-transform: none !important; letter-spacing: 0 !important; }
body.gt-staff .stat-icon { background: color-mix(in srgb, var(--color-accent, #2563eb) 10%, transparent) !important; background-image: none !important; color: var(--color-accent-text) !important; box-shadow: none !important; border-radius: 12px !important; }

/* ---- Knöpfe wie .action-btn / .add-to-cart-btn */
body.gt-staff .toolbar-btn, body.gt-staff .action-btn, body.gt-staff .card-action-btn, body.gt-staff .welcome-btn, body.gt-staff .quick-action-btn, body.gt-staff .filter-toggle {
    border: 1px solid var(--color-border) !important; border-radius: 12px !important; background: var(--color-bg) !important; background-image: none !important;
    color: var(--color-text) !important; font-weight: 600 !important; box-shadow: none !important; transform: none !important; text-transform: none !important; letter-spacing: 0 !important;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s !important;
}
body.gt-staff .toolbar-btn:hover, body.gt-staff .action-btn:hover, body.gt-staff .card-action-btn:hover, body.gt-staff .welcome-btn:hover, body.gt-staff .quick-action-btn:hover, body.gt-staff .filter-toggle:hover {
    background: var(--color-bg-secondary) !important;
}
body.gt-staff .toolbar-btn.primary, body.gt-staff .btn-primary, body.gt-staff .toolbar-btn.success {
    background: var(--color-accent) !important; border-color: var(--color-accent) !important; color: #fff !important;
}
body.gt-staff .toolbar-btn.primary:hover, body.gt-staff .btn-primary:hover, body.gt-staff .toolbar-btn.success:hover { background: var(--color-accent-hover, #1d4ed8) !important; }
body.gt-staff .toolbar-btn.danger { background: transparent !important; color: #dc2626 !important; border-color: rgba(220, 38, 38, 0.35) !important; }
body.gt-staff .toolbar-btn.danger:hover { background: rgba(220, 38, 38, 0.08) !important; }

/* ---- Eingabefelder wie das Barcode-Feld der Startseite */
body.gt-staff main input[type="text"], body.gt-staff main input[type="search"], body.gt-staff main input[type="email"], body.gt-staff main input[type="number"],
body.gt-staff main input[type="password"], body.gt-staff main input[type="date"], body.gt-staff main select, body.gt-staff main textarea,
body.gt-staff .search-bar, body.gt-staff .form-control, body.gt-staff .modal-input {
    border: 1px solid var(--color-border) !important; border-radius: 10px !important; background: var(--color-bg) !important; color: var(--color-text) !important;
    box-shadow: none !important; font-family: inherit !important;
}
body.gt-staff main input:focus, body.gt-staff main select:focus, body.gt-staff main textarea:focus, body.gt-staff .search-bar:focus, body.gt-staff .modal-input:focus {
    outline: none !important; border-color: var(--color-accent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent, #2563eb) 15%, transparent) !important;
}

/* ---- Kein blaues Band: Willkommensbereich des Dashboards als schlichte Aktionszeile */
body.gt-staff .welcome-card {
    background: none !important; background-image: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 0 24px !important; color: var(--color-text) !important; overflow: visible !important;
}
body.gt-staff .welcome-card::before, body.gt-staff .welcome-card::after { display: none !important; }
body.gt-staff .welcome-card .welcome-title, body.gt-staff .welcome-card .welcome-subtitle { display: none !important; }
body.gt-staff .welcome-actions { display: flex !important; flex-wrap: wrap; gap: 8px !important; margin: 0 !important; }
body.gt-staff .welcome-btn { padding: 10px 16px !important; min-height: 44px; display: inline-flex !important; align-items: center; gap: 8px; }
body.gt-staff .welcome-btn i { color: var(--color-accent-text); }

/* ---- Tabellen */
body.gt-staff main table th { color: var(--color-text-muted) !important; font-size: 0.75rem !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: 0.04em; background: transparent !important; }
body.gt-staff main table td { border-color: var(--color-border) !important; }

/* ---- keine Hüpf-Effekte */
body.gt-staff .touch-feedback:active { transform: none !important; }

body.gt-staff .refresh-indicator:not(.active) { opacity: 0 !important; }

/* ---- übrige Verläufe im Personalbereich neutral (kein blaues Band) */
body.gt-staff .weather-widget, body.gt-staff .hero-card, body.gt-staff .connection-panel {
    background: var(--color-bg) !important; background-image: none !important; color: var(--color-text) !important;
    border: 1px solid var(--color-border) !important; border-radius: 12px !important; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}
body.gt-staff .weather-widget *, body.gt-staff .hero-card *, body.gt-staff .connection-panel * { color: inherit; }
body.gt-staff .weather-widget .weather-desc, body.gt-staff .weather-widget .weather-location, body.gt-staff .hero-card p { color: var(--color-text-muted) !important; }
body.gt-staff .weather-widget .weather-icon, body.gt-staff .hero-card i { color: var(--color-accent-text) !important; }
body.gt-staff .welcome-btn { font-size: 0.875rem !important; }

body.gt-staff .settings-nav { flex-wrap: wrap !important; overflow: visible !important; }

/* ---- keine Erklärtexte auf Admin-Seiten: statische Untertitel und Einleitungen aus (dynamische mit id bleiben) */
body.gt-staff .page-subtitle:not([id]), body.gt-staff .dashboard-subtitle:not([id]), body.gt-staff .tm-intro, body.gt-staff .gt-w-sub { display: none !important; }

/* ---- Desktop-Kopfzeile: Logo + Werkzeuge oben, darunter ALLE Bereiche (umbrechend), wenig Weißraum */
@media (min-width: 1025px) {
    body.gt-topnav .gt-staff-topnav { height: auto; flex-wrap: wrap; row-gap: 0; column-gap: 16px; padding-top: 8px; padding-bottom: 6px; }
    body.gt-topnav .gt-staff-brand { order: 1; height: 44px; }
    body.gt-topnav .gt-staff-topnav-tools { order: 2; margin-left: auto; }
    body.gt-topnav .gt-staff-topnav-tabs { order: 3; flex: 1 0 100%; flex-wrap: wrap; overflow: visible; gap: 2px; margin: 2px -10px 0; }
    body.gt-topnav .gt-staff-topnav-tabs a { padding: 7px 10px; font-size: 0.85rem; }
    body.gt-topnav .gt-staff-topnav-tabs a[hidden] { display: inline-flex; }
    body.gt-staff .admin-content { padding-top: 20px !important; padding-bottom: 32px !important; }
    body.gt-staff .page-header, body.gt-staff .dashboard-header { margin-bottom: 14px !important; }
    body.gt-staff .welcome-card { margin-bottom: 16px !important; }
    body.gt-staff .stats-grid { gap: 12px !important; margin-bottom: 16px !important; }
    body.gt-staff .dashboard-grid { gap: 12px !important; }
    body.gt-staff .dashboard-card { margin-bottom: 12px !important; }
}
/* Handy: Schnellaktionen 2 × 2 */
@media (max-width: 1024px) {
    body.gt-staff .welcome-actions { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.gt-staff .welcome-btn { justify-content: center; width: 100%; }
}

/* ================================================================ Marketing-Seiten (Landing, Über das Projekt): gemeinsame Bausteine ld-* */
    /* Landing in der Designsprache der Startseite (Farben, Schrift, Karten, Kopfzeile von index) */
    .ld { width: 100%; max-width: var(--gt-frame, 1240px); margin: 0 auto; padding: 0 24px; }
    @media (max-width: 768px) { .ld { padding: 0 16px; } }
    .ld-section { padding: 72px 0 0; scroll-margin-top: 72px; }
    .ld-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
        background: color-mix(in srgb, var(--color-accent, #2563eb) 10%, transparent); color: var(--color-accent-text); letter-spacing: 0.01em; }
    .ld-h2 { margin: 14px 0 10px; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; }
    .ld-lead { margin: 0; max-width: 620px; color: var(--color-text-muted); font-size: 1.05rem; line-height: 1.6; }
    .ld-head { margin-bottom: 32px; }
    .ld-card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04); }
    .dark-mode .ld-card { background: #1f2937; }
    .ld-ico { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
        background: color-mix(in srgb, var(--color-accent, #2563eb) 10%, transparent); color: var(--color-accent-text); flex: 0 0 auto; }
    .ld-btns { display: flex; flex-wrap: wrap; gap: 10px; }
    .ld-btn-lg { min-height: 52px !important; padding: 12px 22px !important; font-size: 1rem !important; border-radius: 14px !important; }

    /* ---------- Hero */
    .ld-hero { position: relative; overflow: hidden; padding: 56px 0 24px; }
    .ld-hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
        background-image: radial-gradient(color-mix(in srgb, var(--color-accent, #2563eb) 14%, transparent) 1px, transparent 1px); background-size: 22px 22px;
        -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 30%, transparent 75%); }
    .ld-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
    .ld-hero h1 { margin: 18px 0 16px; font-size: clamp(2.4rem, 6vw, 4.4rem) !important; line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; }
    .ld-hero h1 em { font-style: normal; color: var(--color-accent-text); }
    .ld-hero .ld-lead { font-size: 1.15rem; margin-bottom: 28px; }
    .ld-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; color: var(--color-text-muted); font-size: 0.9rem; list-style: none; padding: 0; }
    .ld-trust li { display: inline-flex; align-items: center; gap: 8px; }
    .ld-trust i { color: var(--color-success, #16a34a); }

    /* Handy-Modell */
    .ld-phone-wrap { position: relative; display: flex; justify-content: center; padding: 20px 0; }
    .ld-phone { position: relative; width: 300px; max-width: 100%; aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px;
        background: #0f172a; box-shadow: 0 40px 80px rgba(15, 23, 42, 0.28), inset 0 0 0 2px #1e293b; }
    .ld-screen { height: 100%; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; background: var(--color-bg-secondary, #f9fafb); }
    .dark-mode .ld-screen { background: #111827; }
    .ld-screen-top { display: flex; align-items: center; justify-content: space-between; padding: 26px 18px 12px; background: var(--color-bg); border-bottom: 1px solid var(--color-border); font-size: 0.85rem; font-weight: 700; }
    .ld-screen-top i { color: var(--color-accent-text); margin-right: 6px; }
    .ld-screen-top span:last-child { padding: 3px 9px; border-radius: 999px; background: rgba(245, 158, 11, 0.16); color: #a16207; font-size: 0.72rem; }
    .ld-items { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
    .ld-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--color-bg); border: 1px solid var(--color-border); font-size: 0.8rem; }
    .ld-item i { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--color-accent, #2563eb) 10%, transparent); color: var(--color-accent-text); }
    .ld-item b { display: block; font-size: 0.82rem; }
    .ld-item small { color: var(--color-text-muted); }
    .ld-item span:last-child { margin-left: auto; font-weight: 700; }
    .ld-pay { margin: 0 12px 14px; padding: 12px; border-radius: 14px; background: var(--color-bg); border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: space-between; }
    .ld-pay small { display: block; color: var(--color-text-muted); font-size: 0.7rem; }
    .ld-pay strong { font-size: 1.1rem; }
    .ld-pay span:last-child { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; background: var(--color-accent); color: #fff; font-weight: 700; font-size: 0.8rem; }
    .ld-float { position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; font-size: 0.85rem; font-weight: 600;
        background: var(--color-bg); border: 1px solid var(--color-border); box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14); white-space: nowrap; }
    .ld-float i { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; }
    .ld-float small { display: block; font-weight: 500; color: var(--color-text-muted); font-size: 0.72rem; }
    .ld-float-a { top: 18%; left: -6%; }
    .ld-float-a i { background: rgba(245, 158, 11, 0.16); color: #b45309; }
    .ld-float-b { bottom: 16%; right: -4%; }
    .ld-float-b i { background: rgba(22, 163, 74, 0.12); color: #15803d; }

    /* ---------- Vorteile-Leiste */
    .ld-values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
    .ld-value { display: flex; align-items: center; gap: 12px; padding: 16px; }
    .ld-value strong { display: block; font-size: 0.95rem; }
    .ld-value span { font-size: 0.82rem; color: var(--color-text-muted); }

    /* ---------- So geht's */
    .ld-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
    .ld-step { position: relative; padding: 24px; }
    .ld-step::before { counter-increment: step; content: 'Schritt ' counter(step); display: block; margin: 0 0 10px; font-size: 0.78rem; font-weight: 700;
        letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-accent-text); }
    .ld-step h3 { margin: 16px 0 6px; font-size: 1.125rem; }
    .ld-step p { margin: 0; color: var(--color-text-muted); font-size: 0.95rem; line-height: 1.55; }

    /* ---------- Funktionen (Kacheln) */
    .ld-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(170px, auto); gap: 16px; }
    .ld-tile { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
    .ld-tile h3 { margin: 4px 0 0; font-size: 1.05rem; }
    .ld-tile p { margin: 0; color: var(--color-text-muted); font-size: 0.92rem; line-height: 1.55; }
    .ld-tile-xl { grid-column: span 2; grid-row: span 2; }
    .ld-tile-wide { grid-column: span 2; }
    .ld-scan { position: relative; flex: 1; min-height: 160px; margin-top: 8px; border-radius: 12px; overflow: hidden; background: #0f172a;
        display: flex; align-items: center; justify-content: center; }
    .ld-scan .bars { display: flex; gap: 3px; align-items: stretch; height: 70px; padding: 14px 18px; border-radius: 8px; background: #fff; }
    .ld-scan .bars i { display: block; background: #0f172a; }
    .ld-scan .frame { position: absolute; inset: 22% 18%; border: 2px solid rgba(255, 255, 255, 0.8); border-radius: 14px; }
    .ld-scan .line { position: absolute; left: 18%; right: 18%; top: 50%; height: 2px; background: #22c55e; box-shadow: 0 0 12px #22c55e; }
    .ld-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
    .ld-tags span { padding: 4px 10px; border-radius: 999px; background: var(--color-bg-secondary); font-size: 0.78rem; font-weight: 600; color: var(--color-text-muted); }

    /* ---------- Premium Club */
    .ld-premium { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 40px; border-radius: 20px;
        background: #0f172a; color: #fff; overflow: hidden; position: relative; }
    .ld-premium .ld-eyebrow { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
    .ld-premium .ld-lead { color: rgba(255, 255, 255, 0.75); }
    .ld-premium .ld-h2 { color: #fff; }
    .ld-tiers { display: flex; flex-direction: column; gap: 10px; }
    .ld-tier { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); }
    .ld-tier i { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--t); color: #fff; }
    .ld-tier strong { display: block; }
    .ld-tier span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.65); }
    .ld-tier b { margin-left: auto; font-size: 0.85rem; color: #fbbf24; white-space: nowrap; }
    .ld-premium .gt-btn { background: #fff !important; border-color: #fff !important; color: #0f172a !important; }
    .ld-premium .gt-btn.ld-ghost { background: transparent !important; border-color: rgba(255, 255, 255, 0.3) !important; color: #fff !important; }

    /* ---------- Projekt */
    .ld-project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
    .ld-project-main { padding: 28px; }
    .ld-project-main p { color: var(--color-text-muted); line-height: 1.6; margin: 0 0 18px; }
    .ld-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .ld-num { padding: 22px; }
    .ld-num strong { display: block; font-size: 2.2rem; line-height: 1; letter-spacing: -0.03em; color: var(--color-accent-text); }
    .ld-num span { color: var(--color-text-muted); font-size: 0.9rem; }

    /* ---------- FAQ */
    .ld-faq { overflow: hidden; }
    .ld-faq details { border-bottom: 1px solid var(--color-border); }
    .ld-faq details:last-child { border-bottom: 0; }
    .ld-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; font-weight: 600; }
    .ld-faq summary::-webkit-details-marker { display: none; }
    .ld-faq summary i { color: var(--color-text-muted); transition: transform 0.2s ease; }
    .ld-faq details[open] summary i { transform: rotate(45deg); color: var(--color-accent-text); }
    .ld-faq p { margin: 0; padding: 0 20px 18px; color: var(--color-text-muted); line-height: 1.6; }

    /* ---------- Abschluss */
    .ld-final { margin: 72px 0 48px; padding: 56px 32px; border-radius: 20px; text-align: center; color: #fff;
        background: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #3b82f6); }
    .ld-final h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.1; }
    .ld-final p { margin: 0 auto 26px; max-width: 520px; color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; }
    .ld-final .ld-btns { justify-content: center; }
    .ld-final .gt-btn { background: #fff !important; border-color: #fff !important; color: var(--color-accent-text) !important; }
    .ld-final .gt-btn.ld-ghost { background: transparent !important; border-color: rgba(255, 255, 255, 0.45) !important; color: #fff !important; }
    .ld-legal { padding: 0 0 32px; text-align: center; font-size: 0.85rem; color: var(--color-text-muted); }
    .ld-legal a { color: var(--color-text-muted); }

    /* ---------- Plattformen */
    .ld-platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; color: var(--color-text-muted); font-size: 0.85rem; }
    .ld-platforms > i { font-size: 1.15rem; color: var(--color-text); opacity: 0.75; }
    .ld-platforms-sep { width: 1px; height: 16px; background: var(--color-border); }

    /* ---------- Vorher / Nachher */
    .ld-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .ld-compare-col { padding: 24px; }
    .ld-compare-col h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.1rem; }
    .ld-compare-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
    .ld-compare-col li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; }
    .ld-compare-col li i { width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; margin-top: 1px; }
    .ld-compare-old { background: var(--color-bg-secondary) !important; box-shadow: none !important; }
    .ld-compare-old h3 { color: var(--color-text-muted); }
    .ld-compare-old li { color: var(--color-text-muted); }
    .ld-compare-old li i { background: rgba(220, 38, 38, 0.1); color: #dc2626; }
    .ld-compare-new { border-color: color-mix(in srgb, var(--color-accent, #2563eb) 35%, transparent) !important; box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-accent, #2563eb) 15%, transparent), 0 20px 40px color-mix(in srgb, var(--color-accent, #2563eb) 10%, transparent) !important; }
    .ld-compare-new h3 i { color: var(--color-accent-text); }
    .ld-compare-new li i { background: rgba(22, 163, 74, 0.12); color: #15803d; }

    /* ---------- Mini-Bildschirme in den Schritten */
    .ld-mini { height: 120px; margin: -4px -4px 18px; border-radius: 10px; background: var(--color-bg-secondary); display: flex; align-items: center; justify-content: center; overflow: hidden; }
    .ld-mini-scan { position: relative; width: 70%; height: 80px; border-radius: 10px; background: #0f172a; display: flex; align-items: center; justify-content: center; }
    .ld-mini-scan .bars { display: flex; gap: 3px; height: 40px; padding: 8px 10px; border-radius: 6px; background: #fff; }
    .ld-mini-scan .bars i { display: block; width: 2px; background: #0f172a; }
    .ld-mini-scan .bars i:nth-child(3n) { width: 4px; }
    .ld-mini-scan .bars i:nth-child(4n) { width: 1px; }
    .ld-mini-scan .line, .ld-scan .line { animation: ld-scan 2.4s ease-in-out infinite; }
    .ld-mini-scan .line { position: absolute; left: 12%; right: 12%; top: 50%; height: 2px; background: #22c55e; box-shadow: 0 0 10px #22c55e; }
    .ld-mini-cart { width: 78%; display: flex; flex-direction: column; gap: 6px; font-size: 0.75rem; }
    .ld-mini-cart div { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--color-bg); border: 1px solid var(--color-border); }
    .ld-mini-cart i { color: var(--color-accent-text); width: 16px; text-align: center; }
    .ld-mini-cart span { flex: 1; height: 6px; border-radius: 3px; background: var(--color-border); }
    .ld-mini-cart .sum { background: var(--color-accent); border-color: var(--color-accent); color: #fff; font-weight: 700; }
    .ld-mini-cart .sum span { height: auto; background: none; }
    .ld-mini-qr { width: 92px; height: 92px; padding: 8px; border-radius: 10px; background: #fff; display: grid; grid-template-columns: repeat(11, 1fr); gap: 1px; }
    .ld-mini-qr i { display: block; border-radius: 1px; }

    /* ---------- Zeitrechner */
    .ld-calc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 36px; }
    .ld-range-label { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 0 8px; font-weight: 600; }
    .ld-range-label b { font-size: 1.4rem; color: var(--color-accent-text); }
    #ld-range { width: 100%; accent-color: var(--color-accent); height: 28px; cursor: pointer; }
    .ld-note { display: block; margin-top: 8px; color: var(--color-text-muted); font-size: 0.8rem; }
    .ld-calc-out { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px 16px; border-radius: 16px;
        background: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #3b82f6); color: #fff; min-height: 220px; }
    .ld-calc-out strong { font-size: clamp(3.4rem, 8vw, 5rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
    .ld-calc-out span { font-size: 1.1rem; font-weight: 600; margin-top: 6px; }
    .ld-calc-out small { margin-top: 8px; color: rgba(255, 255, 255, 0.85); }

    /* ---------- Bewegung (nur wenn erwünscht) */
    @keyframes ld-scan { 0%, 100% { transform: translateY(-22px); opacity: 0.6; } 50% { transform: translateY(22px); opacity: 1; } }
    @keyframes ld-pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
    @keyframes ld-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
    @keyframes ld-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
    @media (prefers-reduced-motion: no-preference) {
        .ld-phone { animation: ld-rise 0.7s cubic-bezier(0.2, 0, 0, 1) both; }
        .ld-item { animation: ld-pop 0.45s cubic-bezier(0.2, 0, 0, 1) both; }
        .ld-item:nth-child(1) { animation-delay: 0.5s; } .ld-item:nth-child(2) { animation-delay: 0.8s; }
        .ld-item:nth-child(3) { animation-delay: 1.1s; } .ld-item:nth-child(4) { animation-delay: 1.4s; }
        .ld-pay { animation: ld-pop 0.45s 1.7s cubic-bezier(0.2, 0, 0, 1) both; }
        .ld-float-a { animation: ld-pop 0.5s 2s both, ld-bob 5s 2.5s ease-in-out infinite; }
        .ld-float-b { animation: ld-pop 0.5s 2.3s both, ld-bob 6s 2.8s ease-in-out infinite; }
    }
    @media (prefers-reduced-motion: reduce) { .ld-mini-scan .line, .ld-scan .line { animation: none; } }

    /* ---------- Handy */
    @media (max-width: 1023px) {
        .ld-hero { padding-top: 28px; }
        .ld-hero-grid { grid-template-columns: 1fr; gap: 24px; }
        .ld-phone-wrap { order: 2; }
        .ld-values { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
        .ld-steps { grid-template-columns: 1fr; }
        .ld-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .ld-tile-xl { grid-column: span 2; grid-row: auto; }
        .ld-premium, .ld-project, .ld-compare, .ld-calc { grid-template-columns: 1fr; }
        .ld-calc { padding: 24px 20px; gap: 20px; }
        .ld-calc-out { min-height: 0; }
        .ld-premium { padding: 28px 20px; }
        .ld-section { padding-top: 56px; }
        .ld-float-a { left: 0; }
        .ld-float-b { right: 0; }
    }
    @media (max-width: 560px) {
        .ld-hero .ld-btns .gt-btn { flex: 1 1 100%; }
        .ld-values { grid-template-columns: 1fr; }
        .ld-bento { grid-template-columns: 1fr; }
        .ld-tile-xl, .ld-tile-wide { grid-column: auto; }
        .ld-phone { width: 260px; }
        .ld-float { font-size: 0.78rem; padding: 8px 10px; }
        .ld-final { padding: 40px 20px; margin-top: 56px; }
    }

/* ================================================================ Dynamik zwischen den Seiten */
/* Weiche Seitenwechsel (gleiche Website): Kopfzeilen bleiben stehen, der Inhalt blendet über */
@view-transition { navigation: auto; }
.gt-staff-topnav { view-transition-name: gt-staff-header; }
.gt-staff-tabbar { view-transition-name: gt-staff-tabbar; }
.gt-shell-header { view-transition-name: gt-shell-header; }
.gt-tabbar { view-transition-name: gt-shell-tabbar; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.16s; animation-timing-function: ease-out; }
@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
}

/* Live-Zähler an den Bereichen */
.gt-tab-count {
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--color-error, #dc2626); color: #fff;
    font-size: 0.68rem; font-weight: 700; line-height: 18px; text-align: center; font-style: normal;
}
.gt-staff-tabbar a { position: relative; }
.gt-staff-tabbar .gt-tab-count { position: absolute; top: 6px; left: calc(50% + 6px); }

/* Suchknopf in der Kopfzeile */
.gt-staff-cmd {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 12px; border: 1px solid var(--color-border); border-radius: 10px;
    background: var(--color-bg-secondary); color: var(--color-text-muted); font: inherit; font-size: 0.85rem; cursor: pointer; min-height: 0;
}
.gt-staff-cmd:hover { border-color: var(--color-accent); color: var(--color-text); }
.gt-staff-cmd kbd, .gt-cmd kbd {
    padding: 1px 6px; border: 1px solid var(--color-border); border-radius: 5px; background: var(--color-bg); font-family: inherit; font-size: 0.7rem; color: var(--color-text-muted);
}
.gt-staff-cmd-mobile {
    width: 36px; height: 36px; border: 1px solid var(--color-border); border-radius: 10px; background: transparent; color: var(--color-text-muted);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin-right: 6px; min-height: 0;
}
@media (min-width: 1025px) { .gt-staff-cmd-mobile { display: none; } }
@media (max-width: 1200px) { .gt-staff-cmd span, .gt-staff-cmd kbd { display: none; } .gt-staff-cmd { padding: 0 11px; } }

/* Befehlspalette */
dialog.gt-cmd {
    width: min(620px, calc(100vw - 24px)); max-height: min(72vh, 620px); margin: 12vh auto auto; padding: 0; border: 1px solid var(--color-border); border-radius: 16px;
    background: var(--color-bg); color: var(--color-text); box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35); overflow: hidden; flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}
dialog.gt-cmd[open] { display: flex; }
dialog.gt-cmd::backdrop { background: rgba(15, 23, 42, 0.45); }
.gt-cmd-input { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--color-border); }
.gt-cmd-input i { color: var(--color-text-muted); }
.gt-cmd-input input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--color-text); font: inherit; font-size: 1.05rem; }
.gt-cmd-input input::-webkit-search-cancel-button { display: none; }
.gt-cmd-list { flex: 1; overflow-y: auto; padding: 6px 8px 8px; }
.gt-cmd-group { padding: 10px 10px 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-muted); }
.gt-cmd-item {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent;
    color: var(--color-text); font: inherit; text-align: left; cursor: pointer; min-height: 0;
}
.gt-cmd-item > i:first-child { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--color-accent, #2563eb) 10%, transparent); color: var(--color-accent-text); }
.gt-cmd-item span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gt-cmd-item strong { font-weight: 600; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-cmd-item small { font-size: 0.78rem; color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-cmd-go { color: var(--color-text-muted); opacity: 0; font-size: 0.8rem; }
.gt-cmd-item.active, .gt-cmd-item:hover { background: var(--color-bg-secondary); }
.gt-cmd-item.active .gt-cmd-go { opacity: 1; color: var(--color-accent-text); }
.gt-cmd-empty { padding: 28px; text-align: center; color: var(--color-text-muted); margin: 0; }
.gt-cmd-empty small { display: block; margin-top: 6px; font-size: 0.8rem; }
.gt-cmd-item mark { background: color-mix(in srgb, var(--color-accent, #2563eb) 16%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.gt-cmd-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--color-border); font-size: 0.75rem; color: var(--color-text-muted); }
@media (max-width: 640px) {
    dialog.gt-cmd { width: 100vw; max-width: 100vw; height: 100dvh; max-height: none; margin: 0; border-radius: 0; border: 0; }
    .gt-cmd-foot { display: none; }
}

/* Bereiche kompakter: bis ca. 1100 px passen alle in eine Zeile */
@media (min-width: 1025px) {
    body.gt-topnav .gt-staff-topnav-tabs a { padding: 7px 9px; gap: 6px; font-size: 0.82rem; }
}
@media (min-width: 1025px) and (max-width: 1180px) {
    body.gt-topnav .gt-staff-topnav-tabs a i { display: none; }
}

/* ---- Admin-Desktop: Reiter der App (Kundenseiten) oben neben der Suche, „Personal“ ausgewählt */
.gt-staff-shopnav { display: none; }
@media (min-width: 1025px) {
    .gt-staff-shopnav { order: 1; display: flex; gap: 4px; margin-right: auto; align-items: center; }
    .gt-staff-shopnav a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; color: var(--color-text-muted);
        text-decoration: none; font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
    .gt-staff-shopnav a:hover { background: var(--color-bg-secondary); color: var(--color-text); }
    .gt-staff-shopnav a.active { background: color-mix(in srgb, var(--color-accent, #2563eb) 10%, transparent); color: var(--color-accent-text); }
    /* Bereiche des Personals als zweite Reiterleiste, etwas zurückgenommen */
    body.gt-topnav .gt-staff-topnav-tabs { padding-top: 6px; border-top: 1px solid var(--color-border); margin-top: 4px; }
    body.gt-topnav .gt-staff-topnav-tools { margin-left: 0; }
}
@media (min-width: 1025px) and (max-width: 1280px) {
    .gt-staff-shopnav a i { display: none; }
    .gt-staff-shopnav a { padding: 7px 9px; }
}

/* Kunden-Kopfzeile: auf schmaleren Desktops kompakt und ohne Umbruch */
.gt-shell-nav a, .gt-shell-logo { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
    .gt-shell-nav { gap: 2px; }
    .gt-shell-nav a { padding-left: 10px; padding-right: 10px; }
    .gt-shell-nav a i { display: none; }
}

/* ================================================================ Personal: Karten kompakt wie auf der Startseite, wenig Weißraum
   (:where hält die Spezifität niedrig, damit seitenspezifische Regeln weiter gewinnen) */
body.gt-staff :where(.dashboard-card, .card, .settings-section, .setting-card, .chart-card, .table-card, .status-card, .insight-card, .summary-card, .export-section, .scanner-section) {
    padding: 16px !important; margin-bottom: 12px !important; border-radius: 12px !important;
}
body.gt-staff :where(.dashboard-card, .card, .settings-section, .setting-card, .chart-card, .table-card, .status-card, .insight-card) :where(.card-header, .section-header, .chart-header, .table-header) {
    margin: 0 0 12px !important; padding: 0 !important; border-bottom: 0 !important; min-height: 0 !important; gap: 8px;
}
body.gt-staff :where(.card-title, .section-title, .chart-title, .table-title) { font-size: 1rem !important; line-height: 1.3 !important; margin: 0 !important; }
body.gt-staff :where(.card-title, .section-title, .chart-title, .table-title) > i { font-size: 0.95em; }
body.gt-staff :where(.stat-card, .summary-card, .kpi-card) { padding: 14px 16px !important; }
body.gt-staff :where(.stat-value, .stat-number, .summary-value, .kpi-value) { font-size: 1.5rem !important; line-height: 1.2 !important; }
body.gt-staff :where(.stats-grid, .summary-cards, .charts-grid, .dashboard-grid, .content-grid, .insights-grid, .settings-grid) { gap: var(--tia-gap, 12px) !important; }
body.gt-staff :where(.stats-grid, .summary-cards) { margin-bottom: var(--tia-gap, 12px) !important; }
body.gt-staff main :where(table) :where(th, td) { padding: 8px 10px !important; }
body.gt-staff :where(.empty-state, .no-data, .tm-empty) { padding: 16px !important; font-size: 0.88rem; }
body.gt-staff :where(.chart-container) { min-height: 0; }
@media (min-width: 1025px) {
    body.gt-staff .admin-content { padding-top: 16px !important; }
    body.gt-staff :where(.page-header, .dashboard-header) { margin-bottom: 14px !important; }
}
@media (max-width: 1024px) {
    body.gt-staff :where(.dashboard-card, .card, .settings-section, .setting-card, .chart-card, .table-card, .status-card, .insight-card, .summary-card, .export-section, .scanner-section) {
        padding: 14px !important; margin-bottom: 10px !important;
    }
    body.gt-staff :where(.stats-grid, .summary-cards, .charts-grid, .dashboard-grid, .content-grid, .insights-grid, .settings-grid) { gap: 10px !important; }
    body.gt-staff :where(.stat-value, .stat-number, .summary-value, .kpi-value) { font-size: 1.3rem !important; }
}
body.gt-staff .dashboard-card:empty { display: none !important; }

/* ---- Firmenlogo / Kooperation (GT.branding, Einstellungen > Laden)
 * eigenes Logo: Wagen-Symbol und „Gittertier Pro“ treten zurück; Kooperation: „× Partnerlogo“ dahinter */
.gt-brand-replace > :is(i, span):not(.gt-brand-name):not(.gt-season-fx), .gt-brand-replace > .GP { display: none !important; }
.gt-brand-img { display: block; height: 30px; width: auto; max-width: 150px; object-fit: contain; flex: 0 0 auto; }
.gt-brand-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.gt-brand-partner { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; }
.gt-brand-x { color: var(--color-text-muted); font-weight: 400; font-size: 0.9em; }
.gt-brand-partner img { display: block; height: 26px; width: auto; max-width: 110px; object-fit: contain; }
/* dunkle Logos im Dunkelmodus: helles Feld, damit sie lesbar bleiben */
body.dark-mode .gt-brand-img, body.dark-mode .gt-brand-partner img { background: #fff; border-radius: 6px; padding: 2px 4px; }
.gt-staff-brand .gt-brand-img { height: 24px; max-width: 120px; }
.gt-staff-brand .gt-brand-partner img { height: 22px; }
@media (max-width: 640px) {
    .gt-brand-img { height: 26px; max-width: 120px; }
    .gt-brand-name { max-width: 130px; font-size: 0.95em; }
    .gt-brand-partner img { height: 22px; max-width: 80px; }
}

/* ---- Rundgang anbieten (erster Besuch, GT.ui.tourOffer) */
.gt-tour-offer { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 900; width: max-content; max-width: calc(100vw - 24px);
    display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--color-bg); color: var(--color-text);
    border: 1px solid var(--color-border); box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18); font-size: 0.88rem; animation: gtOfferIn .25s ease both; }
.gt-tour-offer > i { color: var(--color-accent-text); }
.gt-tour-offer > span { flex: 1; min-width: 0; }
.gt-tour-offer-go { border: 0; border-radius: 10px; padding: 7px 12px; background: var(--color-accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.gt-tour-offer-app { border: 0; border-radius: 10px; padding: 7px 12px; background: transparent; color: var(--color-accent-text); box-shadow: inset 0 0 0 1.5px currentColor; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.gt-tour-offer-x { border: 0; background: none; color: var(--color-text-muted); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; flex: 0 0 auto; }
.gt-tour-offer-x:hover { background: var(--color-bg-secondary); }
@keyframes gtOfferIn { from { opacity: 0; transform: translate(-50%, 8px); } }
@media (max-width: 1023px) { body:has(.gt-tabbar) .gt-tour-offer { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } .gt-tour-offer { font-size: 0.82rem; } }
@media (max-width: 480px) { .gt-tour-offer { flex-wrap: wrap; } .gt-tour-offer > span { flex: 1 1 calc(100% - 60px); font-size: 0.8rem; } .gt-tour-offer-go, .gt-tour-offer-app { flex: 1; } }

/* ---- Rückfragen (GT.ui.confirm) */
dialog.gt-confirm { width: min(420px, calc(100vw - 32px)); }
.gt-confirm-body { display: flex; gap: 14px; align-items: flex-start; padding: 20px 20px 18px; }
.gt-confirm-body h3 { margin: 4px 0 4px; font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.gt-confirm-body p { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.5; }
.gt-confirm-icon { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--color-accent, #2563eb) 10%, transparent); color: var(--color-accent-text); }
.gt-confirm.danger .gt-confirm-icon { background: rgba(220, 38, 38, 0.1); color: #dc2626; }
.gt-confirm .gt-dialog-footer { padding: 12px 16px; }
.gt-confirm-btn { min-height: 40px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--color-border); background: var(--color-bg);
    color: var(--color-text); font: inherit; font-weight: 600; cursor: pointer; }
.gt-confirm-btn:hover { background: var(--color-bg-secondary); }
.gt-confirm-btn.primary { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.gt-confirm-btn.primary:hover { filter: brightness(1.08); }
.gt-confirm.danger .gt-confirm-btn.primary { background: #dc2626; border-color: #dc2626; }
@media (max-width: 640px) { dialog.gt-confirm { width: 100vw; } }

/* Inhaltsbereich der Kundenseiten: Breite inklusive Rand (sonst ragt der Inhalt auf Seiten ohne eigenes box-sizing über den Bildschirm) */
.gt-page, .gt-page *, .gt-page *::before, .gt-page *::after { box-sizing: border-box; }

/* Ausgeblendete Knöpfe bleiben ausgeblendet, auch wenn ein Knopfstil display setzt */
body.gt-staff button[hidden] { display: none !important; }

/* ---- Rückgängig-Leiste (GT.ui.undo) */
#gt-undo {
    position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 2100;
    transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
    display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-radius: 12px; overflow: hidden;
    background: #111827; color: #fff; font-size: 0.9rem; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); width: min(440px, calc(100vw - 24px));
}
#gt-undo.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#gt-undo > i.fa-check-circle { color: #4ade80; }
#gt-undo span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#gt-undo button { flex: 0 0 auto; border: 0; background: none; color: #93c5fd; font: inherit; font-weight: 700; cursor: pointer; padding: 6px 4px; min-height: 0; }
#gt-undo .gt-undo-timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #60a5fa; transform-origin: left; }
#gt-undo.show .gt-undo-timer { animation: gt-undo-shrink var(--gt-undo-ms, 8000ms) linear forwards; }
@keyframes gt-undo-shrink { to { transform: scaleX(0); } }
@media (min-width: 1025px) { #gt-undo { bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { #gt-undo.show .gt-undo-timer { animation: none; } }

/* ---- Ladezustände: graue Platzhalter statt „Lade …“ */
@keyframes gt-skel { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.gt-skel-list { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.gt-skel-list i, .gt-skel-cards i {
    display: block; height: 44px; border-radius: 10px;
    background: linear-gradient(90deg, var(--color-bg-secondary, #f3f4f6) 25%, rgba(229, 231, 235, 0.9) 50%, var(--color-bg-secondary, #f3f4f6) 75%);
    background-size: 200% 100%; animation: gt-skel 1.3s ease-in-out infinite;
}
.gt-skel-list i:nth-child(2n) { width: 86%; }
.gt-skel-list i:nth-child(3n) { width: 72%; }
.gt-skel-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; grid-column: 1 / -1; }
.gt-skel-cards i { height: 96px; border-radius: 12px; }
@media (max-width: 1024px) { .gt-skel-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .gt-skel-list i, .gt-skel-cards i { animation: none; } }
body.dark-mode .gt-skel-list i, body.dark-mode .gt-skel-cards i { background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%); background-size: 200% 100%; }

/* ---- Leere Zustände einheitlich: Symbol im Kreis, kurze Zeile */
body.gt-staff :where(.empty-state, .tm-empty, .ml-empty, .rs-empty, .no-data) {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
    color: var(--color-text-muted); font-size: 0.88rem; padding: 22px 16px !important;
}
body.gt-staff :where(.empty-state, .tm-empty, .ml-empty, .no-data) > i:first-child {
    width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--color-bg-secondary); color: var(--color-text-muted); font-size: 1.05rem !important; margin: 0 0 4px !important; opacity: 1 !important;
}
body.gt-staff :where(.empty-state) p { margin: 0 !important; }
body.gt-staff :where(.empty-state) p:first-of-type { color: var(--color-text); font-weight: 600; }
body.gt-staff td.empty-state { display: table-cell; }
body.gt-staff td.empty-state > i:first-child { display: inline-flex; margin: 0 auto 6px !important; }


/* sechs Reiter unten: etwas kleinere Beschriftung, damit nichts umbricht */
@media (max-width: 1023px) { .gt-tabbar a span, .gt-tabbar button span { font-size: 0.68rem; letter-spacing: -0.01em; white-space: nowrap; } }

/* ---- Suche: Abbrechen am Handy, Treffer auf der Zielseite hervorheben */
.gt-cmd-close { display: none; border: 0; background: none; color: var(--color-accent-text); font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; padding: 6px 2px; }
@media (max-width: 640px) {
    .gt-cmd-close { display: inline-block; }
    .gt-cmd-input kbd { display: none; }
    .gt-cmd-input { padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; }
    .gt-cmd-input input { font-size: 16px; }
}
.gt-find-flash { animation: gt-find-flash 2.4s ease-out; border-radius: 12px; }
@keyframes gt-find-flash {
    0%, 30% { box-shadow: 0 0 0 3px var(--color-accent, #2563eb), 0 0 0 9px color-mix(in srgb, var(--color-accent, #2563eb) 18%, transparent); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
@media (prefers-reduced-motion: reduce) { .gt-find-flash { animation: none; outline: 3px solid var(--color-accent, #2563eb); } }

/* ================================================================ Admin-Leiste Desktop (zuletzt, überschreibt ältere Varianten)
   Zeile 1: Logo, Kundenseiten als Reiter (Personal ausgewählt), Suche, Konto.
   Zeile 2: alle Admin-Seiten in einer Zeile, in Gruppen, aktive Seite unterstrichen. */
@media (min-width: 1025px) {
    body.gt-topnav .gt-staff-topnav { height: auto !important; display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 0;
        padding-top: 10px !important; padding-bottom: 0 !important; box-shadow: 0 1px 0 var(--color-border), 0 6px 16px -14px rgba(15, 23, 42, 0.25) !important; border-bottom: 0 !important;
        padding-left: max(24px, calc((100vw - 1440px) / 2)) !important; padding-right: max(24px, calc((100vw - 1440px) / 2)) !important; }
    body.gt-topnav .gt-staff-brand { order: 1; height: 44px; }
    body.gt-topnav .gt-staff-shopnav { order: 2; display: flex !important; flex: 1 1 auto; min-width: 0; gap: 2px; margin: 0 auto 0 8px !important; align-items: center; }
    body.gt-topnav .gt-staff-shopnav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; color: var(--color-text-muted);
        text-decoration: none; font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
    body.gt-topnav .gt-staff-shopnav a:hover { background: var(--color-bg-secondary); color: var(--color-text); }
    body.gt-topnav .gt-staff-shopnav a.active { background: color-mix(in srgb, var(--color-accent, #2563eb) 10%, transparent); color: var(--color-accent-text); }
    body.gt-topnav .gt-staff-topnav-tools { order: 3; flex: 0 0 auto; margin-left: 0 !important; display: flex; align-items: center; gap: 8px; }
    body.gt-topnav .gt-staff-cmd { height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 8px 0 12px; border-radius: 10px; border: 1px solid var(--color-border);
        background: var(--color-bg-secondary); color: var(--color-text-muted); font: inherit; font-size: 0.86rem; cursor: pointer; }
    body.gt-topnav .gt-staff-cmd:hover { border-color: var(--color-accent, #2563eb); background: var(--color-bg); }
    /* Admin-Seiten: zweite Zeile, immer einzeilig */
    body.gt-topnav .gt-staff-topnav-tabs { order: 4; flex: 1 0 100%; display: flex; flex-wrap: nowrap !important; align-items: stretch; gap: 0 !important; overflow: hidden !important;
        margin: 8px -12px 0 !important; padding: 0 !important; border-top: 1px solid var(--color-border) !important; }
    body.gt-topnav .gt-staff-topnav-tabs a { position: relative; flex: 0 1 auto; min-width: 0; display: inline-flex !important; align-items: center; gap: 7px; padding: 10px 11px 12px !important; border-radius: 0 !important;
        background: none !important; color: var(--color-text-muted); font-size: 0.85rem !important; font-weight: 600; white-space: nowrap; }
    body.gt-topnav .gt-staff-topnav-tabs a span { overflow: hidden; text-overflow: ellipsis; }
    body.gt-topnav .gt-staff-topnav-tabs a i { display: inline-block !important; font-size: 0.88rem; opacity: 0.85; }
    body.gt-topnav .gt-staff-topnav-tabs a::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: transparent; transition: background 0.15s; }
    body.gt-topnav .gt-staff-topnav-tabs a:hover { color: var(--color-text); }
    body.gt-topnav .gt-staff-topnav-tabs a:hover::after { background: var(--color-border); }
    body.gt-topnav .gt-staff-topnav-tabs a.active { color: var(--color-accent-text) !important; }
    body.gt-topnav .gt-staff-topnav-tabs a.active::after { background: var(--color-accent, #2563eb); }
    body.gt-topnav .gt-staff-topnav-tabs a.active i { opacity: 1; }
    body.gt-topnav .gt-staff-topnav-tabs .gt-tab-count { position: static; margin-left: 2px; }
    .gt-tab-sep { flex: 0 0 auto; width: 1px; align-self: center; height: 18px; margin: 0 4px; background: var(--color-border); }
}
/* schmalere Desktops: erst Symbole der Admin-Seiten, dann der Kundenseiten ausblenden – alles bleibt einzeilig */
@media (min-width: 1025px) and (max-width: 1439px) {
    body.gt-topnav .gt-staff-topnav-tabs a i { display: none !important; }
    body.gt-topnav .gt-staff-topnav-tabs a { padding-left: 10px !important; padding-right: 10px !important; }
    body.gt-topnav .gt-staff-shopnav a i { display: none; }
    body.gt-topnav .gt-staff-shopnav a { padding: 8px 10px; }
    body.gt-topnav .gt-staff-topnav-me span { display: none; }
}
@media (min-width: 1025px) and (max-width: 1279px) {
    body.gt-topnav .gt-staff-topnav-tabs a { padding-left: 7px !important; padding-right: 7px !important; font-size: 0.8rem !important; }
    .gt-tab-sep { margin: 0 2px; }
    body.gt-topnav .gt-staff-shopnav a { padding: 7px 7px; font-size: 0.82rem; }
    body.gt-topnav .gt-staff-cmd span, body.gt-topnav .gt-staff-cmd kbd { display: none; }
    body.gt-topnav .gt-staff-topnav-scan { display: none; }
}

/* ---- Werkzeuge rechts oben (Desktop): Suche, Scanner, Konto-Menü in einheitlicher Höhe */
@media (min-width: 1025px) {
    body.gt-topnav .gt-staff-topnav-tools { gap: 6px !important; }
    body.gt-topnav .gt-staff-cmd { height: 40px !important; gap: 8px !important; padding: 0 6px 0 14px !important; border-radius: 999px !important;
        border: 1px solid var(--color-border) !important; background: var(--color-bg) !important; color: var(--color-text-muted) !important; box-shadow: none !important; min-width: 0; }
    body.gt-topnav .gt-staff-cmd i { font-size: 0.85rem; }
    body.gt-topnav .gt-staff-cmd span { font-size: 0.86rem; font-weight: 500; padding-right: 18px; }
    body.gt-topnav .gt-staff-cmd kbd { height: 26px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; border: 0; background: var(--color-bg-secondary);
        color: var(--color-text-muted); font: inherit; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; }
    body.gt-topnav .gt-staff-cmd:hover { border-color: color-mix(in srgb, var(--color-accent, #2563eb) 45%, transparent) !important; color: var(--color-text) !important; }
    body.gt-topnav .gt-staff-topnav-scan { width: 40px !important; height: 40px !important; display: inline-flex !important; align-items: center; justify-content: center;
        border-radius: 999px !important; border: 1px solid var(--color-border) !important; background: var(--color-bg) !important; color: var(--color-text-muted) !important; font-size: 0.95rem; }
    body.gt-topnav .gt-staff-topnav-scan:hover { color: var(--color-accent-text) !important; border-color: color-mix(in srgb, var(--color-accent, #2563eb) 45%, transparent) !important; }
    .gt-me { position: relative; }
    body.gt-topnav .gt-staff-topnav-me { height: 40px !important; display: inline-flex !important; align-items: center; gap: 10px; padding: 0 10px 0 4px !important;
        border-radius: 999px !important; border: 1px solid var(--color-border) !important; background: var(--color-bg) !important; color: var(--color-text); cursor: pointer; font: inherit; }
    body.gt-topnav .gt-staff-topnav-me:hover, body.gt-topnav .gt-staff-topnav-me[aria-expanded="true"] { border-color: color-mix(in srgb, var(--color-accent, #2563eb) 45%, transparent) !important; background: var(--color-bg-secondary) !important; }
    .gt-me-av { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
        background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; }
    .gt-me-av.lg { width: 42px; height: 42px; font-size: 0.9rem; }
    .gt-me-txt { display: flex; flex-direction: column; text-align: left; line-height: 1.15; min-width: 0; }
    .gt-me-txt strong { font-size: 0.82rem; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .gt-me-txt small { font-size: 0.7rem; color: var(--color-text-muted); }
    .gt-me-chev { font-size: 0.6rem; color: var(--color-text-muted); transition: transform 0.2s; }
    .gt-staff-topnav-me[aria-expanded="true"] .gt-me-chev { transform: rotate(180deg); }
    body.gt-topnav .gt-staff-topnav-me > i.fa-user-circle { display: none; }
    .gt-me-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 300; width: 270px; padding: 6px; border-radius: 16px; background: var(--color-bg, #fff);
        border: 1px solid var(--color-border); box-shadow: 0 18px 44px rgba(15, 23, 42, 0.2); display: flex; flex-direction: column; animation: gt-me-in 0.16s ease-out; }
    .gt-me-menu[hidden] { display: none; }
    @keyframes gt-me-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
    .gt-me-head { display: flex; gap: 12px; align-items: center; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--color-border); }
    .gt-me-head > span:last-child { display: flex; flex-direction: column; min-width: 0; }
    .gt-me-head strong { font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .gt-me-head small { font-size: 0.78rem; color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .gt-me-head em { font-style: normal; align-self: flex-start; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--color-accent, #2563eb) 10%, transparent); color: var(--color-accent-text); font-size: 0.7rem; font-weight: 700; }
    .gt-me-menu [role=menuitem] { display: flex !important; align-items: center; gap: 12px; width: 100%; padding: 10px 12px !important; border: 0 !important; border-radius: 10px !important;
        background: none !important; color: var(--color-text) !important; font: inherit; font-size: 0.9rem !important; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; height: auto !important; min-height: 0; }
    .gt-me-menu [role=menuitem]:hover, .gt-me-menu [role=menuitem]:focus-visible { background: var(--color-bg-secondary) !important; outline: none; }
    .gt-me-menu [role=menuitem] i { width: 18px; text-align: center; color: var(--color-text-muted); }
    .gt-me-menu [role=menuitem] kbd { margin-left: auto; padding: 1px 7px; border-radius: 6px; background: var(--color-bg-secondary); font: inherit; font-size: 0.7rem; color: var(--color-text-muted); border: 0; }
    .gt-me-menu hr { border: 0; border-top: 1px solid var(--color-border); margin: 4px 0; }
    .gt-me-menu .gt-staff-topnav-out { width: 100% !important; height: auto !important; justify-content: flex-start !important; color: var(--color-error, #dc2626) !important; }
    .gt-me-menu .gt-staff-topnav-out i { color: inherit !important; }
    /* Wahlweise (Einstellungen > Darstellung): Kundenseiten als ein Menü neben dem Logo */
    body.gt-topnav .gt-staff-app { display: none; }
    body.gt-topnav.gt-appmenu .gt-staff-shopnav { display: none !important; }
    body.gt-topnav.gt-appmenu .gt-staff-app { order: 2; position: relative; flex: 1 1 auto; min-width: 0; margin-left: 8px; display: flex; align-items: center; }
    body.gt-topnav .gt-staff-app-btn { height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 10px; border: 1px solid transparent;
        background: none; color: var(--color-text-muted); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
    body.gt-topnav .gt-staff-app-btn:hover, body.gt-topnav .gt-staff-app-btn[aria-expanded="true"] { background: var(--color-bg-secondary); color: var(--color-text); }
    body.gt-topnav .gt-staff-app-btn[aria-expanded="true"] .gt-me-chev { transform: rotate(180deg); }
    body.gt-topnav .gt-staff-app-btn .gt-me-chev { display: inline-block !important; }
    .gt-me-menu.gt-staff-app-menu { left: 0; right: auto; width: 230px; }
}
/* Menü-Variante: der gewonnene Platz zeigt Suche und Namen schon ab 1280 px */
@media (min-width: 1280px) and (max-width: 1439px) {
    body.gt-topnav.gt-appmenu .gt-staff-cmd { width: auto; padding: 0 6px 0 14px !important; justify-content: flex-start; }
    body.gt-topnav.gt-appmenu .gt-staff-cmd span, body.gt-topnav.gt-appmenu .gt-staff-cmd kbd { display: inline-flex !important; }
    body.gt-topnav.gt-appmenu .gt-staff-topnav-me { padding: 0 10px 0 4px !important; gap: 10px; }
    body.gt-topnav.gt-appmenu .gt-staff-topnav-me .gt-me-txt { display: flex !important; }
}
/* Zwischenlösung für kleinere Desktops: Suche und Konto werden runde Symbolknöpfe, Kundenreiter ohne Symbole */
@media (min-width: 1025px) and (max-width: 1439px) {
    body.gt-topnav .gt-staff-cmd { width: 40px; padding: 0 !important; justify-content: center; }
    body.gt-topnav .gt-staff-cmd span, body.gt-topnav .gt-staff-cmd kbd { display: none !important; }
    body.gt-topnav .gt-staff-topnav-me { padding: 0 8px 0 3px !important; gap: 6px; }
    .gt-me-txt { display: none !important; }
}
@media (min-width: 1025px) and (max-width: 1279px) {
    body.gt-topnav .gt-staff-topnav-scan { display: inline-flex !important; }
    .gt-me-chev { display: none; }
    body.gt-topnav .gt-staff-topnav-me { padding: 0 3px !important; width: 40px; justify-content: center; }
}
@media (min-width: 1025px) {
    body.gt-topnav .gt-staff-topnav-me .gt-me-av { display: inline-flex !important; }
    .gt-me { display: flex; align-items: center; }
}
/* Kartenköpfe: Titel nimmt den Platz, Aktionen nur so breit wie nötig */
body.gt-staff .card-header .card-actions { flex: 0 0 auto !important; margin-left: auto; }
body.gt-staff .card-header .card-title { flex: 1 1 auto; min-width: 0; }

/* ---- Wagen verbinden (Kundenseiten) */
.gt-cl { width: min(440px, calc(100vw - 32px)); }
.gt-cl .gt-dialog-header h3 { display: flex; align-items: center; gap: 8px; }
.gt-cl .gt-dialog-header h3 i { color: var(--color-accent-text); }
.gt-cl-label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--color-text-muted, #64748b); margin: 4px 0 8px; }
.gt-cl-code { width: 100%; box-sizing: border-box; font: inherit; font-size: 2rem; font-weight: 800; letter-spacing: 0.4em; text-align: center; padding: 12px 0 12px 0.4em;
    border: 1px solid var(--color-border, #e5e7eb); border-radius: 14px; background: var(--color-bg, #fff); color: var(--color-text, #0f172a); font-variant-numeric: tabular-nums; }
.gt-cl-code:focus { outline: none; border-color: var(--color-accent, #2563eb); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent, #2563eb) 20%, transparent); }
.gt-cl-note { display: flex; gap: 8px; margin: 12px 0 0; font-size: 0.84rem; color: var(--color-text-muted, #64748b); line-height: 1.45; }
.gt-cl-note i { color: var(--color-accent-text); margin-top: 3px; }
.gt-cl-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.gt-cl-badge { font-weight: 800; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--color-accent, #2563eb) 10%, transparent); color: var(--color-accent-text); font-variant-numeric: tabular-nums; }
.gt-cl-st { font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--color-bg-secondary, #f1f5f9); color: var(--color-text-muted, #64748b); }
.gt-cl-st.ok { background: rgba(22, 163, 74, 0.12); color: #16a34a; }
.gt-cl-st.bad { background: rgba(220, 38, 38, 0.1); color: #dc2626; }
.gt-cl-show { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gt-cl-show div { border: 1px solid var(--color-border, #e5e7eb); border-radius: 12px; padding: 10px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.gt-cl-show b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.gt-cl-show small { font-size: 0.72rem; color: var(--color-text-muted, #64748b); }
.gt-cl-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.88rem; }
.gt-cl-list i { color: var(--color-text-muted, #64748b); margin-right: 6px; }
.gt-cl-off { color: #dc2626 !important; }
/* Schaltfläche auf den Seiten */
.gt-cl-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--color-border, #e5e7eb);
    background: var(--color-bg, #fff); color: var(--color-text, #0f172a); font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.gt-cl-btn i { color: var(--color-accent-text); }
.gt-cl-btn:hover { border-color: var(--color-accent, #2563eb); }
.gt-cl-btn.linked { background: rgba(22, 163, 74, 0.1); border-color: rgba(22, 163, 74, 0.35); color: #15803d; }
.gt-cl-btn.linked i { color: #16a34a; }
.gt-cl-btn b { font-size: 0.72rem; padding: 0 7px; border-radius: 999px; background: var(--color-accent, #2563eb); color: #fff; }
.gt-quick-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 420px) { .gt-quick-row .gt-cl-btn { flex: 1 1 0; justify-content: center; } }

/* ---- Ladenstatus: Leiste auf den Kundenseiten, große Ansicht auf „Einkaufen“, Öffnungszeiten */
.gt-shopbar { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 10px max(16px, calc((100vw - 1200px) / 2));
    font-size: 0.88rem; border-bottom: 1px solid transparent; }
.gt-shopbar > i { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.gt-shopbar > span { flex: 1 1 200px; min-width: 0; }
.gt-shopbar strong { margin-right: 6px; }
.gt-shopbar.maint { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.gt-shopbar.maint > i { background: #ffedd5; }
.gt-shopbar.closed { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.gt-shopbar.closed > i { background: #e0e7ff; }
.gt-shopbar.soon { background: #fefce8; color: #854d0e; border-color: #fde68a; }
.gt-shopbar.soon > i { background: #fef3c7; }
.gt-shopbar-more { border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; opacity: 0.85; }
.gt-shopbar-hours { flex: 1 0 100%; padding-top: 4px; }
.gt-shopbar-hours .gt-hours { max-width: 360px; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .gt-shopbar.maint { background: #431407; color: #fed7aa; border-color: #7c2d12; }
    :root:not([data-theme="light"]) .gt-shopbar.maint > i { background: #7c2d12; }
    :root:not([data-theme="light"]) .gt-shopbar.closed { background: #1e1b4b; color: #c7d2fe; border-color: #312e81; }
    :root:not([data-theme="light"]) .gt-shopbar.closed > i { background: #312e81; }
    :root:not([data-theme="light"]) .gt-shopbar.soon { background: #422006; color: #fde68a; border-color: #713f12; }
    :root:not([data-theme="light"]) .gt-shopbar.soon > i { background: #713f12; }
}
.gt-hours { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.gt-hours li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border-radius: 8px; font-size: 0.88rem; }
.gt-hours li b { font-variant-numeric: tabular-nums; font-weight: 600; }
.gt-hours li.off b { color: var(--color-text-muted, #64748b); font-weight: 500; }
.gt-hours li.today { background: color-mix(in srgb, var(--color-accent, #2563eb) 8%, transparent); color: var(--color-accent-text); font-weight: 700; }
.gt-hours li.today b { color: inherit; font-weight: 800; }
.gt-hours-special { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--color-border, #e5e7eb); display: flex; flex-direction: column; gap: 2px; }
.gt-hours-special li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 4px 10px; font-size: 0.82rem; }
.gt-hours-special i { color: var(--color-text-muted, #64748b); }
.gt-hours-special b { font-weight: 600; font-variant-numeric: tabular-nums; }
.gt-shopstate { max-width: 560px; margin: 24px auto; padding: 32px 28px; text-align: center; border-radius: 24px; border: 1px solid var(--color-border, #e5e7eb);
    background: var(--color-bg, #fff); box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08); }
.gt-shopstate-ic { width: 72px; height: 72px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.9rem; margin-bottom: 14px; }
.gt-shopstate.maint .gt-shopstate-ic { background: #ffedd5; color: #ea580c; }
.gt-shopstate.closed .gt-shopstate-ic { background: #e0e7ff; color: #4f46e5; }
.gt-shopstate-pill { display: table; margin: 0 auto 10px; padding: 3px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.02em; }
.gt-shopstate.maint .gt-shopstate-pill { background: #fff7ed; color: #c2410c; }
.gt-shopstate.closed .gt-shopstate-pill { background: #eef2ff; color: #4338ca; }
.gt-shopstate h2 { margin: 0 0 8px; font-size: 1.5rem; line-height: 1.25; }
.gt-shopstate p { margin: 0 auto; max-width: 420px; color: var(--color-text-muted, #64748b); line-height: 1.5; }
.gt-shopstate-until { margin-top: 12px !important; display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 12px; background: var(--color-bg-secondary, #f8fafc);
    color: var(--color-text, #0f172a) !important; font-weight: 600; }
.gt-shopstate-hours { margin: 18px auto 0; max-width: 340px; text-align: left; border: 1px solid var(--color-border, #e5e7eb); border-radius: 14px; padding: 8px; }
.gt-shopstate-hours summary { cursor: pointer; font-weight: 700; padding: 4px 6px 8px; list-style: none; display: flex; gap: 8px; align-items: center; }
.gt-shopstate-hours summary::-webkit-details-marker { display: none; }
.gt-shopstate-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
@media (max-width: 520px) {
    .gt-shopstate { margin: 12px; padding: 24px 18px; border-radius: 20px; }
    .gt-shopstate h2 { font-size: 1.25rem; }
    .gt-shopstate-acts .gt-btn { flex: 1 1 100%; justify-content: center; }
}

/* Treuepunkte: lange Zahlen (ab 1 Mio.) etwas kleiner, nie abgeschnitten */
.points-amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.points-amount.is-long { font-size: clamp(1.4rem, 7vw, 2.2rem) !important; }
.gt-shell-points, #points-chip { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ===== Saison-Design: Verzierung auf dem Einkaufswagen (html[data-deco]) und Effekt um das Logo (html[data-fx]).
   Farben kommen als --d1..--d3 (Verzierung) und --f1..--f3 (Effekt) aus GT.theme. ===== */
.gt-season-logo { position: relative; isolation: isolate; }
.gt-season-icon { position: relative; display: inline-block; }
.gt-season-deco { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; font-style: normal; }
.gt-season-deco::before, .gt-season-deco::after { content: ''; position: absolute; }
.gt-season-fx { position: absolute; inset: -8px -6px; pointer-events: none; z-index: -1; border-radius: 10px; overflow: hidden; }
.gt-season-fx::before, .gt-season-fx::after { content: ''; position: absolute; inset: -40px; }

/* Mütze (Weihnachten, Nikolaus): Spitze, Rand, Bommel */
html[data-deco="cone"] .gt-season-deco::before { left: 34%; top: -42%; width: 62%; height: 56%; background: var(--d1); clip-path: polygon(0 100%, 100% 100%, 88% 30%, 60% 0); transform: rotate(-12deg); transform-origin: left bottom; }
html[data-deco="cone"] .gt-season-deco::after { left: 28%; top: 4%; width: 74%; height: 18%; border-radius: 999px; background: var(--d2); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); transform: rotate(-12deg); transform-origin: left center; }
html[data-deco="cone"] .gt-season-deco { background: radial-gradient(circle at 96% -44%, var(--d3) 0 8%, rgba(0, 0, 0, 0.12) 9%, transparent 10%) no-repeat; }
/* Partyhut (Silvester, Karneval, Feier): gestreift mit Bommel */
html[data-deco="party"] .gt-season-deco::before { left: 40%; top: -60%; width: 46%; height: 66%; background: repeating-linear-gradient(-35deg, var(--d1) 0 18%, var(--d2) 18% 30%); clip-path: polygon(0 100%, 100% 100%, 50% 0); transform: rotate(8deg); transform-origin: center bottom; }
html[data-deco="party"] .gt-season-deco::after { left: 58%; top: -74%; width: 18%; height: 18%; border-radius: 50%; background: var(--d3); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); }
/* Hexenhut (Halloween) */
html[data-deco="witch"] .gt-season-deco::before { left: 34%; top: -58%; width: 46%; height: 64%; background: var(--d1); clip-path: polygon(0 100%, 100% 100%, 70% 20%, 95% 0, 55% 8%); }
html[data-deco="witch"] .gt-season-deco::after { left: 18%; top: 2%; width: 80%; height: 12%; border-radius: 999px; background: var(--d1); box-shadow: inset 0 -2px 0 var(--d2); }
/* Trachtenhut mit Feder (Oktoberfest) */
html[data-deco="tyrol"] .gt-season-deco::before { left: 32%; top: -38%; width: 58%; height: 44%; background: var(--d1); clip-path: polygon(14% 100%, 86% 100%, 74% 0, 26% 0); box-shadow: inset 0 -3px 0 var(--d2); }
html[data-deco="tyrol"] .gt-season-deco::after { left: 18%; top: 2%; width: 82%; height: 12%; border-radius: 999px; background: var(--d1); }
html[data-deco="tyrol"] .gt-season-deco { background: radial-gradient(ellipse 9% 26% at 84% -40%, var(--d3) 0 95%, transparent 100%) no-repeat; }
/* Schneehaube (Winter) */
html[data-deco="snowcap"] .gt-season-deco::before { left: 6%; top: -14%; width: 88%; height: 26%; border-radius: 50% 50% 40% 40% / 90% 90% 30% 30%; background: linear-gradient(var(--d1), var(--d3)); box-shadow: 0 0 0 1px var(--d2), 0 1px 2px rgba(3, 105, 161, 0.35); }
/* Hasenohren (Ostern) */
html[data-deco="ears"] .gt-season-deco::before, html[data-deco="ears"] .gt-season-deco::after { top: -62%; width: 22%; height: 70%; border-radius: 50% 50% 45% 45%; background: radial-gradient(ellipse 30% 60% at 50% 55%, var(--d2) 0 95%, transparent 100%), var(--d1); box-shadow: 0 0 0 1px var(--d3); }
html[data-deco="ears"] .gt-season-deco::before { left: 30%; transform: rotate(-14deg); }
html[data-deco="ears"] .gt-season-deco::after { left: 56%; transform: rotate(12deg); }
/* Sonne (Sommer): Strahlen drehen sich - rotationssymmetrisch, daher ohne sichtbaren Neustart */
html[data-deco="sun"] .gt-season-deco::before { left: 52%; top: -46%; width: 62%; height: 62%; border-radius: 50%; z-index: -1; background: radial-gradient(circle, var(--d1) 0 34%, transparent 36%), repeating-conic-gradient(var(--d2) 0 12deg, transparent 12deg 45deg); animation: gt-spin 24s linear infinite; }
/* Blume (Frühling, Frauentag, Muttertag) */
html[data-deco="flower"] .gt-season-deco::before { left: 66%; top: -52%; width: 48%; height: 48%; background:
    radial-gradient(circle at 50% 50%, var(--d2) 0 17%, transparent 18%),
    radial-gradient(circle at 50% 20%, var(--d1) 0 17%, transparent 18%), radial-gradient(circle at 79% 41%, var(--d1) 0 17%, transparent 18%),
    radial-gradient(circle at 68% 76%, var(--d1) 0 17%, transparent 18%), radial-gradient(circle at 32% 76%, var(--d1) 0 17%, transparent 18%),
    radial-gradient(circle at 21% 41%, var(--d1) 0 17%, transparent 18%); }
html[data-deco="flower"] .gt-season-deco::after { left: 88%; top: -10%; width: 5%; height: 24%; border-radius: 2px; background: var(--d3); }
/* Blatt (Herbst, Erntedank, Tag der Erde) */
html[data-deco="leaf"] .gt-season-deco::before { left: 70%; top: -50%; width: 38%; height: 42%; background: linear-gradient(135deg, var(--d1), var(--d1) 48%, var(--d2) 50%, var(--d1) 52%); border-radius: 0 100% 0 100%; transform: rotate(-18deg); }
html[data-deco="leaf"] .gt-season-deco::after { left: 74%; top: -12%; width: 4%; height: 18%; background: var(--d2); transform: rotate(30deg); }
/* Herz (Valentinstag) */
html[data-deco="heart"] .gt-season-deco::before { left: 64%; top: -54%; width: 46%; height: 42%; background: var(--d1); clip-path: polygon(50% 100%, 10% 60%, 0 35%, 5% 14%, 20% 3%, 35% 3%, 50% 18%, 65% 3%, 80% 3%, 95% 14%, 100% 35%, 90% 60%); transform: rotate(12deg); }
html[data-deco="heart"] .gt-season-deco::after { left: 74%; top: -46%; width: 10%; height: 8%; border-radius: 50%; background: var(--d3); opacity: 0.7; transform: rotate(12deg); }
/* Stern (Advent, Black Week) */
html[data-deco="star"] .gt-season-deco::before { left: 64%; top: -58%; width: 48%; height: 48%; background: var(--d1); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.35)); }
/* Laterne (Sankt Martin): Griff, leuchtender Körper */
html[data-deco="lantern"] .gt-season-deco::before { left: 74%; top: -46%; width: 30%; height: 40%; border-radius: 30% 30% 20% 20%; background: radial-gradient(circle at 50% 55%, var(--d2) 0 30%, var(--d1) 70%); box-shadow: 0 0 6px var(--d1); }
html[data-deco="lantern"] .gt-season-deco::after { left: 86%; top: -70%; width: 4%; height: 26%; background: var(--d3); }
/* Mond (Sternenhimmel) */
html[data-deco="moon"] .gt-season-deco::before { left: 66%; top: -54%; width: 42%; height: 42%; border-radius: 50%; background: radial-gradient(circle at 70% 35%, transparent 0 40%, var(--d1) 42%); }
/* Krone (Vatertag) */
html[data-deco="crown"] .gt-season-deco::before { left: 30%; top: -38%; width: 62%; height: 36%; background: var(--d1); clip-path: polygon(0 100%, 0 20%, 25% 60%, 50% 0, 75% 60%, 100% 20%, 100% 100%); filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.4)); }
html[data-deco="crown"] .gt-season-deco::after { left: 56%; top: -16%; width: 10%; height: 10%; border-radius: 50%; background: var(--d2); box-shadow: -0.32em 0 0 var(--d3), 0.32em 0 0 var(--d3); }
/* Ball (Fußball) */
html[data-deco="ball"] .gt-season-deco::before { left: 68%; top: -52%; width: 42%; height: 42%; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--d2) 0 20%, transparent 22%), radial-gradient(circle at 12% 22%, var(--d2) 0 13%, transparent 14%), radial-gradient(circle at 88% 22%, var(--d2) 0 13%, transparent 14%), radial-gradient(circle at 50% 98%, var(--d2) 0 13%, transparent 14%), var(--d1); box-shadow: 0 0 0 1px var(--d2); }
/* Doktorhut (Schulanfang) */
html[data-deco="cap"] .gt-season-deco::before { left: 20%; top: -42%; width: 80%; height: 34%; background: var(--d1); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
html[data-deco="cap"] .gt-season-deco::after { left: 86%; top: -26%; width: 4%; height: 36%; background: var(--d2); box-shadow: 0 0.3em 0 0.08em var(--d2); }
/* Band in drei Farben (Tag der Deutschen Einheit) */
html[data-deco="band"] .gt-season-deco::before { left: 26%; top: 0; width: 76%; height: 22%; border-radius: 3px; background: linear-gradient(var(--d1) 0 33.3%, var(--d2) 33.3% 66.6%, var(--d3) 66.6%); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); }
/* Kleeblatt (St. Patrick's Day) */
html[data-deco="shamrock"] .gt-season-deco::before { left: 66%; top: -56%; width: 46%; height: 46%; background: radial-gradient(circle at 50% 28%, var(--d1) 0 21%, transparent 22%), radial-gradient(circle at 27% 62%, var(--d1) 0 21%, transparent 22%), radial-gradient(circle at 73% 62%, var(--d1) 0 21%, transparent 22%); }
html[data-deco="shamrock"] .gt-season-deco::after { left: 88%; top: -20%; width: 5%; height: 22%; background: var(--d2); transform: rotate(20deg); }
/* Schirm (Strand, Regenwetter) */
html[data-deco="umbrella"] .gt-season-deco::before { left: 40%; top: -62%; width: 66%; height: 34%; border-radius: 100% 100% 0 0 / 100% 100% 0 0; background: repeating-linear-gradient(90deg, var(--d1) 0 20%, var(--d2) 20% 40%); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); }
html[data-deco="umbrella"] .gt-season-deco::after { left: 71%; top: -30%; width: 5%; height: 40%; background: var(--d3); }
/* Eis (Eiszeit) */
html[data-deco="icecream"] .gt-season-deco::before { left: 74%; top: -20%; width: 26%; height: 38%; background: repeating-linear-gradient(45deg, var(--d2) 0 3px, #b45309 3px 5px); clip-path: polygon(0 0, 100% 0, 50% 100%); }
html[data-deco="icecream"] .gt-season-deco::after { left: 71%; top: -48%; width: 32%; height: 32%; border-radius: 50%; background: radial-gradient(circle at 70% 30%, var(--d3) 0 14%, transparent 16%), var(--d1); }

/* Effekte: drei Schichten mit unterschiedlichen Kachelgrößen (Primzahlen) und Geschwindigkeiten.
   Jede Schicht endet exakt auf ihrer Startposition (Vielfaches der Kachel) - kein sichtbarer Neustart,
   zusammen wiederholt sich das Bild erst nach Stunden. Seitliches Pendeln mit ease-in-out (alternate). */
html:not([data-fx="none"]) .gt-season-fx::before, html:not([data-fx="none"]) .gt-season-fx::after, html:not([data-fx="none"]) .gt-season-fx { background-repeat: repeat; }
html[data-fx="snow"] .gt-season-fx, html[data-fx="petals"] .gt-season-fx, html[data-fx="hearts"] .gt-season-fx,
html[data-fx="confetti"] .gt-season-fx, html[data-fx="stars"] .gt-season-fx, html[data-fx="sparkles"] .gt-season-fx {
    background-image: radial-gradient(circle at 30% 40%, var(--f1) 0 1.4px, transparent 2px);
    background-size: 37px 41px;
    animation: gt-fall-a 19s linear infinite;
}
html[data-fx="snow"] .gt-season-fx::before, html[data-fx="petals"] .gt-season-fx::before, html[data-fx="hearts"] .gt-season-fx::before,
html[data-fx="confetti"] .gt-season-fx::before, html[data-fx="stars"] .gt-season-fx::before, html[data-fx="sparkles"] .gt-season-fx::before {
    background-image: radial-gradient(circle at 60% 20%, var(--f2) 0 1.9px, transparent 2.5px);
    background-size: 53px 59px;
    animation: gt-fall-b 23s linear infinite, gt-sway 7.3s ease-in-out infinite alternate;
}
html[data-fx="snow"] .gt-season-fx::after, html[data-fx="petals"] .gt-season-fx::after, html[data-fx="hearts"] .gt-season-fx::after,
html[data-fx="confetti"] .gt-season-fx::after, html[data-fx="stars"] .gt-season-fx::after, html[data-fx="sparkles"] .gt-season-fx::after {
    background-image: radial-gradient(circle at 20% 70%, var(--f3) 0 1.1px, transparent 1.7px);
    background-size: 29px 31px;
    animation: gt-fall-c 31s linear infinite, gt-sway 11.9s ease-in-out infinite alternate-reverse;
}
/* Konfetti: kleine Rechtecke statt Punkte */
html[data-fx="confetti"] .gt-season-fx { background-image: radial-gradient(ellipse 1.6px 2.6px at 30% 40%, var(--f1) 0 98%, transparent); }
html[data-fx="confetti"] .gt-season-fx::before { background-image: radial-gradient(ellipse 2.6px 1.5px at 60% 20%, var(--f2) 0 98%, transparent); }
html[data-fx="confetti"] .gt-season-fx::after { background-image: radial-gradient(ellipse 1.5px 2.4px at 20% 70%, var(--f3) 0 98%, transparent); }
/* Sterne und Funkeln: steigen langsam auf statt zu fallen */
html[data-fx="stars"] .gt-season-fx, html[data-fx="sparkles"] .gt-season-fx { animation-name: gt-rise-a; }
html[data-fx="stars"] .gt-season-fx::before, html[data-fx="sparkles"] .gt-season-fx::before { animation-name: gt-rise-b, gt-sway; }
html[data-fx="stars"] .gt-season-fx::after, html[data-fx="sparkles"] .gt-season-fx::after { animation-name: gt-rise-c, gt-sway; }
/* Blätter: längliche Ellipsen, schräg fallend */
html[data-fx="leaves"] .gt-season-fx { background-image: radial-gradient(ellipse 4px 2px at 25% 30%, var(--f1) 0 98%, transparent); background-size: 43px 47px; animation: gt-drift-a 21s linear infinite; }
html[data-fx="leaves"] .gt-season-fx::before { background-image: radial-gradient(ellipse 3px 2px at 70% 70%, var(--f2) 0 98%, transparent); background-size: 61px 67px; animation: gt-drift-b 27s linear infinite, gt-sway 8.9s ease-in-out infinite alternate; }
html[data-fx="leaves"] .gt-season-fx::after { background-image: radial-gradient(ellipse 4px 2.5px at 50% 10%, var(--f3) 0 98%, transparent); background-size: 37px 43px; animation: gt-drift-c 33s linear infinite, gt-sway 13.1s ease-in-out infinite alternate-reverse; }
/* Regen: kurze, schmale Tropfen */
html[data-fx="rain"] .gt-season-fx { background-image: radial-gradient(ellipse 0.8px 4px at 30% 40%, var(--f1) 0 95%, transparent); background-size: 23px 29px; animation: gt-rain-a 2.9s linear infinite; }
html[data-fx="rain"] .gt-season-fx::before { background-image: radial-gradient(ellipse 0.8px 4px at 60% 20%, var(--f2) 0 95%, transparent); background-size: 31px 37px; animation: gt-rain-b 3.7s linear infinite; }
html[data-fx="rain"] .gt-season-fx::after { background-image: radial-gradient(ellipse 0.8px 4px at 20% 70%, var(--f3) 0 95%, transparent); background-size: 41px 43px; animation: gt-rain-c 4.3s linear infinite; }
/* Blasen: Ringe, die aufsteigen */
html[data-fx="bubbles"] .gt-season-fx { background-image: radial-gradient(circle at 30% 40%, transparent 0 1.6px, var(--f1) 1.8px 2.4px, transparent 2.6px); background-size: 37px 41px; animation: gt-rise-a 23s linear infinite; }
html[data-fx="bubbles"] .gt-season-fx::before { background-image: radial-gradient(circle at 60% 20%, transparent 0 2.2px, var(--f2) 2.4px 3px, transparent 3.2px); background-size: 53px 59px; animation: gt-rise-b 29s linear infinite, gt-sway 9.7s ease-in-out infinite alternate; }
html[data-fx="bubbles"] .gt-season-fx::after { background-image: radial-gradient(circle at 20% 70%, transparent 0 1.2px, var(--f3) 1.4px 1.9px, transparent 2.1px); background-size: 29px 31px; animation: gt-rise-c 37s linear infinite, gt-sway 12.7s ease-in-out infinite alternate-reverse; }
/* Endpunkte = ganze Vielfache der Kachelgröße der jeweiligen Schicht */
@keyframes gt-fall-a { to { background-position: 37px 410px; } }
@keyframes gt-fall-b { to { background-position: -53px 413px; } }
@keyframes gt-fall-c { to { background-position: 29px 403px; } }
@keyframes gt-rise-a { to { background-position: 0 -369px; } }
@keyframes gt-rise-b { to { background-position: 53px -413px; } }
@keyframes gt-rise-c { to { background-position: -29px -403px; } }
@keyframes gt-drift-a { to { background-position: 172px 423px; } }
@keyframes gt-drift-b { to { background-position: 183px 469px; } }
@keyframes gt-drift-c { to { background-position: 148px 430px; } }
@keyframes gt-rain-a { to { background-position: -23px 290px; } }
@keyframes gt-rain-b { to { background-position: -31px 296px; } }
@keyframes gt-rain-c { to { background-position: -41px 301px; } }
@keyframes gt-sway { from { transform: translateX(-3px); } to { transform: translateX(3px); } }
@keyframes gt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .gt-season-fx, .gt-season-fx::before, .gt-season-fx::after, .gt-season-deco::before { animation: none !important; }
}

/* Kopfzeile auf dem Handy: das Logo gibt Platz ab, Punkte und Menü bleiben immer sichtbar */
.gt-shell-logo { min-width: 0; flex: 0 1 auto; }
/* nur das Symbol sichtbar: trotzdem eine volle Tippfläche */
@media (max-width: 640px) { .gt-shell-logo { min-width: 40px; min-height: 40px; justify-content: center; } }
.gt-shell-logo span { overflow: hidden; text-overflow: ellipsis; }
.gt-shell-tools { flex: 0 0 auto; min-width: 0; }
@media (max-width: 480px) {
    .gt-shell-logo { gap: 10px; font-size: 1.1rem; }
    .gt-shell-more-btn { width: 36px; height: 36px; min-width: 36px; padding: 0; justify-content: center; }
    .gt-shell-points, #points-chip { padding: 5px 10px; font-size: 0.8125rem; }
}
/* Premium-Abzeichen: unter 420 px nur die farbige Krone (Stufe an der Farbe, Tippen öffnet den Pass) */
@media (max-width: 420px) {
    .gt-premium-chip .gt-tier-tag { display: none; }
    .gt-premium-chip { gap: 5px !important; }
}
@media (max-width: 340px) { .gt-shell-logo span { display: none; } }

/* Tippflächen: Logo-Link und Punkte-Chip in der Kopfzeile mindestens 40 bzw. 32 px hoch */
.gt-shell-logo, header .logo { min-height: 40px; }
.gt-shell-points, #points-chip { min-height: 32px; }

/* Grundform für .toolbar-btn auf Seiten ohne eigene Gestaltung (Spezifität 0: Seitenregeln gehen vor) */
:where(.toolbar-btn) {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; min-width: 40px; padding: 8px 14px;
    border: 1px solid var(--color-border, #e5e7eb); border-radius: var(--radius, 10px); background: var(--color-bg, #fff); color: var(--color-text, #111);
    font: inherit; font-weight: 600; cursor: pointer; transition: border-color 0.15s, background-color 0.15s;
}
:where(.toolbar-btn):hover { border-color: var(--color-accent, #2563eb); }
:where(.toolbar-btn.primary) { background: var(--color-accent, #2563eb); border-color: var(--color-accent, #2563eb); color: #fff; }
:where(.toolbar-btn.primary):hover { background: var(--color-accent-hover, #1d4ed8); }


/* Fenster offen: Hintergrund scrollt nicht mit (eigene Fenster per Klasse, <dialog> per :has) */
html.gt-scroll-lock, html.gt-scroll-lock body { overflow: hidden !important; }
@supports selector(:has(a)) { html:has(dialog[open]:modal), html:has(dialog[open]:modal) body { overflow: hidden; } }
html { scrollbar-gutter: stable; }
/* Tastatur-Fokus überall sichtbar (Links, Aufklapper, eigene Bedienelemente) */
a:focus-visible, summary:focus-visible, [tabindex]:focus-visible, [role="button"]:focus-visible, [role="tab"]:focus-visible, [role="menuitem"]:focus-visible {
    outline: 2px solid var(--color-accent, #2563eb); outline-offset: 2px; border-radius: 6px;
}
.gt-staff-cmd-mobile:focus-visible { outline: 2px solid var(--color-accent, #2563eb); outline-offset: 2px; }

/* Zeilen mit Schalter brechen nie um: Text links (darf umbrechen), Schalter rechts (gilt auch unter 380 px) */
.setting-control:has(> .switch), .setting-option:has(.switch) { flex-wrap: nowrap !important; }
.setting-control:has(> .switch) > :first-child, .setting-option:has(.switch) > :first-child { flex: 1 1 auto; min-width: 0; }
.setting-control > .switch, .setting-option .switch { flex: 0 0 auto; }

/* Deaktivierte Knöpfe sehen überall deaktiviert aus */
button:disabled, .btn:disabled, .gt-btn:disabled, .toolbar-btn:disabled, [aria-disabled="true"] { opacity: 0.5; cursor: not-allowed !important; }
/* Grund-Fokus für Eingabefelder ohne eigene Gestaltung (Spezifität 0) */
:where(input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea):focus { outline: 2px solid var(--color-accent, #2563eb); outline-offset: 1px; }


/* „hidden“ gilt immer – auch wenn ein Seitenstil display setzt (Leisten, Hinweise, Formularzeilen) */
[hidden]:not([hidden="until-found"]) { display: none !important; }

/* ===== Mein Konto (Kontosymbol) ===== */
dialog.gt-acct { width: min(560px, calc(100vw - 24px)); }
.gt-acct-head { display: flex; align-items: center; gap: 12px; }
.gt-acct-head .gt-me-av.lg { width: 46px; height: 46px; font-size: 1.05rem; flex: 0 0 auto; border-radius: 50%; display: inline-flex; align-items: center;
    justify-content: center; background: var(--color-accent); color: #fff; font-weight: 800; }
dialog.gt-acct .gt-acct-head, dialog.gt-acct .gt-acct-tabs, dialog.gt-acct .gt-acct-foot { flex-shrink: 0; }
dialog.gt-acct .gt-acct-body { flex: 1 1 auto; overflow-y: auto; }
.gt-acct-who { flex: 1; min-width: 0; }
.gt-acct-who h3 { margin: 0; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-acct-who small { color: var(--color-text-muted); font-size: 0.82rem; overflow-wrap: break-word; }
.gt-acct-tabs { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--color-border); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.gt-acct-tabs::-webkit-scrollbar { display: none; }
.gt-acct-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border: 0; border-bottom: 2px solid transparent; background: none;
    color: var(--color-text-muted); font: inherit; font-weight: 600; font-size: 0.86rem; cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.gt-acct-tabs button[aria-selected="true"] { color: var(--color-accent-text); border-bottom-color: var(--color-accent); }
.gt-acct-body { min-height: 260px; }
.gt-acct-body h4 { margin: 14px 0 8px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted); }
.gt-acct-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gt-acct-cards > div { padding: 10px 12px; border-radius: 12px; background: var(--color-bg-secondary, #f9fafb); border: 1px solid var(--color-border); min-width: 0; }
.gt-acct-cards small { display: block; color: var(--color-text-muted); font-size: 0.75rem; }
.gt-acct-cards b { display: block; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-acct-perms, .gt-acct-logins, .gt-acct-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.gt-acct-perms li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.88rem; }
.gt-acct-perms i { color: #15803d; margin-top: 3px; }
.gt-acct-muted { color: var(--color-text-muted); font-size: 0.86rem; }
.gt-acct-form { display: flex; flex-direction: column; gap: 10px; }
.gt-acct-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; font-weight: 600; }
.gt-acct-pw { display: flex; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-bg); overflow: hidden; }
.gt-acct-pw:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent, #2563eb) 15%, transparent); }
.gt-acct-pw input { flex: 1; min-width: 0; border: 0; padding: 10px 12px; font: inherit; font-size: 16px; background: none; color: var(--color-text); outline: none; }
.gt-acct-pw button { border: 0; background: none; width: 44px; color: var(--color-text-muted); cursor: pointer; }
.gt-acct-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: -4px; }
.gt-acct-meter i { height: 5px; border-radius: 999px; background: var(--color-border); }
.gt-acct-meter[data-score="0"] i.on, .gt-acct-meter[data-score="1"] i.on { background: #dc2626; }
.gt-acct-meter[data-score="2"] i.on { background: #d97706; }
.gt-acct-meter[data-score="3"] i.on { background: #65a30d; }
.gt-acct-meter[data-score="4"] i.on { background: #15803d; }
.gt-acct-rules li { font-size: 0.8rem; color: var(--color-text-muted); display: flex; gap: 6px; align-items: center; }
.gt-acct-rules li i { font-size: 0.55rem; width: 12px; text-align: center; }
.gt-acct-rules li.ok { color: #15803d; } .gt-acct-rules li.ok i { font-size: 0.75rem; }
.gt-acct-rules li.bad { color: #b45309; }
.gt-acct-msg { margin: 0; min-height: 1.2em; font-size: 0.86rem; }
.gt-acct-msg.bad { color: #dc2626; } .gt-acct-msg.ok { color: #15803d; }
.gt-acct-form .toolbar-btn.primary { align-self: flex-start; }
.gt-acct-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--color-border); border-radius: 12px; }
.gt-acct-row b { display: block; } .gt-acct-row small { color: var(--color-text-muted); font-size: 0.82rem; }
.gt-acct-logins li { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: center; font-size: 0.86rem; padding: 6px 0; border-bottom: 1px solid var(--color-border); }
.gt-acct-logins li:last-child { border-bottom: 0; }
.gt-acct-logins li.ok i { color: #15803d; } .gt-acct-logins li.bad i { color: #dc2626; } .gt-acct-logins li.info i { color: var(--color-accent-text); }
.gt-acct-logins time { color: var(--color-text-muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.gt-acct-seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--color-bg-secondary, #f3f4f6); flex-wrap: wrap; }
.gt-acct-seg button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font: inherit; font-weight: 600; font-size: 0.86rem; color: var(--color-text-muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.gt-acct-seg button.on { background: var(--color-bg); color: var(--color-text); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
.gt-acct-foot { justify-content: space-between !important; }
.gt-acct-out { color: #b91c1c !important; }
.gt-me-hint { margin-left: auto; font-size: 0.75rem; color: var(--color-text-muted); font-weight: 500; }
@media (max-width: 520px) {
    .gt-acct-cards { grid-template-columns: 1fr 1fr; }
    .gt-acct-cards > div:first-child { grid-column: 1 / -1; }
    .gt-acct-tabs button span { display: none; }
    .gt-acct-tabs button { flex: 1; justify-content: center; padding: 12px 6px; font-size: 1rem; }
    .gt-acct-row { flex-direction: column; align-items: stretch; }
}

/* Tablet (641–1024 px): Tabellen bleiben Tabellen (passt in der Breite, statt hoher Karten je Zeile); Handy darunter weiter als Karten */
@media (min-width: 641px) and (max-width: 1024px) {
    body.gt-staff table.gt-stack { display: table !important; width: 100% !important; border-collapse: collapse; }
    body.gt-staff table.gt-stack thead { display: table-header-group !important; }
    body.gt-staff table.gt-stack tbody { display: table-row-group !important; }
    body.gt-staff table.gt-stack tr { display: table-row !important; padding: 0; border: 0; border-radius: 0; background: transparent; }
    body.gt-staff table.gt-stack td { display: table-cell !important; text-align: left !important; padding: 9px 10px !important;
        border-bottom: 1px solid var(--color-border) !important; vertical-align: middle; }
    body.gt-staff table.gt-stack td::before { content: none !important; }
    body.gt-staff table.gt-stack td:first-child { font-weight: 600; }
}

/* Logo immer im Gittertier-Blau (Einstellungen > Saison-Design > Farbe des Logos) */
html[data-logo="brand"] .gt-shell-logo i, html[data-logo="brand"] .app-header .logo i, html[data-logo="brand"] .logo > i { color: #2563eb !important; }

/* Personal rufen: schwebender Hinweis auf Personalseiten */
/* oben rechts unter der Kopfzeile: unten liegen Toasts und schwebende Seitenknöpfe */
#gt-help { position: fixed; right: 20px; top: 76px; z-index: 900; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 8px; max-width: calc(100vw - 32px); }
#gt-help[hidden] { display: none; }
.gt-help-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; font: inherit; font-size: 0.9rem; font-weight: 700;
    cursor: pointer; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18); background: #d97706; color: #fff; }
.gt-help-pill.late { background: #dc2626; }
.gt-help-pill.ok { background: #16a34a; }
/* inline-block: nur so dreht sich die Glocke wirklich (und auf der Grafikkarte statt mit Neuzeichnen der Seite) */
.gt-help-pill.wait i, .gt-help-pill.late i { display: inline-block; will-change: transform; animation: gt-help-ring 1.2s ease-in-out infinite; }
@keyframes gt-help-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-6deg); } }
.gt-help-list { width: min(380px, calc(100vw - 32px)); max-height: 60vh; overflow: auto; padding: 8px; border-radius: 14px; background: var(--color-bg, #fff);
    border: 1px solid var(--color-border, #e5e7eb); box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22); display: flex; flex-direction: column; gap: 6px; }
.gt-help-list[hidden] { display: none; }
.gt-help-row { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--color-bg-secondary, #f3f4f6); }
.gt-help-row.late { background: rgba(220, 38, 38, 0.08); }
.gt-help-row strong { display: block; font-size: 0.92rem; }
.gt-help-row small { color: var(--color-text-muted, #6b7280); font-size: 0.8rem; }
.gt-help-act { display: flex; gap: 8px; flex-wrap: wrap; }
.gt-help-act .gt-btn { min-height: 40px; }
.gt-help-more { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 6px; color: var(--color-accent-text); font-weight: 600; font-size: 0.86rem; text-decoration: none; }
@media (max-width: 1023px) { #gt-help { right: 12px; top: calc(68px + env(safe-area-inset-top)); } }
@media (prefers-reduced-motion: reduce) { .gt-help-pill i { animation: none !important; } }

/* Wagen-Dialog: Personal rufen vom Handy */
.gt-cl-help { display: flex; flex-wrap: wrap; gap: 8px; }
.gt-cl-hr { min-height: 40px; padding: 0 14px; border: 1px solid var(--color-border, #e5e7eb); border-radius: 999px; background: var(--color-bg, #fff);
    color: var(--color-text, #111); font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer; }
.gt-cl-hr:hover { border-color: var(--color-accent, #2563eb); color: var(--color-accent-text); }
.gt-cl-helpst { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(217, 119, 6, 0.1); color: #92400e; }
.gt-cl-helpst.ok { background: rgba(22, 163, 74, 0.1); color: #15803d; }
.gt-cl-helpst span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gt-cl-helpst small { color: var(--color-text-muted, #6b7280); }
.gt-cl-hcancel { min-height: 36px; padding: 0 12px; border: 1px solid currentColor; border-radius: 9px; background: none; color: inherit; font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; }

/* Erweiterte Filter (shared/gt-filter.js): Desktop als Feld über der Liste, Handy als Blatt von unten */
.gt-fbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--color-border, #e5e7eb);
    background: var(--color-bg, #fff); color: var(--color-text, #111827); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.gt-fbtn:hover { border-color: var(--color-accent, #2563eb); }
.gt-fbtn.on { border-color: color-mix(in srgb, var(--color-accent, #2563eb) 45%, transparent); color: var(--color-accent-text); background: color-mix(in srgb, var(--color-accent, #2563eb) 8%, var(--color-bg, #fff)); }
.gt-fbadge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--color-accent, #2563eb); color: #fff; font-size: 0.72rem; line-height: 20px; text-align: center; }
.gt-fbadge[hidden] { display: none; }
.gt-fshort, .gt-fgrip { display: none; }
.gt-fwrap { display: contents; }
.gt-fpanel { margin: 0 0 12px; padding: 14px 16px; border: 1px solid var(--color-border, #e5e7eb); border-radius: 14px; background: var(--color-bg, #fff); box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06); }
.gt-fpanel[hidden] { display: none; }
.gt-fhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.gt-fclose { width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--color-text-muted, #6b7280); cursor: pointer; font-size: 1rem; }
.gt-fclose:hover { background: var(--color-bg-secondary, #f3f4f6); }
.gt-fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; align-items: start; }
.gt-ffield { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.gt-ffield legend, .gt-flabel { padding: 0; margin-bottom: 6px; font-size: 0.8rem; font-weight: 600; color: var(--color-text, #111827); }
.gt-ffield legend small { font-weight: 400; color: var(--color-text-muted, #6b7280); }
.gt-frange { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gt-frange label { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gt-frange span { font-size: 0.72rem; color: var(--color-text-muted, #6b7280); }
.gt-ffield input[type="number"], .gt-ffield input[type="date"], .gt-ffield select { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--color-border, #e5e7eb);
    background: var(--color-bg, #fff); color: var(--color-text, #111827); font: inherit; font-size: 0.875rem; }
.gt-ffield input:focus-visible, .gt-ffield select:focus-visible, .gt-fbtn:focus-visible { outline: 2px solid var(--color-accent, #2563eb); outline-offset: 2px; }
.gt-fopts { display: flex; flex-wrap: wrap; gap: 6px; max-height: 168px; overflow: auto; }
.gt-fopts label { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--color-border, #e5e7eb); font-size: 0.8rem; cursor: pointer; }
.gt-fopts label:has(input:checked) { border-color: var(--color-accent, #2563eb); background: color-mix(in srgb, var(--color-accent, #2563eb) 10%, transparent); color: var(--color-accent-text); }
.gt-fopts input { accent-color: var(--color-accent, #2563eb); }
/* Ja/Nein-Filter als Schalter mit drei Stellungen */
.gt-fseg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 3px; border-radius: 10px; background: var(--color-bg-secondary, #f3f4f6); border: 1px solid var(--color-border, #e5e7eb); }
.gt-fseg label { display: block; position: relative; cursor: pointer; min-width: 0; }
.gt-fseg input { position: absolute; opacity: 0; pointer-events: none; }
.gt-fseg span { display: flex; flex: 1 1 auto; width: 100%; align-items: center; justify-content: center; min-height: 32px; border-radius: 8px; font-size: 0.82rem; font-weight: 600; color: var(--color-text-muted, #6b7280); }
.gt-fseg input:checked + span { background: var(--color-bg, #fff); color: var(--color-text, #111827); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.14); }
.gt-fseg input[value="yes"]:checked + span, .gt-fseg input[value="no"]:checked + span { color: var(--color-accent-text); }
.gt-fseg input:focus-visible + span { outline: 2px solid var(--color-accent, #2563eb); outline-offset: 1px; }
.gt-ffoot { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }
.gt-freset, .gt-fdone { min-height: 40px; padding: 0 14px; border-radius: 10px; font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.gt-freset { border: 1px solid var(--color-border, #e5e7eb); background: none; color: var(--color-text-muted, #6b7280); }
.gt-fdone { border: 0; background: var(--color-accent, #2563eb); color: #fff; }
.gt-fchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.gt-fchips:empty { display: none; }
.gt-fchip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 4px 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
    background: color-mix(in srgb, var(--color-accent, #2563eb) 10%, transparent); color: var(--color-accent-text); overflow-wrap: break-word; }
.gt-fchip button { width: 24px; height: 24px; border: 0; border-radius: 999px; background: none; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; }
.gt-fchip button:hover { background: color-mix(in srgb, var(--color-accent, #2563eb) 18%, transparent); }
.gt-fchip-all { border: 0; background: none; color: var(--color-text-muted, #6b7280); font: inherit; font-size: 0.78rem; text-decoration: underline; cursor: pointer; }
.gt-fbackdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); z-index: 1200; }
.gt-fbackdrop[hidden] { display: none; }
@media (min-width: 761px) { .gt-fdone { display: none; } }
@media (max-width: 760px) {
    .gt-fbtn { flex: 1 1 auto; justify-content: center; }
    .gt-fbtn .gt-flong { display: none; }
    .gt-fbtn .gt-fshort { display: inline; }
    /* Blatt kompakt: Griff, keine Min./Max.-Zeilen (Platzhalter von/bis), 16 px Schrift (iPhone zoomt sonst) */
    .gt-fpanel.gt-fsheet { transition: transform 0.15s ease-out; }
    .gt-fpanel.gt-fsheet .gt-fgrip { display: block; position: absolute; top: 4px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--color-border, #d1d5db); }
    .gt-fpanel.gt-fsheet .gt-fhead { touch-action: none; }
    .gt-fpanel.gt-fsheet .gt-fgrid { gap: 14px; }
    .gt-fpanel.gt-fsheet .gt-frange span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .gt-fpanel.gt-fsheet .gt-ffield legend, .gt-fpanel.gt-fsheet .gt-flabel { margin-bottom: 4px; }
    .gt-fpanel.gt-fsheet .gt-ffield input[type="number"], .gt-fpanel.gt-fsheet .gt-ffield input[type="date"], .gt-fpanel.gt-fsheet .gt-ffield select { font-size: 16px; min-height: 42px; padding: 6px 10px; }
    .gt-fpanel.gt-fsheet .gt-fseg span { min-height: 38px; font-size: 0.9rem; }
    .gt-fpanel.gt-fsheet .gt-fopts { max-height: none; }
    .gt-fpanel.gt-fsheet .gt-fopts label { min-height: 38px; }
    .gt-fpanel.gt-fsheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1201; margin: 0; max-height: 86vh; overflow: auto; border-radius: 18px 18px 0 0;
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.2); overscroll-behavior: contain; }
    .gt-fpanel.gt-fsheet .gt-fhead { position: sticky; top: -14px; padding: 6px 0; background: var(--color-bg, #fff); z-index: 1; }
    .gt-fpanel.gt-fsheet .gt-ffoot { position: sticky; bottom: calc(-14px - env(safe-area-inset-bottom)); padding: 10px 0; background: var(--color-bg, #fff); }
    .gt-fpanel.gt-fsheet .gt-fdone { flex: 1; }
    .gt-fgrid { grid-template-columns: 1fr; }
    html.gt-fsheet-open, html.gt-fsheet-open body { overflow: hidden; }
}

/* ================================================================ Feinschliff Design (alle Seiten, alle Größen)
 * Messbar geprüft: Kontrast WCAG AA, Tippflächen 44 px auf Touch-Geräten, kein waagrechtes Scrollen,
 * Smartwatch ab 200 px Breite. Die Regeln hier stehen bewusst am Ende und gelten seitenübergreifend. */

/* ---- Akzentfarbe als Schrift (--color-accent-text): hell wie die Fläche, dunkel aufgehellt.
 * Flächen (Knöpfe) behalten --color-accent mit weißer Schrift (≥ 4,5:1), Schrift auf dunklem Grund
 * nimmt die aufgehellte Variante (≥ 4,5:1 auf #111827 und #1f2937). Saisonfarben setzt gt-core am body. */
body { --color-accent-text: var(--color-accent); }
body.dark-mode {
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-accent-text: color-mix(in srgb, var(--color-accent) 45%, #ffffff);
}
/* Seiten ohne gt-core (Offline-Seite): Dunkelmodus nur über die Systemeinstellung */
@media (prefers-color-scheme: dark) {
    body:not(.light-mode):not(.dark-mode) { --color-accent-text: color-mix(in srgb, var(--color-accent) 45%, #ffffff); }
}

/* ---- Fokus immer sichtbar (Tastatur), auch bei Links und Reitern */
a:focus-visible, summary:focus-visible, [role="tab"]:focus-visible, [role="button"]:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--color-accent-text);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ---- Lange Wörter (E-Mail-Adressen, Produktnamen) brechen um statt die Seite zu verbreitern */
h1, h2, h3, h4, p, li, td, dd, label, strong, .gt-toast-body { overflow-wrap: break-word; }

/* ---- Touch-Geräte: jede Tippfläche mindestens 44 × 44 px */
@media (pointer: coarse) {
    :root:root body :is(button:not(.gt-tour-dots button),
    .desk-nav a, .gt-shell-nav a, .gt-staff-topnav-tabs a, .gt-sec-nav a,
    .btn, .gt-btn, a.btn, a.gt-btn, .toolbar-btn, .action-btn, .card-action-btn, summary,
    [role="button"], [role="tab"], [role="radio"]:not(input), [role="switch"]:not(input),
    select,
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="file"])) {
        min-height: 44px !important;
    }
    :root:root body :is(button:not(.gt-tour-dots button), [role="button"], summary.toolbar-btn, .gt-shell-logo, .app-header .logo, a.btn,
    input[type="date"], input[type="time"]) { min-width: 44px !important; }
    /* Textlinks außerhalb von Fließtext: größere Tippfläche ohne Layout-Änderung */
    .lg-foot a, .ds-glance li a { padding-block: 14px; margin-block: -14px; }
    summary:not([class]) { padding-block: 10px; box-sizing: border-box; }
    /* einzelne Auswahlkästchen in Listen: mindestens 24 × 24 px (WCAG 2.5.8) */
    input[type="checkbox"]:not(label input), input[type="radio"]:not(label input) { min-width: 24px; min-height: 24px; }
    /* Links, die wie Knöpfe aussehen */
    a.sp-link, a.ds-btn, a.gt-cl-btn, a.mc-more, a.an-jump, a.gt-help-more, .gt-shell-logo, .app-header .logo, .gt-shell-menu a {
        min-height: 44px; display: inline-flex; align-items: center;
    }
    .gt-shell-menu a { display: flex; }
    .gt-shell-more-btn { min-width: 44px; min-height: 44px; }
    /* Schalter und Auswahlkästchen: die Beschriftung ist die Tippfläche */
    label:not([class*="switch"]):not([class*="toggle"]):has(> input[type="checkbox"]), label:not([class*="switch"]):not([class*="toggle"]):has(> input[type="radio"]) { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; }
}

/* ================================================================ Smartwatch (bis 260 px Breite)
 * Kopfzeile und Reiterleiste schmal, nur Symbole, damit der Inhalt Platz hat. */
@media (max-width: 260px) {
    html { font-size: 14px; }
    body { -webkit-text-size-adjust: 100%; }
    /* Kopfzeilen: 44 px */
    .gt-shell-header, .app-header, body > header { height: 44px !important; min-height: 44px !important; padding: 0 4px 0 8px !important; gap: 4px !important; }
    .gt-shell-logo, .app-header .logo { gap: 6px !important; font-size: 1rem !important; }
    .gt-shell-logo span, .app-header .logo span, .logo .GP { display: none !important; }
    .gt-shell-tools, .header-controls { gap: 0 !important; }
    .gt-shell-points { display: none !important; }
    body.gt-staff .admin-header, .admin-header { min-height: 44px !important; height: 44px !important; padding: 0 4px 0 8px !important; gap: 4px !important; }
    body.gt-staff .admin-header .logo span { display: none !important; }
    .admin-header .header-controls > *, .admin-header .gt-staff-cmd-mobile, .admin-header .logout-btn { width: 44px !important; height: 44px !important; min-height: 44px !important; padding: 0 !important; border: 0 !important; }
    /* Reiterleisten: 48 px, nur Symbole (Beschriftung bleibt für Screenreader) */
    .gt-tabbar, .tabbar, .gt-staff-tabbar { height: calc(48px + env(safe-area-inset-bottom)) !important; }
    .gt-tabbar a span:not(.gt-tab-badge), .tabbar .tab span:not(.tab-badge), .gt-staff-tabbar a span:not([class*="badge"]), .gt-staff-tabbar button span:not([class*="badge"]) {
        position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
    }
    .gt-tabbar a, .tabbar .tab, .gt-staff-tabbar a, .gt-staff-tabbar button { min-width: 0 !important; }
    .gt-tabbar i, .tabbar .tab i, .gt-staff-tabbar i { font-size: 1.1rem !important; }
    body.gt-shell { padding-bottom: calc(48px + 8px + env(safe-area-inset-bottom)) !important; }
    body.gt-staff-tabs { padding-bottom: calc(52px + env(safe-area-inset-bottom)) !important; }
    /* Seitenrahmen: wenig Rand */
    body.gt-shell .gt-page, main.gt-page, body.gt-staff .admin-content, .admin-content, main.admin-content { padding: 10px 8px 16px !important; }
    h1, .page-title, .dashboard-title { font-size: 1.15rem !important; line-height: 1.25 !important; }
    h2 { font-size: 1.05rem !important; }
    /* Hinweise unten über der Leiste, kompakt */
    #gt-toasts { width: calc(100vw - 12px) !important; bottom: calc(54px + env(safe-area-inset-bottom)) !important; }
    .gt-toast { padding: 8px 8px 8px 10px; font-size: 0.8rem; line-height: 1.35; border-radius: 10px; gap: 6px; }
    /* Dialoge: ganzer Bildschirm, Schließen bleibt sichtbar */
    dialog.gt-dialog { width: 100vw !important; max-width: 100vw !important; max-height: 100dvh !important; border-radius: 0 !important; margin: 0 !important; }
    .gt-dialog-header, .gt-dialog-body, .gt-dialog-footer { padding-left: 10px !important; padding-right: 10px !important; }
    body .modal-content, body .modal-container, body .modal-box { max-width: calc(100vw - 8px) !important; max-height: calc(100dvh - 8px) !important; padding: 12px !important; }
    /* Raster einspaltig */
    [class*="-grid"]:not(table):not(.gt-staff-sheet-grid) { grid-template-columns: minmax(0, 1fr) !important; }
    .gt-staff-sheet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .gt-staff-sheet-grid a { min-height: 60px; padding: 8px 2px; }
    /* Startseite: Begrüßung kurz, Kernfunktion (Scannen) früher sichtbar */
    .welcome-text p, #first-visit { display: none !important; }
    /* Knopfzeilen untereinander, Beschriftung darf umbrechen */
    .quick-row, .gt-quick-row { flex-direction: column; align-items: stretch; }
    .gt-cl-btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
    .ls-head, .ls-tools, .chart-card-header, .chart-card-actions, .card-header, .card-actions { flex-wrap: wrap !important; min-width: 0; }
    /* Seitenspezifische Raster, die sonst breiter als die Uhr sind */
    .ld-premium, .ld-project, .ds-glance ul { grid-template-columns: minmax(0, 1fr) !important; }
    .ld-premium, .ld-project-main { padding: 14px !important; }
    .sp-quick a { min-width: 0; } .sp-quick strong { white-space: normal; overflow-wrap: break-word; }
    .tm-item { display: flex !important; flex-wrap: wrap; gap: 8px !important; }
    .tm-seen { white-space: normal !important; align-items: flex-start !important; }
    .doc-actions { flex-wrap: wrap; } .doc-actions .btn { white-space: normal; flex: 1 1 100%; justify-content: center; }
    .ct-card, .mk-card, .nv-card, .ly-welcome, .ab-hero { min-width: 0 !important; overflow-wrap: break-word; }
    .ct-card *, .ly-welcome * { min-width: 0; }
}

/* ---- Keine Layout-Sprünge im Personalbereich (Desktop): gt-core setzt die obere Navigation erst nach dem
 * Laden ein und blendet die Seitenleiste aus. Bis dahin bleibt der Inhalt unsichtbar statt zu springen;
 * spätestens nach 3 s wird er auch ohne Navigation gezeigt (falls ein Skript fehlt). */
@media (min-width: 1025px) {
    body:has(.admin-sidebar):not(.gt-topnav) .admin-container { visibility: hidden; animation: gt-reveal 0s linear 3s forwards; }
    body:has(.admin-sidebar) .admin-sidebar { display: none !important; }
    body:has(.admin-sidebar) .admin-content { margin-left: 0 !important; width: 100% !important; transition: none !important; }
}
@keyframes gt-reveal { to { visibility: visible; } }

/* ================================================================ Personalbereich Desktop: Arbeitsfläche wie ein Engineering-Portal
 * Graue Arbeitsfläche, Panels mit schmaler Titelleiste, Reiterleiste der Bereiche, dichte Tabellen,
 * volle Bildschirmbreite mit mehreren Panels nebeneinander. Gilt nur ab 1025 px (Handy bleibt unverändert). */
@media (min-width: 1025px) {
    html:has(> body.gt-staff) { font-size: 14px; }
    :root body.gt-staff {
        --tia-ws: #e9ecf0; --tia-panel: #ffffff; --tia-title: #f3f5f8; --tia-line: #cfd5dc; --tia-strip: #f7f8fa; --tia-hover: #eef2f7; --tia-zebra: #f8f9fb;
        /* Abstände aus EINEM Dichtefaktor (Einstellungen > Design im Detail > Dichte): kompakt 0,72 · normal 1 · luftig 1,35 */
        --sp: 1;
        --tia-gap: calc(12px * var(--sp)); --tia-r: 4px;
        --tia-px: calc(14px * var(--sp)); --tia-py: calc(12px * var(--sp));
        --tia-bar-py: calc(6px * var(--sp)); --tia-bar-h: calc(32px + 6px * var(--sp));
        --tia-cell-y: calc(6px * var(--sp)); --tia-cell-x: calc(10px * var(--sp));
        --gt-r: 4px; --radius: 4px; --radius-sm: 3px; --radius-md: 4px; --radius-lg: 6px; --radius-xl: 6px;
        --color-text-muted: #576170; --tia-th: #444c58;
        background: var(--tia-ws) !important;
    }
    :root body.dark-mode.gt-staff {
        --tia-ws: #0d1218; --tia-panel: #161d26; --tia-title: #1c2530; --tia-line: #2b3643; --tia-strip: #121821; --tia-hover: #1f2a36; --tia-zebra: #19212b;
        --color-text-muted: #a3acb9; --tia-th: #b4bcc8;
    }

    /* -- Kopfbereich: Menüzeile + Reiterleiste über die volle Breite */
    :root body.gt-topnav .gt-staff-topnav {
        padding: 0 16px !important; column-gap: 10px !important; background: var(--tia-panel) !important;
        box-shadow: none !important; border-bottom: 1px solid var(--tia-line) !important;
    }
    :root body.gt-topnav .gt-staff-brand { height: 44px !important; font-size: 1.05rem !important; gap: 10px !important; }
    :root body.gt-topnav .gt-staff-shopnav a { padding: 6px 10px !important; border-radius: var(--tia-r) !important; font-size: 0.86rem !important; }
    :root body.gt-topnav .gt-staff-app-btn { height: 32px; padding: 0 10px; border-radius: var(--tia-r); font-size: 0.86rem; }
    :root body.gt-topnav .gt-staff-cmd, :root body.gt-topnav .gt-staff-topnav-scan, :root body.gt-topnav .gt-staff-topnav-me { height: 32px !important; border-radius: var(--tia-r) !important; }
    :root body.gt-topnav .gt-staff-topnav-scan { width: 32px !important; }
    :root body.gt-topnav .gt-staff-topnav-me .gt-me-av { width: 26px; height: 26px; font-size: 0.68rem; }
    :root body.gt-topnav .gt-staff-cmd kbd { height: 22px; border-radius: 3px; }
    :root body.gt-topnav .gt-staff-topnav-tabs {
        margin: 0 -16px !important; padding: 0 8px !important; background: var(--tia-strip); border-top: 1px solid var(--tia-line) !important;
    }
    :root body.gt-topnav .gt-staff-topnav-tabs a { padding: 8px 12px 8px !important; border-right: 1px solid transparent; }
    :root body.gt-topnav .gt-staff-topnav-tabs a::after { top: 0; bottom: auto !important; left: 0 !important; right: 0 !important; height: 2px !important; border-radius: 0 !important; }
    :root body.gt-topnav .gt-staff-topnav-tabs a:hover { background: var(--tia-hover) !important; }
    :root body.gt-topnav .gt-staff-topnav-tabs a.active {
        background: var(--tia-ws) !important; color: var(--color-text) !important;
        box-shadow: 1px 0 0 var(--tia-line), -1px 0 0 var(--tia-line); margin-bottom: -1px; padding-bottom: 9px !important;
    }
    :root body.gt-topnav .gt-staff-topnav-tabs a.active i { color: var(--color-accent-text); }
    .gt-tab-sep { height: 16px !important; background: var(--tia-line) !important; }

    /* -- Arbeitsfläche: volle Breite, wenig Rand */
    :root body.gt-staff .admin-content { padding: calc(14px * var(--sp)) calc(16px * var(--sp)) calc(24px * var(--sp)) !important; }
    :root body.gt-staff .admin-content > * { max-width: 2400px !important; }
    :root body.gt-staff .page-header, :root body.gt-staff .dashboard-header { margin-bottom: calc(10px * var(--sp)) !important; }
    :root body.gt-staff .page-title, :root body.gt-staff .dashboard-title { font-size: 1.3rem !important; }

    /* -- Panels: feine Linie, kleine Rundung, keine Schatten */
    :root body.gt-staff .dashboard-card, :root body.gt-staff .card, :root body.gt-staff .settings-section, :root body.gt-staff .setting-card, :root body.gt-staff .stat-card,
    :root body.gt-staff .chart-card, :root body.gt-staff .table-card, :root body.gt-staff .scanner-section, :root body.gt-staff .export-section, :root body.gt-staff .insight-card,
    :root body.gt-staff .weather-widget, :root body.gt-staff .hero-card, :root body.gt-staff .connection-panel,
    :root body.gt-staff [class$="-card"]:not(.stat-card):not(button):not(a):not(.gt-premium-card), :root body.gt-staff [class*="-card "]:not(button):not(a) {
        background: var(--tia-panel) !important; border: 1px solid var(--tia-line) !important; border-radius: var(--tia-r) !important; box-shadow: none !important;
    }
    :root body.gt-staff .dashboard-card, :root body.gt-staff .chart-card, :root body.gt-staff .table-card { margin-bottom: var(--tia-gap) !important; }
    /* Titelleiste: erstes Kopf-Element eines Panels wird zur grauen Leiste über die volle Panelbreite */
    :root body.gt-staff :is(.dashboard-card, .chart-card, .table-card, .settings-section):has(> :is(.card-header, .chart-card-header, .table-card-header, .section-header):first-child) {
        padding: var(--tia-py) var(--tia-px) !important;
    }
    :root body.gt-staff :is(.dashboard-card, .chart-card, .table-card, .settings-section) > :is(.card-header, .chart-card-header, .table-card-header, .section-header):first-child {
        margin: calc(-1 * var(--tia-py)) calc(-1 * var(--tia-px)) var(--tia-py) !important; padding: var(--tia-bar-py) 10px var(--tia-bar-py) var(--tia-px) !important; min-height: var(--tia-bar-h); display: flex; align-items: center !important; gap: 8px;
        background: var(--tia-title) !important; border-bottom: 1px solid var(--tia-line) !important; border-radius: var(--tia-r) var(--tia-r) 0 0 !important;
    }
    :root body.gt-staff :is(.card-header, .chart-card-header, .table-card-header, .section-header):first-child > :is(h2, h3, .card-title, .table-card-title, .chart-card-title) {
        margin: 0 !important; font-size: 0.95rem !important; font-weight: 700 !important;
    }
    /* Panels ohne Innenabstand (Steuerung, Navigation, Aktionen): der Kopf selbst wird zur Leiste */
    :root body.gt-staff [class$="-card"] > [class$="-card-head"]:first-child {
        padding: var(--tia-bar-py) 10px var(--tia-bar-py) var(--tia-px) !important; min-height: var(--tia-bar-h); display: flex; align-items: center; gap: 8px;
        background: var(--tia-title) !important; border-bottom: 1px solid var(--tia-line) !important; border-radius: var(--tia-r) var(--tia-r) 0 0;
    }
    :root body.gt-staff [class$="-card"] > [class$="-card-head"]:first-child > :is(h2, h3) { margin: 0 !important; font-size: 0.95rem !important; font-weight: 700 !important; }
    /* Einstellungs-Karten: Titel als Leiste */
    :root body.gt-staff .setting-card:has(> .setting-title:first-child) { padding: calc(16px * var(--sp)) !important; }
    :root body.gt-staff .setting-card > .setting-title:first-child {
        margin: calc(-16px * var(--sp)) calc(-16px * var(--sp)) calc(14px * var(--sp)) !important; padding: calc(8px * var(--sp)) var(--tia-px) !important; background: var(--tia-title); border-bottom: 1px solid var(--tia-line);
        border-radius: var(--tia-r) var(--tia-r) 0 0; font-size: 0.95rem !important;
    }
    /* Kennzahl-Kacheln aller Seiten im selben Stil */
    :root body.gt-staff :is(.um-stat, .ar-kpi, .summary-card, [class$="-kpi"], [class$="-stat"]) {
        background: var(--tia-panel) !important; border: 1px solid var(--tia-line) !important; border-radius: var(--tia-r) !important; box-shadow: none !important;
    }
    :root body.gt-staff .card-title, :root body.gt-staff .section-title, :root body.gt-staff .chart-card-title { font-size: 0.95rem !important; font-weight: 700 !important; }
    :root body.gt-staff .card-title > i, :root body.gt-staff .section-title > i { font-size: 0.9rem; }

    /* -- Kennzahlen kompakt */
    :root body.gt-staff .stat-card { padding: calc(10px * var(--sp)) calc(12px * var(--sp)) !important; }
    :root body.gt-staff .stat-value, :root body.gt-staff .stat-number { font-size: 1.45rem !important; }
    :root body.gt-staff .stat-label, :root body.gt-staff .stat-title { font-size: 0.8rem !important; }
    :root body.gt-staff .stat-icon { border-radius: var(--tia-r) !important; }
    :root body.gt-staff .stats-grid { gap: var(--tia-gap) !important; margin-bottom: var(--tia-gap) !important; }
    :root body.gt-staff .dashboard-grid { gap: var(--tia-gap) !important; }

    /* -- Knöpfe und Felder: 32 px, kleine Rundung (Maus) */
    :root body.gt-staff .toolbar-btn, :root body.gt-staff .action-btn, :root body.gt-staff .card-action-btn, :root body.gt-staff .welcome-btn, :root body.gt-staff .quick-action-btn,
    :root body.gt-staff .filter-toggle, :root body.gt-staff .btn, :root body.gt-staff .gt-btn {
        border-radius: var(--tia-r) !important; min-height: 32px; font-size: 0.86rem !important;
    }
    :root body.gt-staff .welcome-btn { padding: 6px 12px !important; min-height: 34px !important; }
    :root body.gt-staff .toolbar-btn, :root body.gt-staff .action-btn { padding-top: 6px !important; padding-bottom: 6px !important; }
    /* Knöpfe in Titelleisten: klein wie Werkzeugsymbole */
    :root body.gt-staff :is(.card-header, .chart-card-header, .table-card-header, .section-header):first-child :is(.toolbar-btn, .card-action-btn, .chart-action-btn, button) {
        min-height: 26px !important; padding: 3px 9px !important; font-size: 0.8rem !important;
    }
    /* Felder: 34 px hoch statt 44–52 px */
    :root body.gt-staff main :is(input[type="text"], input[type="search"], input[type="email"], input[type="number"], input[type="password"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="url"], input[type="tel"], select),
    :root body.gt-staff .search-bar {
        padding-top: 6px !important; padding-bottom: 6px !important; min-height: 34px; height: auto !important; font-size: 0.9rem !important;
    }
    :root body.gt-staff .card-action-btn { padding: 4px 9px !important; min-height: 28px; }
    :root body.gt-staff main input[type="text"], :root body.gt-staff main input[type="search"], :root body.gt-staff main input[type="email"], :root body.gt-staff main input[type="number"],
    :root body.gt-staff main input[type="password"], :root body.gt-staff main input[type="date"], :root body.gt-staff main input[type="time"], :root body.gt-staff main select, :root body.gt-staff main textarea,
    :root body.gt-staff .search-bar, :root body.gt-staff .form-control {
        border-radius: var(--tia-r) !important; border-color: var(--tia-line) !important;
    }

    /* -- Tabellen: Kopf als Titelzeile, Zebra, Zeile hervorheben */
    :root body.gt-staff main table { border-collapse: collapse; }
    :root body.gt-staff main table th {
        background: var(--tia-title) !important; border-bottom: 1px solid var(--tia-line) !important; padding: calc(7px * var(--sp)) var(--tia-cell-x) !important;
        font-size: 0.72rem !important; position: sticky; top: 0; z-index: 1; color: var(--tia-th) !important;
    }
    :root body.gt-staff main table td { padding: var(--tia-cell-y) var(--tia-cell-x) !important; font-size: 0.86rem; border-bottom: 1px solid var(--tia-line) !important; }
    :root body.gt-staff main table tbody tr:nth-child(even) td { background: var(--tia-zebra); }
    :root body.gt-staff main table tbody tr:hover td { background: var(--tia-hover); }

    :root body.gt-staff .welcome-card { margin-bottom: var(--tia-gap) !important; }
    :root body.gt-staff .tables-section, :root body.gt-staff .charts-section { gap: var(--tia-gap) !important; margin-bottom: var(--tia-gap) !important; }
    /* -- Dialoge im selben Stil */
    :root body.gt-staff dialog.gt-dialog { border-radius: 6px; border: 1px solid var(--tia-line); }
    :root body.gt-staff .gt-dialog-header { background: var(--tia-title); padding: calc(10px * var(--sp)) var(--tia-px); }
    :root body.gt-staff .gt-dialog-footer { background: var(--tia-title); }
}
/* Übersicht (admin): ab 1600 px linke Spalte zweispaltig, Diagramm oben über die volle Breite */
@media (min-width: 1600px) {
    :root body.gt-staff .dashboard-grid { grid-template-columns: minmax(0, 2.4fr) minmax(340px, 1fr) !important; }
    :root body.gt-staff .dashboard-grid > div:first-child { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--tia-gap); align-content: start; }
    :root body.gt-staff .dashboard-grid > div:first-child > .dashboard-card:first-child { grid-column: 1 / -1; }
}

/* ================================================================ Kundenseiten Desktop: breite Bildschirme nutzen
 * Ab 1600 px wird der gemeinsame Seitenrahmen (index und alle Kundenseiten) 1480 px breit;
 * Bereiche mit mehreren Karten bekommen eine Spalte mehr. */
@media (min-width: 1600px) {
    :root { --gt-frame: 1480px; }
    body.gt-shell .settings-sections { columns: 3 380px !important; }
}
/* Premium Club: ab 1280 px stehen „Aktiv“ und „Challenges“ nebeneinander */
@media (min-width: 1280px) {
    .ly-sections .gt-sec-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; columns: auto; align-items: start; }
    .ly-sections .gt-sec-panel { grid-column: 1 / -1; display: block; }
    .ly-sections .gt-sec-panel[data-panel="vorteile"], .ly-sections .gt-sec-panel[data-panel="challenges"] { grid-column: auto; order: 1; min-height: 240px; }
    .ly-sections .gt-sec-panel[data-panel="freischalten"] { min-height: 200px; }
    .ly-sections .gt-sec-panel[data-panel="freischalten"] { order: 0; }
    .ly-sections .gt-sec-panel[data-panel="stufen"] { order: 2; }
    .ly-sections .gt-sec-panel[data-panel="verlauf"] { order: 3; }
}

/* ================================================================ Kontrast-Einzelfälle (WCAG AA, gemessen)
 * Grün/Orange/Rot auf hellen Tönungen waren zu hell; im Dunkelmodus die hellen Varianten. */
body .product-price, body .ct-st.ok, body .mk-chip.on, body .coupon-sync.ok, body .coupon-badge.active { color: #166534 !important; }
body .ml-hint, body .tm-mail-hint { color: #92400e !important; }
:root:root body .toolbar-btn.danger { color: #b91c1c !important; }
body .ar-tag { color: #4b5563 !important; }
body .tm-badge.staff { background: #0f766e !important; }
body .countdown-value { color: var(--color-text) !important; }
body .qs-kbd { background: rgba(0, 0, 0, 0.28) !important; color: #fff !important; }
#scanner-status.scanner-status, .scanner-status { background-color: rgba(17, 24, 39, 0.78) !important; }
body.dark-mode .product-price, body.dark-mode .ct-st.ok, body.dark-mode .mk-chip.on, body.dark-mode .coupon-sync.ok, body.dark-mode .coupon-badge.active { color: #4ade80 !important; }
body.dark-mode .ml-hint, body.dark-mode .tm-mail-hint { color: #fbbf24 !important; }
:root:root body.dark-mode .toolbar-btn.danger, body.dark-mode #pk-out { color: #f87171 !important; }
body.dark-mode .ar-tag { color: #d1d5db !important; }
body.dark-mode .premium-badge { color: #fbbf24 !important; }
/* Links ohne eigene Gestaltung (z. B. im Konto-Dialog) im Dunkelmodus lesbar */
/* (Navigation ausgenommen: sonst wurden die inaktiven Reiter der unteren Leiste blau wie der aktive) */
body.dark-mode a:not([class]):not(:is(nav, [role="tablist"], .gt-staff-tabbar, .gt-tabbar, .tabbar) a) { color: var(--color-accent-text); }

/* ---- Dialoge auf niedrigen Bildschirmen (Uhr, Handy quer): der ganze Dialog scrollt, Knöpfe bleiben erreichbar */
@media (max-height: 520px), (max-width: 260px) {
    dialog.gt-dialog, dialog.gt-dialog > form { overflow-y: auto !important; -webkit-overflow-scrolling: touch; }
    dialog.gt-dialog > form > *, dialog.gt-dialog > :not(form) { flex-shrink: 0 !important; }
    dialog.gt-dialog .gt-dialog-body { overflow: visible !important; }
}
body .status-badge { color: #166534 !important; }
body.dark-mode .status-badge, body.dark-mode .mc-cashier-ok { color: #4ade80 !important; }
body.dark-mode .team-stat-number, body.dark-mode main b { color: var(--color-accent-text) !important; }
body.dark-mode #rvCount, body.dark-mode .tm-flag.owner { color: #fbbf24 !important; }
body.dark-mode .tm-flag.info { color: #93c5fd !important; }
/* Rote Flächen mit weißer Schrift: im Dunkelmodus nicht das hellere Rot */
body.dark-mode .btn-danger:not(.action-btn), body.dark-mode .ct-stop { background-color: #dc2626 !important; border-color: #dc2626 !important; color: #fff !important; }
body.dark-mode .ch-reward { color: #fbbf24 !important; }
body .sync-btn.online { color: #15803d; }
body.dark-mode .sync-btn.online { color: #4ade80; }
.doc-actions { flex-wrap: wrap; }
.doc-actions .btn { overflow: visible !important; text-overflow: clip !important; white-space: nowrap; }

/* Menüeinträge sind keine Fließtext-Links: Textfarbe (auch im Dunkelmodus und bei Saison-Linkfarben), einzeilig */
:root body :is(.more-dropdown, .gt-shell-menu) :is(a, button)[role="menuitem"] { color: var(--color-text) !important; text-decoration: none !important; white-space: nowrap; }
:root body :is(.more-dropdown, .gt-shell-menu) :is(a, button)[role="menuitem"] i { color: var(--color-accent-text) !important; }
.more-dropdown { min-width: 250px; }
/* ---- Menüs und Rundgänge auf kleinen/niedrigen Bildschirmen: immer ganz sichtbar und scrollbar */
@media (pointer: coarse) {
    .more-dropdown a, .more-dropdown button, .gt-me-menu [role="menuitem"], .gt-staff-more-menu a { min-height: 44px !important; }
}
@media (max-width: 260px) {
    .gt-shell-menu, .more-dropdown {
        position: fixed !important; left: 4px !important; right: 4px !important; top: 48px !important; min-width: 0 !important; width: auto !important;
        max-height: calc(100dvh - 52px); overflow-y: auto; overscroll-behavior: contain;
    }
}
@media (max-width: 260px), (max-height: 520px) {
    .gt-tour { max-height: calc(100dvh - 8px); overflow-y: auto; overscroll-behavior: contain; }
    .gt-tour.gt-tour-top { top: 4px !important; }
    .gt-tour:not(.gt-tour-top) { bottom: 4px !important; }
}
@media (max-width: 260px) {
    .gt-tour { width: calc(100vw - 8px) !important; border-radius: 12px !important; font-size: 0.82rem; }
}

/* ================================================================ Tablet (768–1024 px): Platz nutzen statt gestrecktes Handy
 * Kennzahlen vierspaltig, Aktionen in einer Zeile, Übersicht ab 900 px zweispaltig, mehr Rand. */
@media (min-width: 768px) and (max-width: 1024px) {
    body.gt-staff .admin-content { padding: 18px 22px 28px !important; }
    :root body.gt-staff :is(#stats-grid, .stats-grid, .um-stats, .ar-kpis, .ct-kpis, .nv-kpis, .summary-cards) { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    :root body.gt-staff .db-head-actions { width: 100% !important; display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px; }
    :root body.gt-staff .db-head-actions > :is(.db-actions, .welcome-actions) { flex: 1 1 auto; }
    :root body.gt-staff :is(.db-actions, .welcome-actions) { display: flex !important; flex-wrap: wrap; gap: 8px !important; }
    :root body.gt-staff :is(.db-actions, .welcome-actions) .welcome-btn { width: auto !important; flex: 1 1 auto; }
    body.gt-staff .page-header, body.gt-staff .dashboard-header { margin-bottom: 16px !important; }
}
@media (min-width: 900px) and (max-width: 1024px) {
    :root body.gt-staff .dashboard-grid { display: grid !important; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) !important; gap: 0 16px !important; align-items: start; }
    :root body.gt-staff .dashboard-grid > .db-col-main { order: 0 !important; }
    :root body.gt-staff .dashboard-grid > .db-col-side { order: 1 !important; }
}
/* Hinweise über der unteren Reiterleiste auch bei genau 1024 px (Personal-Reiterleiste reicht bis 1024) */
@media (max-width: 1024px) {
    body:has(.gt-staff-tabbar) #gt-toasts { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* ---- Premium-Dialoge (Mein Konto) im Stil der übrigen Dialoge: neutrale Fläche, Gold nur als Akzent */
body .premium-modal { background: var(--color-surface) !important; color: var(--color-text) !important; border-top: 4px solid #f59e0b !important; }
body .premium-modal .modal-title { color: var(--color-text) !important; }
body .premium-modal .modal-title i { color: #b45309; }
body .premium-modal .form-control { background: var(--color-bg) !important; border: 1px solid var(--color-border) !important; color: var(--color-text) !important; }
body .premium-modal .form-text { color: var(--color-text-muted) !important; }
body .premium-modal .cost-display { background: rgba(245, 158, 11, 0.14) !important; color: #92400e !important; }
body.dark-mode .premium-modal .cost-display, body.dark-mode .premium-modal .modal-title i { color: #fbbf24 !important; }

/* ---- Kundenseiten mit altem Seitenleisten-Gerüst (Premium Club): Inhalt von Anfang an ohne Seitenleisten-Rand (kein Sprung) */
html:not(.gt-embed) body:has([data-gt-shell], .gt-shell-header) .admin-content { margin-left: auto !important; margin-right: auto !important; } /* mittig wie alle Kundenseiten (vorher klebte der Inhalt links) */
html:not(.gt-embed) body:has([data-gt-shell], .gt-shell-header) .admin-sidebar { display: none !important; }
/* Kunden (Personal): Platz für die Kundenliste reservieren, solange sie lädt – die Karten darunter springen nicht */
@media (min-width: 641px) { body.gt-staff .data-table-container:has(#cloudBody:empty) { min-height: 460px; } }
.um-cloud-totals:empty, .um-cloud-totals[hidden] { display: none !important; }

/* ---- Kontrast-Einzelfälle aus dem Durchklicken (Status, Vergleichswerte, Suchtreffer) */
:root:root body :is(.status-badge, .receipt-item .status-badge, .ar-m-status.confirmed, .stat-card-change.positive) { color: #166534 !important; }
:root:root body.dark-mode :is(.status-badge, .receipt-item .status-badge, .ar-m-status.confirmed, .stat-card-change.positive) { color: #4ade80 !important; }
:root:root body .receipt-item.declined .status-badge, :root:root body .stat-card-change.negative { color: #b91c1c !important; }
:root:root body.dark-mode .receipt-item.declined .status-badge, :root:root body.dark-mode .stat-card-change.negative { color: #f87171 !important; }
mark { background: rgba(250, 204, 21, 0.55); color: #111827 !important; }
body.dark-mode mark { background: rgba(250, 204, 21, 0.85); color: #111827 !important; }
@media (pointer: coarse) {
    :root:root body :is(a.sp-link, a.ds-btn, a.gt-cl-btn, a.mc-more, a.an-jump, a.gt-help-more) { min-height: 44px !important; display: inline-flex; align-items: center; }
}

/* ---- Schnellverkauf (Übersicht) auf dem Handy: Zahlungsart, Gegeben und Kunde je eine volle Zeile (Kundenfeld war auf 50 px gequetscht) */
@media (max-width: 640px) { :root body .qs-pay { grid-template-columns: minmax(0, 1fr) !important; } }
/* Auswahlkästchen in Tabellen/Berichten nicht auf 44 px aufblasen: 24 px Kästchen (WCAG 2.5.8), die Zeile ist die Tippfläche */
:root:root body :is(.rr-table, .data-table, table) input[type="checkbox"] { width: 24px !important; height: 24px !important; min-width: 24px !important; min-height: 24px !important; }
/* E-Mails (Handy/Tablet hoch): Suchfeld eigene Zeile, Filterknöpfe darunter nebeneinander */
@media (max-width: 860px) {
    .ml-searchrow { flex-wrap: wrap; }
    .ml-searchrow .ml-search { flex: 1 1 100%; }
    .ml-searchrow > :not(.ml-search) { flex: 1 1 0; justify-content: center; }
}
/* Protokolle (Handy): Datumsfelder lesbar breit, Knöpfe in der nächsten Zeile; Tagesbericht ohne abgeschnittene Tabellen */
@media (max-width: 760px) {
    .lg-custom .date-input { flex: 1 1 128px !important; min-width: 128px !important; }
    .lg-custom .toolbar-btn { flex: 1 1 auto; justify-content: center; }
}
#daily-report-content { min-width: 0; }
#daily-report-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
#daily-report-content :is(td, th) { white-space: normal; overflow-wrap: normal; }
#daily-report-content td:nth-child(2) { overflow-wrap: break-word; }
body .modal-content > .modal-close + h2 { padding-right: 48px; }
/* nur die Bezahlseite nutzt .modal als vollflächigen Hintergrund; auf Startseite und Protokoll ist .modal selbst der Kasten */
body:has(#payment-modal) .modal > .modal-content { margin-left: auto !important; margin-right: auto !important; width: min(680px, calc(100vw - 24px)) !important; box-sizing: border-box; }
body .modal-content > .modal-close { color: var(--color-text-muted) !important; z-index: 2; }
/* .modal als Hintergrund-Ebene (mit .modal-content darin) über die volle Breite – die Handy-Regel max-width galt nur für Dialogkästen */
body:has(#payment-modal) .modal:has(> .modal-content) { max-width: none !important; }
@media (max-width: 480px) { #daily-report-content :is(td, th) { padding: 8px 5px !important; font-size: 0.88rem; } }
/* Produkte: Bestandsfeld zwischen −/+ zeigt Wert bzw. „ohne“ vollständig; Speichern mit weißer Schrift kontraststark */
:root body .pm-stepper input { padding-left: 4px !important; padding-right: 4px !important; min-width: 56px; }
:root body .btn-save { background: #15803d !important; } :root body .btn-save:hover { background: #166534 !important; }
:root body .rv-ok { color: #166534 !important; } body.dark-mode .rv-ok { color: #4ade80 !important; }
/* Team: Kürzel-Kreise mit weißer Schrift ≥ 4,5:1 */
.tm-avatar.r-staff { background: #0e7490 !important; } .tm-avatar.r-merchant { background: #15803d !important; } .tm-avatar.r-custom { background: #b45309 !important; }
/* Einstellungen: steht ein Schalter allein in seiner Zeile, wurde er als „erstes Element“ auf die volle Breite gezogen */
:root body :is(.setting-control, .setting-option) > .switch:first-child { flex: 0 0 auto !important; width: 50px !important; }
/* Dialog-Fußleisten mit 3+ Knöpfen auf dem Handy: zwei je Zeile statt alle gequetscht */
@media (max-width: 640px) {
    :root body .gt-dialog-footer:has(> :is(button, a, .btn):nth-of-type(3)) { flex-wrap: wrap !important; }
    :root body .gt-dialog-footer:has(> :is(button, a, .btn):nth-of-type(3)) > :is(button, a, .btn) { flex: 1 1 calc(50% - 8px) !important; min-width: 0; white-space: normal; }
}
@media (max-width: 260px), (max-height: 520px) {
    .gt-tour .gt-tour-head { position: sticky; top: 0; z-index: 1; background: var(--color-surface); padding-bottom: 6px; }
    .gt-tour .gt-tour-foot { position: sticky; bottom: 0; z-index: 1; background: var(--color-surface); }
    .gt-tour .gt-tour-progress { position: sticky; top: 0; z-index: 2; }
}
@media (max-width: 260px) { .gt-tour .gt-tour-dots { display: none; } .gt-tour .gt-tour-foot { padding: 8px 10px; } .gt-tour .gt-tour-head { padding: 8px 10px 4px; } }
/* Uhr: Menüs der Einkaufsliste im Bild, Gast-Hinweis ohne Symbolspalte, Dialog-Kopf und -Fuß bleiben stehen */
@media (max-width: 260px) {
    .ls-menu { position: fixed !important; left: 4px !important; right: 4px !important; top: 48px !important; width: auto !important; min-width: 0 !important; max-height: calc(100dvh - 52px); overflow-y: auto; }
    .gb-icon, [class*="guest"] > .gb-ic, .guest-banner > i, .guest-banner > span:first-child:not(.gb-text) { display: none !important; }
    .setting-control { flex-wrap: wrap !important; }
}
@media (max-width: 260px), (max-height: 520px) {
    dialog.gt-dialog .gt-dialog-header { position: sticky; top: 0; z-index: 2; background: var(--color-surface); }
    dialog.gt-dialog .gt-dialog-footer { position: sticky; bottom: 0; z-index: 2; }
}
@media (max-width: 260px) { .guest-banner { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 8px !important; } }

/* ================================================================ Schalter (label.switch > input + .slider) – einheitlich auf allen Seiten
 * 46 × 26 px, Bahn aus mit sichtbarem Rand (≥ 3:1 zum Hintergrund), an in der Akzentfarbe, Knopf mit Schatten,
 * Tastaturfokus sichtbar, gesperrt erkennbar. Auf Touch-Geräten 44 px Tippfläche ohne Layout-Änderung. */
:root:root body label.switch {
    position: relative !important; display: inline-block !important; flex: 0 0 auto !important;
    width: 46px !important; height: 26px !important; min-width: 46px !important; min-height: 0 !important; margin: 0; vertical-align: middle; cursor: pointer;
}
:root:root body label.switch > input { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important; }
:root:root body label.switch > .slider {
    position: absolute !important; inset: 0 !important; border-radius: 999px !important; cursor: pointer;
    background: #e2e6eb !important; border: 1.5px solid #868e9c !important; box-shadow: none !important;
    transition: background-color 0.18s ease, border-color 0.18s ease !important;
}
:root:root body label.switch > .slider::before {
    content: "" !important; position: absolute !important; left: 3px !important; top: 50% !important; bottom: auto !important;
    width: 18px !important; height: 18px !important; border-radius: 50% !important; background: #ffffff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.35), 0 0 0 0.5px rgba(15, 23, 42, 0.12) !important;
    transform: translate(0, -50%) !important; transition: transform 0.18s ease !important;
}
:root:root body label.switch > input:checked + .slider { background: var(--color-accent) !important; border-color: var(--color-accent) !important; }
:root:root body label.switch > input:checked + .slider::before { transform: translate(19px, -50%) !important; }
:root:root body label.switch > input:focus-visible + .slider { outline: 2px solid var(--color-accent-text) !important; outline-offset: 2px; }
:root:root body label.switch > input:disabled + .slider { opacity: 0.55 !important; cursor: not-allowed; background: #eef0f3 !important; }
/* gesperrt (z. B. nur für Premium): Schloss im Knopf statt eines leeren, ausgegrauten Schalters */
:root:root body label.switch.gt-locked > .slider::before {
    content: "\f023" !important; font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; font-size: 9px !important;
    line-height: 18px !important; text-align: center !important; color: #6b7280 !important;
}
:root:root body label.switch:hover > input:not(:disabled):not(:checked) + .slider { border-color: #5b6472 !important; }
:root:root body.dark-mode label.switch > .slider { background: #2b3542 !important; border-color: #7c8696 !important; }
:root:root body.dark-mode label.switch > input:checked + .slider { background: var(--color-accent) !important; border-color: var(--color-accent) !important; }
:root:root body.dark-mode label.switch > input:disabled + .slider { background: #232b36 !important; }
@media (pointer: coarse) { :root:root body label.switch::after { content: ""; position: absolute; inset: -9px -4px; } }
.gt-reduce-motion label.switch > .slider, .gt-reduce-motion label.switch > .slider::before { transition: none !important; }
/* Uhr (Personal): Offline-Hinweis als schmale Leiste statt runder Fleck, Assistent-Knopf aus, „Mehr“-Blatt kompakt */
@media (max-width: 260px) {
    #gt-offline { left: 4px !important; right: 4px !important; top: 48px !important; transform: none !important; max-width: none !important;
        border-radius: 10px !important; padding: 6px 8px !important; font-size: 0.72rem !important; line-height: 1.3; gap: 6px !important; }
    #gt-offline.out { transform: translateY(-8px) !important; }
    .ai-toggle, #ai-toggle, .sp-assist-btn { display: none !important; }
    .gt-staff-sheet { padding: 6px 8px 10px !important; }
    .gt-staff-sheet-me { flex-wrap: wrap; gap: 6px; padding: 8px !important; }
    .gt-staff-sheet-me span { flex: 1 1 100% !important; }
    .gt-staff-sheet-me button { flex: 1 1 100%; }
}
/* Offline-Hinweis bei genau 1024 px (Personal-Reiterleiste unten) wie am Handy oben unter der Kopfzeile */
@media (min-width: 1024px) and (max-width: 1024px) { body:has(.gt-staff-tabbar) #gt-offline { top: calc(70px + env(safe-area-inset-top, 0px)) !important; bottom: auto !important; left: 50% !important; right: auto !important; transform: translateX(-50%) !important; } }
/* Sprunglink: nur bei Tastaturfokus sichtbar */
.gt-skip { position: fixed; left: 12px; top: -70px; min-height: 44px; display: inline-flex; align-items: center; z-index: 5000; padding: 10px 16px; border-radius: 8px; background: var(--color-accent); color: #fff !important; font-weight: 700; text-decoration: none; transition: top 0.15s ease; }
/* Schatten erst beim Einblenden – versteckt ragte er als grauer Fleck unter die Statusleiste */
.gt-skip:focus, .gt-skip:focus-visible { top: 10px; outline: 2px solid #fff; outline-offset: -4px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25); }
@media print { .gt-skip { display: none !important; } }
[tabindex="-1"]:focus { outline: none; }

/* ---- Dunkelmodus-Einzelfälle aus dem Durchklicken */
body.dark-mode #scanner-container { background-color: #111827 !important; }
:root:root body.dark-mode :is(button, a).danger, :root:root body.dark-mode .gt-staff-sheet-foot .danger, :root:root body.dark-mode .gt-dialog-error { color: #f87171 !important; }
body.dark-mode #daily-report-content th { background: var(--color-bg-secondary) !important; color: var(--color-text) !important; }
body.dark-mode #daily-report-content td { color: var(--color-text); }
body.dark-mode #scanner-status.scanner-status, body.dark-mode .scanner-status { background-color: #1f2937 !important; border: 1px solid #374151; }

/* ---- Hinweispunkt: neue Version seit dem letzten Besuch des Versionsverlaufs */
.gt-vdot { display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--color-accent); vertical-align: middle; }
.gt-vdot-btn { position: relative; }
.gt-vdot-btn::after { content: ""; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 2px var(--color-surface, #fff); pointer-events: none; }

/* ================================================================ Handy-Feinschliff (Übersicht und alle Personalseiten)
 * 1) Kopfleiste: Suche und Abmelden ohne sichtbaren Kasten, beide 44 × 44 (vorher 44 × 44 bzw. 44 × 47 mit Rahmen –
 *    die 44-px-Tippfläche war als Kasten sichtbar). 2) Symbolknöpfe im Inhalt wieder 38 px wie gestaltet, die 44-px-
 *    Tippfläche liegt unsichtbar darum. 3) Kartenköpfe: Aktionen neben dem Titel statt in einer eigenen Zeile.
 *    4) Seitentitel nicht doppelt unter der Kopfzeile. */
@media (max-width: 1024px) {
    :root:root:root body .admin-header :is(.gt-staff-cmd-mobile, .logout-btn) {
        width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; padding: 0 !important; margin: 0 !important;
        border-color: transparent !important; background: transparent !important; box-shadow: none !important; border-radius: 12px !important;
        display: inline-flex !important; align-items: center; justify-content: center;
    }
    :root:root:root body .admin-header :is(.gt-staff-cmd-mobile, .logout-btn):active { background: var(--color-bg-secondary) !important; }
    body.gt-staff .card-header .card-actions { width: auto !important; }
    body.gt-staff .gt-title-dup { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; margin: 0 !important; padding: 0 !important; }
}
@media (pointer: coarse) {
    /* Spezifität bewusst hoch: die 44-px-Regel oben erreicht über ihre input-:not()-Kette (0,8,2) */
    :root:root:root:root:root:root body :is(.gt-ico, .db-icon-btn, .card-action-btn, .chart-action-btn, .ct-icon-btn, .mk-icon-btn, .ls-btn.icon, .toolbar-btn.tm-icon):not([hidden]) {
        width: 38px !important; height: 38px !important; min-width: 38px !important; min-height: 38px !important; padding: 0 !important; position: relative;
        display: inline-flex !important; align-items: center; justify-content: center; flex: 0 0 auto;
    }
    :root:root:root:root:root:root body :is(.gt-ico, .db-icon-btn, .card-action-btn, .chart-action-btn, .ct-icon-btn, .mk-icon-btn, .ls-btn.icon, .toolbar-btn.tm-icon):not([hidden])::after { content: ""; position: absolute; inset: -3px; }
}
/* Versteckte Tabellenzeilen bleiben versteckt (das Handy-Stapellayout setzt display mit !important) */
:root body table tr[hidden] { display: none !important; }

/* Reine Symbolknöpfe ohne sichtbaren Rahmen: nur das Symbol, die Fläche erscheint erst beim Zeigen/Tippen.
   Gefüllte (Hauptaktion) und aktive/gedrückte Knöpfe bleiben hervorgehoben. */
:root:root:root:root:root:root body :is(.gt-ico, .db-icon-btn, .card-action-btn, .chart-action-btn, .ct-icon-btn, .mk-icon-btn, .ls-btn.icon, .toolbar-btn.tm-icon):not(.primary, .gt-btn-primary, .btn-primary, .active, [aria-pressed="true"], [aria-selected="true"], [aria-expanded="true"], details[open] > summary) { border-color: transparent !important; background: transparent !important; box-shadow: none !important; }
@media (hover: hover) { :root:root:root:root:root:root body :is(.gt-ico, .db-icon-btn, .card-action-btn, .chart-action-btn, .ct-icon-btn, .mk-icon-btn, .ls-btn.icon, .toolbar-btn.tm-icon):not(.primary, .gt-btn-primary, .btn-primary, .active, [aria-pressed="true"], [aria-selected="true"], [aria-expanded="true"], details[open] > summary):hover { background: var(--color-bg-secondary) !important; } }
:root:root:root:root:root:root body :is(.gt-ico, .db-icon-btn, .card-action-btn, .chart-action-btn, .ct-icon-btn, .mk-icon-btn, .ls-btn.icon, .toolbar-btn.tm-icon):not(.primary, .gt-btn-primary, .btn-primary, .active, [aria-pressed="true"], [aria-selected="true"], [aria-expanded="true"], details[open] > summary):active { background: var(--color-bg-secondary) !important; }

/* Kennzahl-Kacheln: Werte einer Zeile auf einer Linie, auch wenn eine Beschriftung zwei Zeilen braucht */
body.gt-staff .stat-card:not(#stats-grid .stat-card) { display: flex !important; flex-direction: column; }
body.gt-staff .stat-card:not(#stats-grid .stat-card) > .stat-card-header { flex: 1 0 auto; align-self: stretch; width: 100%; align-items: flex-start; }
/* Übersicht (Raster Titel|Symbol, Wert|Symbol, Trend): Titelzeile wächst, Werte stehen unten bündig */
body.gt-staff #stats-grid .stat-card { grid-template-rows: 1fr auto auto; }
body.gt-staff #stats-grid .stat-card-title { align-self: start; }

/* ---- Personalbereich am Computer: Seitentitel bleibt beim Scrollen unter der Kopfzeile stehen.
 * Hintergrund = Arbeitsfläche (deckt den Inhalt darunter ab, auch im Dunkelmodus). */
@media (min-width: 1025px) {
    body.gt-staff.gt-topnav .admin-content > :is(.page-header, .dashboard-header) {
        position: sticky; top: var(--gt-topnav-h, 64px); z-index: 40;
        background: var(--tia-ws, var(--color-bg-secondary)) !important;
        margin-top: -10px !important; padding-top: 10px !important; padding-bottom: 8px !important;
        box-shadow: 0 1px 0 var(--tia-ws, var(--color-bg-secondary));
    }
}
@media (min-width: 1025px) {
    /* Sprungziele nicht unter Kopfzeile und Titel verstecken */
    body.gt-staff.gt-topnav :is(section[id], .settings-section, .setting-card[id], .dashboard-card[id]) { scroll-margin-top: calc(var(--gt-topnav-h, 64px) + 56px); }
}
@media (min-width: 1025px) {
    /* overflow: hidden würde „sticky“ verhindern – clip schneidet genauso ab, ohne eigenen Scrollbereich */
    body.gt-staff.gt-topnav .admin-content:has(> :is(.page-header, .dashboard-header)) { overflow: clip !important; }
}
@media (min-width: 1025px) {
    body.gt-staff.gt-topnav .admin-content > :is(.page-header, .dashboard-header) :is(h1, h2, .page-title) { cursor: pointer; }
}

/* ============================================================ Liquid Glass (iOS 26)
   Nur auf iPhone/iPad als installierte App (html.gt-glass, gesetzt von gt-core): die unteren Leisten
   schweben als Glaskapsel über dem Inhalt – Weichzeichner, Lichtkante, „Linse“ hinter dem aktiven Reiter. */
html.gt-glass body {
    /* --glass-h ändert sich beim Verkleinern (Scrollen); Abstände der Seite hängen an --glass-h-full und bleiben gleich,
       sonst springt der Inhalt beim Scrollen und das Umschalten schaukelt sich auf */
    --glass-h-full: 62px;
    --glass-h: 62px;
    --glass-gap: 8px;
    --glass-side: 12px;
    --glass-bottom: calc(env(safe-area-inset-bottom, 0px) + 6px);
    --glass-bg: color-mix(in srgb, var(--color-bg, #fff) 52%, transparent);
    --glass-edge: rgba(255, 255, 255, 0.7);
    --glass-lens: rgba(120, 120, 128, 0.16);
    --glass-shine: rgba(255, 255, 255, 0.75);
    --glass-shadow: 0 12px 32px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.08);
}
html.gt-glass body.dark-mode {
    --glass-bg: color-mix(in srgb, #1c1c1e 52%, transparent);
    --glass-edge: rgba(255, 255, 255, 0.16);
    --glass-lens: rgba(255, 255, 255, 0.14);
    --glass-shine: rgba(255, 255, 255, 0.22);
    --glass-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
}
@media (max-width: 1024px) {
    html.gt-glass :is(.gt-tabbar, .tabbar, .gt-staff-tabbar) {
        left: var(--glass-side) !important; right: var(--glass-side) !important; bottom: var(--glass-bottom) !important;
        height: var(--glass-h) !important; padding: 0 5px !important; align-items: center;
        border: 1px solid var(--glass-edge) !important; border-radius: 999px !important;
        background: var(--glass-bg) !important;
        -webkit-backdrop-filter: blur(24px) saturate(185%); backdrop-filter: blur(24px) saturate(185%);
        box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-shine), inset 0 -1px 0 rgba(0, 0, 0, 0.05) !important;
    }
    html.gt-glass :is(.gt-tabbar a, .tabbar .tab, .gt-staff-tabbar a, .gt-staff-tabbar button) {
        height: calc(var(--glass-h) - 12px) !important; margin: 0 1px; border-radius: 999px;
        transition: background-color 0.28s ease, color 0.28s ease, transform 0.2s ease;
    }
    html.gt-glass :is(.gt-tabbar a, .tabbar .tab, .gt-staff-tabbar a, .gt-staff-tabbar button):active { transform: scale(0.94); }
    /* aktiver Reiter: Glaslinse statt Strich */
    html.gt-glass :is(.gt-tabbar a.active, .tabbar .tab.active, .gt-staff-tabbar .active) {
        background: var(--glass-lens); box-shadow: inset 0 1px 0 var(--glass-shine), 0 1px 4px rgba(15, 23, 42, 0.1);
    }
    html.gt-glass :is(.gt-tabbar a.active, .tabbar .tab.active, .gt-staff-tabbar .active)::before { display: none !important; }
    html.gt-glass :is(.gt-tab-badge, .tab-badge, .gt-tab-count) { top: 2px !important; box-shadow: 0 0 0 2px var(--color-bg, #fff); }

    /* Bezahlleiste der Startseite: eigene Glaskapsel über der Reiterleiste */
    html.gt-glass .payment-footer {
        left: var(--glass-side) !important; right: var(--glass-side) !important;
        bottom: calc(var(--glass-bottom) + var(--glass-h) + var(--glass-gap)) !important;
        padding: 8px 8px 8px 18px !important; border: 1px solid var(--glass-edge) !important; border-radius: 26px !important;
        background: var(--glass-bg) !important;
        -webkit-backdrop-filter: blur(24px) saturate(185%); backdrop-filter: blur(24px) saturate(185%);
        box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-shine) !important;
    }
    html.gt-glass .payment-footer .pay-btn { border-radius: 999px !important; }

    /* Inhalt läuft unter dem Glas durch, endet aber darüber */
    html.gt-glass body.gt-shell { padding-bottom: calc(var(--glass-h-full) + var(--glass-bottom) + 20px) !important; }
    html.gt-glass body.gt-staff-tabs { padding-bottom: calc(var(--glass-h-full) + var(--glass-bottom) + 20px) !important; }
    html.gt-glass body:has(> .tabbar) { --tabbar-height: calc(var(--glass-h-full) + 6px + var(--glass-gap)); }
    html.gt-glass body:has(> .tabbar):not(.cart-empty) { padding-bottom: calc(var(--glass-h-full) * 2 + var(--glass-bottom) + 34px) !important; }
    html.gt-glass body:has(> .tabbar).cart-empty { padding-bottom: calc(var(--glass-h-full) + var(--glass-bottom) + 20px) !important; }
    html.gt-glass body:has(.gt-tabbar, .gt-staff-tabbar, .tabbar) #gt-toasts { bottom: calc(var(--glass-h-full) + var(--glass-bottom) + 14px) !important; }
    html.gt-glass body:has(> .tabbar):not(.cart-empty) #gt-toasts { bottom: calc(var(--glass-h-full) * 2 + var(--glass-bottom) + 24px) !important; }
    /* schwebende Knöpfe (Assistent) über der Glaskapsel statt darauf */
    html.gt-glass body:is(.gt-staff-tabs, .gt-shell) :is(.ai-toggle, #ai-toggle, .sp-assist-btn) { bottom: calc(var(--glass-h) + var(--glass-bottom) + 14px) !important; }
}
/* Bedienungshilfen: „Transparenz reduzieren“ = feste Fläche, „Bewegung reduzieren“ = ohne Animation */
@media (prefers-reduced-transparency: reduce) {
    html.gt-glass :is(.gt-tabbar, .tabbar, .gt-staff-tabbar, .payment-footer) {
        background: var(--color-bg, #fff) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    html.gt-glass :is(.gt-tabbar, .tabbar, .gt-staff-tabbar, .payment-footer) { background: color-mix(in srgb, var(--color-bg, #fff) 94%, transparent) !important; }
}
@media (prefers-reduced-motion: reduce) {
    html.gt-glass :is(.gt-tabbar a, .tabbar .tab, .gt-staff-tabbar a, .gt-staff-tabbar button) { transition: none; }
    html.gt-glass :is(.gt-tabbar a, .tabbar .tab, .gt-staff-tabbar a, .gt-staff-tabbar button):active { transform: none; }
}

/* ---- Liquid Glass: Bewegung (Linse, Ziehen, Schrumpfen beim Scrollen) – Federkurve wie bei iOS */
html.gt-glass body { --glass-spring: cubic-bezier(0.32, 1.32, 0.48, 1); --glass-ease: cubic-bezier(0.25, 0.9, 0.3, 1); }
@media (max-width: 1024px) {
    /* Finger darf über die Leiste gleiten, ohne dass der Browser es als Wischen der Seite deutet */
    html.gt-glass :is(.gt-tabbar, .tabbar, .gt-staff-tabbar).gt-has-lens { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
    html.gt-glass :is(.gt-tabbar, .tabbar, .gt-staff-tabbar).gt-has-lens > :is(a, button) { position: relative; z-index: 1; -webkit-touch-callout: none; }
    /* die Linse übernimmt die Hervorhebung des aktiven Reiters */
    html.gt-glass .gt-has-lens > :is(a, button).active { background: transparent !important; box-shadow: none !important; }
    html.gt-glass .gt-glass-lens {
        position: absolute; left: 0; top: 6px; bottom: 6px; width: 0; z-index: 0; border-radius: 999px; pointer-events: none;
        background: var(--glass-lens); box-shadow: inset 0 1px 0 var(--glass-shine), 0 1px 4px rgba(15, 23, 42, 0.1);
        transition: translate 0.55s var(--glass-spring), width 0.55s var(--glass-spring), scale 0.35s var(--glass-spring), opacity 0.2s ease;
        will-change: translate;
    }
    html.gt-glass .gt-glass-lens[hidden] { display: block; opacity: 0; }
    html.gt-glass .gt-glass-lens.instant { transition: scale 0.35s var(--glass-spring), opacity 0.2s ease; }
    /* Antippen: Tropfen wird größer und flacher, Ziehen: etwas breiter, wie flüssiges Glas */
    html.gt-glass .gt-glass-lens.press { scale: 1.1 1.14; }
    html.gt-glass .gt-glass-lens.drag { scale: 1.18 1.08; box-shadow: inset 0 1px 0 var(--glass-shine), 0 6px 18px rgba(15, 23, 42, 0.18); }
    html.gt-glass .gt-has-lens > .gt-lens-over { color: var(--color-accent-text) !important; }
    html.gt-glass .gt-has-lens > :is(a, button) { transition: color 0.25s ease, transform 0.3s var(--glass-spring); }
    html.gt-glass .gt-has-lens > :is(a, button) i { transition: transform 0.35s var(--glass-spring); }
    html.gt-glass .gt-has-lens > :is(a, button).active i { transform: scale(1.08); }

    /* Schrumpfen beim Scrollen: niedriger, schmaler, nur Symbole – Bezahlleiste rückt mit */
    html.gt-glass :is(.gt-tabbar, .tabbar, .gt-staff-tabbar, .payment-footer) {
        transition: height 0.45s var(--glass-spring), left 0.45s var(--glass-spring), right 0.45s var(--glass-spring), bottom 0.45s var(--glass-spring);
    }
    html.gt-glass body.gt-glass-min { --glass-h: 50px; --glass-side: 34px; }
    html.gt-glass :is(.gt-tabbar, .tabbar, .gt-staff-tabbar) > :is(a, button) > span:not([class*="badge"]):not(.gt-tab-count) {
        display: block; max-height: 1.3em; overflow: hidden; transition: max-height 0.35s var(--glass-ease), opacity 0.25s ease;
    }
    html.gt-glass body.gt-glass-min :is(.gt-tabbar, .tabbar, .gt-staff-tabbar) > :is(a, button) > span:not([class*="badge"]):not(.gt-tab-count) { max-height: 0; opacity: 0; }
    html.gt-glass body.gt-glass-min :is(.gt-tabbar, .tabbar, .gt-staff-tabbar) > :is(a, button) { gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
    html.gt-glass .gt-glass-lens, html.gt-glass :is(.gt-tabbar, .tabbar, .gt-staff-tabbar, .payment-footer) { transition: none !important; }
    html.gt-glass .gt-glass-lens.press, html.gt-glass .gt-glass-lens.drag { scale: none; }
}

/* ============================================================ Liquid Glass über die Reiterleiste hinaus
   Kopfzeilen, Fenster/Blätter, Menüs, Hinweise, schwebende Knöpfe, Produktkarte, Knöpfe – nur html.gt-glass.
   Flächen mit viel Text sind weniger durchsichtig (lesbar), die Bewegung federt wie bei iOS. */
html.gt-glass body {
    --glass-panel: color-mix(in srgb, var(--color-bg, #fff) 78%, transparent);
    --glass-panel-blur: blur(30px) saturate(190%);
}
html.gt-glass body.dark-mode { --glass-panel: color-mix(in srgb, #1c1c1e 76%, transparent); }
@keyframes gt-glass-sheet { from { transform: translateY(calc(100% + 24px)); } to { transform: none; } }
@keyframes gt-glass-pop { from { opacity: 0; scale: 0.9; } to { opacity: 1; scale: 1; } }
@keyframes gt-glass-rise { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: none; } }
@media (max-width: 1024px) {
    /* Kopfzeilen: oben ruhig ohne Linie, sobald Inhalt darunter liegt: Glas mit feiner Kante */
    html.gt-glass :is(.gt-shell-header, .app-header, .admin-header) {
        border-bottom-color: transparent !important; box-shadow: none;
        transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    }
    html.gt-glass body.gt-glass-scrolled :is(.gt-shell-header, .app-header, .admin-header) {
        background: var(--glass-bg) !important;
        -webkit-backdrop-filter: blur(24px) saturate(185%) !important; backdrop-filter: blur(24px) saturate(185%) !important;
        box-shadow: 0 1px 0 var(--glass-edge), 0 8px 24px rgba(15, 23, 42, 0.06);
    }

    /* Fenster als schwebendes Glasblatt mit Abstand zum Rand */
    html.gt-glass dialog.gt-dialog[open] {
        width: calc(100vw - 16px) !important; max-width: calc(100vw - 16px) !important; left: 8px; right: 8px;
        margin: auto auto calc(8px + env(safe-area-inset-bottom, 0px)) !important; border-radius: 28px !important;
        background: var(--glass-panel) !important; border: 1px solid var(--glass-edge);
        -webkit-backdrop-filter: var(--glass-panel-blur); backdrop-filter: var(--glass-panel-blur);
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28), inset 0 1px 0 var(--glass-shine);
        animation: gt-glass-sheet 0.5s var(--glass-spring) both;
    }
    html.gt-glass dialog.gt-dialog::backdrop { background: rgba(15, 23, 42, 0.28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
    html.gt-glass dialog.gt-dialog :is(.gt-dialog-header, .gt-dialog-footer) { background: transparent !important; border-color: color-mix(in srgb, var(--color-border, #e5e7eb) 60%, transparent) !important; }

    /* „Mehr“-Blatt des Personals */
    html.gt-glass .gt-staff-sheet {
        left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); border-radius: 28px;
        padding-bottom: 16px; background: var(--glass-panel); border: 1px solid var(--glass-edge);
        -webkit-backdrop-filter: var(--glass-panel-blur); backdrop-filter: var(--glass-panel-blur);
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28), inset 0 1px 0 var(--glass-shine);
        animation: gt-glass-sheet 0.5s var(--glass-spring) both;
    }
    html.gt-glass .gt-staff-sheet-shade { background: rgba(15, 23, 42, 0.28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
    html.gt-glass .gt-staff-sheet :is(.gt-staff-sheet-me, .gt-staff-sheet-grid a) { background: color-mix(in srgb, var(--color-bg, #fff) 55%, transparent); }

    /* Produktkarte nach dem Scannen */
    html.gt-glass body[data-view="scan"] #product-card.visible {
        background: var(--glass-panel) !important; border: 1px solid var(--glass-edge) !important; border-radius: 26px !important;
        -webkit-backdrop-filter: var(--glass-panel-blur); backdrop-filter: var(--glass-panel-blur);
        box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22), inset 0 1px 0 var(--glass-shine) !important;
        animation: gt-glass-rise 0.5s var(--glass-spring) both !important;
    }

    /* schwebender Assistent-Knopf als Glaskreis */
    html.gt-glass :is(.ai-toggle, #ai-toggle) {
        background: var(--glass-bg) !important; border: 1px solid var(--glass-edge) !important; color: var(--color-accent-text) !important;
        -webkit-backdrop-filter: blur(20px) saturate(185%); backdrop-filter: blur(20px) saturate(185%);
        box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-shine) !important;
    }
}
/* Menüs und Hinweise (auch auf größeren Geräten der iPhone-/iPad-App) */
html.gt-glass :is(.gt-shell-menu, .more-dropdown, .gt-me-menu):not([hidden]) {
    /* Menüs sitzen in der (selbst weichgezeichneten) Kopfzeile – dort wirkt ihr eigener Weichzeichner nicht
       auf die Seite dahinter; daher fast deckend, damit der Text immer gut lesbar ist */
    /* deckend: bei 92 % schimmerten Seitentext und Kartenkanten durch (wirkte wie ein Bruch quer durchs Menü) */
    background: var(--color-bg, #fff) !important; border: 1px solid var(--glass-edge) !important; border-radius: 20px !important;
    -webkit-backdrop-filter: var(--glass-panel-blur); backdrop-filter: var(--glass-panel-blur);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22), inset 0 1px 0 var(--glass-shine) !important;
    transform-origin: top right; animation: gt-glass-pop 0.38s var(--glass-spring) both;
}
html.gt-glass .gt-toast {
    background: var(--glass-panel); border: 1px solid var(--glass-edge); border-radius: 22px;
    -webkit-backdrop-filter: var(--glass-panel-blur); backdrop-filter: var(--glass-panel-blur);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18), inset 0 1px 0 var(--glass-shine);
    animation: gt-glass-rise 0.45s var(--glass-spring) both;
}
html.gt-glass .gt-toast.out { animation: gt-toast-out 180ms ease-in forwards; }
/* Knöpfe geben beim Drücken nach (eigene Eigenschaft scale – verträgt sich mit transform-Zentrierung) */
html.gt-glass :is(button, .gt-btn, .btn, .gt-cl-btn, .ly-join, .ly-more, .scan-btn, .add-to-cart-btn, .pay-btn) {
    transition: scale 0.3s var(--glass-spring), background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
html.gt-glass :is(button, .gt-btn, .btn, .gt-cl-btn, .ly-join, .ly-more, .scan-btn, .add-to-cart-btn, .pay-btn):active:not(:disabled) { scale: 0.96; }
/* mit transform zentrierte Knöpfe (Scanner-Start) nicht skalieren – die Zentrierung würde mitgestreckt */
html.gt-glass #toggle-scanner:active { scale: none !important; }
html.gt-glass :is(.gt-tabbar, .tabbar, .gt-staff-tabbar) > :is(a, button):active { scale: 1; }
@media (prefers-reduced-transparency: reduce) {
    html.gt-glass :is(dialog.gt-dialog[open], .gt-staff-sheet, .gt-shell-menu, .more-dropdown, .gt-me-menu, .gt-toast, .ai-toggle, #ai-toggle),
    html.gt-glass body.gt-glass-scrolled :is(.gt-shell-header, .app-header, .admin-header),
    html.gt-glass body[data-view="scan"] #product-card.visible {
        background: var(--color-bg, #fff) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    html.gt-glass :is(dialog.gt-dialog[open], .gt-staff-sheet, .gt-shell-menu, .more-dropdown, .gt-me-menu, .gt-toast),
    html.gt-glass body[data-view="scan"] #product-card.visible { animation: none !important; }
    html.gt-glass :is(button, .gt-btn, .btn, .gt-cl-btn, .ly-join, .ly-more, .scan-btn, .add-to-cart-btn, .pay-btn):active { scale: none; }
}

/* Liquid Glass „Getönt“ (wie iOS 26.1): deckendere Flächen, mehr Kontrast, kräftigere Linse */
html.gt-glass.gt-glass-tinted body {
    --glass-bg: color-mix(in srgb, var(--color-bg, #fff) 86%, transparent);
    --glass-panel: color-mix(in srgb, var(--color-bg, #fff) 93%, transparent);
    --glass-lens: color-mix(in srgb, var(--color-accent, #2563eb) 16%, transparent);
    --glass-edge: rgba(15, 23, 42, 0.08);
}
html.gt-glass.gt-glass-tinted body.dark-mode {
    --glass-bg: color-mix(in srgb, #1c1c1e 86%, transparent);
    --glass-panel: color-mix(in srgb, #1c1c1e 93%, transparent);
    --glass-lens: color-mix(in srgb, var(--color-accent, #2563eb) 30%, transparent);
    --glass-edge: rgba(255, 255, 255, 0.12);
}
html.gt-glass.gt-glass-tinted .gt-has-lens > :is(a, button).active { color: var(--color-accent-text) !important; }

/* ---- Bezahlleiste auf allen Kundenseiten (sobald etwas im Warenkorb liegt): Handy über der Reiterleiste,
   Computer als schwebende Kapsel unten rechts */
.gt-paybar { position: fixed; z-index: 44; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-decoration: none;
    color: var(--color-text); background: var(--color-bg, #fff); border-top: 1px solid var(--color-border, #e5e7eb);
    left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); padding: 10px 16px; box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.06); }
.gt-paybar[hidden] { display: none; }
.gt-paybar-sum { display: flex; flex-direction: column; line-height: 1.15; }
.gt-paybar-sum small { font-size: 0.75rem; color: var(--color-text-muted); }
.gt-paybar-sum b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.gt-paybar-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1 1 auto; max-width: 260px; min-height: 48px; padding: 0 22px;
    border-radius: 14px; background: var(--color-accent, #2563eb); color: #fff; font-weight: 700; }
body.gt-shell.gt-has-paybar { padding-bottom: calc(62px + 84px + env(safe-area-inset-bottom, 0px)) !important; }
body.gt-has-paybar #gt-toasts { bottom: calc(62px + 88px + env(safe-area-inset-bottom, 0px)) !important; }
@media (min-width: 1024px) {
    .gt-paybar { left: auto; right: max(24px, calc((100vw - var(--gt-frame, 1240px)) / 2)); bottom: 24px; width: 360px; padding: 10px 10px 10px 20px;
        border: 1px solid var(--color-border, #e5e7eb); border-radius: 20px; box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18); }
    body.gt-shell.gt-has-paybar { padding-bottom: 110px !important; }
    body.gt-has-paybar #gt-toasts { bottom: 104px !important; }
}
/* Liquid Glass: eigene Glaskapsel über der Reiterleiste (wie die Bezahlleiste der Startseite) */
@media (max-width: 1024px) {
    html.gt-glass .gt-paybar {
        left: var(--glass-side); right: var(--glass-side); bottom: calc(var(--glass-bottom) + var(--glass-h) + var(--glass-gap));
        padding: 8px 8px 8px 18px; border: 1px solid var(--glass-edge); border-radius: 26px; background: var(--glass-bg);
        -webkit-backdrop-filter: blur(24px) saturate(185%); backdrop-filter: blur(24px) saturate(185%);
        box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-shine);
        transition: bottom 0.45s var(--glass-spring), left 0.45s var(--glass-spring), right 0.45s var(--glass-spring);
    }
    html.gt-glass .gt-paybar-btn { border-radius: 999px; }
    html.gt-glass body.gt-shell.gt-has-paybar { padding-bottom: calc(var(--glass-h-full) * 2 + var(--glass-bottom) + 34px) !important; }
}

/* Fenster mit Kopfzeile (.modal > .modal-header + .modal-content, z. B. Produkt anlegen, Protokoll-Details, Bezahl-QR):
   .modal-content ist hier der Fensterkörper, kein eigener Kasten. Kopf bleibt oben, der Körper scrollt,
   die Knöpfe bleiben unten sichtbar – auch am Handy (iPhone/Android) und über der Reiterleiste */
body .modal:has(> .modal-header) {
    flex-direction: column; overflow: hidden !important;
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
}
body .modal.active:has(> .modal-header) { display: flex !important; }
body .modal > .modal-header { flex: 0 0 auto; }
body .modal > .modal-header ~ .modal-content {
    --mc-pad: var(--spacing-lg, 20px);
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important;
    max-height: none !important; max-width: none !important;
}
body .modal > .modal-header ~ .modal-content > .modal-buttons {
    position: sticky; bottom: calc(-1 * var(--mc-pad)); z-index: 2;
    margin-bottom: calc(-1 * var(--mc-pad)); padding: 12px 0 var(--mc-pad); background: var(--color-bg);
}
@media (max-width: 640px) {
    body .modal:has(> .modal-header) { width: calc(100vw - 16px) !important; max-width: calc(100vw - 16px) !important; }
    body .modal > .modal-header { padding: 12px 14px !important; }
    body .modal > .modal-header h2 { font-size: 1.15rem; }
    body .modal > .modal-header ~ .modal-content { --mc-pad: 14px; padding: 14px !important; }
    body .modal > .modal-header ~ .modal-content > .modal-buttons { flex-direction: row-reverse; gap: 8px; }
    body .modal > .modal-header ~ .modal-content > .modal-buttons button { padding: 12px; }
    /* Eingaben ab 16px: iOS zoomt sonst beim Antippen in die Seite */
    body .modal > .modal-header ~ .modal-content :is(input, select, textarea) { font-size: 16px; }
}

/* ============================================================ Liquid Glass am Computer (MacBook, macOS 26)
   Schwebende Glas-Kopfzeile, gleitende Linse in der Navigation (folgt der Maus, gleitet beim Seitenwechsel
   vom vorigen Reiter), Fenster und Seitenpanels als schwebendes Glas, Lichtreflex unter dem Mauszeiger.
   Inhalte bleiben deckend und gut lesbar – Glas nur für die Bedienebene, wie bei Apple. */
@keyframes gt-glass-panel-in { from { opacity: 0; transform: translateX(28px) scale(0.985); } to { opacity: 1; transform: none; } }
@media (min-width: 1025px) {
    html.gt-glass body { --glass-float: 10px; --glass-bg: color-mix(in srgb, var(--color-bg, #fff) 62%, transparent); }
    html.gt-glass body.dark-mode { --glass-bg: color-mix(in srgb, #1c1c1e 62%, transparent); }
    /* Kopfzeile schwebt als Glasleiste über dem Inhalt */
    html.gt-glass :is(.gt-shell-header, .app-header),
    html.gt-glass body.gt-topnav .gt-staff-topnav {
        top: var(--glass-float) !important; margin: var(--glass-float) max(16px, calc((100vw - 1272px) / 2)) 0 !important;
        padding-left: 18px !important; padding-right: 12px !important; border-radius: 20px !important;
        background: var(--glass-bg) !important; border: 1px solid var(--glass-edge) !important;
        -webkit-backdrop-filter: blur(26px) saturate(190%) !important; backdrop-filter: blur(26px) saturate(190%) !important;
        box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08), inset 0 1px 0 var(--glass-shine) !important;
        transition: box-shadow 0.35s ease, background-color 0.35s ease;
    }
    /* Personal: alle Bereiche in einer Zeile – daher nur schmaler Rand; Linse statt Unterstrich */
    html.gt-glass body.gt-topnav .gt-staff-topnav { margin: var(--glass-float) 12px 0 !important; }
    html.gt-glass body.gt-topnav .gt-staff-topnav-tabs { border-top-color: color-mix(in srgb, var(--color-border, #e5e7eb) 55%, transparent) !important; margin-bottom: 4px !important; }
    html.gt-glass body.gt-topnav .gt-staff-topnav-tabs.gt-has-lens > a::after { display: none; }
    html.gt-glass body.gt-topnav .gt-staff-topnav-tabs.gt-has-lens > a.active { box-shadow: none !important; }
    html.gt-glass body.gt-topnav .gt-staff-topnav-tabs.gt-has-lens > a { padding: 9px 10px !important; margin-top: 4px; }
    html.gt-glass body.gt-glass-scrolled :is(.gt-shell-header, .app-header),
    html.gt-glass body.gt-glass-scrolled.gt-topnav .gt-staff-topnav {
        box-shadow: 0 14px 40px rgba(15, 23, 42, 0.16), inset 0 1px 0 var(--glass-shine) !important;
    }
    /* Navigation: Glaslinse statt Hintergrund/Unterstrich */
    html.gt-glass :is(.gt-shell-nav, .gt-staff-topnav-tabs).gt-has-lens { position: relative; }
    html.gt-glass :is(.gt-shell-nav, .gt-staff-topnav-tabs).gt-has-lens > a { position: relative; z-index: 1; transition: color 0.25s ease; }
    html.gt-glass :is(.gt-shell-nav, .gt-staff-topnav-tabs).gt-has-lens > a:is(.active, :hover) { background: transparent !important; border-bottom-color: transparent !important; }
    html.gt-glass :is(.gt-shell-nav, .gt-staff-topnav-tabs).gt-has-lens > a.gt-lens-over { color: var(--color-text) !important; }
    html.gt-glass :is(.gt-shell-nav, .gt-staff-topnav-tabs) > .gt-glass-lens {
        position: absolute; left: 0; top: 50%; height: 36px; margin-top: -18px; width: 0; z-index: 0; border-radius: 999px; pointer-events: none;
        background: var(--glass-lens); box-shadow: inset 0 1px 0 var(--glass-shine), 0 1px 4px rgba(15, 23, 42, 0.1);
        transition: translate 0.5s var(--glass-spring), width 0.5s var(--glass-spring), scale 0.3s var(--glass-spring), opacity 0.2s ease;
    }
    html.gt-glass :is(.gt-shell-nav, .gt-staff-topnav-tabs) > .gt-glass-lens.hover { background: color-mix(in srgb, var(--glass-lens) 70%, transparent); }
    html.gt-glass :is(.gt-shell-nav, .gt-staff-topnav-tabs) > .gt-glass-lens[hidden] { display: block; opacity: 0; }
    html.gt-glass :is(.gt-shell-nav, .gt-staff-topnav-tabs) > .gt-glass-lens.instant { transition: scale 0.3s var(--glass-spring), opacity 0.2s ease; }
    html.gt-glass :is(.gt-shell-nav, .gt-staff-topnav-tabs) > .gt-glass-lens.press { scale: 0.96; }

    /* Fenster: schwebende Glasscheibe; Seitenpanels mit Abstand zum Rand */
    html.gt-glass dialog.gt-dialog[open] {
        background: var(--glass-panel) !important; border: 1px solid var(--glass-edge) !important; border-radius: 24px !important;
        -webkit-backdrop-filter: var(--glass-panel-blur); backdrop-filter: var(--glass-panel-blur);
        box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3), inset 0 1px 0 var(--glass-shine) !important;
        animation: gt-glass-pop 0.42s var(--glass-spring) both;
    }
    html.gt-glass dialog.gt-dialog::backdrop { background: rgba(15, 23, 42, 0.22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
    html.gt-glass dialog.gt-dialog :is(.gt-dialog-header, .gt-dialog-footer) { background: transparent !important; border-color: color-mix(in srgb, var(--color-border, #e5e7eb) 60%, transparent) !important; }
    html.gt-glass :is(#receipt-modal .modal, #product-modal, #details-modal) {
        top: var(--glass-float) !important; bottom: var(--glass-float) !important; right: var(--glass-float) !important;
        height: auto !important; border-radius: 22px !important; border: 1px solid var(--glass-edge) !important;
        background: var(--glass-panel) !important; -webkit-backdrop-filter: var(--glass-panel-blur); backdrop-filter: var(--glass-panel-blur);
        box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28), inset 0 1px 0 var(--glass-shine) !important;
        animation: gt-glass-panel-in 0.45s var(--glass-spring) both !important;
    }
    html.gt-glass #receipt-modal .modal { margin: var(--glass-float) !important; height: calc(100% - 2 * var(--glass-float)) !important; }
    html.gt-glass #receipt-modal { background: rgba(15, 23, 42, 0.22) !important; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
    html.gt-glass :is(#receipt-modal .modal, #product-modal, #details-modal) > :is(.modal-header) { background: transparent !important; }
    html.gt-glass :is(#receipt-modal .modal-footer, #product-modal > .modal-buttons, #details-modal > .modal-buttons) {
        background: color-mix(in srgb, var(--color-bg-secondary, #f3f4f6) 45%, transparent) !important;
    }
    html.gt-glass .modal.active:has(> .modal-header):not(#product-modal):not(#details-modal) {
        background: var(--glass-panel) !important; border: 1px solid var(--glass-edge); border-radius: 24px !important;
        -webkit-backdrop-filter: var(--glass-panel-blur); backdrop-filter: var(--glass-panel-blur);
        box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28), inset 0 1px 0 var(--glass-shine) !important;
    }
    /* Bezahlleiste als Glaskapsel unten rechts */
    html.gt-glass .gt-paybar {
        border-radius: 999px; background: var(--glass-bg); border: 1px solid var(--glass-edge);
        -webkit-backdrop-filter: blur(26px) saturate(190%); backdrop-filter: blur(26px) saturate(190%);
        box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-shine);
        animation: gt-glass-rise 0.5s var(--glass-spring) both;
    }
    html.gt-glass .gt-paybar-btn { border-radius: 999px; }
    /* Lichtreflex: folgt dem Mauszeiger über Glasflächen */
    html.gt-glass .gt-glass-hl::after {
        content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
        background: radial-gradient(260px circle at var(--gx, -999px) var(--gy, -999px), rgba(255, 255, 255, 0.34), transparent 62%);
        opacity: 0; transition: opacity 0.35s ease;
    }
    html.gt-glass body.dark-mode .gt-glass-hl::after { background: radial-gradient(260px circle at var(--gx, -999px) var(--gy, -999px), rgba(255, 255, 255, 0.1), transparent 62%); }
    html.gt-glass .gt-glass-hl:hover::after { opacity: 1; }
}
/* Kapselknöpfe wie in iOS/macOS 26 (alle Größen) */
html.gt-glass :is(.toolbar-btn, .qs-btn, .gt-btn, .btn, .action-btn, .modal-buttons button, .gt-dialog-footer button, .ex-chip) { border-radius: 999px !important; }
@media (prefers-reduced-transparency: reduce) {
    html.gt-glass :is(.gt-shell-header, .app-header, .gt-staff-topnav, .gt-paybar, #receipt-modal .modal, #product-modal, #details-modal, .modal.active) {
        background: var(--color-bg, #fff) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    }
    html.gt-glass .gt-glass-hl::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html.gt-glass :is(#receipt-modal .modal, #product-modal, #details-modal, .gt-paybar) { animation: none !important; }
    html.gt-glass :is(.gt-shell-nav, .gt-staff-topnav-tabs) > .gt-glass-lens { transition: none !important; }
}

/* ---- Liquid Glass beim Scrollen (Handy): die Reiterleiste wird kompakt (alle Reiter, nur Symbole), die Bezahlleiste
   schrumpft zu einem runden blauen QR-Knopf in derselben Zeile rechts daneben. Hochscrollen klappt alles wieder auf. */
@media (max-width: 1024px) {
    html.gt-glass body.gt-glass-dock { --glass-side: 12px; }
    html.gt-glass body.gt-glass-dock :is(.gt-tabbar, .tabbar) { right: calc(var(--glass-side) + var(--glass-h) + var(--glass-gap)) !important; }
    html.gt-glass body.gt-glass-dock :is(.gt-paybar, .payment-footer) {
        bottom: var(--glass-bottom) !important; left: auto !important; right: var(--glass-side) !important;
        width: var(--glass-h) !important; height: var(--glass-h) !important; min-height: 0 !important; padding: 0 !important; gap: 0 !important;
        border-radius: 999px !important; border: 0 !important; background: var(--color-accent, #2563eb) !important; overflow: hidden;
        box-shadow: 0 10px 26px color-mix(in srgb, var(--color-accent, #2563eb) 40%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
        transition: width 0.45s var(--glass-spring), height 0.45s var(--glass-spring), bottom 0.45s var(--glass-spring), right 0.45s var(--glass-spring), border-radius 0.45s var(--glass-spring);
    }
    html.gt-glass body.gt-glass-dock :is(.gt-paybar-sum, .payment-footer .total-amount) { display: none !important; }
    html.gt-glass body.gt-glass-dock :is(.gt-paybar-btn, .payment-footer .pay-btn) {
        flex: 1 1 auto; width: 100% !important; height: 100% !important; min-height: 0 !important; max-width: none !important; padding: 0 !important; margin: 0 !important;
        border-radius: 999px !important; background: transparent !important; box-shadow: none !important; justify-content: center; font-size: 0 !important; gap: 0 !important;
    }
    html.gt-glass body.gt-glass-dock :is(.gt-paybar-btn, .payment-footer .pay-btn) i { font-size: 1.3rem !important; color: #fff; }
    /* Beschriftung bleibt für Bildschirmleser erhalten */
    html.gt-glass body.gt-glass-dock .payment-footer .pay-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---- Liquid Glass für Formulare (Kundenseiten): Eingaben als Glasfläche mit weichem Leuchten beim Fokus,
   Auswahlkarten wie Glasplättchen, Bezahl-Assistent als Glasblatt. Fehler bleiben deutlich rot. */
html.gt-glass body.gt-shell :is(.form-control, .gt-input, .coupon-input, input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="number"], input[type="date"], select, textarea):not([type="checkbox"]):not([type="radio"]) {
    background: color-mix(in srgb, var(--color-bg, #fff) 72%, transparent) !important;
    border: 1px solid color-mix(in srgb, var(--color-border, #e5e7eb) 80%, transparent) !important; border-radius: 14px !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05) !important;
    transition: border-color 0.25s ease, box-shadow 0.3s var(--glass-spring, ease), background-color 0.25s ease;
}
html.gt-glass body.gt-shell :is(.form-control, .gt-input, .coupon-input, input, select, textarea):focus:not([type="checkbox"]):not([type="radio"]) {
    background: var(--color-bg, #fff) !important; border-color: var(--color-accent, #2563eb) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent, #2563eb) 18%, transparent), 0 6px 18px rgba(15, 23, 42, 0.08) !important;
}
html.gt-glass body.gt-shell :is(.form-control, .gt-input, .coupon-input, input, select, textarea)[aria-invalid="true"]:not([type="checkbox"]):not([type="radio"]):not(#gt-x) {
    border-color: var(--color-error, #dc2626) !important; box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14) !important;
}
html.gt-glass body.gt-shell :is(.radio-option, .design-option, .email-optin.pm-mail-toggle, .donation-option) {
    background: color-mix(in srgb, var(--color-bg, #fff) 62%, transparent) !important; border-radius: 18px !important;
    border-color: color-mix(in srgb, var(--color-border, #e5e7eb) 80%, transparent) !important;
    box-shadow: inset 0 1px 0 var(--glass-shine, rgba(255, 255, 255, 0.7)), 0 2px 8px rgba(15, 23, 42, 0.05);
    transition: scale 0.3s var(--glass-spring, ease), border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.3s ease;
}
html.gt-glass body.gt-shell :is(.radio-option, .design-option):active { scale: 0.97; }
html.gt-glass body.gt-shell :is(.radio-option, .design-option).selected {
    background: color-mix(in srgb, var(--color-accent, #2563eb) 12%, var(--color-bg, #fff)) !important; border-color: var(--color-accent, #2563eb) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent, #2563eb) 16%, transparent), inset 0 1px 0 var(--glass-shine, rgba(255, 255, 255, 0.7));
}
/* Bezahl-Assistent als Glasblatt */
html.gt-glass #payment-modal .modal-content {
    background: var(--glass-panel) !important; border: 1px solid var(--glass-edge) !important;
    -webkit-backdrop-filter: var(--glass-panel-blur); backdrop-filter: var(--glass-panel-blur);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28), inset 0 1px 0 var(--glass-shine) !important;
}
@media (max-width: 600px) { html.gt-glass #payment-modal .modal-content { border-radius: 28px 28px 0 0 !important; animation: gt-glass-sheet 0.5s var(--glass-spring) both; } }
html.gt-glass #payment-modal :is(.step-navigation) { background: transparent !important; }
html.gt-glass #payment-modal .step-indicator { border-radius: 999px; transition: background-color 0.3s ease, scale 0.4s var(--glass-spring); }
html.gt-glass #payment-modal .step-indicator.active { scale: 1 1.4; }
@media (prefers-reduced-transparency: reduce) {
    html.gt-glass #payment-modal .modal-content { background: var(--color-bg, #fff) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* ============================================================ Assistent (Knopf auf jeder Seite + Gesprächsfenster) */
.gt-assist-btn {
    position: fixed; z-index: 46; right: 16px; bottom: calc(62px + 14px + env(safe-area-inset-bottom, 0px));
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; min-width: 52px; padding: 0 16px;
    border-radius: 999px; border: 1px solid var(--color-border, #e5e7eb); background: var(--color-bg, #fff); color: var(--color-accent-text, #1d4ed8);
    font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
    transition: bottom 0.4s cubic-bezier(.2, .8, .2, 1), right 0.4s cubic-bezier(.2, .8, .2, 1), transform 0.2s ease, box-shadow 0.2s ease;
}
.gt-assist-btn i { font-size: 1.15rem; }
.gt-assist-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(15, 23, 42, 0.2); }
@media (max-width: 1024px) {
    .gt-assist-btn { width: 52px; padding: 0; }
    .gt-assist-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    body.gt-has-paybar .gt-assist-btn { bottom: calc(62px + 84px + env(safe-area-inset-bottom, 0px)); }
    body:has(> .tabbar):not(.cart-empty) .gt-assist-btn { bottom: calc(var(--tabbar-height, 62px) + var(--footer-height, 72px) + 14px + env(safe-area-inset-bottom, 0px)); }
    body:has(> .tabbar).cart-empty .gt-assist-btn { bottom: calc(var(--tabbar-height, 62px) + 14px + env(safe-area-inset-bottom, 0px)); }
    body.gt-staff-tabs .gt-assist-btn { bottom: calc(62px + 14px + env(safe-area-inset-bottom, 0px)); }
    /* Bezahl-Assistent und Personal-Blatt offen: nicht im Weg */
    body:has(#payment-modal[style*="block"]) .gt-assist-btn, body:has(.gt-staff-sheet) .gt-assist-btn { display: none; }
    /* beim Scrollen nach unten aus dem Weg (ohne Liquid Glass; dort dockt er an die Reiterleiste) */
    html:not(.gt-glass) body.gt-assist-away .gt-assist-btn { transform: translateX(calc(100% + 24px)); pointer-events: none; }
}
@media (min-width: 1025px) {
    .gt-assist-btn { right: max(24px, calc((100vw - var(--gt-frame, 1240px)) / 2)); bottom: 24px; }
    body.gt-has-paybar .gt-assist-btn { bottom: 108px; }
    body:has(> .tabbar):not(.cart-empty) .gt-assist-btn { bottom: calc(var(--footer-height, 72px) + 16px); }
}
@media print { .gt-assist-btn { display: none !important; } }

dialog.gt-assist { width: min(560px, calc(100vw - 24px)); max-height: min(760px, calc(100dvh - 32px)); display: none; flex-direction: column; padding: 0; }
dialog.gt-assist[open] { display: flex; }
dialog.gt-assist .gt-dialog-header h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; font-size: 1.05rem; }
dialog.gt-assist .gt-dialog-header h3 i { color: var(--color-accent-text); }
dialog.gt-assist .gt-dialog-header h3 small { flex-basis: 100%; font-size: 0.76rem; font-weight: 500; color: var(--color-text-muted); }
dialog.gt-assist .ga-clear { margin-left: auto; margin-right: 4px; width: 34px; height: 34px; border: 0; border-radius: 999px; background: transparent; color: var(--color-text-muted); cursor: pointer; }
dialog.gt-assist .ga-clear:hover { background: var(--color-bg-secondary); color: var(--color-text); }
.ga-chat { flex: 1 1 auto; min-height: 280px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px !important; }
.ga-msg { display: flex; }
.ga-msg.ga-me { justify-content: flex-end; }
.ga-bubble { max-width: 90%; padding: 10px 14px; border-radius: 18px; font-size: 0.92rem; line-height: 1.45; overflow-wrap: anywhere; }
.ga-bot .ga-bubble { background: var(--color-bg-secondary, #f3f4f6); color: var(--color-text); border-bottom-left-radius: 6px; }
.ga-me .ga-bubble { background: var(--color-accent, #2563eb); color: #fff; border-bottom-right-radius: 6px; }
.ga-bubble p { margin: 0 0 6px; }
.ga-bubble p:last-child { margin-bottom: 0; }
.ga-bubble h4 { margin: 0 0 6px; font-size: 0.95rem; }
.ga-bubble a { color: var(--color-accent-text); }
.ga-answer > :last-child { margin-bottom: 0; }
.ga-list { margin: 6px 0; padding-left: 18px; }
.ga-list li { margin: 3px 0; }
.ga-list .ga-r { float: right; margin-left: 8px; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.ga-check { list-style: none; padding-left: 0; }
.ga-check li { display: flex; align-items: center; gap: 8px; }
.ga-check button { width: 28px; height: 28px; border: 0; border-radius: 999px; background: transparent; color: var(--color-text-muted); cursor: pointer; font-size: 1.05rem; }
.ga-check li.ga-done { text-decoration: line-through; color: var(--color-text-muted); }
.ga-hours { padding-left: 0; }
.ga-hours li { display: flex; justify-content: space-between; list-style: none; }
.ga-hours .ga-today { font-weight: 700; }
.ga-ok { color: #15803d; }
.ga-out { color: var(--color-error, #dc2626); }
.ga-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ga-chips button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--color-border, #e5e7eb);
    background: var(--color-bg, #fff); color: var(--color-text); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; text-align: left; }
.ga-chips button i { color: var(--color-accent-text); }
.ga-chips button:hover { border-color: var(--color-accent, #2563eb); }
.ga-chips button:disabled { opacity: 0.5; }
.ga-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; margin: 8px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--color-bg, #fff); border: 1px solid var(--color-border, #e5e7eb); }
.ga-card-main { min-width: 0; display: flex; flex-direction: column; }
.ga-card-main small { color: var(--color-text-muted); font-size: 0.78rem; }
.ga-price { text-align: right; font-variant-numeric: tabular-nums; }
.ga-price s { display: block; color: var(--color-text-muted); font-size: 0.78rem; }
.ga-sale { color: #b91c1c; }
.ga-card-acts { grid-column: 1 / -1; }
.ga-card-acts button { padding: 6px 10px; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--color-accent, #2563eb) 12%, transparent); color: var(--color-accent-text); font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.ga-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ga-kpis div { padding: 8px 10px; border-radius: 12px; background: var(--color-bg, #fff); display: flex; flex-direction: column; }
.ga-kpis small { font-size: 0.72rem; color: var(--color-text-muted); }
.ga-kpis b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.ga-typing .ga-bubble { display: inline-flex; gap: 4px; padding: 12px 14px; }
.ga-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--color-text-muted); animation: ga-dot 1s infinite ease-in-out; }
.ga-typing span:nth-child(2) { animation-delay: 0.15s; }
.ga-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ga-dot { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ga-form { display: flex; gap: 8px; width: 100%; }
.ga-input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--color-border, #e5e7eb); background: var(--color-bg, #fff); color: var(--color-text); font: inherit; font-size: 16px; }
.ga-input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-accent, #2563eb) 16%, transparent); }
.ga-form button { width: 46px; height: 46px; flex: 0 0 auto; border: 0; border-radius: 999px; background: var(--color-accent, #2563eb); color: #fff; cursor: pointer; }
@media (max-width: 600px) {
    dialog.gt-assist { width: 100vw; max-width: 100vw; max-height: 88dvh; margin: auto 0 0 !important; border-radius: 22px 22px 0 0 !important; }
    dialog.gt-assist .gt-dialog-footer { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* Liquid Glass (Handy): vor dem Scrollen eine hervorgehobene Kapsel mit Text über der Reiterleiste,
   beim Scrollen ein kleiner Kreis in derselben Zeile wie die Reiterleiste (wie der Bezahlknopf) – auch beim Personal */
@media (max-width: 1024px) {
    html.gt-glass .gt-assist-btn {
        right: var(--glass-side); bottom: calc(var(--glass-bottom) + var(--glass-h) + var(--glass-gap)); width: auto; height: 46px; padding: 0 16px 0 14px;
        background: color-mix(in srgb, var(--color-accent, #2563eb) 16%, var(--glass-bg)); border: 1px solid var(--glass-edge); color: var(--color-accent-text);
        -webkit-backdrop-filter: blur(24px) saturate(185%); backdrop-filter: blur(24px) saturate(185%); box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-shine);
        transition: bottom 0.45s var(--glass-spring), right 0.45s var(--glass-spring), width 0.45s var(--glass-spring), height 0.45s var(--glass-spring), padding 0.45s var(--glass-spring);
    }
    html.gt-glass .gt-assist-btn span { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: 0.86rem; font-weight: 700; }
    html.gt-glass body.gt-has-paybar .gt-assist-btn, html.gt-glass body:has(> .tabbar):not(.cart-empty) .gt-assist-btn {
        bottom: calc(var(--glass-bottom) + var(--glass-h) * 2 + var(--glass-gap) * 2 + 6px);
    }
    html.gt-glass body.gt-glass-dock .gt-assist-btn { bottom: var(--glass-bottom) !important; right: var(--glass-side); width: var(--glass-h); height: var(--glass-h); padding: 0; }
    html.gt-glass body.gt-glass-dock .gt-assist-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    html.gt-glass body.gt-glass-dock.gt-dock-pay .gt-assist-btn { right: calc(var(--glass-side) + var(--glass-h) + var(--glass-gap)); }
    html.gt-glass body.gt-glass-dock.gt-has-assist.gt-dock-pay :is(.gt-tabbar, .tabbar) { right: calc(var(--glass-side) + (var(--glass-h) + var(--glass-gap)) * 2) !important; }
    html.gt-glass body.gt-glass-dock.gt-has-assist:not(.gt-dock-pay) :is(.gt-tabbar, .tabbar, .gt-staff-tabbar) { right: calc(var(--glass-side) + var(--glass-h) + var(--glass-gap)) !important; }
    /* Personal-Leiste beim Andocken: volle Höhe des Kreises, Abstand links wie rechts */
    html.gt-glass body.gt-glass-dock.gt-has-assist .gt-staff-tabbar { left: var(--glass-side) !important; }
    /* am Handy abgeschaltet: nur über die Übersicht erreichbar */
    html.gt-assist-nofloat .gt-assist-btn { display: none !important; }
}
html.gt-glass dialog.gt-assist[open] { background: var(--glass-panel) !important; border: 1px solid var(--glass-edge) !important;
    -webkit-backdrop-filter: var(--glass-panel-blur); backdrop-filter: var(--glass-panel-blur); }
html.gt-glass dialog.gt-assist .ga-bot .ga-bubble { background: color-mix(in srgb, var(--color-bg, #fff) 70%, transparent); }
@media (min-width: 1025px) {
    html.gt-glass .gt-assist-btn { background: var(--glass-bg); border-color: var(--glass-edge); -webkit-backdrop-filter: blur(24px) saturate(185%); backdrop-filter: blur(24px) saturate(185%); }
}

/* Hilfe-Seite: der Assistent beantwortet nur Fragen – keine Knöpfe, die etwas verändern */
dialog.gt-assist.ga-help :is(.ga-card-acts, .ga-check button) { display: none !important; }

/* Personal: Assistent wählen (Aufgaben, Zahlen, Kundenfragen) und Vorschau vor jeder Änderung */
.ga-modes { display: flex; gap: 4px; padding: 6px 12px 8px; border-bottom: 1px solid var(--color-border, #e5e7eb); }
.ga-modes button { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 10px; border-radius: 999px;
    border: 1px solid transparent; background: transparent; color: var(--color-text-muted); font: inherit; font-size: 0.84rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ga-modes button:hover { background: var(--color-bg-secondary, #f3f4f6); color: var(--color-text); }
.ga-modes button[aria-checked="true"] { background: color-mix(in srgb, var(--color-accent, #2563eb) 12%, transparent); border-color: color-mix(in srgb, var(--color-accent, #2563eb) 35%, transparent); color: var(--color-accent-text); }
@media (max-width: 420px) { .ga-modes button { font-size: 0.78rem; padding: 0 6px; } }
.ga-preview { margin: 4px 0 2px; padding: 10px 12px; border-radius: 14px; background: var(--color-bg, #fff); border: 1px solid color-mix(in srgb, var(--color-accent, #2563eb) 30%, var(--color-border, #e5e7eb)); }
.ga-preview-title { display: block; margin-bottom: 6px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-accent-text); }
.ga-preview dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 0; }
.ga-preview dt { color: var(--color-text-muted); font-size: 0.84rem; }
.ga-preview dd { margin: 0; font-weight: 600; font-size: 0.9rem; overflow-wrap: anywhere; }
.ga-preview code, .ga-bubble code { padding: 1px 6px; border-radius: 6px; background: var(--color-bg-secondary, #f3f4f6); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.86em; }
.ga-note { margin: 8px 0 0 !important; font-size: 0.8rem; color: var(--color-text-muted); }
.ga-note i { color: #b45309; }

/* Computer: Assistent als Knopf in der Kopfzeile (der schwebende Knopf entfällt dort) */
.gt-assist-head { display: none; }
@media (min-width: 1025px) {
    body.gt-has-assist-head .gt-assist-btn { display: none !important; }
    .gt-assist-head { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; }
    .gt-assist-head i { color: var(--color-accent-text); }
    /* Kunden-Kopfzeile: runder Symbolknopf wie „•••“ – der Platz gehört dem Logo und den Reitern */
    .gt-shell-tools .gt-assist-head { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 999px;
        border: 1px solid var(--color-border, #e5e7eb); background: var(--color-bg, #fff); font: inherit; transition: border-color 0.15s ease; }
    .gt-shell-tools .gt-assist-head:hover { border-color: var(--color-accent, #2563eb); }
    .gt-shell-tools .gt-assist-head span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    html.gt-glass .gt-shell-tools .gt-assist-head { background: color-mix(in srgb, var(--color-bg, #fff) 55%, transparent); border-color: var(--glass-edge); }
}

/* Links in Hinweisen in der Akzentfarbe statt Browser-Blau */
.gt-toast-body a { color: var(--color-accent-text); font-weight: 600; text-underline-offset: 2px; }

/* •••-Menü und Punkte-Chip (Handy): Zeilen 44 px statt 64 px (Innenabstand kam zur Mindesthöhe dazu),
   Fokusrahmen innerhalb der Zeile; Punkte als schmale Kapsel statt als hoher Kreis – Tippfläche bleibt 44 px */
.gt-shell-menu a { box-sizing: border-box; }
.gt-shell-menu a:focus-visible { outline-offset: -2px; }
.gt-shell-points { box-sizing: border-box; align-self: center; height: 32px; min-height: 32px !important; position: relative; }
@media (pointer: coarse) { .gt-shell-points::after { content: ""; position: absolute; inset: -6px -2px; } }

/* Installierte iPhone-App: iOS färbt die Statusleiste selbst (theme-color wirkt dort nicht). Eine halbdurchsichtige
   Glas-Kopfzeile nahm darunter die Tönung der Seite an – harte Kante zur Statusleiste. Deshalb deckend in Seitenfarbe,
   die Trennung zum Inhalt macht der Schatten beim Scrollen. */
html.gt-ios-app :is(.gt-shell-header, .app-header, .gt-staff-topnav, body.gt-staff .admin-header) {
    background: var(--color-bg, #fff) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}

/* ---- Live-Ereignisse (gt-core GT.ui.event): nur an freier Stelle (Desktop) bzw. in der Kopfzeile (Handy) */
.gt-ev { pointer-events: auto; position: relative; overflow: hidden; display: flex; gap: 10px; align-items: center; padding: 9px 32px 9px 10px; border-radius: 14px;
    box-sizing: border-box; width: min(300px, calc(100vw - 32px));
    background: var(--color-bg, #fff); color: var(--color-text, #0f172a); border: 1px solid var(--color-border, #e5e7eb); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    font: 500 0.82rem/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; transition: border-color 0.15s, box-shadow 0.15s; }
.gt-ev-float { position: fixed; z-index: 4600; }
.gt-ev-link { cursor: pointer; }
.gt-ev-link:hover, .gt-ev-link:focus-visible { border-color: var(--color-accent, #2563eb); box-shadow: 0 20px 44px rgba(15, 23, 42, 0.22); outline: none; }
.gt-ev-ic { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 10px; font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.gt-ev-green .gt-ev-ic { background: #16a34a; } .gt-ev-red .gt-ev-ic { background: #dc2626; } .gt-ev-amber .gt-ev-ic { background: #d97706; }
.gt-ev-blue .gt-ev-ic { background: #2563eb; } .gt-ev-violet .gt-ev-ic { background: #7c3aed; }
.gt-ev-txt { flex: 1; min-width: 0; }
.gt-ev-txt b { display: block; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-ev-txt small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-text-muted, #64748b); }
.gt-ev-amt { font-weight: 900; white-space: nowrap; }
.gt-ev-more { flex: 0 0 auto; padding: 2px 8px; border-radius: 999px; background: var(--color-bg-secondary, #f1f5f9); color: var(--color-text-muted, #64748b);
    font-size: 0.72rem; font-weight: 800; cursor: pointer; }
.gt-ev-more:hover { color: var(--color-accent-text, #1d4ed8); }
.gt-ev-more[hidden] { display: none; }
.gt-ev-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent;
    color: var(--color-text-muted, #94a3b8); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.gt-ev-x:hover { background: var(--color-bg-secondary, #f1f5f9); color: var(--color-text, #0f172a); }
.gt-ev::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px currentColor; opacity: 0; pointer-events: none; }
.gt-ev-green::after { color: #22c55e; } .gt-ev-red::after { color: #ef4444; } .gt-ev-amber::after { color: #f59e0b; } .gt-ev-blue::after { color: #3b82f6; } .gt-ev-violet::after { color: #8b5cf6; }
/* Handy: in der Kopfzeile anstelle des Seitentitels – die Knöpfe rechts bleiben frei */
.gt-ev.gt-ev-island { position: absolute; left: 8px; top: 7px; bottom: 7px; width: auto; z-index: 5; padding: 0 10px 0 6px; gap: 8px; border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12); font-size: 0.78rem; }
.gt-ev-island .gt-ev-ic { width: 30px; height: 30px; border-radius: 9px; font-size: 0.8rem; }
.gt-ev-island .gt-ev-txt small { font-size: 0.72rem; }
@media (prefers-reduced-motion: no-preference) {
    .gt-ev { animation: gt-ev-in 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.1) both; }
    .gt-ev::after { animation: gt-ev-glow 1.6s ease-out 1; }
    .gt-ev.out { animation: gt-ev-out 0.3s ease both; }
    .gt-ev-island { animation-name: gt-isl-in; }
    @keyframes gt-ev-in { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }
    @keyframes gt-isl-in { from { opacity: 0; transform: translateY(-8px); } }
    @keyframes gt-ev-out { to { opacity: 0; transform: scale(0.97); } }
    @keyframes gt-ev-glow { 0% { opacity: 0.9; } 100% { opacity: 0; } }
}

/* ---- Benachrichtigungszentrale: Glocke mit Zähler, Liste mit Filtern, Einstellungen je Art */
.gt-nc-btn { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; min-height: 0; padding: 0;
    border: 1px solid var(--color-border); border-radius: 10px; background: transparent; color: var(--color-text-muted); cursor: pointer; font-size: 0.9rem; }
.gt-nc-btn:hover, .gt-nc-btn[aria-expanded="true"] { color: var(--color-accent-text, #1d4ed8); border-color: color-mix(in srgb, var(--color-accent, #2563eb) 45%, transparent); }
.gt-nc-btn-m { margin: 0; border-color: transparent; border-radius: 12px; }
.gt-nc-btn-m[aria-expanded="true"] { border-color: transparent; background: color-mix(in srgb, var(--color-accent, #2563eb) 10%, transparent); }
.gt-nc-badge { position: absolute; top: -6px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 999px;
    background: var(--color-error, #dc2626); color: #fff; font: 800 0.64rem/18px system-ui, -apple-system, "Segoe UI", sans-serif; text-align: center;
    box-shadow: 0 0 0 2px var(--color-bg, #fff); pointer-events: none; }
.gt-nc-badge[hidden] { display: none; }
@media (min-width: 1025px) {
    .gt-nc-btn-m { display: none; }
    body.gt-topnav .gt-staff-topnav-tools .gt-nc-btn { width: 40px; height: 40px; border-radius: 999px; background: var(--color-bg); }
    :root body.gt-topnav.gt-staff .gt-staff-topnav-tools .gt-nc-btn { width: 32px; height: 32px; border-radius: var(--tia-r, 4px); }
}
@media (prefers-reduced-motion: no-preference) {
    .gt-nc-bump { animation: gt-nc-bump 0.55s ease 1; }
    @keyframes gt-nc-bump { 25% { transform: rotate(-12deg) scale(1.08); } 55% { transform: rotate(9deg); } 80% { transform: rotate(-4deg); } }
}
.gt-nc { position: fixed; z-index: 4700; width: min(390px, calc(100vw - 16px)); max-height: min(72vh, 600px); display: flex; flex-direction: column; overflow: hidden;
    background: var(--color-bg, #fff); color: var(--color-text, #0f172a); border: 1px solid var(--color-border); border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22); font-size: 0.86rem; animation: gt-me-in 0.16s ease-out; }
.gt-nc.gt-nc-sheet { left: 0; right: 0; bottom: 0; top: auto !important; width: auto; max-height: 86dvh; border: 0; border-radius: 20px 20px 0 0; z-index: 2000;
    padding: 8px 0 env(safe-area-inset-bottom); box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.25); animation: gt-sheet-in 0.2s ease-out; }
.gt-nc-sheet .gt-staff-sheet-grip { margin: 0 auto 4px; flex: 0 0 auto; }
.gt-nc-head { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 12px 10px 10px 16px; }
.gt-nc-head strong { font-size: 1rem; font-weight: 800; }
.gt-nc-new { padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--color-accent, #2563eb) 12%, transparent); color: var(--color-accent-text, #1d4ed8);
    font-size: 0.72rem; font-weight: 800; white-space: nowrap; }
.gt-nc-head > button:first-of-type { margin-left: auto; }
.gt-nc-head button { width: 34px; height: 34px; min-height: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--color-text-muted); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.gt-nc-head button:hover:not(:disabled) { background: var(--color-bg-secondary); color: var(--color-text); }
.gt-nc-head button:disabled { opacity: 0.35; cursor: default; }
.gt-nc-head button[aria-pressed="true"] { background: color-mix(in srgb, var(--color-accent, #2563eb) 12%, transparent); color: var(--color-accent-text, #1d4ed8); }
.gt-nc-chips { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--color-border); }
.gt-nc-chips::-webkit-scrollbar { display: none; }
.gt-nc-sheet .gt-nc-chips { flex-wrap: nowrap; }
.gt-nc-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 30px; min-height: 0; padding: 0 11px; border: 1px solid var(--color-border); border-radius: 999px;
    background: var(--color-bg); color: var(--color-text); font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.gt-nc-chip i { font-size: 0.72rem; color: var(--color-text-muted); }
.gt-nc-chip em { font-style: normal; font-size: 0.7rem; font-weight: 800; color: var(--color-text-muted); }
.gt-nc-chip:hover { border-color: color-mix(in srgb, var(--color-accent, #2563eb) 45%, transparent); }
.gt-nc-chip.on { background: var(--color-accent, #2563eb); border-color: var(--color-accent, #2563eb); color: #fff; }
.gt-nc-chip.on i, .gt-nc-chip.on em { color: inherit; opacity: 0.85; }
.gt-nc-list { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 2px 8px 8px; }
.gt-nc-list h5 { margin: 12px 8px 4px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }
.gt-nc-item { display: flex; align-items: center; gap: 10px; padding: 9px 4px 9px 8px; border-radius: 12px; }
.gt-nc-item.link { cursor: pointer; }
.gt-nc-item:hover, .gt-nc-item:focus-visible { background: var(--color-bg-secondary); outline: none; }
.gt-nc-item:not(.unread) .gt-ev-ic { opacity: 0.5; }
.gt-nc-txt { flex: 1; min-width: 0; line-height: 1.3; }
.gt-nc-txt b { display: block; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-nc-item:not(.unread) .gt-nc-txt b { font-weight: 600; }
.gt-nc-txt small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--color-text-muted); }
.gt-nc-txt time { display: block; margin-top: 2px; font-size: 0.7rem; color: var(--color-text-muted); }
.gt-nc-amt { font-weight: 900; white-space: nowrap; font-size: 0.84rem; }
.gt-nc-dot { flex: 0 0 auto; width: 30px; height: 30px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; }
.gt-nc-dot i { width: 9px; height: 9px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--color-border); }
.gt-nc-item.unread .gt-nc-dot i { background: var(--color-accent, #2563eb); border-color: var(--color-accent, #2563eb); }
.gt-nc-dot:hover { background: var(--color-bg); }
.gt-nc-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 16px; color: var(--color-text-muted); }
.gt-nc-empty i { font-size: 1.6rem; opacity: 0.6; }
.gt-nc-foot { flex: 0 0 auto; display: flex; justify-content: flex-end; padding: 6px 10px; border-top: 1px solid var(--color-border); }
.gt-nc-foot button { display: inline-flex; align-items: center; gap: 6px; height: 32px; min-height: 0; padding: 0 10px; border: 0; border-radius: 8px; background: transparent;
    color: var(--color-text-muted); font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.gt-nc-foot button:hover { background: var(--color-bg-secondary); color: var(--color-error, #dc2626); }
.gt-nc-prefs { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 14px 14px; border-top: 1px solid var(--color-border); }
.gt-nc-prow { display: grid; grid-template-columns: minmax(0, 1fr) 72px 72px; align-items: center; gap: 4px; padding: 9px 2px; border-bottom: 1px solid var(--color-border); }
.gt-nc-prow:last-child { border-bottom: 0; }
.gt-nc-prow > span:first-child { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; }
.gt-nc-prow > span:first-child i { width: 18px; text-align: center; color: var(--color-text-muted); }
.gt-nc-prow > .gt-nc-sw { justify-self: center; }
.gt-nc-phead { padding: 14px 2px 6px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-muted); }
.gt-nc-phead > span { text-align: center; line-height: 1.2; }
.gt-nc-prow.gt-nc-dnd { grid-template-columns: minmax(0, 1fr) auto; margin-top: 10px; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--color-bg-secondary); }
/* feste Größe: die allgemeinen Touch-Mindestmaße für Felder gelten hier nicht (die ganze Zeile ist groß genug) */
.gt-nc .gt-nc-sw { position: relative; display: inline-block; width: 40px !important; height: 24px !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; flex: 0 0 auto; margin: 0 !important; cursor: pointer; }
.gt-nc .gt-nc-sw input { position: absolute; inset: 0; width: 100% !important; height: 100% !important; min-width: 0 !important; min-height: 0 !important; margin: 0; padding: 0; opacity: 0; cursor: pointer; z-index: 1; -webkit-appearance: none; appearance: none; }
.gt-nc-sw span { position: absolute; inset: 0; border-radius: 999px; background: var(--color-border); transition: background 0.15s; pointer-events: none; }
.gt-nc-sw span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25); transition: transform 0.15s; }
.gt-nc-sw input:checked + span { background: var(--color-accent, #2563eb); }
.gt-nc-sw input:checked + span::after { transform: translateX(16px); }
/* Einstellungen → Darstellung → Benachrichtigungen: je Art zwei Schalter */
.gt-nc-set-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px 76px; align-items: center; gap: 6px; padding: 8px 0; border-top: 1px solid var(--color-border); }
.gt-nc-set-row > span:first-child { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; line-height: 1.25; }
.gt-nc-set-row > span:first-child i { width: 18px; text-align: center; color: var(--color-text-muted); }
.gt-nc-set-row > .switch { justify-self: center; }
.gt-nc-set-head { border-top: 0; padding-bottom: 2px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-muted); }
.gt-nc-set-head > span { text-align: center; }
.gt-nc-set-head > span:first-child { justify-content: flex-start; }
.gt-nc-set-open { margin-left: auto; }
@media (max-width: 480px) { .gt-nc-set-row { grid-template-columns: minmax(0, 1fr) 70px 70px; } .gt-nc-set-open span { display: none; } }
.gt-nc-sw input:focus-visible + span { outline: 2px solid var(--color-accent-text, #1d4ed8); outline-offset: 2px; }

/* ---- Abgeschaltete Seite (Einstellungen → Laden → Seiten) */
html.gt-page-off body > *:not(#gt-page-off):not(script) { display: none !important; }
#gt-page-off { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--color-bg-secondary, #f3f4f6); }
.gt-page-off-card { width: min(440px, 100%); padding: 32px 26px; border-radius: 22px; text-align: center; background: var(--color-bg, #fff); color: var(--color-text, #0f172a);
    border: 1px solid var(--color-border, #e5e7eb); box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12); }
.gt-page-off-ic { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 18px; background: color-mix(in srgb, var(--color-accent, #2563eb) 12%, transparent);
    color: var(--color-accent-text, #1d4ed8); font-size: 1.5rem; }
.gt-page-off-card h1 { margin: 16px 0 8px; font-size: 1.35rem; }
.gt-page-off-card p { margin: 0 0 20px; color: var(--color-text-muted, #64748b); line-height: 1.55; }
.gt-page-off-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: 999px; background: var(--color-accent, #2563eb); color: #fff; font-weight: 700; text-decoration: none; }
#gt-page-off-bar { position: relative; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #fef3c7; color: #78350f; font-size: 0.88rem; font-weight: 600; }
#gt-page-off-bar a { margin-left: auto; color: inherit; font-weight: 800; white-space: nowrap; }

/* „Mehr“-Blatt: Kacheln je Gruppe, Spalten nach Anzahl – die letzte Reihe teilt sich die Breite (keine einzelne Kachel) */
.gt-staff-sheet .gt-staff-sheet-grid { display: block !important; }
.gt-staff-sheet-group { --c: 4; display: flex; flex-wrap: wrap; gap: 8px; }
.gt-staff-sheet-group[data-n="1"] { --c: 1; } .gt-staff-sheet-group[data-n="2"] { --c: 2; } .gt-staff-sheet-group[data-n="3"] { --c: 3; }
.gt-staff-sheet-group[data-n="5"], .gt-staff-sheet-group[data-n="6"] { --c: 3; }
.gt-staff-sheet-group > a { flex: 1 1 calc((100% - (var(--c) - 1) * 8px) / var(--c)); }
.gt-staff-sheet-grid > h4:first-child { margin-top: 2px; }
/* offenes Blatt: Live-Hinweise treten zurück */
html:has(.gt-staff-sheet) .gt-ev { display: none; }

/* Links zur Live-Demo: verborgen, solange sie abgeschaltet ist (gt-core prüft am Server) */
[data-demo-link][hidden], [data-demo-alt][hidden] { display: none !important; }

/* ---- Tab angehalten (Live-Demo in einem anderen Tab desselben Browsers) */
#gt-tab-pause { position: fixed; inset: 0; z-index: 6000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.gt-tab-pause-card { width: min(440px, 100%); padding: 28px 24px; border-radius: 20px; text-align: center; background: var(--color-bg, #fff); color: var(--color-text, #0f172a); box-shadow: 0 30px 80px rgba(2, 6, 23, 0.35); }
.gt-tab-pause-ic { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 16px; background: #dbeafe; color: #1d4ed8; font-size: 1.2rem; }
.gt-tab-pause-card h2 { margin: 14px 0 6px; font-size: 1.25rem; }
.gt-tab-pause-card p { margin: 0 0 18px; color: var(--color-text-muted, #64748b); line-height: 1.55; }
/* Beispielprodukte (Grundbestand) */
.pm-sample { background: #fef3c7 !important; color: #92400e !important; border-color: #fde68a !important; }

/* Kopfzeile (Computer): bis 1600 px ohne „Strg K“ im Suchfeld, damit Werkzeuge, Glocke und Konto in einer Zeile bleiben */
@media (min-width: 1025px) and (max-width: 1599px) {
    body.gt-topnav .gt-staff-cmd kbd { display: none !important; }
    body.gt-topnav .gt-staff-cmd span { padding-right: 6px !important; }
}

/* ============================================================ Liquid Glass, Feinschliff (iPhone/iPad-App, html.gt-glass)
   Material mit Lichtkante und Glanz statt flacher Fläche, weiche Übergänge an Kopf- und Reiterleiste
   (Inhalt verschwimmt statt hart abgeschnitten zu werden), Knöpfe der Kopfzeile als Glaskapsel. */
html.gt-glass body {
    --glass-fill: linear-gradient(180deg, color-mix(in srgb, var(--color-bg, #fff) 66%, transparent), color-mix(in srgb, var(--color-bg, #fff) 42%, transparent));
    --glass-filter: blur(22px) saturate(210%) brightness(1.05);
    /* Lichtkante: oben links hell, unten rechts schwach, dazu ein feiner Glanz an der Oberkante */
    --glass-rim: inset 1px 1px 0 rgba(255, 255, 255, 0.85), inset -1px -1px 0 rgba(255, 255, 255, 0.28), inset 0 10px 18px -14px rgba(255, 255, 255, 0.9), inset 0 -12px 20px -18px rgba(15, 23, 42, 0.12);
    --glass-lens-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.18)), color-mix(in srgb, var(--color-accent, #2563eb) 9%, rgba(120, 120, 128, 0.14));
    --glass-fade: color-mix(in srgb, var(--color-bg-secondary, #f3f4f6) 78%, transparent);
}
html.gt-glass body.dark-mode {
    --glass-fill: linear-gradient(180deg, color-mix(in srgb, #2c2c2e 62%, transparent), color-mix(in srgb, #1c1c1e 44%, transparent));
    --glass-filter: blur(22px) saturate(180%) brightness(0.92);
    --glass-rim: inset 1px 1px 0 rgba(255, 255, 255, 0.3), inset -1px -1px 0 rgba(255, 255, 255, 0.08), inset 0 10px 18px -14px rgba(255, 255, 255, 0.28), inset 0 -12px 20px -18px rgba(0, 0, 0, 0.4);
    --glass-lens-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05)), color-mix(in srgb, var(--color-accent, #2563eb) 18%, transparent);
    --glass-fade: color-mix(in srgb, #0b0f17 72%, transparent);
}
html.gt-glass.gt-glass-tinted body { --glass-fill: color-mix(in srgb, var(--color-bg, #fff) 88%, transparent); }
html.gt-glass.gt-glass-tinted body.dark-mode { --glass-fill: color-mix(in srgb, #1c1c1e 88%, transparent); }

@media (max-width: 1024px) {
    /* Material der schwebenden Kapseln */
    html.gt-glass :is(.gt-tabbar, .tabbar, .gt-staff-tabbar, .gt-paybar, .payment-footer) {
        background: var(--glass-fill) !important; border-color: transparent !important;
        -webkit-backdrop-filter: var(--glass-filter) !important; backdrop-filter: var(--glass-filter) !important;
        box-shadow: var(--glass-shadow), var(--glass-rim) !important;
    }
    /* Linse hinter dem aktiven Reiter: heller Tropfen mit Akzent-Schimmer, Symbol in Akzentfarbe */
    html.gt-glass .gt-glass-lens {
        background: var(--glass-lens-fill) !important;
        box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.7), inset -1px -1px 0 rgba(255, 255, 255, 0.2), 0 2px 10px rgba(15, 23, 42, 0.12) !important;
    }
    html.gt-glass body.dark-mode .gt-glass-lens { box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.25), inset -1px -1px 0 rgba(255, 255, 255, 0.06), 0 2px 10px rgba(0, 0, 0, 0.35) !important; }
    html.gt-glass :is(.gt-tabbar, .tabbar, .gt-staff-tabbar) > :is(a, button).active { color: var(--color-accent-text, #1d4ed8) !important; }
    html.gt-glass :is(.gt-tabbar, .tabbar, .gt-staff-tabbar) > :is(a, button):not(.active) { color: color-mix(in srgb, var(--color-text, #0f172a) 72%, transparent) !important; }
    /* Beschriftung unter den Symbolen wie in iOS: klein und kräftig */
    html.gt-glass :is(.gt-tabbar, .tabbar, .gt-staff-tabbar) > :is(a, button) > span:not([class*="badge"]):not(.gt-tab-count) { font-size: 0.66rem !important; font-weight: 650; letter-spacing: 0.01em; }

    /* schwebende Kreise (Assistent) aus demselben Glas */
    html.gt-glass :is(.gt-assist-btn, .ai-toggle, #ai-toggle) {
        background: var(--glass-fill) !important; border-color: transparent !important; color: var(--color-accent-text, #1d4ed8) !important;
        -webkit-backdrop-filter: var(--glass-filter) !important; backdrop-filter: var(--glass-filter) !important;
        box-shadow: var(--glass-shadow), var(--glass-rim) !important;
    }

    /* Kopfzeile: Knöpfe rechts als gemeinsame Glaskapsel (wie die Werkzeugleisten in iOS 26) */
    html.gt-glass .admin-header .header-controls {
        gap: 0 !important; padding: 2px; border-radius: 999px; background: var(--glass-fill);
        -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08), var(--glass-rim);
    }
    html.gt-glass .admin-header .header-controls > :is(button, a) { width: 40px !important; height: 40px !important; min-height: 40px !important; min-width: 40px !important; border-radius: 999px !important; margin: 0 !important; background: transparent !important; border-color: transparent !important; }
    html.gt-glass .admin-header .header-controls > .time-display { display: none !important; }
    html.gt-glass .gt-shell-more-btn {
        border-radius: 999px !important; border-color: transparent !important; background: var(--glass-fill) !important;
        -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08), var(--glass-rim) !important;
    }

    /* Übergang unter der Kopfzeile: Inhalt verschwimmt weich statt an einer harten Linie zu enden */
    html.gt-glass body.gt-glass-scrolled :is(.gt-shell-header, .app-header, .admin-header) { box-shadow: none !important; }
    html.gt-glass :is(.gt-shell-header, .app-header, .admin-header)::after {
        content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 26px; pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
        background: linear-gradient(to bottom, var(--glass-fade), transparent);
        -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
        -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent);
    }
    html.gt-glass body.gt-glass-scrolled :is(.gt-shell-header, .app-header, .admin-header)::after { opacity: 1; }
    /* … und am unteren Rand hinter der schwebenden Reiterleiste */
    html.gt-glass:has(body :is(.gt-tabbar, .tabbar, .gt-staff-tabbar))::after {
        content: ""; position: fixed; left: 0; right: 0; bottom: 0; z-index: 43; pointer-events: none;
        height: calc(var(--glass-h-full, 62px) + env(safe-area-inset-bottom, 0px) + 34px);
        background: linear-gradient(to top, var(--glass-fade) 30%, transparent);
        -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
        -webkit-mask-image: linear-gradient(to top, #000 45%, transparent); mask-image: linear-gradient(to top, #000 45%, transparent);
    }

    /* Einladung zum Rundgang als Glaskapsel über der Leiste */
    html.gt-glass .gt-tour-offer {
        bottom: calc(var(--glass-h-full, 62px) + var(--glass-bottom) + var(--glass-gap) + 6px) !important; border-radius: 24px !important; border-color: transparent !important;
        background: var(--glass-panel) !important; -webkit-backdrop-filter: var(--glass-panel-blur); backdrop-filter: var(--glass-panel-blur);
        box-shadow: var(--glass-shadow), var(--glass-rim) !important; animation: gt-glass-pop 0.45s var(--glass-spring) both;
    }
    html.gt-glass .gt-tour-offer :is(button, .gt-btn) { border-radius: 999px !important; }

    /* Benachrichtigungen: Blatt schwebt mit Abstand, Hinweis in der Kopfzeile als Glastropfen */
    html.gt-glass .gt-nc.gt-nc-sheet {
        left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); border-radius: 28px; padding-bottom: 6px;
        background: var(--glass-panel); -webkit-backdrop-filter: var(--glass-panel-blur); backdrop-filter: var(--glass-panel-blur);
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28), var(--glass-rim); animation: gt-glass-sheet 0.5s var(--glass-spring) both;
    }
    html.gt-glass .gt-nc-shade { background: rgba(15, 23, 42, 0.28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
    html.gt-glass .gt-nc-chip:not(.on) { background: color-mix(in srgb, var(--color-bg, #fff) 55%, transparent); }
    html.gt-glass .gt-ev.gt-ev-island {
        border-color: transparent; background: var(--glass-panel);
        -webkit-backdrop-filter: var(--glass-panel-blur); backdrop-filter: var(--glass-panel-blur);
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14), var(--glass-rim); animation: gt-glass-pop 0.45s var(--glass-spring) both;
    }
    html.gt-glass .gt-ev.gt-ev-island::after { display: none; }
    /* „Mehr“-Blatt mit derselben Lichtkante */
    html.gt-glass .gt-staff-sheet { border-color: transparent; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28), var(--glass-rim); }
}
@media (prefers-reduced-transparency: reduce) {
    html.gt-glass :is(.gt-tabbar, .tabbar, .gt-staff-tabbar, .gt-paybar, .payment-footer, .gt-assist-btn, .ai-toggle, #ai-toggle, .gt-shell-more-btn, .gt-tour-offer, .gt-nc-sheet, .gt-ev-island),
    html.gt-glass .admin-header .header-controls {
        background: var(--color-bg, #fff) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    }
    html.gt-glass::after, html.gt-glass :is(.gt-shell-header, .app-header, .admin-header)::after { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    html.gt-glass :is(.gt-tour-offer, .gt-nc-sheet, .gt-ev-island) { animation: none !important; }
}

/* ---- Liquid Glass für alle Fenster: Dialoge, Seitenfenster (.modal), Bestätigungen, Befehlspalette, Demo-Fenster
   Schwebendes Glasblatt mit Abstand zum Rand, Lichtkante, weichgezeichneter Hintergrund; Kopf und Fuß aus Glas */
@media (max-width: 1024px) {
    html.gt-glass :is(.modal-overlay.active > .modal, .gt-glass-box, dialog[open], .gt-tab-pause-card, .gtd-dlg[open]) {
        background: var(--glass-panel) !important; border-color: transparent !important;
        -webkit-backdrop-filter: var(--glass-panel-blur) !important; backdrop-filter: var(--glass-panel-blur) !important;
        box-shadow: 0 28px 70px rgba(15, 23, 42, 0.3), var(--glass-rim) !important;
        border-radius: 28px !important;
    }
    html.gt-glass :is(.modal-overlay.active > .modal, .gt-glass-box, dialog[open]:not(.gt-dialog)) { animation: gt-glass-pop 0.42s var(--glass-spring) both !important; }
    html.gt-glass body.dark-mode :is(.modal-overlay.active > .modal, .gt-glass-box, dialog[open], .gt-tab-pause-card) { box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), var(--glass-rim) !important; }
    /* Blätter von unten schweben mit Abstand (statt am Rand anzuliegen) */
    html.gt-glass .modal-overlay.active { padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)) !important; }
    html.gt-glass .modal-overlay.active > .modal { border-bottom: 0; }
    /* Hintergrund hinter dem Fenster: abgedunkelt und weichgezeichnet */
    html.gt-glass :is(.modal-overlay.active, #modal-overlay.active, .gt-tab-pause, #gt-tab-pause) {
        background: rgba(15, 23, 42, 0.3) !important; -webkit-backdrop-filter: blur(6px) saturate(140%); backdrop-filter: blur(6px) saturate(140%);
    }
    /* Kasten über die volle Breite bzw. bis an den unteren Rand: mit Abstand schweben (Ränder wirken auch bei fester Lage) */
    html.gt-glass .gt-glass-box.gt-glass-edge { width: calc(100vw - 16px) !important; max-width: calc(100vw - 16px) !important; margin-left: 8px !important; margin-right: 8px !important; }
    /* Seiten mit eigenen, stärkeren Blatt-Regeln (Kasse: Bestätigen, Kunde: Bezahlen) */
    html.gt-glass body #confirmation-modal.active { padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)) !important; }
    html.gt-glass body #payment-modal .modal-content.gt-glass-box { width: calc(100% - 16px) !important; max-width: calc(100% - 16px) !important;
        margin: 0 8px calc(8px + env(safe-area-inset-bottom, 0px)) !important; border-radius: 28px !important; }
    html.gt-glass .gt-glass-box.gt-glass-low { margin-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important; }
    html.gt-glass .modal.gt-glass-scrim { background: rgba(15, 23, 42, 0.3) !important; -webkit-backdrop-filter: blur(6px) saturate(140%); backdrop-filter: blur(6px) saturate(140%); }
    /* Blätter von unten (eigene Seitenregeln) schweben ebenfalls mit 8 px Abstand */
    html.gt-glass body :is(#product-modal, #details-modal).active {
        left: 8px !important; width: calc(100vw - 16px) !important; bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important; border-radius: 28px !important;
        max-height: calc(92dvh - env(safe-area-inset-top, 0px) - 16px) !important;
    }
    html.gt-glass :is(dialog.gt-dialog, dialog.gt-pass, dialog.gt-assist)[open] {
        width: calc(100vw - 16px) !important; max-width: calc(100vw - 16px) !important; margin: auto auto calc(8px + env(safe-area-inset-bottom, 0px)) !important; border-radius: 28px !important;
    }
    html.gt-glass .gt-fpanel.gt-fsheet { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); border-radius: 28px; background: var(--glass-panel);
        -webkit-backdrop-filter: var(--glass-panel-blur); backdrop-filter: var(--glass-panel-blur); box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28), var(--glass-rim); }
    html.gt-glass dialog.gt-cmd[open] { border-radius: 0 !important; margin: 0 !important; box-shadow: none !important; animation: none !important; }
    html.gt-glass dialog::backdrop { background: rgba(15, 23, 42, 0.3); -webkit-backdrop-filter: blur(6px) saturate(140%); backdrop-filter: blur(6px) saturate(140%); }
    /* Kopf, Fuß und feste Knopfleisten gehören zum Glas (keine deckenden Balken) */
    html.gt-glass :is(.modal, dialog) :is(.modal-header, .modal-footer, .gt-dialog-header, .gt-dialog-footer) {
        background: transparent !important; border-color: color-mix(in srgb, var(--color-border, #e5e7eb) 55%, transparent) !important;
    }
    html.gt-glass .modal > .modal-header ~ .modal-content > .modal-buttons,
    html.gt-glass :is(.modal, dialog) .modal-buttons {
        background: linear-gradient(to bottom, transparent, var(--glass-panel) 40%) !important;
        -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    }
    html.gt-glass :is(.modal, dialog) .modal-content { background: transparent !important; }
    /* Felder und Kacheln im Fenster: halbdurchsichtig, damit das Glas durchscheint */
    html.gt-glass :is(.modal, dialog) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea, .form-input) {
        background: color-mix(in srgb, var(--color-bg, #fff) 70%, transparent) !important; border-color: color-mix(in srgb, var(--color-border, #e5e7eb) 70%, transparent) !important;
    }
    html.gt-glass :is(.modal, dialog) :is(.btn, .gt-btn, button.primary, button.secondary):not(.close-modal):not(.gt-dialog-close) { border-radius: 999px !important; }
    html.gt-glass :is(.modal, dialog) :is(.close-modal, .gt-dialog-close, [data-x="close"]) {
        border-radius: 999px !important; background: color-mix(in srgb, var(--color-bg, #fff) 55%, transparent) !important;
        box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.6), 0 1px 4px rgba(15, 23, 42, 0.08);
    }
    /* Kopfzeile beim Scrollen durchsichtiger, der weiche Übergang etwas länger */
    html.gt-glass body.gt-glass-scrolled :is(.gt-shell-header, .app-header, .admin-header) { background: var(--glass-fill) !important; -webkit-backdrop-filter: var(--glass-filter) !important; backdrop-filter: var(--glass-filter) !important; }
    html.gt-glass :is(.gt-shell-header, .app-header, .admin-header)::after { height: 34px; }
}
@media (prefers-reduced-transparency: reduce) {
    html.gt-glass :is(.modal-overlay.active > .modal, .gt-glass-box, dialog[open], .gt-tab-pause-card) {
        background: var(--color-bg, #fff) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    html.gt-glass :is(.modal-overlay.active > .modal, .gt-glass-box, dialog[open]) { animation: none !important; }
}

/* ---- Installierte iPhone-App: nahtloser Übergang zur Statusleiste (Uhrzeit)
   iOS zeichnet die Statusleiste selbst deckend in Seitenfarbe. Die Kopfzeile bleibt deshalb auch beim Scrollen
   deckend in genau dieser Farbe (kein Glas, das an der Uhrzeit eine Kante bildet); der Übergang zum Inhalt
   läuft als weicher Verlauf unter der Kopfzeile. Beim Überziehen oben (Gummiband) füllt dieselbe Farbe die Lücke. */
html.gt-ios-app body { --glass-head-fade: color-mix(in srgb, var(--color-bg, #fff) 88%, transparent); }
html.gt-ios-app.gt-glass body.gt-glass-scrolled :is(.gt-shell-header, .app-header, .admin-header) {
    background: var(--color-bg, #fff) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html.gt-ios-app :is(.gt-shell-header, .app-header, body.gt-staff .admin-header)::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 400px; background: var(--color-bg, #fff); pointer-events: none;
}
html.gt-ios-app.gt-glass :is(.gt-shell-header, .app-header, .admin-header)::after {
    background: linear-gradient(to bottom, var(--glass-head-fade), transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

/* ---- Fenster: lesbarer (weniger Seite scheint durch), Knopfleisten mit Abstand, keine deckenden Balken */
html.gt-glass body { --glass-modal: color-mix(in srgb, var(--color-bg, #fff) 90%, transparent); }
html.gt-glass body.dark-mode { --glass-modal: color-mix(in srgb, #1c1c1e 90%, transparent); }
@media (max-width: 1024px) {
    html.gt-glass :is(.modal-overlay.active > .modal, .gt-glass-box, dialog[open]) { background: var(--glass-modal) !important; }
    html.gt-glass :is(.modal-overlay.active > .modal, .gt-glass-box) > :is(.modal-buttons, .modal-actions, [class$="-foot"], [class$="-footer"], [class$="-head"], [class$="-header"]) {
        background: transparent !important; border-color: color-mix(in srgb, var(--color-border, #e5e7eb) 55%, transparent) !important;
    }
    html.gt-glass .gt-glass-box > :is(.modal-buttons, .modal-actions) { padding: 12px 16px 16px !important; margin: 0 !important; }
    /* nur die am Fensterboden klebende Leiste (Fenster mit Kopf) bekommt einen weichen Glasverlauf */
    html.gt-glass :is(.modal, dialog) .modal-buttons { background: transparent !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
    html.gt-glass .modal > .modal-header ~ .modal-content > .modal-buttons {
        background: linear-gradient(to bottom, transparent, var(--glass-modal) 40%) !important;
        -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    }
}

/* Farbstreifen links an gerundeten Kästen: als gerader Streifen innen statt als dicker linker Rand,
   der sich an den Ecken mitbiegt (Lagerwarnungen, Zahlungsarten, Notizen, Aktivitäten) */
body :is(.alert-item, .payment-card, .note-section, .activity-entry) { position: relative; border-left-width: 0 !important; padding-left: calc(var(--spacing-md, 16px) + 8px) !important; }
body :is(.alert-item, .payment-card, .note-section, .activity-entry)::before {
    content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--gt-stripe, var(--color-accent, #2563eb)); pointer-events: none;
}
body :is(.alert-item, .note-section) { --gt-stripe: var(--color-warning, #d97706); }
body .payment-card.loyalty { --gt-stripe: var(--color-loyalty); } body .payment-card.delivery { --gt-stripe: var(--color-delivery); }
body .payment-card.bagging { --gt-stripe: var(--color-bagging); } body .payment-card.donation { --gt-stripe: var(--color-donation); }
body .payment-card.premium { --gt-stripe: var(--color-premium); }

/* ---- Offline-Hinweis in der Kopfzeile (statt schwebender Blase, wo es eine Kopfzeile gibt) */
body #gt-offline.gt-off-chip {
    position: relative !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; transform: none !important;
    max-width: none !important; width: auto !important; height: 30px !important; min-height: 0 !important; min-width: 0 !important; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
    margin: 0 6px 0 0; padding: 0 11px 0 9px !important; border: 1px solid #fcd34d; border-radius: 999px !important; z-index: auto;
    background: #fef3c7; color: #92400e; box-shadow: none; font: 700 0.76rem/1 system-ui, -apple-system, "Segoe UI", sans-serif; white-space: nowrap; cursor: pointer;
    animation: gt-off-chip-in 0.25s ease both;
}
body #gt-offline.gt-off-chip strong { color: inherit; font-weight: 800; }
body #gt-offline.gt-off-chip .gt-offline-dot { width: 7px; height: 7px; background: #d97706; animation: none; box-shadow: none; }
body.dark-mode #gt-offline.gt-off-chip { background: rgba(245, 158, 11, 0.16); border-color: rgba(245, 158, 11, 0.45); color: #fcd34d; }
body #gt-offline.gt-off-chip.back { background: #dcfce7; border-color: #86efac; color: #166534; }
body.dark-mode #gt-offline.gt-off-chip.back { background: rgba(34, 197, 94, 0.16); border-color: rgba(34, 197, 94, 0.45); color: #86efac; }
body #gt-offline.gt-off-chip.out { opacity: 0; transition: opacity 0.2s; }
.gt-off-pop { display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 70; width: max-content; max-width: min(260px, calc(100vw - 24px));
    padding: 10px 12px; border-radius: 12px; border: 1px solid var(--color-border, #e5e7eb); background: var(--color-bg, #fff); color: var(--color-text, #0f172a);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18); font: 500 0.8rem/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; white-space: normal; text-align: left; cursor: default; }
#gt-offline.gt-off-chip.open .gt-off-pop { display: block; }
.admin-header #gt-offline.gt-off-chip { margin-left: auto; }
.admin-header #gt-offline.gt-off-chip .gt-off-pop { right: -60px; }
@keyframes gt-off-chip-in { from { opacity: 0; scale: 0.9; } to { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) { body #gt-offline.gt-off-chip { animation: none; } }
/* Kundenseiten am Computer: solange die Anzeige da ist, rückt die Navigation enger zusammen (nichts wird abgeschnitten) */
@media (min-width: 1024px) {
    .app-header:has(.gt-off-chip) .desk-nav { gap: 2px !important; }
    .app-header:has(.gt-off-chip) .desk-nav a { padding-left: 9px !important; padding-right: 9px !important; gap: 6px !important; }
}
@media (min-width: 1024px) and (max-width: 1360px) { .app-header:has(.gt-off-chip) .desk-nav a i { display: none; } }
/* schmale Computer (1024–1180 px) auf der Startseite: Anzeige nur als Punkt, Erklärung beim Antippen */
@media (min-width: 1024px) and (max-width: 1180px) {
    .app-header #gt-offline.gt-off-chip:not(.back) { padding: 0 !important; width: 30px !important; justify-content: center; }
    .app-header #gt-offline.gt-off-chip:not(.back) > strong { display: none; }
}

/* ---- Hinweise (GT.ui.toast) am Handy: kompakt, Text und Schließen mittig, Fortschritt als feine Linie innen
   (nicht von der Rundung abgeschnitten), höchstens zwei übereinander – ältere treten zurück */
@media (max-width: 1023px) {
    body .gt-toast { align-items: center; gap: 10px; padding: 9px 6px 11px 14px; border-radius: 18px; font-size: 0.88rem; line-height: 1.35; }
    html.gt-glass body .gt-toast { border-radius: 20px; }
    body .gt-toast-ic { margin-top: 0; }
    body .gt-toast-close { min-width: 36px !important; min-height: 36px !important; width: 36px; height: 36px; margin: -4px 0 !important; padding: 0 !important; border-radius: 999px; }
    body .gt-toast-bar { left: 16px; right: 16px; width: auto; bottom: 4px; height: 2.5px; border-radius: 2px; }
    #gt-toasts { gap: 6px; }
    #gt-toasts > .gt-toast:not(:nth-last-child(-n+2)) { display: none; }
}

/* ---- Installierte iPhone-App: Kopfzeile als Verlauf von deckend (an der Uhrzeit, wie die Statusleiste) zu Glas
   (unten scheint der Inhalt weichgezeichnet durch); darunter verschwimmt der Inhalt ohne hellen Schleier –
   auch über farbigen Flächen (z. B. dem blauen Kopf der Seite für Märkte) */
html.gt-ios-app.gt-glass body.gt-glass-scrolled :is(.gt-shell-header, .app-header, .admin-header) {
    background: linear-gradient(to bottom, var(--color-bg, #fff) 0%, var(--color-bg, #fff) 24%, color-mix(in srgb, var(--color-bg, #fff) 70%, transparent) 100%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(170%) !important; backdrop-filter: blur(20px) saturate(170%) !important;
}
html.gt-ios-app.gt-glass :is(.gt-shell-header, .app-header, .admin-header)::after {
    height: 22px; background: linear-gradient(to bottom, color-mix(in srgb, var(--color-bg, #fff) 22%, transparent), transparent) !important;
    -webkit-backdrop-filter: blur(7px) saturate(150%); backdrop-filter: blur(7px) saturate(150%);
}

/* ---- Suche (Befehlspalette) am Handy: Suchfeld als ruhige Kapsel ohne eckigen Fokusrahmen, ganze Fläche ohne
   gerundete Ecken (die Glas-Regel für Fenster gilt hier nicht), Platzhalter kürzer */
@media (max-width: 1024px) {
    html body dialog.gt-cmd.gt-cmd[open], html.gt-glass body dialog.gt-cmd.gt-cmd[open] { border-radius: 0 !important; margin: 0 !important; box-shadow: none !important; }
    .gt-cmd-input { gap: 10px; }
    .gt-cmd-input > i { position: absolute; margin-left: 13px; pointer-events: none; z-index: 1; }
    .gt-cmd-input input { height: 42px; padding: 0 12px 0 38px !important; border-radius: 14px !important; background: var(--color-bg-secondary, #f1f5f9) !important;
        border: 1px solid transparent !important; outline: none !important; box-shadow: none !important; -webkit-appearance: none; appearance: none; }
    .gt-cmd-input input:focus, .gt-cmd-input input:focus-visible { outline: none !important; border-color: color-mix(in srgb, var(--color-accent, #2563eb) 45%, transparent) !important;
        background: var(--color-bg, #fff) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent, #2563eb) 14%, transparent) !important; }
    html.gt-glass .gt-cmd-input input { background: color-mix(in srgb, var(--color-text, #0f172a) 7%, transparent) !important; }
    .gt-cmd-close { flex: 0 0 auto; padding: 8px 2px !important; min-height: 0 !important; }
}

/* Links auf abschaltbare Seiten (gt-core pageLinks) */
[data-page-link][hidden] { display: none !important; }

/* ---- Liquid Glass: Übergang unter der Kopfzeile ohne erkennbare Kante
   Oben auf der Seite ist nichts zu sehen; beim Scrollen blendet ein weicher, weichgezeichneter Verlauf stufenlos ein
   (--gt-sp 0…1 aus gt-core), der Inhalt verschwindet sanft statt an einer Linie */
@media (max-width: 1024px) {
    html.gt-glass :is(.gt-shell-header, .app-header, .admin-header)::after {
        height: 38px !important; opacity: var(--gt-sp, 0) !important; transition: none !important;
        background: linear-gradient(to bottom, var(--gt-page-bg, var(--color-bg, #fff)) 0%, color-mix(in srgb, var(--gt-page-bg, var(--color-bg, #fff)) 55%, transparent) 40%, transparent 100%) !important;
        -webkit-backdrop-filter: blur(8px) !important; backdrop-filter: blur(8px) !important;
        -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 100%) !important; mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 100%) !important;
    }
    html.gt-glass body.gt-glass-scrolled :is(.gt-shell-header, .app-header, .admin-header) { box-shadow: none !important; border-bottom-color: transparent !important; }
}
/* installierte iPhone-App: Kopfzeile deckend und nach unten genau in die Farbe der Seite verlaufend – an der Uhrzeit
   wie die Statusleiste, unten ohne Kante zum Inhalt */
html.gt-ios-app.gt-glass body :is(.gt-shell-header, .app-header, .admin-header),
html.gt-ios-app.gt-glass body.gt-glass-scrolled :is(.gt-shell-header, .app-header, .admin-header) {
    background: linear-gradient(to bottom, var(--color-bg, #fff) 0%, var(--color-bg, #fff) 35%, var(--gt-page-bg, var(--color-bg, #fff)) 100%) !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; border-bottom-color: transparent !important;
}

/* Demo am Handy: die Fläche über der Kopfzeile (Nachfedern oben) würde das Demo-Band überdecken; die Anzeige
   offener Hilferufe sitzt unter der um das Band tiefer stehenden Kopfzeile statt in ihren Knöpfen */
html.gt-demo :is(.gt-shell-header, .app-header, .admin-header)::before { display: none !important; }
@media (max-width: 1023px) {
    html.gt-demo body:has(.gtd-band) #gt-help { top: calc(104px + env(safe-area-inset-top, 0px)); }
}
/* Demo am Handy: Assistent-Knopf über der Demo-Leiste statt halb dahinter */
@media (max-width: 1024px) {
    html.gt-demo body .gt-assist-btn, html.gt-demo body :is(.ai-toggle, #ai-toggle) { bottom: calc(var(--glass-h-full, 62px) + 26px + 60px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ---- Liquid Glass am Handy: Übergang zur Kopfzeile (und weiter zur Uhrzeit) – milchig statt verschwommen.
   Inhalt, der unter die Kopfzeile wandert, wird nach oben hin immer milchiger und ist an der Oberkante ganz weiß
   (bzw. dunkel) wie die Statusleiste; kein Weichzeichnen, keine Linie. Darunter beginnt die Milchigkeit stufenlos,
   sie blendet erst mit dem Scrollen ein (--gt-sp). */
@media (max-width: 1024px) {
    html.gt-glass.gt-glass.gt-glass body :is(.gt-shell-header, .app-header, .admin-header) {
        background: linear-gradient(to bottom, var(--color-bg, #fff) 0%, var(--color-bg, #fff) 22%,
            color-mix(in srgb, var(--color-bg, #fff) 86%, transparent) 55%, color-mix(in srgb, var(--color-bg, #fff) 64%, transparent) 100%) !important;
        -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; border-bottom-color: transparent !important;
    }
    html.gt-glass.gt-glass.gt-glass body :is(.gt-shell-header, .app-header, .admin-header)::after {
        height: 46px !important; opacity: var(--gt-sp, 0) !important; transition: none !important;
        background: linear-gradient(to bottom, color-mix(in srgb, var(--color-bg, #fff) 64%, transparent) 0%, color-mix(in srgb, var(--color-bg, #fff) 30%, transparent) 45%, transparent 100%) !important;
        -webkit-backdrop-filter: none !important; backdrop-filter: none !important; -webkit-mask-image: none !important; mask-image: none !important;
    }
}

/* Offene Hilferufe am Handy: kompakt in der Kopfzeile (gt-core), die Liste klappt darunter auf – nichts schwebt über dem Inhalt */
body #gt-help.gt-help-in-head { position: relative !important; top: auto !important; right: auto !important; z-index: 6; flex: 0 0 auto; margin: 0 6px 0 auto; display: block; max-width: none; }
body #gt-help.gt-help-in-head[hidden] { display: none; }
#gt-help.gt-help-in-head .gt-help-pill { min-height: 0 !important; height: 32px; padding: 0 10px; gap: 5px; font-size: 0.78rem; box-shadow: none; white-space: nowrap; }
#gt-help.gt-help-in-head .gt-help-list { position: absolute; top: calc(100% + 10px); right: -120px; width: min(340px, calc(100vw - 24px)); }
.admin-header:has(#gt-help.gt-help-in-head:not([hidden])) #gt-offline.gt-off-chip { margin-left: 0; }

/* Demo-Fenster: feste Knopfleiste unten über die ganze Breite, oben weich auslaufend statt weißem Kasten mit Kante */
dialog.gtd-dlg .gtd-dlg-btns { margin-left: -26px !important; margin-right: -26px !important; padding: 22px 26px 4px !important;
    background: linear-gradient(to bottom, transparent 0, var(--color-bg, #fff) 22px) !important; }
html.gt-glass dialog.gtd-dlg .gtd-dlg-btns { background: linear-gradient(to bottom, transparent 0, var(--glass-modal, var(--color-bg, #fff)) 22px) !important; }
/* Demo am Handy: Seite endet über der Demo-Leiste (sonst liegt das Letzte, z. B. „Antworten“, darunter) */
@media (max-width: 1024px) {
    html.gt-demo body.gt-staff-tabs, html.gt-demo.gt-glass body.gt-staff-tabs { padding-bottom: calc(var(--glass-h-full, 62px) + env(safe-area-inset-bottom, 0px) + 96px) !important; }
}
/* kein Rand unter der Kopfzeile: ein (auch durchsichtiger) 1-px-Rand ließ zwischen Kopfzeile und Verlauf eine feine Linie Inhalt durchblitzen */
@media (max-width: 1024px) {
    html.gt-glass.gt-glass.gt-glass body :is(.gt-shell-header, .app-header, .admin-header) { border-bottom: 0 !important; border-top: 0 !important; }
    html.gt-glass.gt-glass.gt-glass body :is(.gt-shell-header, .app-header, .admin-header)::after { top: 100% !important; margin-top: -0.5px; }
}

/* Knöpfe in Hinweisen (z. B. „Jetzt ergänzen“): kleine Kapsel in der Zeile statt großem Touch-Knopf darunter */
:root:root body #gt-toasts .gt-toast-body :is(button, a.btn, a.gt-btn, .toolbar-btn) {
    min-height: 0 !important; min-width: 0 !important; height: 28px; padding: 0 12px !important; margin: 0 0 0 6px !important; vertical-align: middle;
    display: inline-flex; align-items: center; border-radius: 999px !important; border: 0 !important; box-shadow: none !important;
    background: color-mix(in srgb, var(--gt-toast-c, var(--color-accent, #2563eb)) 14%, transparent) !important; color: var(--color-text) !important;
    font: inherit; font-size: 0.8rem !important; font-weight: 700; white-space: nowrap; cursor: pointer;
}
/* Hinweis mit Knopf: Text links, Knopf rechts in derselben Zeile */
#gt-toasts .gt-toast-body:has(> :is(button, a.btn, a.gt-btn, .toolbar-btn)) { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
:root:root body #gt-toasts .gt-toast-body > :is(button, a.btn, a.gt-btn, .toolbar-btn) { flex: 0 0 auto; margin: 0 0 0 auto !important; }

/* Hinweise mit Knopf einheitlich (wie „Jetzt ergänzen“): Text links, kleine Kapsel rechts in derselben Zeile –
   Demo-Hinweise auf den Seiten, Hinweis „Seite abgeschaltet“ */
:root:root body .gtd-lockbar { flex-wrap: nowrap !important; align-items: center; gap: 12px; }
:root:root body .gtd-lockbar > span { flex: 1 1 auto !important; min-width: 0; }
/* höhere Gewichtung als die allgemeine 44-px-Regel für Touch-Geräte */
:root:root:root:root:root:root body .gtd-lockbar.gtd-lockbar.gtd-lockbar > :is(button, a) { flex: 0 0 auto; min-height: 0 !important; min-width: 0 !important; height: 32px; padding: 0 14px !important; margin: 0 0 0 auto !important;
    border-radius: 999px !important; font-size: 0.82rem !important; white-space: nowrap; }
:root:root body #gt-page-off-bar > a { flex: 0 0 auto; padding: 5px 12px; border-radius: 999px; background: rgba(120, 53, 15, 0.12); text-decoration: none; font-size: 0.82rem; }

/* Rundgang am Handy: schwebende Karte mit Abstand zum Rand (runde Ecken, über dem Demo-Rahmen),
   unten über der Leiste von Safari bzw. dem Home-Balken, oben unter der Uhrzeit */
@media (max-width: 640px) {
    :root body .gt-tour { left: 8px !important; right: 8px; width: calc(100vw - 16px) !important; transform: none !important;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px)); border-radius: 22px !important; padding-bottom: 0 !important; z-index: 4500;
        box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28); }
    :root body .gt-tour.gt-tour-top { top: calc(8px + env(safe-area-inset-top, 0px)); bottom: auto; padding-top: 0 !important; border-radius: 22px !important; }
    :root body .gt-tour :is(button, .gt-btn):focus:not(:focus-visible) { outline: none; box-shadow: none; }
}
/* Rundgang-Einladung auf den übrigen Seiten: Knöpfe rechts */
@media (max-width: 480px) { .gt-tour-offer .gt-tour-offer-go { margin-left: auto; } }
/* Rundgang-Fenster: Weiter/Fertig stehen rechts (Punkte links) */
.gt-tour .gt-tour-nav { margin-left: auto; }
/* Demo am Handy: kein Rahmen um den Bildschirm – Safari zeigt unter seiner Adressleiste noch Seite, der Rahmen endete
   dann mitten im Bild. Kennzeichen sind dort Band und „Demo“-Abzeichen in der Kopfzeile */
@media (max-width: 1024px) { html.gt-demo body::after { display: none !important; } }
