/* =========================================================================
   Bonbon – Web-UI

   Folgt der App: hell, die Mandantenfarbe als --brand (gesetzt von
   pageStart() in layout.php), links eine Fläche in dieser Farbe, rechts
   der Inhalt. Farbe markiert nur Auswahl und Hauptaktion. Jeder Wert steht
   einmal in :root. Siehe docs/design.md.
   ========================================================================= */

:root {
    --brand:      #00897B;
    --on-brand:   #ffffff;
    --brand-soft: color-mix(in srgb, var(--brand) 15%, white);
    --brand-tint: color-mix(in srgb, var(--brand) 6%, white);
    --brand-ink:  color-mix(in srgb, var(--brand) 70%, black);

    --bg:      #f4f8f7;
    --card:    #ffffff;
    --line:    #dfe5e3;
    --line-strong: #c5cecb;
    --text:    #1b1f1e;
    --dim:     #5c6664;
    --faint:   #8a9391;
    --good:    #2fa866;
    --crit:    #d93a3a;
    --hover:   rgba(0, 0, 0, .045);

    --radius:  16px;
    --side-w:  340px;
    --font:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ── Basis ────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
p { margin: 0 0 12px; }

/* Die Grundform gehört dem Icon, nicht seinem Platz. */
.stroke {
    display: block;
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Rahmen: links Farbfläche, rechts Inhalt ──────────────────────────────── */

.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }

.side {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 32px 28px 24px;
    background: var(--brand);
    color: var(--on-brand);
}

.side__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    margin: -8px 0 14px -6px;
    padding: 4px 8px 4px 2px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    opacity: .85;
}
.side__back:hover { opacity: 1; background: color-mix(in srgb, var(--on-brand) 12%, transparent); }
.side__back .stroke { width: 18px; height: 18px; }

/* Bonbon-Icon (bringt seine runde Fläche mit) oder Vereinslogo auf Weiß. */
.side__logo {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    object-fit: contain;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
}
.side__logo.logo--tenant { padding: 8px; background: #fff; }
.side__home { flex: none; align-self: flex-start; border-radius: 18px; }

.side__headtext { min-width: 0; }

.side__title {
    margin: 22px 0 2px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.3px;
    overflow-wrap: anywhere;
}

.side__sub { opacity: .85; margin-bottom: 18px; }

.side__picker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -12px 0 20px;
    padding: 4px 4px 4px 14px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--on-brand) 14%, transparent);
    font-size: 13px;
    font-weight: 600;
}
.side__picker select {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: none;
    border-radius: 9px;
    background: #fff;
    color: #1b1f1e;
    font: 600 15px var(--font);
}

.side__nav { display: flex; flex-direction: column; gap: 4px; }

.side__nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 600;
    opacity: .88;
    cursor: pointer;
}
.side__nav a:hover { opacity: 1; background: color-mix(in srgb, var(--on-brand) 10%, transparent); }
.side__nav a.on { opacity: 1; background: color-mix(in srgb, var(--on-brand) 18%, transparent); }
.side__nav .count { margin-left: auto; font-size: 13px; opacity: .8; font-variant-numeric: tabular-nums; }

.side__foot { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }

.legal { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.legal a { color: inherit; opacity: .75; }
.legal a:hover { opacity: 1; text-decoration: underline; }
.legal--side { margin-top: auto; padding-top: 18px; }
.side__foot ~ .legal--side { margin-top: 0; padding-top: 14px; }
.legal--phone { display: none; }

.pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--on-brand) 14%, transparent);
    font-size: 14px;
    font-weight: 600;
}
.pill:hover { background: color-mix(in srgb, var(--on-brand) 20%, transparent); }
.pill small { display: block; font-size: 12.5px; font-weight: 400; opacity: .85; }
.pill .chev { margin-left: auto; opacity: .8; width: 18px; height: 18px; }

.content { width: 100%; max-width: 1040px; padding: 28px 44px 64px; }
.content--wide { max-width: 1280px; }

/* ── Bausteine ────────────────────────────────────────────────────────────── */

