/* ============================================================
   Admin-Oberflaeche im Shop (WEB-88)
   ============================================================
   EIN Satz Bausteine fuer alle Admin-Fenster: Modal-Rahmen, Felder, Schalter,
   Segmente, Auswahl-Karten, Chips, Zaehler, Pillen, (i)-Blase, gestrichelte
   Hinzufuegen-Knoepfe. Farben aus den Tokens --adm-... und --gold-... in
   style.css (:root). Schwarze Akzente statt Blau, Gold nur fuer Angebot und Rabatt.
   Verhalten (Blase, Zaehler, Aufklappen) lebt in js/admin-ui.js.

   Schalter, Segmente, Auswahl-Karten und Chips sind ECHTE <input>-Elemente
   (checkbox/radio), nur anders gezeichnet: Tastatur, Formular-Logik und
   'change'-Ereignisse bleiben, wie sie sind.
   ============================================================ */

/* === Gemeinsame Helfer === */
/* `hidden` versteckt in Admin-Fenstern IMMER — auch Bausteine mit eigenem display
   (flex/grid). Sonst blendete eine Klasse ein Element ein, das das Skript verbirgt. */
.adm-modal [hidden] { display: none !important; }

.adm-visually-hidden,
.adm-switch input,
.adm-seg-opt input,
.adm-choice input,
.adm-chip input,
.adm-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* .adm-ic (Icons aus dem Symbol-Satz) steht in style.css — der Shop-Kopf nutzt sie auch. */

/* ============================================================
   === Modal-Rahmen ===
   ============================================================ */
/* Unter der roten Admin-Leiste (--admin-toolbar-h) bleibt das Fenster sichtbar. */
.modal-overlay.adm-overlay { padding-top: calc(40px + var(--admin-toolbar-h, 0px)); }

.adm-overlay .adm-modal {
    padding: 0;
    max-width: 640px;
    margin: auto;
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 80px - var(--admin-toolbar-h, 0px));
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
    color: var(--adm-ink);
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.45;
}

.adm-overlay .adm-modal--narrow { max-width: 440px; }

/* Bestaetigung + kleine Auswahl-Fenster liegen UEBER dem offenen Admin-Fenster. */
.adm-overlay--top { z-index: 1100; }

.adm-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--adm-divider);
    flex: none;
}

.adm-head--tabs {
    align-items: center;
    padding-bottom: 12px;
    border-bottom: none;
}

.adm-head-text {
    flex: 1;
    min-width: 0;
}

.adm-modal .adm-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

.adm-subtitle {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--adm-muted);
    overflow-wrap: anywhere;
}

.adm-subtitle:empty { display: none; }

