/* Treuebonus: Karte mit Balken und Stufen, schmale Leiste über der Speisekarte (Shop) — auch in der Manager-Vorschau.
   Immer im hellen Shop-Look; Markenfarbe aus --primary-color / --primary-color-rgb (Shop setzt sie, der Manager am Rahmen). */

.loy-icon { width: 1em; height: 1em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.loy-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px 16px 14px;
    color: #111827;
}
.loy-head { display: flex; align-items: center; gap: 12px; }
.loy-badge {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.12);
}
.loy-head-text { min-width: 0; flex: 1 1 auto; line-height: 1.3; }
.loy-head-text strong { display: block; font-size: 0.98rem; }
.loy-head-text span { display: block; font-size: 0.82rem; color: #6b7280; }
.loy-count { flex: 0 0 auto; font-weight: 800; font-size: 0.95rem; font-variant-numeric: tabular-nums; }

/* Balken: Füllung, feine Teilung (wenige Bestellungen), runde Markierungen an den Stufen */
.loy-track {
    position: relative;
    height: 10px;
    margin: 22px 14px 18px;
    border-radius: 999px;
    background: #eef0f3;
}
.loy-track-fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: var(--primary-color);
    transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.loy-tick {
    position: absolute;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.18);
    transform: translate(-50%, -50%);
}
.loy-tick.on { background: rgba(255, 255, 255, 0.6); }
.loy-marker {
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    background: #fff;
    border: 2px solid #e5e7eb;
    color: #9ca3af;
    transform: translate(-50%, -50%);
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.loy-marker.reached { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.loy-marker.next { border-color: var(--primary-color); color: var(--primary-color); }

.loy-next { margin: 0; font-size: 0.9rem; font-weight: 700; }
.loy-next-sub { margin: 2px 0 0; font-size: 0.8rem; color: #6b7280; }

/* Stufenliste unter dem Balken */
.loy-steps { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid #f1f2f4; }
.loy-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #f1f2f4;
    font-size: 0.88rem;
}
.loy-steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.loy-steps-at { flex: 0 0 8.4em; color: #6b7280; font-variant-numeric: tabular-nums; }
.loy-steps-label { flex: 1 1 auto; min-width: 0; font-weight: 600; }
.loy-steps-state { flex: 0 0 auto; font-size: 0.78rem; color: #9ca3af; }
.loy-steps-choice { display: block; font-size: 0.76rem; font-weight: 500; color: #6b7280; }
.loy-steps li.reached .loy-steps-state { color: #15803d; font-weight: 700; }
.loy-steps li.reached .loy-steps-label { color: #111827; }

/* Gratis-Artikel als runde Bildchen (<loy-dishes>, js/loyalty-view.js); ohne Bild das Kategoriesymbol */
.loy-dishes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.loy-dishes .loy-dish {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0, 0, 0, 0.14);
}
.loy-dishes .loy-dish img { width: 100%; height: 100%; object-fit: cover; display: block; }
.loy-dishes button.loy-dish { cursor: pointer; transition: transform 0.15s ease; }
.loy-dishes button.loy-dish:active { transform: scale(0.92); }
.loy-dishes button.loy-dish:focus-visible { outline: 2px solid rgba(17, 24, 39, 0.85); outline-offset: 2px; }
.loy-dishes .loy-dish-more { background: #f1f2f4; color: #4b5563; font-size: 0.74rem; }
/* Überlappend neben einem Satz („Noch 2 Stempel bis …“) */
.loy-dishes.is-stack { flex-wrap: nowrap; gap: 0; margin: 0; }
.loy-dishes.is-stack .loy-dish { width: 32px; height: 32px; font-size: 0.8rem; }
.loy-dishes.is-stack .loy-dish + .loy-dish { margin-left: -10px; }
.loy-next.has-dishes, .loy-next-box.has-dishes { display: flex; align-items: center; gap: 10px; }
.loy-wallet .loy-dishes .loy-dish { background: rgba(255, 255, 255, 0.18); color: #fff; box-shadow: 0 0 0 2px var(--primary-color); }
.loy-wallet .loy-dishes.is-stack .loy-dish { width: 34px; height: 34px; }
.loy-wallet-foot .loy-dishes + .loy-wallet-next { flex: 1 1 auto; }
/* Lockangebot: Bild unter der Stufe */
.loy-teaser-steps .loy-dishes.is-stack .loy-dish { width: 36px; height: 36px; }

/* „+“ am Gratis-Artikel: Fenster „Bereit für dich“ und Kasse */
.loy-ticket-group { display: grid; gap: 8px; }
.loy-picks { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; }
.loy-picks::-webkit-scrollbar { display: none; }
.loy-pick {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 260px;
    min-height: 52px;
    padding: 6px 6px 6px 7px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.loy-pick .loy-dishes { margin: 0; }
.loy-pick-name { min-width: 0; display: flex; flex-direction: column; font-size: 0.86rem; font-weight: 700; line-height: 1.25; }
.loy-pick-name small { font-size: 0.72rem; font-weight: 600; color: #15803d; }
.loy-pick-add {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    margin-left: auto;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--brand-text, #fff);
    font-size: 0.85rem;
}
.loy-pick:hover { border-color: rgba(var(--primary-color-rgb), 0.5); }
.loy-pick:active { transform: scale(0.98); }
.loy-pick:focus-visible { outline: 2px solid rgba(17, 24, 39, 0.85); outline-offset: 2px; }
.loy-pick:disabled { cursor: default; opacity: 0.55; transform: none; }
.loy-pick:disabled .loy-pick-name small { color: #6b7280; }
.loy-pick:disabled .loy-pick-add { background: #d1d5db; }

/* Schmale Leiste über der Speisekarte */
.loy-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(100% - 40px);
    margin: 0 20px 16px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    color: #111827;
    text-align: left;
    font: inherit;
}
button.loy-strip { cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
button.loy-strip:hover { border-color: rgba(var(--primary-color-rgb), 0.45); }
.loy-strip:focus-visible { outline: 2px solid rgba(17, 24, 39, 0.85); outline-offset: 2px; }
.loy-strip .loy-badge { width: 36px; height: 36px; border-radius: 10px; font-size: 1.05rem; }
.loy-strip-main { flex: 1 1 auto; min-width: 0; }
.loy-strip-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 0.86rem; line-height: 1.3; }
.loy-strip-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loy-strip-title span { flex: 0 0 auto; color: #6b7280; font-size: 0.78rem; font-variant-numeric: tabular-nums; }
/* Bis zu zwei Zeilen — das Lockangebot soll ganz lesbar sein */
.loy-strip-sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 0.8rem; line-height: 1.35; color: #4b5563; }
.loy-strip-bar { display: block; position: relative; height: 6px; margin-top: 6px; border-radius: 999px; background: #eef0f3; overflow: hidden; }
.loy-strip-bar span { display: block; position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--primary-color); transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.loy-strip-gift {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    background: var(--primary-color);
}
.loy-strip-chevron { flex: 0 0 auto; color: #9ca3af; font-size: 0.8rem; }
@media (min-width: 768px) {
    .loy-strip { max-width: 800px; margin-left: auto; margin-right: auto; }
}

/* Fenster „Treuebonus“ im Shop (Profil-Stil .account-modal) */
.loy-avatar { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 16px; font-size: 1.5rem; }
.loy-card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.loy-rules { margin: 0; padding-left: 1.1em; font-size: 0.86rem; line-height: 1.5; color: #4b5563; }
.loy-rules li + li { margin-top: 4px; }

/* Kasse: Belohnung wählen */
.loy-reward-pick { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.loy-reward-pick:focus-visible { outline: 2px solid rgba(17, 24, 39, 0.85); outline-offset: 2px; }
.loy-reward-check {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    border: 2px solid rgba(var(--primary-color-rgb), 0.45);
    color: transparent;
}
.loy-reward-pick.selected .loy-reward-check { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.loy-reward-missing { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; font-size: 0.84rem; color: #92400e; }

/* Statusseite */
.loy-status { text-align: left; }
.loy-status .loy-track { margin-bottom: 14px; }
.loy-status-ready { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f1f2f4;
    font-size: 0.85rem; font-weight: 600; color: #111827; }
.loy-status-ready .loy-icon { color: var(--primary-color); font-size: 1.05rem; }

/* Profil: Stand als Zeile in der Kundenkarte */
.member-loyalty {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: rgba(var(--primary-color-rgb), 0.08);
    color: #111827;
    font: inherit;
    font-size: 0.86rem;
    text-align: left;
}
.member-loyalty .loy-icon { color: var(--primary-color); font-size: 1.1rem; }
.member-loyalty span { flex: 1 1 auto; min-width: 0; }
.member-loyalty .fa-chevron-right { color: #9ca3af; font-size: 0.75rem; }
.join-loy-icon { margin-top: 3px; width: 16px; color: var(--primary-color); }

/* ---------- Über der Speisekarte: Leiste (Standard) mit ×, Treuekarte (aufgeklappt), Lockangebot (Gäste) ---------- */
.loy-strip-wrap { position: relative; margin: 0 20px 16px; }
.loy-strip-wrap .loy-strip { width: 100%; margin: 0; padding-right: 52px; }
.loy-strip-close {
    position: absolute;
    top: 50%;
    right: 4px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #9ca3af;
    transform: translateY(-50%);
}
.loy-strip-close:hover { color: #4b5563; background: #f3f4f6; }
.loy-strip-close:focus-visible { outline: 2px solid rgba(17, 24, 39, 0.85); outline-offset: -2px; }
.loy-segs { display: flex; gap: 3px; margin-top: 6px; }
.loy-seg { flex: 1 1 0; height: 6px; border-radius: 3px; background: #eef0f3; transition: background 0.3s; }
.loy-seg.on { background: var(--primary-color); }

.loy-wallet {
    margin: 0 20px 16px;
    padding: 16px 16px 14px;
    border-radius: 22px;
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 12px 26px rgba(var(--primary-color-rgb), 0.3);
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: loy-unfold 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.loy-wallet-head { display: flex; align-items: flex-start; gap: 12px; }
.loy-wallet-id { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.loy-wallet-id small { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; opacity: 0.85; }
.loy-wallet-id strong { font-size: 1.1rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loy-wallet-count { flex: 0 0 auto; font-size: 1.6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.loy-wallet-count small { font-size: 0.95rem; opacity: 0.75; }
.loy-wallet-collapse {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    margin: -8px -8px 0 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
}
.loy-wallet-collapse:hover { background: rgba(255, 255, 255, 0.16); }
.loy-wallet-collapse:focus-visible, .loy-wallet-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.loy-wallet-bar { position: relative; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.28); overflow: hidden; }
.loy-wallet-bar span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: #fff; transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.loy-wallet-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.loy-wallet-next { min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.loy-wallet-next small { font-size: 0.72rem; opacity: 0.85; }
.loy-wallet-next strong { font-size: 0.88rem; }
.loy-wallet-btn {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 800;
}

.loy-teaser {
    position: relative;
    margin: 0 20px 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.loy-teaser-close { top: 8px; right: 6px; transform: none; }
.loy-teaser-head { display: flex; align-items: center; gap: 12px; padding-right: 40px; line-height: 1.3; }
.loy-teaser-head strong { display: block; font-size: 1rem; font-weight: 800; }
.loy-teaser-head span span { display: block; font-size: 0.82rem; color: #4b5563; }
.loy-teaser-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.loy-teaser-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
/* Linie von Stufe zu Stufe */
.loy-teaser-steps li:not(.last)::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 50%;
    width: calc(100% + 8px);
    height: 2px;
    background: #e5e7eb;
}
.loy-teaser-dot {
    position: relative;
    z-index: 1;
    min-width: 42px;
    height: 42px;
    padding: 0 6px;
    box-sizing: border-box;
    border-radius: 21px;
    border: 2px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}
.loy-teaser-steps li.last .loy-teaser-dot { background: var(--primary-color); color: #fff; }
.loy-teaser-label { font-size: 0.78rem; font-weight: 700; line-height: 1.25; }
.loy-teaser-cta {
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
}
.loy-teaser-more { border: 0; background: none; padding: 4px; font-size: 0.78rem; color: #6b7280; }
.loy-teaser-cta:focus-visible, .loy-teaser-more:focus-visible { outline: 2px solid rgba(17, 24, 39, 0.85); outline-offset: 2px; }
@media (min-width: 768px) {
    .loy-strip-wrap, .loy-wallet, .loy-teaser { max-width: 800px; margin-left: auto; margin-right: auto; }
}

/* Weggeklickt: Ring um das Geschenk im Kopf, links neben Profil und Infos (wie .user-btn) */
.loy-ring-btn {
    position: absolute;
    top: 20px;
    right: 120px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    z-index: 10;
    animation: loy-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.loy-ring-btn:hover { background: rgba(0, 0, 0, 0.5); }
.loy-ring-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.loy-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.loy-ring-track, .loy-ring-fill { fill: none; stroke-width: 3; }
.loy-ring-track { stroke: rgba(255, 255, 255, 0.3); }
.loy-ring-fill { stroke: #fff; stroke-linecap: round; transition: stroke-dasharray 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.loy-ring-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 9px;
    background: var(--primary-color);
    box-shadow: 0 0 0 2px #fff;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 18px;
}

/* ---------- Stempelkarte (nur „nach Bestellungen“) ---------- */
.loy-stamps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 6px; justify-items: center; margin: 16px 0 4px; }
.loy-stamp { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; width: 100%; }
.loy-stamp-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-sizing: border-box;
    border: 2px dashed #d7dbe1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.loy-stamp.reward .loy-stamp-dot { border: 2px solid var(--primary-color); color: var(--primary-color); background: rgba(var(--primary-color-rgb), 0.07); }
.loy-stamp.next .loy-stamp-dot { box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.14); }
.loy-stamp.stamped .loy-stamp-dot { border: 0; background: none; }
/* Gratis-Artikel mit Bild: Foto im Belohnungsfeld, kleines Geschenk unten rechts */
.loy-stamp.has-img .loy-stamp-dot { position: relative; padding: 2px; border-style: solid; }
.loy-stamp-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.loy-stamp-badge {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    box-shadow: 0 0 0 2px #fff;
}
.loy-stamp-badge .loy-icon { width: 12px; height: 12px; }
.on-brand .loy-stamp-badge { background: #fff; color: var(--primary-color); box-shadow: 0 0 0 2px var(--primary-color); }
.loy-stamp-ink {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35);
    animation: loy-stamp 0.4s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.loy-stamp-ink svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.loy-stamp-n { font-size: 0.85rem; font-weight: 700; color: #c4c9d1; }
/* Bis zu zwei Zeilen („Snack deiner Wahl“) */
.loy-stamp-label {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-width: 100%;
    min-height: 1.25em;
    overflow: hidden;
    overflow-wrap: anywhere;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: #6b7280;
}
.loy-stamp.reward .loy-stamp-label { color: var(--primary-color); }
/* Auf der Treuekarte (Markenfarbe): weiße Stempel */
.loy-stamps.on-brand { margin: 0; gap: 10px 6px; }
.on-brand .loy-stamp-dot { width: 42px; height: 42px; border-color: rgba(255, 255, 255, 0.55); font-size: 1.05rem; }
.on-brand .loy-stamp.reward .loy-stamp-dot { border-color: rgba(255, 255, 255, 0.9); color: #fff; background: rgba(255, 255, 255, 0.14); }
.on-brand .loy-stamp.next .loy-stamp-dot { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2); }
.on-brand .loy-stamp-ink { background: #fff; box-shadow: none; }
.on-brand .loy-stamp-ink svg { stroke: var(--primary-color); }
.on-brand .loy-stamp-n { color: rgba(255, 255, 255, 0.7); }
.on-brand .loy-stamp-label, .on-brand .loy-stamp.reward .loy-stamp-label { color: rgba(255, 255, 255, 0.92); }
.loy-next-box { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #f6f7f9; font-size: 0.9rem; font-weight: 700; }
.loy-card-note { margin: 4px 0 0; font-size: 0.76rem; color: #6b7280; text-align: center; }

/* ---------- Belohnungen als Ticket (Fenster, Kasse, Statusseite) ---------- */
.loy-tickets { display: grid; gap: 10px; }
.loy-ticket {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 64px;
    padding: 0;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    color: #111827;
    font: inherit;
    text-align: left;
}
/* Kerben links und rechts der Abrisslinie */
.loy-ticket::before, .loy-ticket::after {
    content: "";
    position: absolute;
    left: 52px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
}
.loy-ticket::before { top: -9px; }
.loy-ticket::after { bottom: -9px; }
.loy-ticket-stub {
    flex: 0 0 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 12px 0 0 12px;
    border-right: 2px dashed #e5e7eb;
    background: #f6f7f9;
    color: #9ca3af;
    font-size: 1.25rem;
}
.loy-ticket-stub small { font-size: 0.56rem; font-weight: 800; letter-spacing: 0.08em; }
.loy-ticket-stub-text { font-size: 1rem; font-weight: 800; }
.loy-ticket-body { flex: 1 1 auto; min-width: 0; padding: 11px 12px 11px 16px; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.loy-ticket-body strong { font-size: 0.94rem; }
.loy-ticket-body span { font-size: 0.78rem; color: #4b5563; }
.loy-ticket .loy-reward-check { align-self: center; margin-right: 14px; }
/* Bereite Belohnung im Fenster und gewählte an der Kasse: in Markenfarbe */
.loy-sheet .loy-ticket, .loy-ticket.selected { border-color: var(--primary-color); background: rgba(var(--primary-color-rgb), 0.07); }
.loy-sheet .loy-ticket-stub, .loy-ticket.selected .loy-ticket-stub { background: var(--primary-color); color: #fff; border-right-color: rgba(255, 255, 255, 0.6); }
.loy-ticket-note { margin: 8px 0 0; font-size: 0.76rem; color: #6b7280; }

/* ---------- Fenster von unten (Handy) ---------- */
.loy-sheet-grip { display: none; }
.loy-restore { display: block; margin: 6px auto 0; font-size: 0.86rem; }
@media (max-width: 575.98px) {
    .loy-sheet .modal-dialog { margin: 0; height: 100%; min-height: 100%; max-width: none; align-items: flex-end; }
    .loy-sheet .modal-content { max-height: 92vh; border-radius: 24px 24px 0 0; }
    .loy-sheet.fade .modal-dialog { transform: translateY(100%); transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
    .loy-sheet.show .modal-dialog { transform: none; }
    .loy-sheet-grip { display: block; width: 40px; height: 5px; margin: 10px auto 0; border-radius: 3px; background: #d1d5db; }
    .loy-sheet .modal-body { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* ---------- Statusseite: Belohnung freigeschaltet ---------- */
.loy-celebrate { padding: 0; overflow: hidden; text-align: left; }
.loy-celebrate-band {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 18px 20px;
    background: var(--primary-color);
    color: #fff;
    text-align: center;
}
.loy-celebrate-band strong { font-size: 1.25rem; font-weight: 800; }
.loy-celebrate-band > span:last-child { font-size: 0.86rem; opacity: 0.92; }
.loy-celebrate-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--primary-color);
    font-size: 1.7rem;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.18);
    animation: loy-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.loy-burst i { position: absolute; display: block; border-radius: 2px; background: rgba(255, 255, 255, 0.6); animation: loy-burst 0.7s ease-out backwards; }
/* Nur neben dem Geschenk, nicht über dem Text */
.loy-burst i:nth-child(1) { left: 22%; top: 13%; width: 10px; height: 4px; transform: rotate(-30deg); }
.loy-burst i:nth-child(2) { left: 30%; top: 33%; width: 6px; height: 6px; border-radius: 50%; animation-delay: 0.05s; }
.loy-burst i:nth-child(3) { left: 13%; top: 28%; width: 12px; height: 4px; transform: rotate(25deg); animation-delay: 0.1s; }
.loy-burst i:nth-child(4) { right: 21%; top: 11%; width: 12px; height: 4px; transform: rotate(35deg); }
.loy-burst i:nth-child(5) { right: 29%; top: 31%; width: 7px; height: 7px; border-radius: 50%; animation-delay: 0.05s; }
.loy-burst i:nth-child(6) { right: 12%; top: 26%; width: 10px; height: 4px; transform: rotate(-20deg); animation-delay: 0.1s; }
.loy-celebrate-body { padding: 18px 18px 6px; }
.loy-celebrate-body .loy-track { margin-top: 26px; }

@keyframes loy-pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes loy-stamp { from { transform: scale(1.4) rotate(0deg); opacity: 0; } }
@keyframes loy-unfold { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes loy-burst { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
    .loy-track-fill, .loy-strip-bar span, .loy-marker, .loy-seg, .loy-ring-fill, .loy-wallet-bar span { transition: none; }
    .loy-wallet, .loy-ring-btn, .loy-stamp-ink, .loy-celebrate-icon, .loy-burst i { animation: none; }
    .loy-sheet.fade .modal-dialog { transition: none; }
}