.section-h {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 32px;
    margin: 30px 0 10px;
    color: var(--dim);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.section-h:first-child { margin-top: 0; }
.section-h .r { margin-left: auto; color: var(--dim); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }

/* Hauptaktion einer Seite – wie „Bons drucken“ in der App. */
.hero {
    display: flex;
    align-items: center;
    gap: 22px;
    width: 100%;
    padding: 24px 30px;
    border: none;
    border-radius: 20px;
    background: var(--brand);
    color: var(--on-brand);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.hero:hover { filter: brightness(1.05); }
.hero__icon {
    width: 62px;
    height: 62px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--on-brand) 18%, transparent);
}
.hero__icon .stroke { width: 28px; height: 28px; }
.hero__title { display: block; font-size: 26px; font-weight: 800; line-height: 1.2; }
.hero__sub { display: block; opacity: .9; }
.hero__go { margin-left: auto; width: 28px; height: 28px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card + .card { margin-top: 10px; }
.card__body { padding: 18px; }

/* Eine Zeile wie die Bediener-Karten der App. */
.item { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
a.item:hover, .item--link:hover { border-color: var(--line-strong); }
.item__main { flex: 1; min-width: 0; }
.item__title { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.item__sub { color: var(--dim); font-size: 14px; }
.item__amount { font-size: 18px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

.avatar {
    width: 48px;
    height: 48px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 700;
}
.avatar--icon { background: #eef3f2; color: var(--dim); }
.avatar--sm { width: 30px; height: 30px; font-size: 12px; }

.empty {
    padding: 28px 20px;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--dim);
    text-align: center;
}

.hint { color: var(--dim); font-size: 14px; }

/* Fließtext: Datenschutz, Support. */
.prose { max-width: 760px; font-size: 16px; line-height: 1.6; }
.prose h1 { margin: 4px 0 18px; font-size: 28px; line-height: 1.2; }
.prose h2 { margin: 30px 0 8px; font-size: 19px; }
.prose a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }

.note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--brand-tint);
    color: var(--dim);
    font-size: 14px;
}

.badge {
    padding: 2px 9px;
    border-radius: 999px;
    background: #eef3f2;
    color: var(--dim);
    font-size: 12px;
    font-weight: 600;
}
.badge--brand { background: var(--brand-soft); color: var(--brand-ink); }

/* ── Knöpfe ───────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font: 600 14px var(--font);
    white-space: nowrap;
    cursor: pointer;
}
.btn:hover { background: var(--hover); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn .stroke { width: 18px; height: 18px; }
.btn--brand { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.btn--brand:hover { background: var(--brand); filter: brightness(1.07); }
.btn--soft { border-color: transparent; background: var(--brand-soft); color: var(--brand-ink); }
.btn--soft:hover { background: color-mix(in srgb, var(--brand) 22%, white); }
.btn--ghost { border-color: transparent; }
.btn--crit { border-color: var(--crit); background: var(--crit); color: #fff; }
.btn--crit:hover { background: var(--crit); filter: brightness(1.07); }

.iconbtn {
    width: 38px;
    height: 38px;
    flex: none;
    display: grid;
    place-items: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--dim);
    cursor: pointer;
}
.iconbtn:hover { background: var(--hover); color: var(--text); }
.iconbtn--sm { width: 32px; height: 32px; }
.iconbtn--sm .stroke { width: 18px; height: 18px; }
.iconbtn--brand { background: var(--brand); color: var(--on-brand); width: 46px; height: 46px; }
.iconbtn--brand:hover { background: var(--brand); color: var(--on-brand); filter: brightness(1.07); }

/* „…“-Menü an einer Zeile. */
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__list {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 40;
    min-width: 220px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .14);
}
.menu__list button,
.menu__list a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: none;
    color: var(--text);
    font: 500 15px var(--font);
    text-align: left;
    cursor: pointer;
}
.menu__list button:hover,
.menu__list a:hover { background: var(--hover); }
.menu__list button.crit { color: var(--crit); }
.menu__list .stroke { width: 18px; height: 18px; color: var(--dim); }
.menu__list button.crit .stroke { color: var(--crit); }