.adm-head-btn {
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.adm-back {
    background: #fff;
    border: 1px solid var(--adm-card-bd);
    color: var(--adm-ink);
}

.adm-back[hidden] { display: none; }

.adm-close {
    background: var(--adm-close-bg);
    border: none;
    color: #4b5563;
}

.adm-head-btn .adm-ic { stroke-width: 2.4; }

.adm-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Kinder schrumpfen nie: der Inhalt scrollt. Ohne das stauchte die Flex-Spalte
   Kinder mit overflow:hidden (Angebot, Foto, Karten) auf 0 Hoehe. */
.adm-body > *,
.adm-section > *,
.adm-fields > * { flex-shrink: 0; }

.adm-body--tight { padding-top: 16px; gap: 16px; }
.adm-body--list { gap: 12px; }
.adm-body--sections { gap: 28px; }
.adm-body--manage { padding-top: 20px; }

/* Formular ueber Inhalt + Fuss: der Fuss bleibt sichtbar, der Inhalt scrollt. */
.adm-form {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.adm-body[hidden],
.adm-panel[hidden] { display: none; }

.adm-foot {
    flex: none;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--adm-divider);
    display: flex;
    gap: 10px;
}

.adm-foot--stack {
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Tablet + Handy (<= 900 px): style.css macht dort JEDES Overlay zur weissen Vollbild-
   „Seite" UNTER der Admin-Leiste (top: --admin-toolbar-h; fuer Login/Konto gedacht) und
   legt die untere Navigation (z-index 250) darueber. Admin-Fenster bleiben Fenster:
   abgedunkelter Hintergrund, Hoehe nach Inhalt, UEBER der unteren Navigation (sonst
   verdeckt sie „Speichern"). Die Leiste ist hier schon abgezogen — darum in Abstand und
   Hoehe nur EINMAL --admin-toolbar-h (die Overlay-Hoehe), nicht noch im Innenabstand. */
@media (max-width: 900px) {
    .modal-overlay.adm-overlay {
        padding: 40px 16px;
        background: var(--overlay-bg);
        align-items: flex-start;
        z-index: 260;
    }
    .modal-overlay.adm-overlay--top { z-index: 1100; }
    .adm-overlay .adm-modal {
        height: auto;
        max-height: calc(100dvh - 80px - var(--admin-toolbar-h, 0px));
    }
}

/* Handy: volle Breite, unten angedockt, Inhalt behaelt 24 px Innenabstand. */
@media (max-width: 600px) {
    .modal-overlay.adm-overlay { padding: 12px 0 0; }
    /* Immer volle Hoehe (Wunsch 2026-11-07): oben kein Leerraum, beim Reiter- oder
       Fensterwechsel springt nichts; kurzer Inhalt laesst unten Platz. */
    .adm-overlay .adm-modal {
        max-width: none;
        margin: auto 0 0;
        border-radius: 20px 20px 0 0;
        height: calc(100dvh - 12px - var(--admin-toolbar-h, 0px));
        max-height: calc(100dvh - 12px - var(--admin-toolbar-h, 0px));
    }
    /* Kleine Rueckfragen (Loeschen, Auswahl) bleiben mittige Karten nach Inhalt. */
    .adm-overlay .adm-modal--narrow {
        margin: auto 12px;
        border-radius: 20px;
        height: auto;
        max-height: calc(100dvh - 24px - var(--admin-toolbar-h, 0px));
    }
}

/* ============================================================
   === Knoepfe ===
   ============================================================ */
.adm-btn {
    height: 50px;
    padding: 0 18px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .15s, border-color .15s, background .15s;
}

.adm-btn--primary {
    background: var(--adm-black);
    color: #fff;
    border: none;
}

.adm-btn--primary:hover { opacity: .88; }

.adm-btn--secondary {
    background: #fff;
    color: var(--adm-ink);
    border: 1px solid var(--adm-input-bd);
}

.adm-btn--secondary:hover { border-color: var(--adm-black); }

.adm-btn--outline {
    background: #fff;
    color: var(--adm-ink);
    border: 1.5px solid var(--adm-black);
    height: 46px;
    font-size: 14px;
}

.adm-btn--block { width: 100%; }
.adm-foot .adm-btn--secondary { flex: 1; }
.adm-foot .adm-btn--primary { flex: 2; }
.adm-foot--stack .adm-btn--primary { width: 100%; flex: none; }

.adm-btn-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.adm-btn-row .adm-btn--secondary { flex: 1; }
.adm-btn-row .adm-btn--primary { flex: 2; width: auto; }

.adm-btn--primary.adm-btn--danger { background: var(--adm-danger); }

.adm-btn:disabled { opacity: .45; cursor: not-allowed; }

.adm-btn--sm {
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 13px;
    border: 1px solid var(--adm-input-bd);
    background: #fff;
    color: var(--adm-ink);
    flex: none;
}

.adm-btn--sm:hover { border-color: var(--adm-black); }

.adm-btn--danger-text {
    color: var(--adm-danger);
}

.adm-text-btn {
    background: none;
    border: none;
    padding: 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--adm-ink);
}

.adm-text-btn--danger { color: var(--adm-danger); }

.adm-text-btn--link {
    padding: 4px 0;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
    align-self: flex-start;
}

.adm-add {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1.5px dashed var(--adm-dashed);
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--adm-ink);
    cursor: pointer;
    transition: border-color .15s;
}

.adm-add:hover { border-color: var(--adm-black); }
.adm-add--white { background: #fff; }
.adm-add--sm { height: 44px; }
.adm-add[hidden] { display: none; }

.adm-icon-btn {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 10px;
    border: 1px solid var(--adm-card-bd);
    background: #fff;
    color: var(--adm-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: border-color .15s;
}

.adm-icon-btn:hover { border-color: #f0b4b4; }

.adm-icon-btn--danger {
    border-color: #f0d3d3;
    color: var(--adm-danger);
}

.adm-icon-btn .adm-ic { stroke-width: 2; }

/* Tastatur-Fokus: schwarz, nie blau. */
.adm-modal button:focus-visible,
.adm-modal a:focus-visible,
.adm-modal summary:focus-visible {
    outline: 2px solid var(--adm-black);
    outline-offset: 2px;
}

/* ============================================================
   === Formular-Raster (Label → Feld 8 px, Gruppe → Gruppe 20 px) ===
   ============================================================ */
.adm-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.adm-field[hidden] { display: none; }

.adm-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--adm-ink);
}

.adm-req { color: var(--adm-danger); }

.adm-opt {
    font-weight: 400;
    color: var(--adm-faint);
}

.adm-input {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    border: 1px solid var(--adm-input-bd);
    border-radius: 12px;
    padding: 0 14px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    color: var(--adm-ink);
    outline: none;
    transition: border-color .15s;
}

.adm-input::placeholder { color: var(--adm-faint); }
.adm-input:focus { border-color: var(--adm-black); }
.adm-input--sm { height: 44px; border-radius: 10px; padding: 0 12px; font-size: 14px; }
.adm-input--invalid { border-color: var(--adm-danger); }

/* Datum/Uhrzeit (WEB-89): iOS Safari gibt diesen Feldern eine eigene Mindestbreite, die
   width:100% nicht unterschreitet — nebeneinander („Von" | „Bis") schob sich so ein Feld
   unter das andere und ueber den Rand. Ohne Eigen-Darstellung fuellen sie genau ihre Spalte;
   der Wert steht links wie in den Textfeldern. */
.adm-input[type="date"],
.adm-input[type="time"] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    min-width: 0;
}

.adm-input::-webkit-date-and-time-value {
    margin: 0;
    text-align: left;
}

select.adm-input {
    appearance: none;
    padding-right: 40px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center / 14px 14px;
    cursor: pointer;
}

/* Euro-/Prozent-Feld: Einheit sitzt rechts im Feld. */
.adm-unit-field {
    position: relative;
}

.adm-unit-field .adm-input { padding-right: 36px; }

.adm-unit {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--adm-muted);
    font-size: 15px;
    pointer-events: none;
}

.adm-unit-field--narrow { max-width: 220px; }

