/*
 * Letzi an festen Stellen (letzdine.eu, Entwurf vom 24.11.2026).
 * Schalter: application/config/letzdine_marke.php ('letzi'). Nur auf Letzdine-Seiten geladen (letzdine/layout/marke_assets.php).
 * 1. Liste: „Letzi empfiehlt“ (restaurants-modern.js, letziTip) – Stil unten.
 * 2. Liste: „nichts gefunden“ (gab es schon, .ldl-empty).
 * 3. Restaurantseite: leerer Warenkorb – Letzi wartet statt Einkaufswagen (partials/delivery_pickup_cart_panel.php).
 */

/* ---------------------------------------------------------------- Leerer Warenkorb */
:is(#ldm, html) .letzdine-rest-menu__cart-empty .ld-cart-empty-gif { display: none !important; }
:is(#ldm, html) .letzdine-rest-menu__cart-empty .ld-cart-empty-letzi[hidden] {
    display: block !important;
    width: 150px;
    height: 150px;
    max-width: 100%;
    margin: 6px auto 4px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(6, 22, 40, .28));
}
:is(#ldm, html) .letzdine-rest-menu__cart-empty .ld-cart-empty-letzi-title[hidden] {
    display: block !important;
    font-size: 17px;
    font-weight: 800;
    margin-top: 2px;
}

/* ---------------------------------------------------------------- Liste: „Letzi empfiehlt“ */
.ldl-letzi {
    margin-top: 18px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 10px 18px 10px 10px;
    background: var(--ldl-card);
    border: 1px solid var(--ldl-line);
    border-radius: 20px 20px 20px 6px;
    color: var(--ldl-ink);
    text-decoration: none !important;
}
.ldl-letzi img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    margin: -16px 0 -10px;
    filter: drop-shadow(0 8px 14px rgba(6, 22, 40, .22));
    transition: transform .3s;
}
.ldl-letzi:hover img { transform: rotate(-4deg) translateY(-2px); }
.ldl-letzi b { display: block; font-size: 15.5px; font-weight: 800; color: var(--ldl-ink); }
.ldl-letzi div > span { display: block; font-size: 13.5px; color: var(--ldl-mute); }
.ldl-letzi .ldl-btn { height: 40px; padding: 0 16px; font-size: 14px; }
@media (max-width: 560px) {
    .ldl-letzi { grid-template-columns: auto minmax(0, 1fr); }
    .ldl-letzi .ldl-btn { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
    .ldl-letzi img { transition: none; }
    .ldl-letzi:hover img { transform: none; }
}