/* ── Formulare ────────────────────────────────────────────────────────────── */

input[type=text], input[type=password], select {
    padding: 11px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font: 15px var(--font);
}
input[type=text]:focus, input[type=password]:focus, select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}
input::placeholder { color: var(--faint); }
input[type=radio], input[type=checkbox] { accent-color: var(--brand); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--dim); }
.field input, .field select { width: 100%; }

.form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.form-row > input { flex: 1 1 200px; min-width: 0; }

.msg { margin-top: 8px; color: var(--crit); font-size: 14px; }
.msg:empty { display: none; }
.msg--good { color: var(--good); }

/* ── Dialog und Toast ─────────────────────────────────────────────────────── */

dialog {
    width: min(420px, calc(100vw - 32px));
    padding: 24px;
    border: none;
    border-radius: 24px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
dialog::backdrop { background: rgba(20, 30, 28, .45); }
dialog h3 { margin: 0 0 8px; font-size: 20px; }
dialog p { color: var(--dim); }
dialog .field { margin: 16px 0 0; }
.dialog__btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.choice { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.choice select { flex: 1; padding: 8px 10px; }

#toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 200;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 12px;
    background: #2b302f;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
#toast.show { opacity: 1; }
#toast.error { background: var(--crit); }

/* ── Einstellungen: Aussehen ──────────────────────────────────────────────── */

.look { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; align-items: start; }

.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.swatch {
    position: relative;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--line);
    cursor: pointer;
}
.swatch.on { box-shadow: 0 0 0 2px var(--text); }
.swatch--custom { background: conic-gradient(#f44, #fd3, #4d6, #3cf, #45f, #e4e, #f44); overflow: hidden; }
.swatch--custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.logo { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.logo + .logo { margin-top: 0; }
.logo h3 { margin: 4px 0 0; font-size: 16px; }
.logo p { margin: 0; color: var(--dim); font-size: 13.5px; }
.logo__img {
    height: 130px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--bg);
    color: var(--faint);
    font-size: 13.5px;
    text-align: center;
}
.logo__img img { max-width: 85%; max-height: 104px; }
/* Bon: weißes Papier, gestrichelt wie ein Abriss. */
.logo__img--paper { background: #fff; border: 1.5px dashed var(--line-strong); }
.logo__img--paper canvas { max-width: 90%; max-height: 104px; image-rendering: pixelated; }
.logo .form-row { margin-top: auto; padding-top: 4px; }

/* Vorschau: so sieht die App am Handy aus. */
.phone {
    width: 250px;
    overflow: hidden;
    border: 8px solid #1b1f1e;
    border-radius: 32px;
    background: var(--bg);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
}
.phone__head { display: flex; align-items: center; gap: 10px; padding: 18px 12px 14px; background: var(--brand); color: var(--on-brand); }
.phone__logo { width: 40px; height: 40px; flex: none; border-radius: 10px; object-fit: contain; }
.phone__logo.logo--tenant { padding: 4px; background: #fff; }
.phone__head b { display: block; font-size: 14px; line-height: 1.25; }
.phone__head small { font-size: 11px; opacity: .85; }
.phone__body { display: flex; flex-direction: column; gap: 7px; padding: 10px 10px 16px; }
.phone__cta { padding: 13px 12px; border-radius: 12px; background: var(--brand); color: var(--on-brand); font-size: 14px; font-weight: 800; }
.phone__row { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 12px; font-weight: 600; }
.phone__row .avatar { width: 24px; height: 24px; font-size: 10px; }
.phone__row .r { margin-left: auto; }
.preview-cap { margin-top: 10px; color: var(--dim); font-size: 13px; text-align: center; }

/* ── Einstellungen: Gerät verbinden ────────────────────────────────────────── */

.connect { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: start; }
.steps { margin: 0 0 18px; padding-left: 22px; }
.steps li { margin-bottom: 6px; }
.qr { padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.qr__placeholder { width: 200px; height: 200px; display: grid; place-items: center; padding: 20px; border-radius: 12px; background: var(--bg); color: var(--faint); text-align: center; font-size: 13.5px; }
#qrcode img, #qrcode canvas { display: block; }

/* ── Editor ───────────────────────────────────────────────────────────────── */

.save {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: #fff;
    color: var(--brand-ink);
    font: 700 16px var(--font);
    cursor: pointer;
}
.save:disabled { cursor: default; background: color-mix(in srgb, var(--on-brand) 14%, transparent); color: var(--on-brand); font-weight: 600; }
.save .stroke { width: 18px; height: 18px; }

.event-name { width: 100%; font-size: 17px; font-weight: 600; }

.cols { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }

.cats { display: flex; flex-direction: column; gap: 2px; }
.cat {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 48px;
    padding: 4px 6px 4px 14px;
    border: none;
    border-radius: 12px;
    background: none;
    color: var(--text);
    font: 600 15px var(--font);
    text-align: left;
    cursor: pointer;
}
.cat:hover { background: var(--hover); }
.cat.on { background: var(--brand-soft); color: var(--brand-ink); }
.cat__name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cat__n { color: var(--faint); font-size: 13px; font-weight: 500; padding-right: 8px; }
/* Werkzeuge nur an der gewählten Kategorie – sonst wird die Liste unruhig. */
.cat__tools { display: none; }
.cat.on .cat__tools { display: flex; }
.cat.on .cat__n { display: none; }
/* Den Griff zum Ziehen zeigt jede Kategorie beim Überfahren, nicht nur die gewählte. */
.cat .grip { display: none; }
.cat.on .grip { display: grid; }
@media (hover: hover) {
    .cat:hover .grip { display: grid; }
    .cat:hover .cat__n { display: none; }
}
.cat--add { color: var(--dim); }

/* Sortieren per Ziehen (editor.php, startSort). */
.grip { cursor: grab; touch-action: none; }
.grip:active { cursor: grabbing; }
.dragging { position: relative; z-index: 5; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); }
.cat.dragging { background: var(--brand-soft); }
body:has(.dragging) { -webkit-user-select: none; user-select: none; }

.quick { display: flex; gap: 8px; margin-bottom: 12px; }
.quick input:first-child { flex: 1; min-width: 0; }
.quick .price { width: 110px; text-align: right; }

.prod { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 6px; border-bottom: 1px solid var(--line); }
.prod:last-child { border-bottom: none; }
/* Felder sehen in Ruhe wie Text aus, erst bei Hover/Fokus wie ein Feld. */
.prod input[type=text], .prod select { padding: 8px 10px; border-color: transparent; background: transparent; }
.prod input[type=text]:hover, .prod select:hover { border-color: var(--line); }
.prod input[type=text]:focus, .prod select:focus { background: #fff; }
.prod__name { flex: 1; min-width: 0; font-weight: 500; }
.prod__price { width: 100px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.prod__cat { width: 150px; color: var(--dim); }
/* Nur bei Bedarf sichtbar – sonst stehen zwei Pfeile nebeneinander. Am
   Handy bleibt die Schrift bei 16 px, sonst zoomt iOS. */
@media (hover: hover) and (min-width: 701px) {
    .prod__cat { opacity: 0; font-size: 14px; }
    .prod:hover .prod__cat, .prod__cat:focus { opacity: 1; }
}
.prod__tools { display: flex; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 4px 5px 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-weight: 600;
}
.chip .iconbtn { width: 28px; height: 28px; }
.chip .iconbtn .stroke { width: 16px; height: 16px; }

/* Vorschau des Produktrasters. Farben rechnet das Skript aus der
   Mandantenfarbe – sie gehören der App, nicht dieser Palette. */
.preview-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 14px; }
.preview-tab {
    padding: 10px 22px;
    border: none;
    border-radius: 999px;
    font: 600 14px var(--font);
    white-space: nowrap;
    cursor: pointer;
}
.preview-grid { display: flex; flex-direction: column; gap: 8px; min-height: calc(100vh - 200px); }
.preview-row { display: flex; flex: 1; gap: 8px; }
.preview-card {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
}
.preview-card:hover { filter: brightness(.97); }
.preview-card__name { font-size: 1.3em; font-weight: 600; line-height: 1.3; word-break: break-word; }
.preview-card__price { margin-top: 4px; font-size: 1.1em; opacity: .8; }
.preview-spacer { flex: 1; }

.loading { padding: 60px 0; color: var(--faint); text-align: center; }

/* ── Anmelden ─────────────────────────────────────────────────────────────── */

.login { width: 100%; max-width: 400px; margin: 12vh auto 0; }
.login h2 { margin: 0 0 18px; font-size: 24px; }
.login .btn { width: 100%; margin-top: 8px; padding-block: 12px; }

/* ── Schmal: die Fläche wird zur farbigen Kopfzeile ───────────────────────── */

@media (max-width: 900px) {
    .look, .connect { grid-template-columns: 1fr; }
    .phone { margin-inline: auto; }
    .cols { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 700px) {
    /* iOS zoomt in jedes Feld mit Schrift unter 16 px. */
    input[type=text], input[type=password], select { font-size: 16px; }

    .app { display: block; }
    .side {
        position: static;
        height: auto;
        gap: 0;
        padding: 16px 16px 14px;
        border-radius: 0 0 22px 22px;
    }
    .side__back { margin: -4px 0 8px -6px; }
    .side__head { display: flex; align-items: center; gap: 12px; }
    .side__logo { width: 50px; height: 50px; border-radius: 13px; }
    .side__logo.logo--tenant { padding: 5px; }
    .side__title { margin: 0; font-size: 21px; }
    .side__sub { margin: 0; font-size: 13.5px; }
    .side__picker { margin: 0 0 12px; }
    .side__nav { flex-direction: row; gap: 6px; margin: 12px -16px 0; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
    .side__nav a { flex: none; padding: 7px 14px; border-radius: 999px; background: color-mix(in srgb, var(--on-brand) 12%, transparent); font-size: 14px; white-space: nowrap; }
    .side__nav a .stroke { display: none; }
    .side__nav .count { margin-left: 2px; }
    .side__foot { display: none; }
    .side__foot--public { display: flex; margin-top: 12px; padding: 0; }
    .legal--side { display: none; }
    .legal--phone { display: flex; padding: 0 16px 24px; color: var(--dim); }
    /* Platz für den schwebenden Speichern-Knopf im Editor. */
    .app:has(.side__foot--phone) { padding-bottom: 88px; }
    .side__foot--phone { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; padding: 0; }
    .side__foot--phone .save { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 20px rgba(0, 0, 0, .22); }
    .side__foot--phone .save:disabled { display: none; }

    .content { padding: 16px 16px 24px; }

    .hero { gap: 14px; padding: 18px; border-radius: 18px; }
    .hero__icon { width: 50px; height: 50px; }
    .hero__title { font-size: 21px; }

    .item { gap: 12px; padding: 12px; }
    .item .avatar { width: 40px; height: 40px; font-size: 14px; }
    .item__title { font-size: 16px; }
    .item__amount { font-size: 16px; }
    /* Am Handy ist die ganze Karte das Ziel, der Knopf daneben nur Platz. */
    .item .btn--soft { display: none; }

    .cats { flex-direction: row; gap: 6px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px 2px; scrollbar-width: none; }
    .cats .section-h { display: none; }
    .cat { flex: none; min-height: 40px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; white-space: nowrap; }
    .cat.on { border-color: transparent; padding-right: 4px; }
    .cat__n { display: none; }
    .cat .iconbtn { width: 32px; height: 32px; }

    .prod { flex-wrap: wrap; padding: 8px; }
    .prod__name { flex: 1 1 60%; }
    .prod__cat { order: 3; flex: 1; width: auto; }
    .prod__tools { order: 4; }
    .quick .price { width: 92px; }
}