.adm-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.adm-hint {
    margin: 0;
    font-size: 13px;
    color: var(--adm-muted);
    line-height: 1.45;
}

.adm-hint--lg { font-size: 14px; }
.adm-hint[hidden] { display: none; }

.adm-note {
    margin: 0;
    font-size: 12px;
    color: var(--adm-faint);
    line-height: 1.45;
}

.adm-note--center { text-align: center; margin-top: -4px; }

.adm-error {
    margin: 0;
    font-size: 12px;
    color: var(--adm-danger);
}

.adm-error[hidden] { display: none; }

.adm-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.adm-section[hidden] { display: none; }

.adm-section-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.adm-section-sub {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--adm-muted);
}

.adm-mini-head {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--adm-muted);
}

/* Info-Zeile (grau) mit (i)-Symbol. */
.adm-infoline {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--adm-soft);
    font-size: 13px;
    color: #4b5563;
    line-height: 1.45;
}

.adm-infoline .adm-ic { margin-top: 1px; stroke-width: 2; }
.adm-infoline[hidden] { display: none; }
.adm-infoline--plain { background: none; padding: 0; font-size: 12px; color: var(--adm-muted); }

.adm-warnline {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fef3c7;
    color: #92400e;
    font-size: 13px;
    line-height: 1.45;
}

.adm-warnline--danger {
    background: #fee4e2;
    color: var(--adm-danger);
}

.adm-warnline[hidden] { display: none; }

.adm-empty {
    margin: 0;
    padding: 6px 0;
    font-size: 13px;
    color: var(--adm-muted);
}

/* ============================================================
   === Schalter (Switch) ===
   ============================================================ */
.adm-switch {
    position: relative;
    display: inline-flex;
    flex: none;
    cursor: pointer;
}

.adm-switch-track {
    position: relative;
    width: 44px;
    height: 26px;
    border-radius: 13px;
    background: var(--adm-switch-off);
    transition: background .2s;
}

.adm-switch-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: left .2s;
}

.adm-switch input:checked + .adm-switch-track { background: var(--adm-black); }
.adm-switch input:checked + .adm-switch-track::after { left: 21px; }
.adm-switch input:focus-visible + .adm-switch-track { outline: 2px solid var(--adm-black); outline-offset: 2px; }
.adm-switch input:disabled + .adm-switch-track { opacity: .45; cursor: not-allowed; }

.adm-switch--sm .adm-switch-track { width: 40px; height: 24px; border-radius: 12px; }
.adm-switch--sm .adm-switch-track::after { width: 18px; height: 18px; }
.adm-switch--sm input:checked + .adm-switch-track::after { left: 19px; }

/* ============================================================
   === Schalter-Zeile + Karte mit Zeilen ===
   ============================================================ */
.adm-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--adm-card-bd);
    border-radius: 16px;
    background: #fff;
}

label.adm-row { cursor: pointer; }
.adm-row[hidden] { display: none; }
.adm-row--wrap { flex-wrap: wrap; }
.adm-row--inputbd { border-color: var(--adm-input-bd); border-radius: 14px; }

.adm-row-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.adm-row--wrap .adm-row-text { flex: 1 1 150px; }
/* Auswahl in einer umbrechenden Zeile (MwSt im Bearbeiten-Hub): waechst mit — bricht sie
   um (Handy), fuellt sie die Zeile mit gleichem Abstand links und rechts. */
.adm-row--wrap > .adm-seg { flex: 1 1 260px; }

.adm-row-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
}

.adm-row-sub {
    font-size: 13px;
    color: var(--adm-muted);
    line-height: 1.4;
}

.adm-row-sub--danger { color: var(--adm-danger); }

/* Mehrere Zeilen in EINER Karte. Bewusst ohne overflow:hidden — eine (i)-Blase
   darf ueber die Karte hinausragen; die Ecken runden die aeusseren Zeilen selbst. */
.adm-rows {
    border: 1px solid var(--adm-card-bd);
    border-radius: 16px;
    background: #fff;
}

.adm-rows:empty { display: none; }

.adm-rows > .adm-row,
.adm-rows > .adm-row-group > .adm-row {
    border: none;
    border-radius: 0;
}

.adm-rows > * + * { border-top: 1px solid var(--adm-divider); }
.adm-rows > :first-child,
.adm-rows > :first-child > .adm-row:first-child { border-top-left-radius: 15px; border-top-right-radius: 15px; }
.adm-rows > :last-child,
.adm-rows > :last-child > :last-child { border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; }
.adm-row-group[hidden] { display: none; }

.adm-row--link {
    width: 100%;
    text-align: left;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
    transition: background .15s;
}

.adm-row--link:hover { background: #fafaf8; }

.adm-row-more {
    padding: 0 16px 14px;
}

.adm-row-more[hidden] { display: none; }

.adm-row-chev {
    color: var(--adm-faint);
    stroke-width: 2.2;
}

/* Aufklapp-Chevron: dreht beim Oeffnen um 180°. */
.adm-chevron {
    color: var(--adm-faint);
    stroke-width: 2.2;
    transition: transform .2s;
}

[aria-expanded="true"] > .adm-chevron,
[aria-expanded="true"] .adm-chevron { transform: rotate(180deg); }

/* ============================================================
   === Segment-Schalter ===
   ============================================================ */
.adm-seg {
    display: flex;
    background: var(--adm-seg-bg);
    border-radius: 12px;
    padding: 3px;
    gap: 3px;
}

.adm-seg--sm { border-radius: 10px; gap: 2px; }

.adm-seg-opt {
    position: relative;
    flex: 1;
    display: flex;
    min-width: 0;
}

.adm-seg-opt > span,
.adm-seg-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    border: none;
    border-radius: 9px;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--adm-muted);
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, box-shadow .15s, color .15s;
}

