body { 
            background-color: #f9fafb; 
            color: #111827; 
            -webkit-tap-highlight-color: transparent; 
            transition: background-color 0.3s ease, color 0.3s ease;
        } 
        .dark body {
            background-color: #000000; 
            color: #ededed;
        }
        [x-cloak] { display: none !important; } 
        
        ::-webkit-scrollbar { width: 6px; height: 6px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 10px; }
        .dark ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); }
        ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }
        .dark ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }
        .no-scrollbar::-webkit-scrollbar { display: none; }
        .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
        
        input:not([type="checkbox"]):not([type="radio"]), textarea, select { 
            font-family: 'Inter', sans-serif;
            font-size: 14px !important; 
            background: #ffffff; 
            border: 1px solid #d1d5db; 
            color: #111827; 
            border-radius: 1rem; 
            padding: 0.875rem 1rem; 
            width: 100%; 
            transition: all 0.3s ease; 
        } 
        .dark input:not([type="checkbox"]):not([type="radio"]), .dark textarea, .dark select {
            background: rgba(255,255,255,0.03); 
            border: 1px solid rgba(255,255,255,0.08); 
            color: white; 
        }
        input:not([type="checkbox"]):not([type="radio"]):focus, textarea:focus, select:focus { 
            outline: none; 
            border-color: #ffc72c; 
            box-shadow: 0 0 0 4px rgba(255,199,44,0.15);
        }
        .dark input:not([type="checkbox"]):not([type="radio"]):focus, .dark textarea:focus, .dark select:focus {
            background: rgba(255,255,255,0.06); 
        }
        input::placeholder, textarea::placeholder { color: #9ca3af; font-weight: 500; }
        .dark input::placeholder, .dark textarea::placeholder { color: #52525b; }
        
        input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
        input[type=number] { -moz-appearance: textfield; }
        
        select option, select optgroup { background: #ffffff; color: #111827; font-weight: 600; }
        .dark select option, .dark select optgroup { background: #18181b; color: #fff; }
        
        .pb-safe { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }

        /* CallBiss V46 Layout-Fix: Einstellungen/Übersicht dürfen bei kleinerem Fenster
           oder hoher Browser-Skalierung nicht mehr aus dem sichtbaren Bereich laufen. */
        html, body { min-height: 100%; overflow-x: hidden; }
        .admin-main-scroll { overflow-y: auto; overflow-x: hidden; scrollbar-width: auto; }
        .admin-main-scroll::-webkit-scrollbar { width: 8px; display: block; }
        .admin-main-scroll::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.45); border-radius: 999px; }
        .settings-panel-safe { overflow: visible !important; max-width: 100%; }
        .settings-grid-safe, .settings-grid-safe > * { min-width: 0; max-width: 100%; }
        .settings-grid-safe input, .settings-grid-safe textarea, .settings-grid-safe select { max-width: 100%; }
        .settings-grid-safe .truncate { min-width: 0; }
        @media (max-width: 1024px) {
            .settings-panel-safe { padding: 1.25rem !important; border-radius: 1.5rem !important; }
            .settings-grid-safe { gap: 1.25rem !important; }
        }

        .premium-glow {
            position: absolute;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(255,199,44,0.12) 0%, rgba(0,0,0,0) 70%);
            top: -300px;
            left: 50%;
            transform: translateX(-50%);
            pointer-events: none;
            z-index: 0;
        }

        /* Deklarationsknöpfe für Allergene/Zusatzstoffe */
        .dek-btn { 
            width: 34px; height: 34px; border-radius: 10px; font-size: 11px; font-weight: 700; 
            display: flex; align-items: center; justify-content: center; 
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid rgba(150,150,150,0.2); cursor: pointer;
            background: rgba(150,150,150,0.05);
            position: relative;
            overflow: hidden;
        }
        .dek-btn:hover { border-color: rgba(150,150,150,0.5); transform: translateY(-1px); }
        .dek-btn:active { transform: scale(0.9); }
        
        .dek-btn.active-al { 
            background: linear-gradient(135deg, #10b981, #059669); 
            color: white; border-color: transparent; 
            box-shadow: 0 4px 15px rgba(16,185,129,0.3); 
        }
        .dek-btn.active-ad { 
            background: linear-gradient(135deg, #f59e0b, #d97706); 
            color: white; border-color: transparent; 
            box-shadow: 0 4px 15px rgba(245,158,11,0.3); 
        }

        /* : Untere Reiter sauber im Fenster halten.
           Bei vielen Reitern darf nichts rechts oder links aus dem Reiterbereich hängen. */
        .admin-bottom-tab-wrap {
            width: min(760px, calc(100vw - 1rem));
            max-width: 760px;
        }
        .admin-bottom-tabs {
            overflow: hidden;
        }
        .admin-tabs-row {
            display: flex;
            align-items: stretch;
            gap: 0.25rem;
            overflow-x: auto;
            overflow-y: hidden;
            overscroll-behavior-x: contain;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }
        .admin-tabs-row::-webkit-scrollbar { display: none; }
        .admin-tab-btn {
            min-width: 58px;
            height: 58px;
            overflow: hidden;
            flex: 1 0 64px;
        }
        .admin-tab-btn svg {
            flex-shrink: 0;
            display: block;
        }
        .admin-bottom-tabs {
            max-width: calc(100vw - 1rem);
            overflow: hidden;
        }
        @media (min-width: 640px) {
            .admin-tab-btn {
                min-width: 0;
                flex: 1 1 0%;
            }
        }


        /* Handy- und Desktop-Optimierung: keine seitliche Bewegung, keine Auto-Vergrößerung, bessere Formularbreite */
        *, *::before, *::after { box-sizing: border-box; }
        html {
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
            touch-action: manipulation;
        }
        body {
            width: 100%;
            max-width: 100vw;
            overflow-x: hidden;
            overscroll-behavior-x: none;
        }
        @supports (overflow: clip) {
            html, body { overflow-x: clip; }
        }
        img, video, canvas, svg { max-width: 100%; }
        main, section, article, aside, form, fieldset, label, div, button, a, span { min-width: 0; }
        textarea { resize: vertical; }
        button, a, label { -webkit-tap-highlight-color: transparent; }

        @media (max-width: 767px) {
            body { position: relative; }
            .premium-glow { width: 320px; height: 320px; top: -160px; }
            header .max-w-7xl {
                padding: 0.75rem 0.85rem !important;
                gap: 0.75rem;
            }
            header h1 {
                font-size: 1rem !important;
                line-height: 1.2 !important;
                max-width: calc(100vw - 165px);
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            header .h-8.w-8 { width: 2rem !important; height: 2rem !important; }
            header a[href*="logout"], header button {
                padding: 0.65rem !important;
                min-height: 42px;
            }
            header a[href*="logout"] {
                max-width: 105px;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                font-size: 10px !important;
                letter-spacing: 0.05em !important;
            }
            .admin-main-scroll {
                width: 100% !important;
                max-width: 100vw !important;
                padding-left: 0.75rem !important;
                padding-right: 0.75rem !important;
                padding-top: 1rem !important;
                padding-bottom: 7.75rem !important;
                overflow-x: hidden !important;
                overscroll-behavior: contain;
            }
            main .p-10, main .p-8, main .p-6, main .p-5 {
                padding: 1rem !important;
            }
            main .rounded-\[2\.5rem\],
            main .rounded-\[2rem\],
            main .rounded-3xl {
                border-radius: 1.25rem !important;
            }
            main .gap-12, main .gap-10, main .gap-8, main .gap-6, main .gap-5, main .gap-4 {
                gap: 0.85rem !important;
            }
            main .grid-cols-2 {
                grid-template-columns: minmax(0, 1fr) !important;
            }
            main .mb-10, main .mb-8 { margin-bottom: 1rem !important; }
            main .mt-12 { margin-top: 1.25rem !important; }
            main .pt-8 { padding-top: 1rem !important; }
            main .pb-6 { padding-bottom: 1rem !important; }
            main h2, main h3 { overflow-wrap: anywhere; }
            main p, main span, main label, main div { overflow-wrap: break-word; }
            main .text-3xl { font-size: 1.55rem !important; line-height: 1.15 !important; }
            main .text-2xl { font-size: 1.35rem !important; line-height: 1.2 !important; }
            main .text-xl { font-size: 1.15rem !important; line-height: 1.25 !important; }

            input:not([type="checkbox"]):not([type="radio"]), textarea, select {
                font-size: 16px !important;
                min-height: 46px;
                padding: 0.78rem 0.9rem !important;
                border-radius: 0.9rem !important;
            }
            input[type="checkbox"], input[type="radio"] {
                flex: 0 0 auto;
            }
            main .w-1\/2, main .w-1\/3, main .w-2\/3, main .w-1\/4,
            main .w-12, main .w-14, main .w-16 {
                max-width: 100%;
            }
            main .w-1\/2, main .w-1\/3, main .w-2\/3, main .w-1\/4 {
                width: 100% !important;
            }
            main .flex { min-width: 0; }
            main form .flex:not(.admin-tabs-row) {
                flex-wrap: wrap;
            }
            main .flex-row { flex-wrap: wrap; }
            main .shrink-0 { flex-shrink: 0; }
            main .truncate {
                max-width: 100%;
            }
            main [class*="max-w-lg"], main [class*="max-w-2xl"], main [class*="max-w-3xl"] {
                max-width: 100% !important;
            }

            /* Breite Tabellen werden am Handy untereinander dargestellt statt seitlich zu rutschen. */
            main .overflow-x-auto {
                overflow-x: hidden !important;
            }
            main .min-w-\[760px\] {
                min-width: 0 !important;
                width: 100% !important;
            }
            main [class*="grid-cols-[130px_1fr_1fr_110px]"] {
                display: grid !important;
                grid-template-columns: 1fr !important;
                gap: 0.65rem !important;
            }
            main [class*="grid-cols-[130px_1fr_1fr_110px]"] > div,
            main [class*="grid-cols-[130px_1fr_1fr_110px]"] > label {
                width: 100%;
            }
            main [class*="grid-cols-[130px_1fr_1fr_110px]"]:first-child {
                display: none !important;
            }

            /* Untere Reiter: fest im Bildschirm, keine Icons außerhalb. */
            .admin-bottom-tab-wrap {
                left: 0 !important;
                right: 0 !important;
                bottom: max(0.5rem, env(safe-area-inset-bottom)) !important;
                transform: none !important;
                width: 100% !important;
                max-width: 100% !important;
                padding-left: 0.5rem !important;
                padding-right: 0.5rem !important;
            }
            .admin-bottom-tabs {
                width: 100% !important;
                max-width: 100% !important;
                overflow: hidden !important;
                border-radius: 1.25rem !important;
                padding: 0.35rem !important;
            }
            .admin-tabs-row {
                display: grid !important;
                grid-template-columns: repeat(7, minmax(0, 1fr));
                gap: 0.2rem !important;
                overflow: hidden !important;
                width: 100%;
            }
            .admin-tab-btn {
                min-width: 0 !important;
                width: 100% !important;
                height: 54px !important;
                flex: none !important;
                padding: 0.35rem 0.15rem !important;
                border-radius: 0.9rem !important;
            }
            .admin-tab-btn svg {
                width: 20px !important;
                height: 20px !important;
                margin: 0 auto;
            }
            .admin-tab-btn span {
                font-size: 7px !important;
                letter-spacing: 0 !important;
                max-width: 100%;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }
            /* Menü am Handy: langer Kategoriename oben, Position klein darunter, keine gequetschten Zeilen. */
            .menu-category-head {
                padding: 1rem !important;
                gap: 0.75rem !important;
            }
            .menu-category-main {
                width: 100% !important;
                display: grid !important;
                grid-template-columns: 1fr auto !important;
                gap: 0.75rem !important;
                align-items: start !important;
            }
            .menu-category-title-row {
                grid-column: 1 / -1;
                width: 100% !important;
                order: -1;
            }
            .menu-category-title-row h3 {
                white-space: normal !important;
                overflow-wrap: break-word !important;
                word-break: normal !important;
                line-height: 1.12 !important;
                margin-bottom: 0.4rem !important;
                font-size: 1.3rem !important;
            }
            .menu-category-sort {
                align-items: flex-start !important;
                justify-content: flex-start !important;
                width: auto !important;
                max-width: 4.25rem !important;
            }
            .menu-category-sort span {
                font-size: 7px !important;
                margin-bottom: 0.25rem !important;
                letter-spacing: 0.08em !important;
            }
            .menu-category-sort input,
            .menu-product-sort input {
                width: 3rem !important;
                max-width: 3rem !important;
                min-height: 34px !important;
                height: 34px !important;
                padding: 0 !important;
                border-radius: 0.65rem !important;
                font-size: 12px !important;
            }
            .menu-category-actions {
                width: auto !important;
                margin-top: 0 !important;
                align-self: end !important;
                justify-content: flex-end !important;
            }

            /* Ausgeklappte Produkte am Handy: Bild größer, Text lesbar, Knöpfe geordnet. */
            .menu-product-card {
                position: relative !important;
                display: grid !important;
                grid-template-columns: 76px minmax(0, 1fr) !important;
                gap: 0.85rem !important;
                align-items: start !important;
                padding: 0.95rem !important;
            }
            .menu-product-info {
                display: contents !important;
            }
            .menu-product-sort {
                position: absolute !important;
                top: 0.75rem !important;
                right: 0.75rem !important;
                z-index: 2 !important;
            }
            .menu-product-image {
                width: 76px !important;
                height: 76px !important;
                border-radius: 1rem !important;
                grid-column: 1 !important;
                grid-row: 1 / span 2 !important;
            }
            .menu-product-image img {
                object-fit: cover !important;
            }
            .menu-product-mobile-text {
                display: block !important;
                grid-column: 2 !important;
                padding-right: 3.35rem !important;
            }
            .menu-product-mobile-title {
                white-space: normal !important;
                overflow: visible !important;
                text-overflow: clip !important;
                line-height: 1.2 !important;
                font-size: 0.95rem !important;
            }
            .menu-product-mobile-desc {
                white-space: normal !important;
                overflow: visible !important;
                text-overflow: clip !important;
                line-height: 1.35 !important;
                margin-top: 0.2rem !important;
            }
            .menu-product-actions {
                grid-column: 2 !important;
                align-self: end !important;
                justify-self: end !important;
                margin-top: 0.35rem !important;
            }

            /* Produkt bearbeiten: Bildbereich am Handy nicht rechts klein, sondern breit und gut sichtbar. */
            .product-image-upload-box {
                min-height: 260px !important;
                width: 100% !important;
            }
            .product-edit-image-preview {
                width: min(100%, 260px) !important;
                height: 190px !important;
                object-fit: contain !important;
            }

            #toast-container {
                left: 0.75rem !important;
                right: 0.75rem !important;
                bottom: 6.5rem !important;
            }
            #toast-container > div { width: 100%; }
        }

        @media (min-width: 768px) {
            .admin-main-scroll { padding-left: 1.5rem; padding-right: 1.5rem; }
        }


        /* Verbesserte Ansicht für Zutaten und Deklarationen */
        .extras-heading h3,
        .declaration-master-card h3,
        .declaration-overview-head h3,
        .declaration-category-title h4,
        .declaration-product-title h5 {
            overflow-wrap: normal;
            word-break: normal;
            hyphens: auto;
        }
        .extras-grid,
        .declaration-master-grid,
        .declaration-product-card,
        .declaration-master-card,
        .declaration-overview-card {
            min-width: 0;
        }
        .extra-card,
        .declaration-master-item,
        .declaration-product-card {
            overflow: hidden;
        }
        .declaration-name,
        .extra-card h4,
        .declaration-product-title h5 {
            min-width: 0;
            max-width: 100%;
        }
        .declaration-button-grid {
            min-width: 0;
            align-content: flex-start;
        }
        .dek-btn {
            flex: 0 0 auto;
            user-select: none;
            -webkit-user-select: none;
        }
        .declaration-master-form input[name="code"] {
            text-transform: uppercase;
        }
        .declaration-master-form button,
        .extra-form button {
            min-height: 46px;
        }

        .extra-bulk-panel,
        .extra-bulk-panel * {
            min-width: 0;
        }
        .extra-select-pill {
            min-height: 2.75rem;
            user-select: none;
            -webkit-user-select: none;
        }
        .extra-inline-name {
            min-height: 2.75rem !important;
            font-size: 0.95rem !important;
            font-weight: 800 !important;
        }
        .zutaten-kategorie-bereich,
        .zutaten-kategorie-bereich * {
            min-width: 0;
        }
        .zutaten-kategorie-grid button span {
            overflow-wrap: normal;
            word-break: normal;
            hyphens: auto;
        }
        .zutaten-akkordeon,
        .zutaten-akkordeon * {
            min-width: 0;
        }
        .zutaten-accordion-button {
            min-height: 4.25rem;
            user-select: none;
            -webkit-user-select: none;
        }
        .zutaten-accordion-panel .extras-grid {
            align-items: stretch;
        }

        @media (max-width: 767px) {
            /* Zutaten: klare Karten, breite Eingaben, kein gequetschtes Aufteilen. */
            .extras-panel,
            .declaration-master-card,
            .declaration-overview-card {
                padding: 1rem !important;
            }
            .extras-heading,
            .declaration-master-card > .flex:first-child {
                align-items: flex-start !important;
                gap: 0.75rem !important;
            }
            .extras-heading h3,
            .declaration-master-card h3,
            .declaration-overview-head h3 {
                font-size: 1.05rem !important;
                line-height: 1.2 !important;
            }
            .extra-form {
                padding: 0 !important;
                gap: 0.75rem !important;
            }
            .extra-form > .grid,
            .extra-form > .flex {
                display: grid !important;
                grid-template-columns: 1fr !important;
                gap: 0.75rem !important;
                width: 100% !important;
            }
            .extra-form select,
            .extra-form input,
            .extra-form button {
                width: 100% !important;
            }
            .extras-grid {
                grid-template-columns: 1fr !important;
                gap: 0.75rem !important;
            }
            .extra-card {
                padding: 1rem !important;
                border-radius: 1rem !important;
            }
            .extra-card h4 {
                font-size: 1rem !important;
                line-height: 1.25 !important;
            }
            .extra-card-footer {
                align-items: center !important;
                gap: 0.75rem !important;
            }
            .extra-sort input {
                width: 3.25rem !important;
                min-height: 34px !important;
                height: 34px !important;
                font-size: 12px !important;
            }
            .extra-actions {
                margin-left: auto !important;
                gap: 0.5rem !important;
            }
            .extra-bulk-panel,
            .extra-copy-panel {
                padding: 1rem !important;
                border-radius: 1rem !important;
            }
            .extra-bulk-panel .bulk-action-row,
            .extra-bulk-panel .bulk-scope-row,
            .extra-copy-panel > div {
                display: grid !important;
                grid-template-columns: 1fr !important;
                gap: 0.75rem !important;
            }
            .extra-select-pill {
                width: 100% !important;
                justify-content: center !important;
                text-align: center !important;
            }
            .extra-inline-name {
                width: 100% !important;
            }
            .zutaten-accordion-button {
                padding: 0.9rem !important;
                border-radius: 1rem !important;
            }
            .zutaten-accordion-panel {
                padding: 0.75rem !important;
                border-radius: 1rem !important;
            }
            .zutaten-accordion-panel .extras-grid {
                grid-template-columns: 1fr !important;
            }

            /* Allergene/Zusatzstoffe Stammdaten: Code, Name und Plus sauber untereinander bzw. nebeneinander. */
            .declaration-master-grid {
                gap: 1rem !important;
                margin-bottom: 1rem !important;
            }
            .declaration-master-form {
                display: grid !important;
                grid-template-columns: 5.5rem minmax(0, 1fr) 3.25rem !important;
                gap: 0.55rem !important;
                align-items: stretch !important;
                width: 100% !important;
            }
            .declaration-master-form input[name="code"] {
                width: 100% !important;
                padding-left: 0.4rem !important;
                padding-right: 0.4rem !important;
                text-align: center !important;
            }
            .declaration-master-form input[name="name"] {
                width: 100% !important;
                min-width: 0 !important;
            }
            .declaration-master-form button {
                width: 3.25rem !important;
                min-width: 3.25rem !important;
                padding: 0 !important;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                font-size: 1.1rem !important;
            }
            .declaration-master-list {
                max-height: none !important;
                overflow: visible !important;
                padding-right: 0 !important;
            }
            .declaration-master-item {
                padding: 0.85rem !important;
                gap: 0.65rem !important;
                align-items: flex-start !important;
                border-radius: 1rem !important;
            }
            .declaration-master-item > div:first-child {
                min-width: 0 !important;
                align-items: flex-start !important;
            }
            .declaration-code-badge {
                width: 2.35rem !important;
                height: 2.35rem !important;
                border-radius: 0.75rem !important;
                flex: 0 0 2.35rem !important;
            }
            .declaration-name {
                padding-top: 0.35rem !important;
                line-height: 1.25 !important;
                overflow-wrap: anywhere !important;
            }
            .declaration-master-item a {
                width: 40px !important;
                height: 40px !important;
                flex: 0 0 40px !important;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                border-radius: 0.75rem !important;
                background: rgba(148, 163, 184, 0.12) !important;
            }

            /* Deklarationsübersicht: Produkt oben, danach zwei klare Blöcke für Allergene und Zusätze. */
            .declaration-overview-head {
                gap: 0.85rem !important;
                margin-bottom: 1rem !important;
                padding-bottom: 1rem !important;
            }
            .declaration-overview-head > div:first-child {
                align-items: flex-start !important;
            }
            .declaration-overview-head .relative {
                width: 100% !important;
            }
            .declaration-category-section {
                margin-bottom: 1.35rem !important;
            }
            .declaration-category-title {
                align-items: flex-start !important;
                margin-bottom: 0.65rem !important;
            }
            .declaration-category-title h4 {
                font-size: 1.05rem !important;
                line-height: 1.2 !important;
            }
            .declaration-product-card {
                padding: 0.85rem !important;
                border-radius: 1rem !important;
            }
            .declaration-product-inner {
                display: grid !important;
                grid-template-columns: 1fr !important;
                gap: 0.75rem !important;
            }
            .declaration-product-title {
                width: 100% !important;
                padding-bottom: 0.75rem !important;
                border-bottom: 1px solid rgba(148, 163, 184, 0.22) !important;
            }
            .declaration-product-title h5 {
                font-size: 0.98rem !important;
                line-height: 1.25 !important;
            }
            .declaration-option-area {
                padding-left: 0 !important;
                border-left: 0 !important;
                display: grid !important;
                grid-template-columns: 1fr !important;
                gap: 0.75rem !important;
            }
            .declaration-option-row {
                display: grid !important;
                grid-template-columns: 1fr !important;
                gap: 0.55rem !important;
                padding: 0.75rem !important;
                border-radius: 0.95rem !important;
                background: rgba(148, 163, 184, 0.08) !important;
                border: 1px solid rgba(148, 163, 184, 0.14) !important;
            }
            .declaration-option-label {
                width: 100% !important;
                min-height: 1.5rem !important;
                justify-content: flex-start !important;
            }
            .declaration-option-label span {
                font-size: 0.68rem !important;
                letter-spacing: 0.08em !important;
            }
            .declaration-button-grid {
                display: grid !important;
                grid-template-columns: repeat(auto-fit, minmax(42px, 1fr)) !important;
                gap: 0.45rem !important;
                width: 100% !important;
            }
            .dek-btn {
                width: 100% !important;
                height: 42px !important;
                min-width: 0 !important;
                border-radius: 0.85rem !important;
                font-size: 0.78rem !important;
                font-weight: 900 !important;
            }
        }

        @media (max-width: 390px) {
            .declaration-master-form {
                grid-template-columns: 1fr !important;
            }
            .declaration-master-form button {
                width: 100% !important;
                min-width: 100% !important;
            }
            .declaration-button-grid {
                grid-template-columns: repeat(auto-fit, minmax(38px, 1fr)) !important;
            }
        }


        /* Schnellspeichern: runder Speicherknopf erscheint automatisch bei Änderungen */
        .floating-save-panel {
            position: fixed;
            right: max(1rem, env(safe-area-inset-right));
            bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 6.8rem);
            z-index: 70;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            pointer-events: none;
            opacity: 0;
            transform: translateY(18px) scale(0.94);
            transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
        }
        .floating-save-panel.is-visible {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }
        .floating-save-text {
            background: rgba(17, 24, 39, 0.92);
            color: #fff;
            border: 1px solid rgba(255,255,255,0.12);
            box-shadow: 0 14px 34px rgba(0,0,0,0.18);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            border-radius: 999px;
            padding: 0.7rem 0.95rem;
            font-size: 0.72rem;
            line-height: 1;
            font-weight: 900;
            letter-spacing: 0.11em;
            text-transform: uppercase;
            white-space: nowrap;
        }
        .dark .floating-save-text {
            background: rgba(255,255,255,0.92);
            color: #09090b;
            border-color: rgba(0,0,0,0.08);
        }
        .floating-save-button {
            width: 64px;
            height: 64px;
            border-radius: 999px;
            border: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #09090b;
            background: linear-gradient(135deg, #ffd95a 0%, #ffc72c 52%, #f6b400 100%);
            box-shadow: 0 18px 45px rgba(255,199,44,0.42), 0 12px 24px rgba(0,0,0,0.18);
            cursor: pointer;
            position: relative;
            overflow: hidden;
            transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
        }
        .floating-save-button:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 22px 55px rgba(255,199,44,0.52), 0 14px 28px rgba(0,0,0,0.22); }
        .floating-save-button:active { transform: scale(0.92); }
        .floating-save-button svg { width: 27px; height: 27px; position: relative; z-index: 2; }
        .floating-save-button::before {
            content: '';
            position: absolute;
            inset: 6px;
            border-radius: inherit;
            border: 1px solid rgba(255,255,255,0.55);
            opacity: 0.8;
        }
        .floating-save-button::after {
            content: '';
            position: absolute;
            inset: -35%;
            background: radial-gradient(circle, rgba(255,255,255,0.42), transparent 58%);
            transform: translate(-30%, -30%);
            opacity: 0.75;
        }
        .floating-save-button.is-saving {
            filter: saturate(0.8);
            pointer-events: none;
        }
        .floating-save-button.is-saving svg {
            animation: saveIconPulse 0.85s ease-in-out infinite;
        }
        @keyframes saveIconPulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(0.88); opacity: 0.65; }
        }
        @media (max-width: 640px) {
            .floating-save-panel {
                right: max(0.85rem, env(safe-area-inset-right));
                bottom: calc(max(0.85rem, env(safe-area-inset-bottom)) + 6.15rem);
            }
            .floating-save-text { display: none; }
            .floating-save-button { width: 58px; height: 58px; }
            .floating-save-button svg { width: 25px; height: 25px; }
        }


        /* Einstellungen: ruhiges, professionelles Layout ohne überladene Effekte */
        .settings-panel-safe {
            box-shadow: none !important;
            border-radius: 1.75rem !important;
        }
        .settings-panel-safe > .absolute:first-child { display: none !important; }
        .settings-panel-safe [class*="shadow"] { box-shadow: none !important; }
        .settings-panel-safe img { filter: none !important; }
        .settings-grid-safe { gap: 2.25rem !important; }
        .settings-subsection-card {
            padding-top: 0.4rem;
            border-top: 1px solid rgba(148,163,184,0.16);
        }
        .settings-subsection-card h4 { margin-bottom: 1.15rem !important; }
        .settings-modern-top {
            border-bottom: 1px solid rgba(148,163,184,0.22);
            padding-bottom: 1.4rem;
        }
        .settings-title-row {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 1.5rem;
            margin-bottom: 1.25rem;
        }
        .settings-kicker {
            font-size: 0.68rem;
            letter-spacing: 0.16em;
            text-transform: uppercase;
            font-weight: 900;
            color: #6b7280;
            margin-bottom: 0.35rem;
        }
        .dark .settings-kicker { color: #a1a1aa; }
        .settings-title-row h2 {
            font-size: clamp(1.7rem, 2.5vw, 2.4rem);
            font-weight: 950;
            letter-spacing: -0.035em;
            color: #111827;
            line-height: 1.05;
        }
        .dark .settings-title-row h2 { color: #fff; }
        .settings-title-row p {
            margin-top: 0.45rem;
            color: #6b7280;
            font-size: 0.88rem;
            line-height: 1.45;
            max-width: 42rem;
        }
        .dark .settings-title-row p { color: #a1a1aa; }
        .settings-save-hint {
            flex: 0 0 auto;
            border-radius: 999px;
            padding: 0.65rem 0.9rem;
            border: 1px solid rgba(148,163,184,0.24);
            color: #4b5563;
            background: #f9fafb;
            font-size: 0.72rem;
            font-weight: 850;
            white-space: nowrap;
        }
        .dark .settings-save-hint { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.09); color: #d4d4d8; }
        .settings-shortcut-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 0.65rem;
        }
        .settings-shortcut-card {
            display: block;
            min-width: 0;
            padding: 0.95rem 1rem;
            border-radius: 1rem;
            border: 1px solid rgba(148,163,184,0.22);
            background: #fff;
            color: #111827;
            transition: border-color 0.16s ease, background 0.16s ease;
        }
        .dark .settings-shortcut-card { background: rgba(255,255,255,0.035); color: #fff; border-color: rgba(255,255,255,0.08); }
        .settings-shortcut-card:hover { border-color: rgba(17,24,39,0.45); background: #f9fafb; }
        .dark .settings-shortcut-card:hover { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.055); }
        .settings-shortcut-card.is-important { border-color: rgba(255,199,44,0.70); background: rgba(255,199,44,0.08); }
        .settings-shortcut-card .nav-index { display: block; font-size: 0.64rem; font-weight: 950; letter-spacing: 0.14em; color: #9ca3af; margin-bottom: 0.35rem; }
        .settings-shortcut-card b { display: block; font-size: 0.86rem; font-weight: 950; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .settings-shortcut-card small { display: block; margin-top: 0.18rem; color: #6b7280; font-size: 0.72rem; font-weight: 700; line-height: 1.25; }
        .dark .settings-shortcut-card small { color: #a1a1aa; }
        .settings-subsection-card { scroll-margin-top: 2rem; }
        .settings-opening-modern { scroll-margin-top: 2rem; }
        .opening-hero-card {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1rem;
            padding: 0 0 1rem 0;
            border-bottom: 1px solid rgba(148,163,184,0.22);
            background: transparent;
            border-radius: 0;
            box-shadow: none;
        }
        .dark .opening-hero-card { border-color: rgba(255,255,255,0.08); }
        .opening-hero-left { display: block; min-width: 0; }
        .opening-hero-icon { display: none; }
        .opening-eyebrow { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 900; color: #6b7280; margin-bottom: 0.35rem; }
        .dark .opening-eyebrow { color: #a1a1aa; }
        .opening-hero-card h3 { font-size: clamp(1.35rem, 2vw, 2rem); font-weight: 950; letter-spacing: -0.03em; color: #111827; line-height: 1.08; }
        .dark .opening-hero-card h3 { color: #fff; }
        .opening-hero-card p { color: #6b7280; font-size: 0.88rem; margin-top: 0.4rem; max-width: 50rem; line-height: 1.45; }
        .dark .opening-hero-card p { color: #a1a1aa; }
        .opening-status-card {
            min-width: 12.5rem;
            border-radius: 1rem;
            padding: 0.8rem 0.95rem;
            border: 1px solid rgba(148,163,184,0.26);
            background: #f9fafb;
            display: block;
        }
        .dark .opening-status-card { background: rgba(255,255,255,0.035); border-color: rgba(255,255,255,0.08); }
        .opening-status-card span { display: block; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 900; color: #6b7280; }
        .dark .opening-status-card span { color: #a1a1aa; }
        .opening-status-card b { display: block; font-size: 0.95rem; font-weight: 950; margin-top: 0.15rem; }
        .opening-status-card small { display: block; margin-top: 0.22rem; font-size: 0.7rem; line-height: 1.28; font-weight: 700; color: #6b7280; }
        .dark .opening-status-card small { color: #a1a1aa; }
        .opening-status-card.is-open b { color: #047857; }
        .dark .opening-status-card.is-open b { color: #6ee7b7; }
        .opening-status-card.is-closed-now b { color: #b91c1c; }
        .dark .opening-status-card.is-closed-now b { color: #fca5a5; }
        .opening-control-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1rem; }
        .modern-toggle-card, .opening-message-card { min-width: 0; padding: 0.85rem; border-radius: 1rem; background: #f9fafb; border: 1px solid rgba(148,163,184,0.22); display: flex; align-items: center; gap: 0.75rem; }
        .dark .modern-toggle-card, .dark .opening-message-card { background: rgba(255,255,255,0.035); border-color: rgba(255,255,255,0.08); }
        .modern-toggle-card { cursor: pointer; }
        .modern-toggle-card input { position: absolute; opacity: 0; pointer-events: none; }
        .modern-toggle-ui { width: 2.7rem; height: 1.45rem; border-radius: 999px; background: #d1d5db; position: relative; flex: 0 0 auto; transition: background 0.18s ease; }
        .modern-toggle-ui::after { content: ''; position: absolute; width: 1.05rem; height: 1.05rem; left: 0.2rem; top: 0.2rem; border-radius: 999px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.14); transition: transform 0.18s cubic-bezier(0.22,1,0.36,1); }
        .modern-toggle-card input:checked + .modern-toggle-ui { background: #111827; }
        .dark .modern-toggle-card input:checked + .modern-toggle-ui { background: #ffc72c; }
        .modern-toggle-card input:checked + .modern-toggle-ui::after { transform: translateX(1.25rem); }
        .modern-toggle-text b { display: block; font-size: 0.78rem; font-weight: 950; letter-spacing: -0.01em; color: #111827; }
        .dark .modern-toggle-text b { color: #fff; }
        .modern-toggle-text small { display: block; margin-top: 0.15rem; color: #6b7280; font-size: 0.7rem; line-height: 1.25; font-weight: 700; }
        .dark .modern-toggle-text small { color: #a1a1aa; }
        .opening-message-card { display: block; }
        .opening-message-card label { display: block; margin: 0 0 0.4rem 0.1rem; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.11em; font-weight: 900; color: #6b7280; }
        .dark .opening-message-card label { color: #a1a1aa; }
        .opening-smart-card { margin-top: 1rem; padding: 0.85rem; border-radius: 1rem; background: #fff; color: #111827; border: 1px solid rgba(148,163,184,0.22); box-shadow: none; }
        .dark .opening-smart-card { background: rgba(255,255,255,0.035); color: #fff; border-color: rgba(255,255,255,0.08); }
        .opening-smart-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
        .opening-smart-head p { font-size: 0.64rem; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 900; color: #6b7280; }
        .dark .opening-smart-head p { color: #a1a1aa; }
        .opening-smart-head h4 { font-size: 0.95rem; font-weight: 950; letter-spacing: -0.01em; }
        .opening-count-pill { white-space: nowrap; border-radius: 999px; background: #f3f4f6; color: #374151; border: 1px solid rgba(148,163,184,0.22); padding: 0.45rem 0.7rem; font-size: 0.7rem; font-weight: 900; }
        .dark .opening-count-pill { background: rgba(255,255,255,0.05); color: #d4d4d8; border-color: rgba(255,255,255,0.08); }
        .opening-preset-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
        .opening-preset-grid button { min-height: 2.35rem; border-radius: 999px; background: #f9fafb; color: #111827; border: 1px solid rgba(148,163,184,0.24); font-size: 0.72rem; font-weight: 900; padding: 0.55rem 0.75rem; transition: background 0.16s ease, border-color 0.16s ease; }
        .dark .opening-preset-grid button { background: rgba(255,255,255,0.04); color: #fff; border-color: rgba(255,255,255,0.08); }
        .opening-preset-grid button:hover { background: rgba(255,199,44,0.12); border-color: rgba(255,199,44,0.45); }
        .opening-days-modern { display: grid; grid-template-columns: 1fr; gap: 0.65rem; margin-top: 1rem; }
        .opening-day-card { border-radius: 1rem; border: 1px solid rgba(148,163,184,0.22); background: #fff; padding: 0.9rem; box-shadow: none; transition: opacity 0.16s ease, border-color 0.16s ease, background 0.16s ease; min-width: 0; }
        .dark .opening-day-card { background: rgba(255,255,255,0.035); border-color: rgba(255,255,255,0.08); }
        .opening-day-card.is-closed { background: #f9fafb; }
        .dark .opening-day-card.is-closed { background: rgba(255,255,255,0.02); }
        .opening-day-top { display: grid; grid-template-columns: minmax(8rem, 0.8fr) auto; align-items: center; gap: 0.9rem; margin-bottom: 0.75rem; }
        .opening-day-title b { display: block; font-size: 0.98rem; font-weight: 950; color: #111827; }
        .dark .opening-day-title b { color: #fff; }
        .opening-day-title span { display: inline-flex; margin-top: 0.18rem; border-radius: 999px; padding: 0.18rem 0.5rem; font-size: 0.6rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; background: rgba(16,185,129,0.10); color: #059669; }
        .opening-day-card.is-closed .opening-day-title span { background: rgba(239,68,68,0.10); color: #dc2626; }
        .opening-closed-switch { display: inline-flex; align-items: center; justify-self: end; gap: 0.5rem; cursor: pointer; flex: 0 0 auto; }
        .opening-closed-switch input { position: absolute; opacity: 0; pointer-events: none; }
        .opening-closed-switch span { width: 2.55rem; height: 1.4rem; border-radius: 999px; background: #d1d5db; position: relative; transition: background 0.18s ease; }
        .opening-closed-switch span::after { content: ''; position: absolute; width: 1rem; height: 1rem; top: 0.2rem; left: 0.2rem; border-radius: 999px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.14); transition: transform 0.18s cubic-bezier(0.22,1,0.36,1); }
        .opening-closed-switch input:checked + span { background: #ef4444; }
        .opening-closed-switch input:checked + span::after { transform: translateX(1.15rem); }
        .opening-closed-switch em { font-style: normal; font-size: 0.68rem; font-weight: 900; text-transform: uppercase; color: #6b7280; }
        .dark .opening-closed-switch em { color: #a1a1aa; }
        .opening-time-area { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; transition: opacity 0.16s ease; }
        .opening-time-area.is-disabled { opacity: 0.35; pointer-events: none; }
        .opening-period-box { min-width: 0; border-radius: 0.85rem; background: #f9fafb; border: 1px solid rgba(148,163,184,0.18); padding: 0.72rem; }
        .dark .opening-period-box { background: rgba(0,0,0,0.18); border-color: rgba(255,255,255,0.06); }
        .opening-period-box.optional { background: #fcfcfd; }
        .dark .opening-period-box.optional { background: rgba(255,255,255,0.025); }
        .opening-period-label { font-size: 0.62rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: #6b7280; margin-bottom: 0.5rem; }
        .dark .opening-period-label { color: #a1a1aa; }
        .opening-time-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
        .opening-time-pair label { min-width: 0; font-size: 0.6rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.09em; color: #6b7280; }
        .dark .opening-time-pair label { color: #a1a1aa; }
        .opening-time-pair input { margin-top: 0.3rem; padding-left: 0.65rem !important; padding-right: 0.45rem !important; }
        .opening-day-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
        .opening-day-actions button { border-radius: 999px; background: transparent; color: #374151; border: 1px solid rgba(148,163,184,0.24); font-size: 0.66rem; font-weight: 900; padding: 0.46rem 0.65rem; transition: background 0.16s ease, border-color 0.16s ease; }
        .dark .opening-day-actions button { color: #e5e7eb; border-color: rgba(255,255,255,0.08); }
        .opening-day-actions button:hover { background: rgba(255,199,44,0.12); border-color: rgba(255,199,44,0.42); }
        @media (max-width: 1180px) {
            .settings-shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .opening-control-grid { grid-template-columns: 1fr; }
        }
        @media (max-width: 760px) {
            .settings-title-row { align-items: flex-start; flex-direction: column; gap: 0.75rem; }
            .settings-save-hint { white-space: normal; width: 100%; }
            .settings-shortcut-grid { grid-template-columns: 1fr; }
            .opening-hero-card { flex-direction: column; }
            .opening-status-card { min-width: 0; width: 100%; }
            .opening-time-area { grid-template-columns: 1fr; }
        }
        @media (max-width: 420px) {
            .opening-day-card { padding: 0.8rem; }
            .opening-day-top { grid-template-columns: 1fr; align-items: flex-start; }
            .opening-closed-switch { justify-self: start; }
            .opening-time-pair { grid-template-columns: 1fr; }
            .opening-preset-grid button { width: 100%; justify-content: center; }
        }


    

        /* Admin 19: Öffnungszeiten ruhig, einklappbar und ohne überladene Schnellbuttons */
        .opening-section-head {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 1rem;
            margin-top: 1.35rem;
            padding-bottom: 0.7rem;
            border-bottom: 1px solid rgba(148,163,184,0.18);
        }
        .opening-section-head p {
            margin: 0 0 0.2rem 0;
            color: #6b7280;
            font-size: 0.64rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.14em;
        }
        .dark .opening-section-head p { color: #a1a1aa; }
        .opening-section-head h4 {
            margin: 0;
            color: #111827;
            font-size: 1rem;
            line-height: 1.15;
            font-weight: 950;
            letter-spacing: -0.02em;
        }
        .dark .opening-section-head h4 { color: #fff; }
        .opening-section-head > span {
            flex: 0 0 auto;
            border: 1px solid rgba(148,163,184,0.22);
            background: #f9fafb;
            color: #374151;
            border-radius: 999px;
            padding: 0.45rem 0.7rem;
            font-size: 0.7rem;
            font-weight: 900;
        }
        .dark .opening-section-head > span { background: rgba(255,255,255,0.04); color: #d4d4d8; border-color: rgba(255,255,255,0.08); }
        .opening-day-card { overflow: hidden; }
        .opening-day-top {
            display: grid !important;
            grid-template-columns: minmax(8rem, 1fr) minmax(8rem, 1.1fr) auto auto !important;
            align-items: center !important;
            gap: 0.75rem !important;
            margin-bottom: 0 !important;
            cursor: pointer;
        }
        .opening-day-summary {
            min-width: 0;
            color: #4b5563;
            font-size: 0.78rem;
            line-height: 1.25;
            font-weight: 800;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .dark .opening-day-summary { color: #d4d4d8; }
        .opening-expand-button {
            border: 1px solid rgba(148,163,184,0.25);
            background: #fff;
            color: #111827;
            border-radius: 999px;
            min-height: 2.25rem;
            padding: 0 0.8rem;
            font-size: 0.7rem;
            font-weight: 900;
            white-space: nowrap;
        }
        .dark .opening-expand-button { background: rgba(255,255,255,0.04); color: #fff; border-color: rgba(255,255,255,0.09); }
        .opening-time-area {
            margin-top: 0.85rem;
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            min-width: 0;
        }
        .opening-time-pair, .holiday-time-area { min-width: 0; }
        .opening-time-pair input, .holiday-time-area input, .holiday-controls select {
            width: 100% !important;
            min-width: 0 !important;
            box-sizing: border-box !important;
        }
        .opening-day-actions, .opening-smart-card { display: none !important; }
        .holiday-manager {
            margin-top: 2rem;
            border-top: 1px solid rgba(148,163,184,0.18);
            padding-top: 1.2rem;
        }
        .holiday-head { margin-top: 0; }
        .holiday-controls {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.75rem;
            margin-top: 1rem;
        }
        .holiday-controls label {
            min-width: 0;
            display: block;
            color: #6b7280;
            font-size: 0.66rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }
        .dark .holiday-controls label { color: #a1a1aa; }
        .holiday-controls select { margin-top: 0.35rem; }
        .holiday-note {
            margin-top: 0.75rem;
            color: #6b7280;
            font-size: 0.8rem;
            line-height: 1.45;
            font-weight: 700;
        }
        .dark .holiday-note { color: #a1a1aa; }
        .holiday-list {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.55rem;
            margin-top: 1rem;
        }
        .holiday-row {
            overflow: hidden;
            border: 1px solid rgba(148,163,184,0.22);
            background: #fff;
            border-radius: 1rem;
        }
        .dark .holiday-row { background: rgba(255,255,255,0.035); border-color: rgba(255,255,255,0.08); }
        .holiday-row-main {
            width: 100%;
            display: grid;
            grid-template-columns: minmax(6.6rem, 0.45fr) minmax(8rem, 1fr) auto;
            align-items: center;
            gap: 0.75rem;
            text-align: left;
            padding: 0.85rem;
        }
        .holiday-date {
            color: #111827;
            font-size: 0.86rem;
            font-weight: 950;
            line-height: 1.15;
        }
        .dark .holiday-date { color: #fff; }
        .holiday-date small, .holiday-name small {
            display: block;
            margin-top: 0.12rem;
            color: #6b7280;
            font-size: 0.68rem;
            font-weight: 800;
        }
        .dark .holiday-date small, .dark .holiday-name small { color: #a1a1aa; }
        .holiday-name {
            min-width: 0;
            color: #111827;
            font-size: 0.88rem;
            font-weight: 900;
            line-height: 1.2;
        }
        .dark .holiday-name { color: #fff; }
        .holiday-current {
            justify-self: end;
            border-radius: 999px;
            padding: 0.35rem 0.6rem;
            background: #f3f4f6;
            color: #374151;
            font-size: 0.68rem;
            font-weight: 900;
            white-space: nowrap;
        }
        .holiday-mode-closed .holiday-current { background: rgba(239,68,68,0.10); color: #dc2626; }
        .holiday-mode-special .holiday-current { background: rgba(255,199,44,0.18); color: #7c5a00; }
        .dark .holiday-current { background: rgba(255,255,255,0.05); color: #d4d4d8; }
        .holiday-row-detail {
            border-top: 1px solid rgba(148,163,184,0.16);
            padding: 0.85rem;
        }
        .dark .holiday-row-detail { border-color: rgba(255,255,255,0.07); }
        .holiday-mode-select {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 0.5rem;
        }
        .holiday-mode-select label {
            min-width: 0;
            display: flex;
            align-items: center;
            gap: 0.45rem;
            border: 1px solid rgba(148,163,184,0.22);
            background: #f9fafb;
            border-radius: 0.85rem;
            padding: 0.7rem;
            color: #111827;
            font-size: 0.74rem;
            font-weight: 900;
            line-height: 1.2;
        }
        .dark .holiday-mode-select label { background: rgba(255,255,255,0.035); color: #fff; border-color: rgba(255,255,255,0.08); }
        .holiday-mode-select input { width: auto !important; height: auto !important; }
        .holiday-time-area {
            margin-top: 0.75rem;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.65rem;
        }
        @media (max-width: 760px) {
            .opening-section-head { align-items: flex-start; flex-direction: column; }
            .opening-section-head > span { width: 100%; text-align: center; }
            .opening-day-top { grid-template-columns: 1fr auto !important; }
            .opening-day-title { grid-column: 1; }
            .opening-day-summary { grid-column: 1 / -1; white-space: normal; }
            .opening-closed-switch { grid-column: 1; justify-self: start !important; }
            .opening-expand-button { grid-column: 2; grid-row: 1; }
            .opening-time-area, .holiday-time-area, .holiday-controls { grid-template-columns: 1fr !important; }
            .holiday-row-main { grid-template-columns: 1fr; gap: 0.35rem; }
            .holiday-current { justify-self: start; }
            .holiday-mode-select { grid-template-columns: 1fr; }
        }
        @media (max-width: 420px) {
            .opening-time-pair { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
        }


        /* Admin 20: mobile Zeitfelder und Feiertags-Hinweis */
        .settings-panel-safe,
        .settings-opening-modern,
        .opening-days-modern,
        .opening-day-card,
        .opening-time-area,
        .opening-period-box,
        .holiday-row,
        .holiday-row-detail,
        .holiday-time-area { max-width: 100%; min-width: 0; box-sizing: border-box; }
        .opening-time-pair label,
        .holiday-time-area label { min-width: 0; display: block; }
        .opening-time-pair input[type="time"],
        .holiday-time-area input[type="time"],
        .holiday-quick-form input[type="time"] {
            display: block !important;
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            box-sizing: border-box !important;
            font-size: 16px !important;
            line-height: 1.2 !important;
        }
        @media (max-width: 640px) {
            .settings-panel-safe { padding-left: 1rem !important; padding-right: 1rem !important; overflow-x: hidden; }
            .opening-time-area { grid-template-columns: 1fr !important; gap: 0.75rem !important; }
            .opening-time-pair { grid-template-columns: 1fr !important; gap: 0.65rem !important; }
            .opening-period-box { padding: 0.72rem !important; border-radius: 0.9rem !important; }
            .opening-day-card { padding: 0.75rem !important; }
            .opening-day-top { grid-template-columns: 1fr auto !important; gap: 0.6rem !important; }
            .opening-expand-button { padding-left: 0.65rem !important; padding-right: 0.65rem !important; }
            .holiday-row-detail { padding: 0.75rem !important; }
            .holiday-time-area { grid-template-columns: 1fr !important; gap: 0.75rem !important; }
            .holiday-mode-select { grid-template-columns: 1fr !important; }
        }
        .holiday-quick-backdrop {
            position: fixed;
            inset: 0;
            z-index: 80;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            background: rgba(15,23,42,0.54);
            backdrop-filter: blur(10px);
        }
        .holiday-quick-modal {
            width: min(100%, 34rem);
            max-height: calc(100vh - 2rem);
            overflow-y: auto;
            border-radius: 1.5rem;
            border: 1px solid rgba(148,163,184,0.22);
            background: #fff;
            color: #111827;
            box-shadow: 0 28px 90px rgba(15,23,42,0.26);
        }
        .dark .holiday-quick-modal { background: #111113; color: #fff; border-color: rgba(255,255,255,0.10); }
        .holiday-quick-head { padding: 1.25rem 1.25rem 1rem; border-bottom: 1px solid rgba(148,163,184,0.18); }
        .dark .holiday-quick-head { border-color: rgba(255,255,255,0.08); }
        .holiday-quick-kicker { margin: 0 0 0.4rem; color: #6b7280; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 950; }
        .dark .holiday-quick-kicker { color: #a1a1aa; }
        .holiday-quick-head h3 { margin: 0; font-size: clamp(1.25rem, 4vw, 1.65rem); line-height: 1.08; font-weight: 950; letter-spacing: -0.03em; }
        .holiday-quick-head p { margin: 0.55rem 0 0; color: #4b5563; font-size: 0.9rem; line-height: 1.45; font-weight: 700; }
        .dark .holiday-quick-head p { color: #d4d4d8; }
        .holiday-quick-body { padding: 1rem 1.25rem 1.25rem; }
        .holiday-quick-options { display: grid; grid-template-columns: 1fr; gap: 0.55rem; }
        .holiday-quick-option {
            display: flex;
            align-items: flex-start;
            gap: 0.7rem;
            border: 1px solid rgba(148,163,184,0.24);
            background: #f9fafb;
            border-radius: 1rem;
            padding: 0.85rem;
            cursor: pointer;
            transition: border-color 0.16s ease, background 0.16s ease;
        }
        .dark .holiday-quick-option { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
        .holiday-quick-option:has(input:checked) { border-color: rgba(255,199,44,0.75); background: rgba(255,199,44,0.12); }
        .holiday-quick-option input { margin-top: 0.15rem; flex: 0 0 auto; width: 1rem !important; height: 1rem !important; }
        .holiday-quick-option b { display: block; font-size: 0.88rem; line-height: 1.15; font-weight: 950; }
        .holiday-quick-option small { display: block; margin-top: 0.22rem; color: #6b7280; font-size: 0.75rem; line-height: 1.35; font-weight: 700; }
        .dark .holiday-quick-option small { color: #a1a1aa; }
        .holiday-quick-times { margin-top: 0.75rem; display: grid; grid-template-columns: 1fr; gap: 0.65rem; }
        .holiday-quick-time-card { border: 1px solid rgba(148,163,184,0.2); background: #fff; border-radius: 0.95rem; padding: 0.75rem; }
        .dark .holiday-quick-time-card { background: rgba(0,0,0,0.18); border-color: rgba(255,255,255,0.08); }
        .holiday-quick-time-card span { display:block; color:#6b7280; font-size:0.62rem; font-weight:950; letter-spacing:0.1em; text-transform:uppercase; margin-bottom:0.55rem; }
        .dark .holiday-quick-time-card span { color:#a1a1aa; }
        .holiday-quick-time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
        .holiday-quick-time-grid label { min-width:0; color:#6b7280; font-size:0.62rem; font-weight:950; text-transform:uppercase; letter-spacing:0.08em; }
        .dark .holiday-quick-time-grid label { color:#a1a1aa; }
        .holiday-quick-time-grid input { margin-top:0.3rem; }
        .holiday-quick-actions { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 1rem; }
        .holiday-quick-actions button { min-height: 2.85rem; border-radius: 0.95rem; padding: 0 1rem; font-size: 0.78rem; font-weight: 950; }
        .holiday-quick-secondary { background: #f3f4f6; color: #374151; }
        .dark .holiday-quick-secondary { background: rgba(255,255,255,0.07); color: #e5e7eb; }
        .holiday-quick-primary { background: #111827; color: #fff; }
        .dark .holiday-quick-primary { background: #fff; color: #111827; }
        @media (max-width: 420px) {
            .holiday-quick-time-grid { grid-template-columns: 1fr; }
            .holiday-quick-actions { flex-direction: column-reverse; }
            .holiday-quick-actions button { width: 100%; }
        }



        /* Admin 21: eigener Öffnungszeiten-Tab und sichere mobile Zeitfelder */
        #einstellungen-oeffnungszeiten { display: none !important; }
        .hours-page-wrap,
        .hours-page-wrap *,
        .hours-card,
        .hours-day,
        .hours-period,
        .hours-time-grid,
        .hours-field,
        .hours-holiday-detail { box-sizing: border-box; min-width: 0; }
        .hours-page-wrap { width: 100%; max-width: 100%; overflow-x: hidden; }
        .hours-page-head {
            display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
            margin-bottom: 1rem;
        }
        .hours-page-head h2 { font-size: clamp(1.55rem, 4vw, 2.35rem); font-weight: 950; letter-spacing: -0.04em; color: #111827; margin: 0; }
        .dark .hours-page-head h2 { color: #fff; }
        .hours-page-head p { margin: 0.45rem 0 0; color: #6b7280; font-size: 0.9rem; line-height: 1.5; font-weight: 700; max-width: 46rem; }
        .dark .hours-page-head p { color: #a1a1aa; }
        .hours-status-pill { flex: 0 0 auto; border: 1px solid rgba(148,163,184,.24); border-radius: 999px; padding: .65rem .9rem; font-size: .78rem; font-weight: 950; color: #111827; background: #fff; }
        .dark .hours-status-pill { color: #fff; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.09); }
        .hours-card { border: 1px solid rgba(148,163,184,.22); background: #fff; border-radius: 1.4rem; padding: 1rem; box-shadow: none; }
        .dark .hours-card { background: rgba(24,24,27,.75); border-color: rgba(255,255,255,.08); }
        .hours-control-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .75rem; margin-bottom: 1rem; }
        .hours-control-grid .modern-toggle-card, .hours-control-grid .opening-message-card { height: 100%; margin: 0; }
        .hours-section-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding: 1.25rem 0 .7rem; border-bottom: 1px solid rgba(148,163,184,.18); margin-bottom: .75rem; }
        .hours-section-title p { margin: 0 0 .15rem; color: #6b7280; font-size: .68rem; font-weight: 950; text-transform: uppercase; letter-spacing: .14em; }
        .dark .hours-section-title p { color: #a1a1aa; }
        .hours-section-title h3 { margin: 0; color: #111827; font-size: 1.06rem; font-weight: 950; letter-spacing: -.02em; }
        .dark .hours-section-title h3 { color: #fff; }
        .hours-section-title span { color: #6b7280; font-size: .78rem; font-weight: 850; }
        .dark .hours-section-title span { color: #a1a1aa; }
        .hours-days { display: grid; grid-template-columns: 1fr; gap: .65rem; }
        .hours-day { border: 1px solid rgba(148,163,184,.22); border-radius: 1.15rem; background: #fff; overflow: hidden; }
        .dark .hours-day { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.08); }
        .hours-day-main { width: 100%; display: grid; grid-template-columns: minmax(7rem, .7fr) minmax(8rem, 1fr) auto auto; gap: .7rem; align-items: center; padding: .9rem; text-align: left; }
        .hours-day-name { color: #111827; font-size: 1rem; font-weight: 950; line-height: 1.05; }
        .dark .hours-day-name { color: #fff; }
        .hours-day-name small { display: block; margin-top: .3rem; font-size: .68rem; color: #059669; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
        .hours-day.is-closed .hours-day-name small { color: #6b7280; }
        .dark .hours-day.is-closed .hours-day-name small { color: #a1a1aa; }
        .hours-day-summary { color: #4b5563; font-size: .84rem; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .dark .hours-day-summary { color: #d4d4d8; }
        .hours-edit-btn { border: 1px solid rgba(148,163,184,.26); border-radius: 999px; padding: .52rem .8rem; font-size: .72rem; font-weight: 950; color: #111827; background: #fff; white-space: nowrap; }
        .dark .hours-edit-btn { color: #fff; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.09); }
        .hours-detail { padding: 0 .9rem .9rem; display: grid; gap: .75rem; }
        .hours-detail.is-disabled { opacity: .42; pointer-events: none; }
        .hours-period { border: 1px solid rgba(148,163,184,.18); border-radius: 1rem; background: #f9fafb; padding: .85rem; overflow: hidden; }
        .dark .hours-period { background: rgba(0,0,0,.18); border-color: rgba(255,255,255,.07); }
        .hours-period-title { color: #6b7280; font-size: .68rem; font-weight: 950; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .65rem; }
        .dark .hours-period-title { color: #a1a1aa; }
        .hours-time-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; width: 100%; max-width: 100%; overflow: hidden; }
        .hours-field { display: block; width: 100%; max-width: 100%; overflow: hidden; color: #6b7280; font-size: .66rem; font-weight: 950; text-transform: uppercase; letter-spacing: .09em; }
        .dark .hours-field { color: #a1a1aa; }
        .hours-field input[type="time"],
        .hours-page-wrap input[type="time"],
        .holiday-quick-form input[type="time"] {
            -webkit-appearance: none !important;
            appearance: none !important;
            display: block !important;
            inline-size: 100% !important;
            width: 100% !important;
            max-inline-size: 100% !important;
            max-width: 100% !important;
            min-inline-size: 0 !important;
            min-width: 0 !important;
            height: 3.15rem !important;
            margin-top: .32rem !important;
            padding: .55rem .75rem !important;
            border-radius: .9rem !important;
            font-size: 16px !important;
            font-weight: 900 !important;
            line-height: 1.1 !important;
            text-align: center !important;
            letter-spacing: 0 !important;
            box-sizing: border-box !important;
        }
        .hours-holiday-list { display: grid; grid-template-columns: 1fr; gap: .6rem; }
        .hours-holiday-row { border: 1px solid rgba(148,163,184,.22); border-radius: 1rem; background: #fff; overflow: hidden; }
        .dark .hours-holiday-row { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.08); }
        .hours-holiday-main { width: 100%; display: grid; grid-template-columns: minmax(6.5rem, .45fr) minmax(8rem, 1fr) auto; align-items: center; gap: .7rem; padding: .85rem; text-align: left; }
        .hours-holiday-date { color: #111827; font-size: .86rem; font-weight: 950; }
        .dark .hours-holiday-date { color: #fff; }
        .hours-holiday-date small, .hours-holiday-name small { display: block; margin-top: .15rem; color: #6b7280; font-size: .68rem; font-weight: 800; }
        .dark .hours-holiday-date small, .dark .hours-holiday-name small { color: #a1a1aa; }
        .hours-holiday-name { color: #111827; font-size: .9rem; font-weight: 950; line-height: 1.18; min-width: 0; }
        .dark .hours-holiday-name { color: #fff; }
        .hours-holiday-current { justify-self: end; border-radius: 999px; background: #f3f4f6; color: #374151; padding: .36rem .6rem; font-size: .68rem; font-weight: 950; white-space: nowrap; }
        .dark .hours-holiday-current { background: rgba(255,255,255,.05); color: #d4d4d8; }
        .hours-holiday-detail { border-top: 1px solid rgba(148,163,184,.16); padding: .85rem; display: grid; gap: .75rem; overflow: hidden; }
        .dark .hours-holiday-detail { border-color: rgba(255,255,255,.07); }
        .hours-mode-select { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .5rem; }
        .hours-mode-select label { display: flex; align-items: center; gap: .45rem; min-width: 0; border: 1px solid rgba(148,163,184,.22); border-radius: .85rem; background: #f9fafb; padding: .72rem; color: #111827; font-size: .74rem; line-height: 1.2; font-weight: 900; }
        .dark .hours-mode-select label { background: rgba(255,255,255,.035); color: #fff; border-color: rgba(255,255,255,.08); }
        .hours-mode-select input { width: auto !important; height: auto !important; flex: 0 0 auto; }
        .hours-holiday-times { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; width: 100%; max-width: 100%; overflow: hidden; }
        @media (max-width: 760px) {
            .hours-page-head { flex-direction: column; }
            .hours-status-pill { width: 100%; text-align: center; }
            .hours-card { padding: .82rem; border-radius: 1.15rem; }
            .hours-control-grid { grid-template-columns: 1fr; }
            .hours-section-title { align-items: flex-start; flex-direction: column; }
            .hours-day-main { grid-template-columns: minmax(0,1fr) auto; gap: .55rem; }
            .hours-day-summary { grid-column: 1 / -1; white-space: normal; }
            .hours-day .opening-closed-switch { grid-column: 1; justify-self: start; }
            .hours-edit-btn { grid-column: 2; grid-row: 1; padding: .48rem .65rem; }
            .hours-detail { padding-left: .72rem; padding-right: .72rem; }
            .hours-period { padding: .75rem; }
            .hours-time-grid, .hours-holiday-times, .holiday-quick-time-grid { grid-template-columns: 1fr !important; gap: .62rem !important; width: 100% !important; max-width: 100% !important; overflow: hidden !important; }
            .hours-holiday-main { grid-template-columns: 1fr; gap: .35rem; }
            .hours-holiday-current { justify-self: start; }
            .hours-mode-select { grid-template-columns: 1fr; }
            .holiday-quick-backdrop { padding: .6rem !important; align-items: flex-start !important; padding-top: max(.7rem, env(safe-area-inset-top)) !important; }
            .holiday-quick-modal { width: calc(100vw - 1.2rem) !important; max-width: calc(100vw - 1.2rem) !important; border-radius: 1.15rem !important; }
            .holiday-quick-head, .holiday-quick-body { padding-left: .85rem !important; padding-right: .85rem !important; }
            .holiday-quick-time-card { overflow: hidden !important; }
        }





        /* Admin 24: Bestellarten-Zeiten klar und mobile-sicher */
        .mode-hours-list,
        .mode-hours-list *,
        .mode-hours-card,
        .mode-hours-head,
        .mode-hours-detail,
        .mode-hours-days,
        .mode-hours-day,
        .mode-hours-day-main,
        .mode-hours-day-detail {
            box-sizing: border-box;
            min-width: 0;
        }
        .mode-hours-list {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.75rem;
            width: 100%;
            max-width: 100%;
            overflow: hidden;
        }
        .mode-hours-card {
            width: 100%;
            max-width: 100%;
            overflow: hidden;
            border: 1px solid rgba(148,163,184,.24);
            border-radius: 1.15rem;
            background: #fff;
            box-shadow: none;
        }
        .dark .mode-hours-card {
            background: rgba(255,255,255,.035);
            border-color: rgba(255,255,255,.08);
        }
        .mode-hours-card.is-active {
            border-color: rgba(255,199,44,.55);
            background: rgba(255,199,44,.055);
        }
        .dark .mode-hours-card.is-active { background: rgba(255,199,44,.08); }
        .mode-hours-head {
            width: 100%;
            max-width: 100%;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto auto;
            align-items: center;
            gap: 0.75rem;
            padding: 0.9rem;
            border: 0;
            background: transparent;
            text-align: left;
            cursor: pointer;
        }
        .mode-hours-head span {
            display: block;
            min-width: 0;
            overflow: hidden;
        }
        .mode-hours-head span b {
            display: block;
            margin: 0;
            color: #111827;
            font-size: 1rem;
            line-height: 1.12;
            font-weight: 950;
            letter-spacing: -0.02em;
        }
        .dark .mode-hours-head span b { color: #fff; }
        .mode-hours-head span small {
            display: block;
            margin-top: 0.2rem;
            color: #6b7280;
            font-size: 0.76rem;
            line-height: 1.25;
            font-weight: 800;
            white-space: normal;
        }
        .dark .mode-hours-head span small { color: #a1a1aa; }
        .mode-hours-head em {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 2.05rem;
            padding: 0.45rem 0.7rem;
            border-radius: 999px;
            background: #f3f4f6;
            color: #4b5563;
            font-style: normal;
            font-size: 0.68rem;
            line-height: 1;
            font-weight: 950;
            white-space: nowrap;
        }
        .mode-hours-card.is-active .mode-hours-head em {
            background: rgba(16,185,129,.12);
            color: #047857;
        }
        .dark .mode-hours-head em { background: rgba(255,255,255,.06); color: #d4d4d8; }
        .dark .mode-hours-card.is-active .mode-hours-head em { background: rgba(16,185,129,.18); color: #6ee7b7; }
        .mode-hours-head strong {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 2.25rem;
            padding: 0.5rem 0.82rem;
            border: 1px solid rgba(148,163,184,.28);
            border-radius: 999px;
            background: #fff;
            color: #111827;
            font-size: 0.72rem;
            line-height: 1;
            font-weight: 950;
            white-space: nowrap;
        }
        .dark .mode-hours-head strong { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.1); }
        .mode-hours-detail {
            width: 100%;
            max-width: 100%;
            overflow: hidden;
            border-top: 1px solid rgba(148,163,184,.16);
            padding: 0.9rem;
            display: grid;
            gap: 0.85rem;
        }
        .dark .mode-hours-detail { border-color: rgba(255,255,255,.07); }
        .mode-hours-toggle {
            margin: 0 !important;
            width: 100%;
            max-width: 100%;
        }
        .mode-hours-days {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.6rem;
            width: 100%;
            max-width: 100%;
            overflow: hidden;
        }
        .mode-hours-days.is-disabled {
            opacity: .46;
            pointer-events: none;
        }
        .mode-hours-day {
            width: 100%;
            max-width: 100%;
            overflow: hidden;
            border: 1px solid rgba(148,163,184,.20);
            border-radius: 1rem;
            background: #fff;
        }
        .dark .mode-hours-day { background: rgba(0,0,0,.16); border-color: rgba(255,255,255,.07); }
        .mode-hours-day-main {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto auto;
            gap: 0.65rem;
            align-items: center;
            padding: 0.75rem;
            cursor: pointer;
        }
        .mode-hours-day-main > span {
            min-width: 0;
            display: block;
            overflow: hidden;
        }
        .mode-hours-day-main > span b {
            display: block;
            color: #111827;
            font-size: 0.9rem;
            line-height: 1.15;
            font-weight: 950;
        }
        .dark .mode-hours-day-main > span b { color: #fff; }
        .mode-hours-day-main > span small {
            display: block;
            margin-top: 0.16rem;
            color: #6b7280;
            font-size: 0.76rem;
            line-height: 1.2;
            font-weight: 820;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .dark .mode-hours-day-main > span small { color: #a1a1aa; }
        .mode-hours-day-detail {
            width: 100%;
            max-width: 100%;
            overflow: hidden;
            padding: 0 0.75rem 0.75rem;
            display: grid;
            gap: 0.7rem;
        }
        .mode-hours-day-detail.is-disabled { opacity: .42; pointer-events: none; }
        .hours-field input,
        .hours-page-wrap .hours-field input,
        .hours-page-wrap input[type="text"].hours-input,
        .holiday-quick-form input[type="text"] {
            -webkit-appearance: none !important;
            appearance: none !important;
            display: block !important;
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            height: 3.1rem !important;
            margin-top: .34rem !important;
            padding: .55rem .7rem !important;
            border-radius: .9rem !important;
            border-width: 1px !important;
            font-size: 16px !important;
            font-weight: 900 !important;
            line-height: 1.1 !important;
            text-align: center !important;
            box-sizing: border-box !important;
        }
        @media (max-width: 760px) {
            .mode-hours-head {
                grid-template-columns: 1fr;
                gap: 0.55rem;
                padding: 0.82rem;
            }
            .mode-hours-head em,
            .mode-hours-head strong {
                justify-self: start;
            }
            .mode-hours-detail { padding: 0.78rem; }
            .mode-hours-day-main {
                grid-template-columns: minmax(0, 1fr) auto;
                gap: 0.5rem;
                padding: 0.72rem;
            }
            .mode-hours-day-main > span {
                grid-column: 1 / -1;
            }
            .mode-hours-day-main > span small {
                white-space: normal;
            }
            .mode-hours-day-main .opening-closed-switch {
                grid-column: 1;
                justify-self: start;
            }
            .mode-hours-day-main .hours-edit-btn {
                grid-column: 2;
                grid-row: 2;
                justify-self: end;
            }
            .mode-hours-day-detail { padding: 0 0.68rem 0.68rem; }
            .hours-field input,
            .hours-page-wrap .hours-field input {
                height: 3rem !important;
                font-size: 16px !important;
                padding-left: 0.55rem !important;
                padding-right: 0.55rem !important;
            }
        }


        /* Admin 26: aktive Bestellarten direkt in der Öffnungszeit-Prüfung schließen */
        .mode-closed-panel {
            margin-top: 1rem;
            border: 1px solid rgba(148,163,184,.22);
            border-radius: 1.15rem;
            background: #fff;
            padding: .9rem;
        }
        .dark .mode-closed-panel { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.08); }
        .mode-closed-title {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: .8rem;
            margin-bottom: .75rem;
        }
        .mode-closed-title p {
            margin: 0 0 .15rem 0;
            color: #6b7280;
            font-size: .66rem;
            font-weight: 950;
            text-transform: uppercase;
            letter-spacing: .13em;
        }
        .dark .mode-closed-title p { color: #a1a1aa; }
        .mode-closed-title h3 {
            margin: 0;
            color: #111827;
            font-size: 1rem;
            font-weight: 950;
            line-height: 1.12;
        }
        .dark .mode-closed-title h3 { color: #fff; }
        .mode-closed-title > span {
            color: #6b7280;
            background: #f3f4f6;
            border-radius: 999px;
            padding: .38rem .62rem;
            font-size: .66rem;
            font-weight: 950;
            white-space: nowrap;
        }
        .dark .mode-closed-title > span { color: #d4d4d8; background: rgba(255,255,255,.06); }
        .mode-closed-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0,1fr));
            gap: .7rem;
        }
        .mode-closed-card {
            min-width: 0;
            display: grid;
            grid-template-columns: minmax(0,1fr) auto;
            gap: .62rem;
            align-items: center;
            border: 1px solid rgba(148,163,184,.22);
            border-radius: 1rem;
            background: #f9fafb;
            padding: .78rem;
            cursor: pointer;
            transition: border-color .18s ease, background .18s ease, transform .18s ease;
        }
        .mode-closed-card:active { transform: scale(.99); }
        .dark .mode-closed-card { background: rgba(0,0,0,.16); border-color: rgba(255,255,255,.08); }
        .mode-closed-card input { display: none; }
        .mode-closed-info { min-width: 0; display: block; }
        .mode-closed-info b {
            display: block;
            color: #111827;
            font-size: .96rem;
            font-weight: 950;
            line-height: 1.1;
        }
        .dark .mode-closed-info b { color: #fff; }
        .mode-closed-info small {
            display: block;
            margin-top: .18rem;
            color: #6b7280;
            font-size: .72rem;
            font-weight: 850;
            line-height: 1.2;
        }
        .dark .mode-closed-info small { color: #a1a1aa; }
        .mode-closed-toggle {
            width: 2.35rem;
            height: 1.35rem;
            border-radius: 999px;
            background: #10b981;
            padding: .14rem;
            display: block;
            transition: background .18s ease;
        }
        .mode-closed-toggle i {
            width: 1.07rem;
            height: 1.07rem;
            display: block;
            border-radius: 999px;
            background: #fff;
            transform: translateX(.96rem);
            transition: transform .18s ease;
            box-shadow: 0 2px 5px rgba(0,0,0,.12);
        }
        .mode-closed-card em {
            grid-column: 1 / -1;
            justify-self: start;
            border-radius: 999px;
            padding: .32rem .56rem;
            background: rgba(16,185,129,.12);
            color: #047857;
            font-style: normal;
            font-size: .68rem;
            font-weight: 950;
        }
        .mode-closed-card.is-time-closed em { background: rgba(107,114,128,.12); color: #4b5563; }
        .dark .mode-closed-card.is-time-closed em { color: #d4d4d8; }
        .mode-closed-card.is-manual-closed {
            border-color: rgba(239,68,68,.35);
            background: rgba(239,68,68,.055);
        }
        .mode-closed-card.is-manual-closed .mode-closed-toggle { background: #ef4444; }
        .mode-closed-card.is-manual-closed .mode-closed-toggle i { transform: translateX(0); }
        .mode-closed-card.is-manual-closed em { background: rgba(239,68,68,.12); color: #dc2626; }
        .dark .mode-closed-card.is-manual-closed { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.32); }
        @media (max-width: 760px) {
            .mode-closed-title { align-items: flex-start; flex-direction: column; }
            .mode-closed-title > span { width: 100%; text-align: center; }
            .mode-closed-grid { grid-template-columns: 1fr; }
        }

        /* Admin 22: Untere Reiter wieder kompakt und wischbar, nicht breit auseinandergezogen */
        .admin-bottom-tab-wrap {
            width: auto !important;
            max-width: min(92vw, 560px) !important;
            left: 50% !important;
            right: auto !important;
            transform: translateX(-50%) !important;
            padding-left: 0 !important;
            padding-right: 0 !important;
        }
        .admin-bottom-tabs {
            width: auto !important;
            max-width: min(92vw, 560px) !important;
            overflow: hidden !important;
            border-radius: 1.65rem !important;
            padding: 0.45rem !important;
        }
        .admin-tabs-row {
            display: flex !important;
            align-items: stretch !important;
            gap: 0.25rem !important;
            overflow-x: auto !important;
            overflow-y: hidden !important;
            -webkit-overflow-scrolling: touch !important;
            overscroll-behavior-x: contain !important;
            scrollbar-width: none !important;
            width: auto !important;
            max-width: min(92vw, 540px) !important;
            padding: 0 !important;
        }
        .admin-tabs-row::-webkit-scrollbar { display: none !important; }
        .admin-tab-btn {
            flex: 0 0 60px !important;
            width: 60px !important;
            min-width: 60px !important;
            height: 56px !important;
            padding: 0.4rem 0.25rem !important;
            border-radius: 1rem !important;
        }
        .admin-tab-btn svg {
            width: 21px !important;
            height: 21px !important;
            margin: 0 auto !important;
        }
        .admin-tab-btn span {
            max-width: 100% !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: nowrap !important;
            font-size: 7.5px !important;
            letter-spacing: 0 !important;
        }
        @media (min-width: 768px) {
            .admin-bottom-tab-wrap { max-width: 620px !important; }
            .admin-bottom-tabs { max-width: 620px !important; }
            .admin-tabs-row { max-width: 600px !important; }
            .admin-tab-btn { flex-basis: 68px !important; width: 68px !important; min-width: 68px !important; }
        }


        /* Lieferzonen-Karte: moderne OpenFreeMap/MapLibre-Darstellung */
        .delivery-map-shell {
            min-height: 596px !important;
            position: relative !important;
            isolation: isolate;
            background:
                radial-gradient(circle at 18% 12%, rgba(255,199,44,.20), transparent 32%),
                radial-gradient(circle at 82% 18%, rgba(56,189,248,.15), transparent 34%),
                #020617 !important;
        }
        #delivery-map.delivery-map-canvas,
        .delivery-map-canvas.maplibregl-map {
            display: block !important;
            position: relative !important;
            width: 100% !important;
            height: 560px !important;
            min-height: 560px !important;
            max-height: none !important;
            z-index: 1 !important;
            border-radius: 1.5rem !important;
            background: #dbeafe !important;
            overflow: hidden !important;
            transform: translateZ(0);
        }
        .delivery-map-shell .maplibregl-canvas,
        .delivery-map-shell .maplibregl-canvas-container,
        .delivery-map-shell .maplibregl-map {
            width: 100% !important;
            height: 100% !important;
            max-width: none !important;
            outline: none !important;
        }
        .delivery-map-shell .maplibregl-ctrl-top-left,
        .delivery-map-shell .maplibregl-ctrl-bottom-left,
        .delivery-map-shell .maplibregl-ctrl-top-right,
        .delivery-map-shell .maplibregl-ctrl-bottom-right { z-index: 620 !important; }
        .delivery-map-shell .maplibregl-ctrl-group,
        .delivery-map-shell .maplibregl-ctrl-attrib,
        .delivery-map-shell .maplibregl-ctrl-scale {
            border: 0 !important;
            border-radius: 14px !important;
            background: rgba(255,255,255,.92) !important;
            box-shadow: 0 12px 30px rgba(15,23,42,.16) !important;
            backdrop-filter: blur(12px);
            overflow: hidden;
        }
        .delivery-map-shell .maplibregl-ctrl button {
            width: 38px !important;
            height: 38px !important;
        }
        .delivery-map-loading {
            position: absolute !important;
            right: 1.25rem;
            bottom: 1.25rem;
            z-index: 650;
            display: none;
            padding: .7rem 1rem;
            border-radius: 999px;
            background: rgba(15,23,42,.88);
            color: #fff;
            font-size: .72rem;
            font-weight: 950;
            letter-spacing: .08em;
            text-transform: uppercase;
            box-shadow: 0 16px 34px rgba(0,0,0,.24);
            backdrop-filter: blur(14px);
        }
        .delivery-map-shell.is-loading .delivery-map-loading { display: block; }
        .delivery-map-shell.is-ready .delivery-map-loading { display: none; }
        .delivery-store-marker-wrap,
        .delivery-search-marker-wrap,
        .delivery-radius-label-wrap { background: transparent !important; border: 0 !important; }
        .delivery-map-shell .maplibregl-marker {
            z-index: 720 !important;
        }
        .delivery-store-marker {
            width: 82px;
            height: 92px;
            position: relative;
            display: block;
            pointer-events: auto;
            cursor: pointer;
            outline: none;
            transform: none;
        }
        .delivery-store-marker:focus-visible .delivery-store-core {
            outline: 4px solid rgba(37,99,235,.35);
            outline-offset: 4px;
        }
        .delivery-store-marker-visual {
            position: absolute;
            inset: 0;
            display: grid;
            place-items: start center;
            filter: drop-shadow(0 18px 26px rgba(15,23,42,.34));
            animation: deliveryStoreFloat 2.8s ease-in-out infinite;
            pointer-events: none;
        }
        .delivery-store-core {
            width: 62px;
            height: 62px;
            display: grid;
            place-items: center;
            border-radius: 22px;
            color: #111827;
            background: linear-gradient(135deg, #fff7cc 0%, #ffc72c 48%, #f59e0b 100%);
            border: 5px solid rgba(255,255,255,.98);
            box-shadow: 0 20px 40px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.58);
            position: relative;
            z-index: 4;
        }
        .delivery-store-core svg { width: 31px; height: 31px; }
        .delivery-store-pin-tip {
            position: absolute;
            top: 54px;
            left: 50%;
            width: 23px;
            height: 23px;
            transform: translateX(-50%) rotate(45deg);
            border-radius: 0 0 7px 0;
            background: linear-gradient(135deg, #ffc72c, #f59e0b);
            border-right: 5px solid rgba(255,255,255,.98);
            border-bottom: 5px solid rgba(255,255,255,.98);
            z-index: 3;
        }
        .delivery-store-badge {
            position: absolute;
            top: -7px;
            right: -9px;
            z-index: 6;
            padding: 4px 7px;
            border-radius: 999px;
            background: #111827;
            color: #fff;
            border: 2px solid #fff;
            font-size: 9px;
            line-height: 1;
            font-weight: 950;
            letter-spacing: .08em;
        }
        .delivery-store-exact-dot {
            position: absolute;
            left: 50%;
            bottom: 0;
            width: 12px;
            height: 12px;
            transform: translateX(-50%);
            border-radius: 999px;
            background: #ef4444;
            border: 3px solid #fff;
            box-shadow: 0 0 0 5px rgba(239,68,68,.20), 0 8px 18px rgba(15,23,42,.34);
            z-index: 8;
        }
        .delivery-store-pulse {
            position: absolute;
            top: -7px;
            width: 86px;
            height: 86px;
            border-radius: 999px;
            background: rgba(255,199,44,.30);
            animation: deliveryStorePulse 1.9s ease-out infinite;
            z-index: 1;
        }
        .delivery-store-shadow {
            position: absolute;
            bottom: 3px;
            width: 54px;
            height: 14px;
            border-radius: 999px;
            background: rgba(15,23,42,.38);
            filter: blur(6px);
            z-index: 0;
        }
        .delivery-search-marker {
            width: 42px;
            height: 42px;
            display: grid;
            place-items: center;
            border-radius: 16px 16px 16px 4px;
            transform: rotate(-45deg);
            background: linear-gradient(135deg, #38bdf8, #2563eb);
            color: white;
            border: 3px solid rgba(255,255,255,.96);
            box-shadow: 0 16px 30px rgba(37,99,235,.30);
            font-weight: 950;
        }
        .delivery-search-marker::first-letter { transform: rotate(45deg); }
        .delivery-radius-label {
            transform: translate(-50%, -50%);
            white-space: nowrap;
            border-radius: 999px;
            padding: .46rem .72rem;
            color: #111827;
            background: rgba(255,255,255,.94);
            border: 1px solid rgba(15,23,42,.08);
            box-shadow: 0 10px 24px rgba(15,23,42,.18);
            font-size: .72rem;
            font-weight: 850;
            backdrop-filter: blur(12px);
        }
        .delivery-radius-label b { font-weight: 950; }
        .delivery-map-shell svg.delivery-radius-ring,
        .delivery-map-shell .delivery-radius-ring {
            filter: drop-shadow(0 6px 10px rgba(15,23,42,.14));
            animation: deliveryRadiusDash 18s linear infinite;
        }
        @keyframes deliveryStorePulse {
            0% { transform: scale(.64); opacity: .62; }
            75%, 100% { transform: scale(1.45); opacity: 0; }
        }
        @keyframes deliveryStoreFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }
        @keyframes deliveryRadiusDash { to { stroke-dashoffset: -220; } }
        @media (max-width: 768px) {
            .delivery-map-shell { min-height: 536px !important; border-radius: 1.5rem !important; padding: .55rem !important; }
            #delivery-map.delivery-map-canvas,
            .delivery-map-canvas.maplibregl-map { height: 520px !important; min-height: 520px !important; border-radius: 1.15rem !important; }
            .delivery-map-shell .absolute.top-6.left-6.right-6 { top: .9rem !important; left: .9rem !important; right: .9rem !important; }
            .delivery-radius-label { font-size: .66rem; padding: .4rem .58rem; }
        }

/* Treue Einlöse-Regeln */

.admin-loyalty-option,.admin-loyalty-check{border:1px solid rgba(148,163,184,.22);background:rgba(255,255,255,.55);border-radius:1rem;padding:.85rem;display:flex;align-items:center;gap:.7rem;font-size:.72rem;font-weight:900;color:inherit}
.dark .admin-loyalty-option,.dark .admin-loyalty-check{background:rgba(0,0,0,.22)}
.admin-loyalty-option{flex-direction:column;align-items:flex-start}
.admin-loyalty-option span,.admin-loyalty-check span{line-height:1.2}
.admin-loyalty-option input[type=number]{width:100%;height:2.5rem;border-radius:.85rem;border:1px solid rgba(148,163,184,.32);background:rgba(255,255,255,.82);padding:0 .75rem;font-weight:900}
.dark .admin-loyalty-option input[type=number]{background:rgba(24,24,27,.8)}
.admin-loyalty-option small{font-size:.62rem;color:rgb(107,114,128);font-weight:800}
.admin-loyalty-check input{width:1.05rem;height:1.05rem;accent-color:#eab308;flex:0 0 auto}

.admin-loyalty-option select{width:100%;height:2.5rem;border-radius:.85rem;border:1px solid rgba(148,163,184,.32);background:rgba(255,255,255,.82);padding:0 .75rem;font-weight:900;color:inherit}.dark .admin-loyalty-option select{background:rgba(24,24,27,.8)}