.adm-seg--sm .adm-seg-opt > span { height: 34px; border-radius: 8px; padding: 0 6px; color: var(--adm-ink); }
.adm-seg--lg .adm-seg-btn { height: 38px; font-weight: 600; }

.adm-seg-opt input:checked + span,
.adm-seg-btn[aria-selected="true"],
.adm-seg-btn[aria-pressed="true"] {
    background: #fff;
    color: var(--adm-ink);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

.adm-seg-opt input:focus-visible + span { outline: 2px solid var(--adm-black); outline-offset: 1px; }

/* ============================================================
   === Auswahl-Karten (Radio-Ersatz) ===
   ============================================================ */
.adm-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.adm-choices--md { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.adm-choice {
    position: relative;
    display: flex;
    min-width: 0;
}

.adm-choice-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid var(--adm-choice-bd, var(--adm-input-bd));
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.adm-choice-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--adm-ink);
    white-space: nowrap;
}

.adm-choice-ex {
    font-size: 12px;
    color: var(--adm-muted);
    line-height: 1.35;
}

.adm-choice input:checked + .adm-choice-box {
    border-color: var(--adm-black);
    box-shadow: 0 0 0 1px var(--adm-black);
}

.adm-choice input:focus-visible + .adm-choice-box { outline: 2px solid var(--adm-black); outline-offset: 2px; }
.adm-choice input:disabled + .adm-choice-box { opacity: .5; cursor: not-allowed; }

/* ============================================================
   === Chips (Prozente, Kategorien) ===
   ============================================================ */
.adm-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
    gap: 6px;
}

.adm-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.adm-chip {
    position: relative;
    display: flex;
}

.adm-chip > span {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid var(--adm-chip-bd, var(--adm-input-bd));
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--adm-ink);
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.adm-chip input:checked + span {
    background: var(--adm-black);
    border-color: var(--adm-black);
    color: #fff;
}

.adm-chip input:focus-visible + span { outline: 2px solid var(--adm-black); outline-offset: 2px; }
.adm-chip input:disabled + span { opacity: .45; cursor: not-allowed; }

/* Kategorie-Chips: Pille, Mehrfachauswahl, „✓ " davor, wenn gewaehlt. */
.adm-chip--pill > span {
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

.adm-chip--pill input:checked + span::before { content: '\2713'; }

/* ============================================================
   === Zaehler (±) — Zahl auch direkt eintippbar ===
   ============================================================ */
.adm-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--adm-input-bd);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.adm-stepper-btn {
    width: 34px;
    height: 38px;
    flex: none;
    border: none;
    background: #fff;
    font-family: inherit;
    font-size: 16px;
    color: var(--adm-ink);
    cursor: pointer;
}

.adm-stepper-btn:disabled { color: var(--adm-dashed); cursor: not-allowed; }

.adm-stepper-value {
    width: 44px;
    min-width: 0;
    flex: 1;
    height: 38px;
    border: none;
    background: transparent;
    text-align: center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--adm-ink);
    outline: none;
}

.adm-stepper-value:focus { background: var(--adm-soft); }
.adm-stepper--wide .adm-stepper-btn { width: 40px; }

/* ============================================================
   === Pillen ===
   ============================================================ */
.adm-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--adm-seg-bg);
    color: var(--adm-ink);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.adm-pill--value { padding: 4px 10px; font-size: 13px; color: #4b5563; }
.adm-pill--gold { background: #fbe9b0; color: #6b4c00; }
.adm-pill--warn { background: #fef3c7; color: #92400e; }
.adm-pill--req { background: var(--adm-black); color: #fff; }
.adm-pill--soft { font-weight: 500; }

.adm-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ============================================================
   === (i)-Knopf + dunkle Sprechblase ===
   ============================================================ */
.adm-info {
    width: 22px;
    height: 22px;
    flex: none;
    border-radius: 50%;
    border: 1.5px solid var(--adm-faint);
    background: #fff;
    color: var(--adm-muted);
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.adm-info[aria-expanded="true"] {
    background: var(--adm-ink);
    border-color: var(--adm-ink);
    color: #fff;
}

.adm-bubble {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 10px);
    z-index: 20;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--adm-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    animation: admBubbleIn .18s ease-out;
    /* Abstand, wenn das Fenster die Blase beim Oeffnen hereinscrollt (scrollIntoView). */
    scroll-margin: 16px;
    cursor: default;
}

.adm-bubble[hidden] { display: none; }

.adm-bubble::before {
    content: '';
    position: absolute;
    top: -6px;
    left: var(--adm-arrow-x, 24px);
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: var(--adm-ink);
    transform: rotate(45deg);
}

.adm-bubble ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.adm-bubble li::before { content: '\2022\00a0'; }
.adm-bubble b { font-weight: 700; }

/* Unsichtbarer Abstandshalter UNTER der Blase: verlaengert den Scrollbereich des Fensters,
   damit auch die Blase der letzten Zeile ganz (mit Luft) hereinscrollt. */
.adm-bubble::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 16px;
    pointer-events: none;
}

@keyframes admBubbleIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

/* ============================================================
   === Checkbox (nur „Alkoholisch") ===
   ============================================================ */
.adm-check {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 0;
    cursor: pointer;
}

.adm-check[hidden] { display: none; }

.adm-check-box {
    width: 24px;
    height: 24px;
    flex: none;
    box-sizing: border-box;
    border-radius: 7px;
    border: 2px solid var(--adm-dashed);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all .15s;
}

.adm-check-box .adm-ic { width: 14px; height: 14px; stroke-width: 3.5; opacity: 0; }
.adm-check input:checked + .adm-check-box { background: var(--adm-black); border-color: var(--adm-black); }
.adm-check input:checked + .adm-check-box .adm-ic { opacity: 1; }
.adm-check input:focus-visible + .adm-check-box { outline: 2px solid var(--adm-black); outline-offset: 2px; }

.adm-check-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.adm-check-title { font-size: 15px; font-weight: 500; }
.adm-check-sub { font-size: 13px; color: var(--adm-muted); }

/* ============================================================
   === Griff (6 Punkte) ===
   ============================================================ */
.adm-handle {
    width: 20px;
    height: 20px;
    flex: none;
    background-image: radial-gradient(circle, var(--adm-handle, #b5b5ae) 2px, transparent 2.4px);
    background-size: 7px 7px;
    background-position: 3px 0;
    background-repeat: repeat;
    -webkit-mask: linear-gradient(#000 0 0) 3px 0 / 14px 21px no-repeat;
    mask: linear-gradient(#000 0 0) 3px 0 / 14px 21px no-repeat;
    cursor: grab;
}

.adm-handle--sm {
    width: 16px;
    height: 16px;
    background-image: radial-gradient(circle, var(--adm-handle, #b5b5ae) 1.5px, transparent 1.9px);
    background-size: 6px 6px;
    -webkit-mask-size: 12px 12px;
    mask-size: 12px 12px;
}

/* ============================================================
   === Reiter (Einstellungen): Unterstrich, auf dem Handy scrollbar ===
   ============================================================ */
.adm-tabs-scroll {
    flex: none;
    padding: 0 24px;
    border-bottom: 1px solid var(--adm-divider);
    overflow-x: auto;
    scrollbar-width: none;
}

.adm-tabs-scroll::-webkit-scrollbar { display: none; }

.adm-tabs {
    display: flex;
    gap: 4px;
    min-width: max-content;
}

.adm-tab {
    height: 44px;
    padding: 0 12px;
    border: none;
    border-bottom: 2.5px solid transparent;
    background: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #8a8a84;
    white-space: nowrap;
    cursor: pointer;
}

.adm-tab[aria-selected="true"] {
    color: var(--adm-ink);
    border-bottom-color: var(--adm-black);
}

.adm-seg-tabs {
    flex: none;
    padding: 0 24px 4px;
}

/* ============================================================
   === Gold: Box, Icon, Abzeichen, Start-Knopf ===
   ============================================================ */
.adm-gold-icon {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-grad-sm);
    color: var(--gold-on);
}

.adm-gold-icon .adm-ic { width: 18px; height: 18px; stroke-width: 2.6; }

.adm-gold-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--gold-grad-sm);
    color: var(--gold-on);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.adm-gold-btn {
    height: 50px;
    width: 100%;
    border: none;
    border-radius: 12px;
    background: var(--gold-grad);
    color: var(--gold-on);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px var(--gold-shadow);
}

.adm-gold-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ============================================================
   === Gericht bearbeiten: Uebersicht (Hub) ===
   ============================================================ */
.adm-hub-row .adm-row-text { gap: 2px; }

/* ============================================================
   === Name, Preis & Angebot ===
   ============================================================ */
.adm-offer {
    border-radius: 16px;
    border: 1.5px solid var(--adm-card-bd);
    background: #fff;
    overflow: hidden;
    transition: all .2s;
    --adm-choice-bd: #e6e1cf;
}

.adm-offer.is-on {
    border-color: var(--gold-soft-bd);
    background: var(--gold-soft);
}

.adm-offer[hidden] { display: none; }

.adm-offer-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
}

.adm-offer-head .adm-row-title { font-weight: 700; }

.adm-offer-body {
    padding: 4px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.adm-offer-body[hidden] { display: none; }

.adm-offer-q {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.adm-offer-q[hidden] { display: none; }

.adm-offer-q-title {
    font-size: 14px;
    font-weight: 600;
}

.adm-offer-q-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.adm-addon {
    background: #fff;
    border: 1px solid var(--adm-card-bd);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.adm-addon-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.adm-addon-pick {
    flex: 1;
    min-width: 0;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--adm-input-bd);
    background: #fafaf8;
    padding: 0 12px;
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--adm-ink);
    cursor: pointer;
}

.adm-addon-pick-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.adm-addon-pick .adm-ic { width: 14px; height: 14px; color: var(--adm-muted); stroke-width: 2.4; }

.adm-addon-sources {
    border: 1px solid var(--adm-card-bd);
    border-radius: 12px;
    padding: 10px 12px;
    max-height: 260px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.adm-addon-sources[hidden] { display: none; }

.adm-addon-source-cat + .adm-addon-source-cat {
    border-top: 1px solid var(--adm-divider);
    margin-top: 6px;
    padding-top: 6px;
}

.adm-addon-source {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 2px;
    font-size: 14px;
    cursor: pointer;
}

.adm-addon-source--cat { font-weight: 600; }
.adm-addon-source small { color: var(--adm-muted); }
.adm-addon-source input { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--adm-black); }
.adm-addon-source:has(input:disabled) { opacity: .55; cursor: not-allowed; }

.adm-addon-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.adm-addon-row .adm-seg { flex: 1 1 220px; }

.adm-addon-max {
    flex: 1 1 150px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--adm-muted);
}

.adm-addon-max .adm-stepper { flex: 1; }

.adm-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adm-preview-head {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gold-text);
}

.adm-preview-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid #f0e3bf;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adm-preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.adm-preview-name {
    font-size: 15px;
    font-weight: 600;
    min-width: 0;
    overflow-wrap: anywhere;
}

.adm-preview-prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.adm-preview-prices[hidden] { display: none; }

.adm-preview-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--gold-text);
}

.adm-preview-old {
    font-size: 13px;
    color: var(--adm-faint);
    text-decoration: line-through;
}

.adm-preview-addon {
    font-size: 12px;
    color: var(--adm-muted);
}

.adm-preview-addon[hidden] { display: none; }

/* ============================================================
   === Groessen + Auswahl-Zeilen (Name | Preis | Papierkorb) ===
   ============================================================ */
.adm-list-head {
    display: flex;
    gap: 10px;
    padding: 0 4px 0 30px;
    font-size: 12px;
    font-weight: 600;
    color: var(--adm-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.adm-list-head[hidden] { display: none; }
.adm-list-head-name { flex: 1; }
.adm-list-head-price { width: 110px; }
.adm-list-head-gap { width: 44px; }

.adm-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.adm-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.adm-line > .adm-input { flex: 1; min-width: 0; }

.adm-line .adm-unit-field {
    width: 110px;
    flex: none;
}

.adm-line .adm-unit-field .adm-input {
    text-align: right;
    padding: 0 30px 0 12px;
}

.adm-line .adm-unit { right: 12px; }
.adm-line.dragging { opacity: .5; }

/* Wahl im Extra-Editor: Zeile + Fusszeile (Vorauswahl, Pfand, 18+, Allergene). */
.adm-choice-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--adm-card-bd);
    border-radius: 14px;
    background: #fff;
}

.adm-choice-row.dragging { opacity: .5; }

.adm-choice-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding-left: 30px;
    font-size: 13px;
    color: var(--adm-muted);
}

.adm-mini-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.adm-mini-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--adm-black); }

.adm-mini-money {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.adm-mini-money input {
    width: 76px;
    height: 34px;
    box-sizing: border-box;
    border: 1px solid var(--adm-input-bd);
    border-radius: 8px;
    padding: 0 8px;
    font-family: inherit;
    font-size: 13px;
    text-align: right;
    outline: none;
}

.adm-mini-money input:focus { border-color: var(--adm-black); }

.adm-food-toggle {
    border: none;
    background: none;
    padding: 2px 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--adm-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.adm-choice-food { padding-left: 30px; }
.adm-choice-food[hidden] { display: none; }

/* ============================================================
   === Foto ===
   ============================================================ */
.adm-photo {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    background: repeating-linear-gradient(135deg, #efefea 0 8px, #f7f7f3 8px 16px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s;
}

.adm-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.adm-photo img[hidden] { display: none; }
.adm-photo.is-hidden { opacity: .45; }

.adm-photo-drop {
    border: 1.5px dashed var(--adm-dashed);
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--adm-ink);
    font-family: inherit;
    width: 100%;
}

.adm-photo-drop.is-over { border-color: var(--adm-black); }
.adm-photo-drop small { font-size: 12px; font-weight: 400; color: var(--adm-faint); }

.adm-photo-flag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--adm-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.adm-photo-flag[hidden] { display: none; }

.adm-btn-pair {
    display: flex;
    gap: 10px;
}

.adm-btn-pair .adm-btn { flex: 1; height: 46px; font-size: 14px; }
.adm-btn-pair .adm-btn[hidden] { display: none; }

/* Upload-Flaeche ohne Bild (Banner, Neues Gericht). */
.adm-drop {
    height: 96px;
    border-radius: 14px;
    border: 1.5px dashed var(--adm-dashed);
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--adm-ink);
    cursor: pointer;
    width: 100%;
}

.adm-drop:hover,
.adm-drop.is-over { border-color: var(--adm-black); }
.adm-drop small { font-size: 12px; font-weight: 400; color: var(--adm-faint); }
.adm-drop[hidden] { display: none; }

/* Bild-Zeile mit Vorschau + „Ändern" (Banner einer Kategorie). */
.adm-image-line {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--adm-input-bd);
    border-radius: 12px;
    padding: 10px;
}

.adm-image-line[hidden] { display: none; }

.adm-image-thumb {
    width: 96px;
    height: 56px;
    flex: none;
    border-radius: 8px;
    background: repeating-linear-gradient(135deg, #efefea 0 6px, #f7f7f3 6px 12px);
    object-fit: cover;
}

.adm-image-name {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: var(--adm-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   === Kategorie: Getraenke dazu anbieten ===
   ============================================================ */
.adm-soft-box {
    background: var(--adm-soft);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.adm-soft-box[hidden] { display: none; }

.adm-soft-box-title {
    font-size: 15px;
    font-weight: 700;
}

.adm-group-card {
    background: #fff;
    border: 1px solid var(--adm-card-bd);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.adm-group-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.adm-group-card-name {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.adm-group-card-where {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.adm-mini-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--adm-faint);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.adm-group-card-cats {
    font-size: 14px;
    line-height: 1.45;
}

.adm-group-card-count {
    font-size: 13px;
    color: var(--adm-muted);
}

.adm-group-card .adm-pills {
    padding-top: 10px;
    border-top: 1px solid var(--adm-seg-bg);
}

.adm-wizard {
    background: #fff;
    border: 1.5px solid var(--adm-black);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.adm-wizard[hidden] { display: none; }

.adm-wizard-q {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.adm-wizard-q--inline {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.adm-wizard-q-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}

.adm-wizard-q--inline .adm-wizard-q-title { flex: 1; }

.adm-step-no {
    width: 22px;
    height: 22px;
    flex: none;
    border-radius: 50%;
    background: var(--adm-black);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adm-wizard-actions {
    display: flex;
    gap: 10px;
}

.adm-wizard-actions .adm-btn { height: 44px; font-size: 14px; }
.adm-wizard-actions .adm-btn--secondary { flex: 1; }
.adm-wizard-actions .adm-btn--primary { flex: 2; }

.adm-centered-note {
    margin: 0;
    font-size: 13px;
    color: var(--adm-muted);
    text-align: center;
}

.adm-link-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--adm-ink);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

/* Kleines Auswahl-Fenster: vorhandene Gruppe verknuepfen. */
.adm-pick-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adm-pick-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--adm-card-bd);
    border-radius: 14px;
    background: #fff;
    font-family: inherit;
    text-align: left;
    color: var(--adm-ink);
    cursor: pointer;
    transition: border-color .15s;
}

.adm-pick-row:hover { border-color: var(--adm-dashed); }

/* ============================================================
   === Einstellungen: Oeffnungszeiten + Kanaele ===
   ============================================================ */
.adm-days {
    display: flex;
    flex-direction: column;
}

.adm-day {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    min-height: 56px;
    padding: 6px 0;
    border-bottom: 1px solid var(--adm-seg-bg);
}

.adm-day-name {
    width: 104px;
    flex: none;
    font-size: 15px;
    font-weight: 600;
}

.adm-day.is-closed .adm-day-name { color: var(--adm-faint); }

.adm-day-times {
    display: flex;
    align-items: center;
    gap: 8px;
}

.adm-day-times[hidden] { display: none; }
.adm-day-dash { color: var(--adm-faint); }

.adm-time {
    width: 72px;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid var(--adm-input-bd);
    border-radius: 10px;
    padding: 0 2px;
    text-align: center;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    color: var(--adm-ink);
    outline: none;
}

.adm-time:focus { border-color: var(--adm-black); }
.adm-time::-webkit-calendar-picker-indicator { display: none; }

.adm-day-closed {
    font-size: 14px;
    color: var(--adm-faint);
}

.adm-day-closed[hidden] { display: none; }

.adm-channel {
    border: 1px solid var(--adm-card-bd);
    border-radius: 16px;
    overflow: hidden;
}

.adm-channel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
}

.adm-channel-head .adm-row-title { font-weight: 700; }

.adm-channel-body {
    border-top: 1px solid var(--adm-divider);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fcfcfa;
}

.adm-channel-body[hidden] { display: none; }

.adm-pause-pick {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px 14px;
    border-top: 1px solid var(--adm-divider);
    background: #fff;
}

.adm-pause-pick[hidden] { display: none; }

.adm-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.adm-rule-text {
    flex: 1 1 180px;
    min-width: 0;
}

.adm-rule-title {
    font-size: 14px;
    font-weight: 600;
}

.adm-rule-hint {
    font-size: 12px;
    color: var(--adm-muted);
    line-height: 1.4;
}

.adm-rule-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.adm-rule-input .adm-stepper { width: 116px; }

.adm-rule-unit {
    width: 78px;
    font-size: 12px;
    color: var(--adm-muted);
    line-height: 1.3;
}

.adm-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adm-timeline-bar {
    position: relative;
    height: 28px;
    border-radius: 8px;
    background: #efefea;
    overflow: hidden;
}

.adm-timeline-seg {
    position: absolute;
    top: 0;
    bottom: 0;
}

.adm-timeline-seg--pre { background: repeating-linear-gradient(135deg, #d9d9d2 0 5px, #e8e8e2 5px 10px); }
.adm-timeline-seg--open { background: var(--adm-black); }
.adm-timeline-seg--last { background: #b8b8b0; }

.adm-timeline-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--adm-muted);
}

.adm-timeline-scale {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--adm-faint);
    font-variant-numeric: tabular-nums;
}

.adm-timeline-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 12px;
    color: #4b5563;
}

.adm-timeline-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.adm-swatch {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex: none;
}

.adm-swatch--pre { background: repeating-linear-gradient(135deg, #c9c9c2 0 3px, #e8e8e2 3px 6px); }
.adm-swatch--open { background: var(--adm-black); }
.adm-swatch--last { background: #b8b8b0; }

/* ============================================================
   === Einstellungen: Rabatt auf alles ===
   ============================================================ */
.adm-discount {
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--gold-soft);
    border: 1.5px solid var(--gold-soft-bd2);
    --adm-choice-bd: #e6dcc0;
    --adm-chip-bd: #e6dcc0;
}

.adm-discount[hidden] { display: none; }

.adm-discount-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.adm-discount-head .adm-section-title { font-size: 16px; }

.adm-discount-part {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.adm-discount-part--running { gap: 12px; }
.adm-discount-part[hidden] { display: none; }

.adm-discount-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.adm-discount-amounts .adm-chip { flex: 1 1 56px; }
.adm-discount-amounts .adm-chip > span { height: 44px; }

.adm-discount-custom {
    flex: 2 1 150px;
    position: relative;
}

.adm-discount-custom .adm-input {
    height: 44px;
    border-radius: 10px;
    border-color: #e6dcc0;
    font-size: 14px;
    font-weight: 600;
    padding-right: 34px;
}

.adm-discount-custom .adm-input.is-active {
    border-color: var(--adm-black);
    box-shadow: 0 0 0 1px var(--adm-black);
}

.adm-discount-custom .adm-input.adm-input--invalid { border-color: var(--adm-danger); box-shadow: none; }
.adm-discount-custom .adm-unit { font-size: 14px; font-weight: 600; }

.adm-discount-live {
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--gold-grad);
    color: var(--gold-on);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.adm-discount-until {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
}

.adm-dot-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    flex: none;
}

/* Titelbild + Logo nebeneinander, UNTEN buendig: beide Knoepfe auf einer Hoehe, das
   (kleinere) Logo-Feld sitzt mit demselben Abstand ueber seinem Knopf wie das Titelbild. */
.adm-brand-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: end;
    gap: 12px;
}

.adm-brand-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.adm-brand-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: repeating-linear-gradient(135deg, #efefea 0 8px, #f7f7f3 8px 16px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #8a8a84;
}

.adm-brand-preview--hero { aspect-ratio: 16 / 9; }
.adm-brand-preview--logo { aspect-ratio: 1; }

.adm-brand-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.adm-brand-preview img[hidden] { display: none; }

.adm-brand-actions {
    display: flex;
    gap: 6px;
}

.adm-brand-actions .adm-btn--sm { flex: 1; height: 38px; padding: 0 8px; }
.adm-brand-actions .adm-btn--sm[hidden] { display: none; }

/* ============================================================
   === Einstellungen: Schliesstage, Lieferzonen, Geraete ===
   ============================================================ */
.adm-card {
    border: 1px solid var(--adm-card-bd);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fff;
}

.adm-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.adm-card-top > .adm-input { flex: 1; }

.adm-card-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--adm-card-bd);
    border-radius: 14px;
    background: #fff;
}

.adm-card-line.is-past { opacity: .55; }

.adm-card-line-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.adm-card-line-title { font-size: 15px; font-weight: 600; }
.adm-card-line-sub { font-size: 13px; color: var(--adm-muted); }

.adm-plz-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.adm-plz-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 4px 4px 10px;
    border-radius: 999px;
    background: var(--adm-seg-bg);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.adm-plz-pill button {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--adm-muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adm-plz-pill button:hover { background: #e2e2dc; color: var(--adm-ink); }
.adm-plz-pill .adm-ic { width: 12px; height: 12px; stroke-width: 2.6; }

.adm-plz-add {
    display: grid;
    grid-template-columns: minmax(0, 96px) minmax(0, 1fr) auto;
    gap: 8px;
}

.adm-zone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

/* ============================================================
   === Speisekarte: Reihenfolge + Extras-Bibliothek ===
   ============================================================ */
.adm-lib-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--adm-card-bd);
    border-radius: 14px;
    background: #fff;
    font-family: inherit;
    text-align: left;
    color: var(--adm-ink);
    cursor: pointer;
    transition: border-color .15s;
}

.adm-lib-card:hover { border-color: var(--adm-dashed); }

.adm-lib-card-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.adm-lib-card-name { font-size: 15px; font-weight: 600; }
.adm-lib-card-note { font-weight: 400; color: var(--adm-muted); }

.adm-lib-card-items {
    font-size: 12px;
    color: var(--adm-muted);
    overflow-wrap: anywhere;
}

/* ============================================================
   === Toast „Gespeichert" ===
   ============================================================ */
.admin-toast {
    bottom: 24px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    max-width: calc(100vw - 32px);
    text-align: center;
}

/* ============================================================
   === Ergaenzungen fuer Bausteine aus den Modulen ===
   ============================================================ */
/* Kleiner Schalter mit Text davor (Vorausgewählt, 18+ je Auswahl). */
.adm-mini-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    cursor: pointer;
}

/* Label + (i) in einer Zeile; die Blase haengt am Feld. */
.adm-field--info { position: relative; }

.adm-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.adm-row-text--gap { gap: 6px; }

/* Karte der Extras-Bibliothek: Griff links, der Rest oeffnet den Editor. */
.adm-lib-card {
    cursor: default;
    padding: 0 0 0 12px;
    --adm-handle: var(--adm-faint);
}

.adm-lib-card-open {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 14px 0;
    border: none;
    background: none;
    font-family: inherit;
    text-align: left;
    color: inherit;
    cursor: pointer;
}

.adm-lib-card.sortable-held { background-color: var(--sortable-held-bg); }

/* Burger-Menue: Icons aus dem Symbol-Satz statt Emojis (WEB-88). */
.admin-menu-ic .adm-ic { width: 17px; height: 17px; }

/* Geraet koppeln: QR mittig. */
.adm-modal .device-pair-qr-wrap { margin: 0 auto; }
.adm-modal .device-pair-meta,
.adm-modal .device-pair-fallback { text-align: center; }
