/* ============================================================================
 *  lp_cosegnarestyling – restyling.css
 *  Lädt nach styles.css (includeCSSFooter) und überschreibt ausschließlich das
 *  Aussehen des Bestellfrontends. Designsprache angelehnt an new.sale-pepe.de:
 *  clean, modern, viel Weißraum, runde Cards, weiche Schatten, kräftiger
 *  Italo-Rot-Akzent. Schriftarten werden bewusst NICHT geladen/gesetzt –
 *  die Fonts werden vom bestehenden Theme (styles.css) geerbt.
 *
 *  Aufgebaut auf dem bestehenden CSS-Variablen-System von lp_cosegna –
 *  zum Anpassen genügt es in der Regel, die Tokens im :root-Block zu ändern.
 * ========================================================================== */

/* ============================================================
 * 1) Design-Tokens überschreiben
 * ============================================================ */
:root {
    /* Farben */
    --maincolor: #c8102e;          /* kräftiges Italo-Rot */
    --maincolor-darken: #a00d24;   /* Hover */
    --singalcolor: #e63a2e;
    --maincolor-textcolor: #ffffff;
    --maincolor-textcolor-active: #ffffff;
    --maincolor-textcolor-hover: #ffffff;
    --grey: #f1f2f4;

    /* Restyling-eigene Tokens */
    --rs-ink: #1d1d22;
    --rs-muted: #6b7280;
    --rs-bg: #fafafb;
    --rs-card: #ffffff;
    --rs-border: #ececf0;
    --rs-radius: 18px;
    --rs-radius-sm: 12px;
    --rs-shadow: 0 6px 22px rgba(17, 17, 26, 0.07);
    --rs-shadow-hover: 0 14px 38px rgba(17, 17, 26, 0.13);

    /* Abstand der fixen Kategorie-Leiste von oben (anpassen, falls eine fixe Navbar darüber liegt) */
    --rs-catnav-top: 0px;

    /* Shop-Layout (Desktop): Breite der linken Kategorie-Sidebar + Abstand von oben */
    --rs-sidebar-width: 250px;
    --rs-sidebar-top: 12px;
    /* Off-Canvas-Warenkorb: Abstand von oben (auf die Höhe deiner Navbar setzen) */
    --rs-cart-top: 100px;
}

/* ============================================================
 * 2) Grundlayout / Typografie
 * ============================================================ */
body {
    color: var(--rs-ink);
    background-color: var(--rs-bg);
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.015em;
    font-weight: 700;
}

/* ============================================================
 * 3) Buttons – weiche Pillen, klarer Akzent
 * ============================================================ */
.btn {
    border-radius: 999px;
    font-weight: 600;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn-primary {
    background-color: var(--maincolor);
    border-color: var(--maincolor);
    color: #fff;
    box-shadow: 0 6px 16px rgba(200, 16, 46, 0.22);
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--maincolor-darken);
    border-color: var(--maincolor-darken);
    color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(200, 16, 46, 0.28); }
.btn-signalcolor { background-color: var(--singalcolor); border-color: var(--singalcolor); color:#fff; }

/* ============================================================
 * 4) Navigation
 * ============================================================ */
.navbar {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(160%) blur(8px);
    -webkit-backdrop-filter: saturate(160%) blur(8px);
    box-shadow: 0 1px 0 var(--rs-border);
}
.navbar a { color: var(--rs-ink); }
.navbar a:hover { color: var(--maincolor); }
.navbar-nav { font-size: 1rem; font-weight: 600; }
.navbar-telephone-number { color: var(--maincolor); font-weight: 700; }

/* Sticky Kategorie-/Produktnavigation */
.category-container { gap: .5rem; }

/* ============================================================
 * 5) Produkt-Cards
 * ============================================================ */
/* Karte: Info links, Bild + "+"-Button rechts (Vorlagen-Stil) */
.productitem.rs-product {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    background: var(--rs-card);
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
    box-shadow: var(--rs-shadow);
    padding: 1rem 1.1rem;
    margin: 0;
    cursor: pointer;
    transition: box-shadow .18s ease, border-color .15s ease, transform .15s ease;
}
.productitem.rs-product:hover {
    box-shadow: var(--rs-shadow-hover);
    border-color: #e0e0e6;
    transform: translateY(-2px);
}

/* linke Spalte: Text */
.rs-product-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.rs-product-title {
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--rs-ink);
    text-transform: none;
    margin-bottom: .2rem;
}
.rs-product-title .rs-allergene-link { font-size: .8rem; margin-left: .3rem; }
.rs-product-price {
    font-weight: 700;
    color: var(--rs-ink);
    margin-bottom: .4rem;
    font-size: .98rem;
}
.rs-product-price .pretext-for-pricebtn-text { font-weight: 600; color: var(--rs-muted); font-size: .82rem; }
.rs-product-price .strike-price { color: var(--rs-muted); font-weight: 500; text-decoration: line-through; margin-right: .35rem; font-size: .85rem; }
.rs-product-desc { color: var(--rs-muted); font-size: .85rem; line-height: 1.4; }
.rs-product-ingredients { color: var(--rs-muted); font-size: .8rem; margin-top: .25rem; }

/* rechte Spalte: Bild + "+"-Button */
.rs-product-media {
    flex: 0 0 auto;
    position: relative;
    align-self: flex-start;
}
.rs-product-img {
    width: 116px;
    height: 116px;
    border-radius: 14px;
    overflow: hidden;
    background: #0e3a4f;          /* dunkler Hintergrund wie in der Vorlage */
}
.rs-product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* runder "+"-Button unten rechts auf dem Bild */
.rs-add-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: var(--rs-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    line-height: 1;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
/* Karte ohne Bild: "+" rechts mittig statt auf dem Bild */
.rs-product-media:not(:has(.rs-product-img)) { align-self: center; }
.rs-product-media:not(:has(.rs-product-img)) .rs-add-btn {
    position: static;
    background: var(--maincolor);
    color: #fff;
}

/* Fallback: greift der Template-Override (noch) nicht, ist das Original-Markup
   (.productitem OHNE .rs-product) wenigstens eine saubere weiße Karte statt grau. */
.productitem:not(.rs-product) {
    background: #fff;
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
    box-shadow: var(--rs-shadow);
    overflow: hidden;
}
.productitem:not(.rs-product) .productitem-header {
    text-transform: none;
    font-weight: 700;
    color: var(--rs-ink);
}
.productitem:not(.rs-product) .productitem-subheader { color: var(--rs-muted); }

/* ============================================================
 * 6) Warenkorb / Cart-Preview
 * ============================================================ */
.cartPreview > .card,
.cartSection .card {
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
    box-shadow: var(--rs-shadow);
}
.cardPreview-productitem {
    border-bottom: 1px solid var(--rs-border);
    padding-bottom: .75rem;
}
.cardPreview-productitem .price { color: var(--maincolor); }
.cardPreview-productitem-info-additive { color: var(--rs-muted); font-size: .85rem; }

/* ============================================================
 * 7) Modals / Overlays
 * ============================================================ */
.modal-content {
    border: 0;
    border-radius: var(--rs-radius);
    box-shadow: 0 24px 60px rgba(17, 17, 26, 0.18);
    overflow: hidden;
}
.modal-header { border-bottom: 1px solid var(--rs-border); }
.modal-footer { border-top: 1px solid var(--rs-border); }

/* ============================================================
 * 8) Formular-Felder
 * ============================================================ */
.form-control,
.form-select {
    border-radius: var(--rs-radius-sm);
    border-color: var(--rs-border);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--maincolor);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

/* ============================================================
 * 9) Hilfsklassen an die neue Palette angleichen
 * ============================================================ */
.bg-maincolor { background-color: var(--maincolor) !important; }
.color-maincolor, .color-red, .color-red-bold { color: var(--maincolor) !important; }
.color-red-bold { font-weight: 700; }

/* ============================================================
 * 10) Kategorie-Auswahl – fixe (sticky) Leiste mit kompakten Pills
 *     (analog zum sale-pepe-Beispiel: schlanke Tab-/Pill-Leiste oben
 *      statt großer roter Kacheln)
 * ============================================================ */
/* Leiste fix oben halten */
#productnav-stickynav {
    position: sticky !important;
    top: var(--rs-catnav-top);
    z-index: 1030;
    background: var(--rs-card);
    border-bottom: 1px solid var(--rs-border);
    box-shadow: 0 4px 18px rgba(17, 17, 26, 0.06);
    padding: .5rem 0;
    overflow: hidden;
}

/* horizontale, scrollbare Leiste – zentriert (fällt bei Überlauf sicher auf links zurück) */
#productnav-stickynav .producttypes-filter {
    color: var(--rs-ink);
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: .5rem;
    padding: 0 .6rem;
    align-items: center;
    justify-content: safe center;
    scrollbar-width: thin;
}

/* einzelne Kategorie = kompakte Pill.
   ID-Scope (#productnav-stickynav …) schlägt Bootstrap .col und alle Original-Regeln. */
#productnav-stickynav .producttypes-filter-item {
    flex: 0 0 auto;          /* nicht mehr aufblähen (col -> auto) */
    width: auto;
    height: auto;            /* statt 100px/150px */
    min-height: 0;
    max-width: 60vw;
    flex-direction: row;     /* Icon + Text nebeneinander */
    align-items: center;
    gap: .45rem;
    padding: .45rem .95rem;
    background: #f4f4f6;
    border: 1px solid var(--rs-border);
    border-radius: 999px;
    color: var(--rs-ink);
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
#productnav-stickynav .producttypes-filter-item:hover {
    background: var(--maincolor);
    border-color: var(--maincolor);
    color: #fff;
}

/* Name kompakt, einzeilig */
#productnav-stickynav .producttypes-filter-item h4 {
    margin: 0;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
    color: inherit;
}

/* Icon klein und inline (statt 75×100 / 50px) */
#productnav-stickynav .producttypes-filter-item svg {
    width: 20px;
    height: 20px;
    color: var(--maincolor);
    fill: currentColor;
    flex: 0 0 auto;
}
#productnav-stickynav .producttypes-filter-item:hover h4,
#productnav-stickynav .producttypes-filter-item:hover svg {
    color: #fff;
    fill: #fff;
}

/* ============================================================
 * 11) Desktop-Shop-Layout: Kategorie-Sidebar links, Produkte rechts
 *     (>= 992px). Darunter bleibt die horizontale Pill-Leiste aus 10).
 * ============================================================ */
@media (min-width: 992px) {

    /* Sidebar schwebt links, sticky – clean ohne Box-Container */
    #productnav-stickynav {
        float: left;
        width: var(--rs-sidebar-width);
        position: sticky;
        top: var(--rs-sidebar-top);
        max-height: calc(100vh - var(--rs-sidebar-top) - 12px);
        overflow-y: auto;
        z-index: 20;
        margin: 12px 0;
        /* etwas linkes Padding, damit die Kategorie-Liste nicht am Bildschirmrand klebt (nur Desktop) */
        padding: .25rem .25rem .5rem 1rem;
        background: transparent;
        border: 0;
        box-shadow: none;
        scrollbar-width: thin;
    }

    /* Kategorien vertikal als saubere Liste */
    #productnav-stickynav .producttypes-filter {
        flex-direction: column;
        flex-wrap: nowrap;
        overflow-x: visible;
        align-items: stretch;
        justify-content: flex-start;
        gap: .1rem;
        padding: 0;
    }

    /* jede Kategorie = schlichte, moderne Listenzeile */
    #productnav-stickynav .producttypes-filter-item {
        width: 100%;
        max-width: none;
        justify-content: flex-start;
        gap: .7rem;
        padding: .7rem .9rem;
        background: transparent;
        border: 0;
        border-radius: 12px;
        color: var(--rs-muted);
        font-weight: 600;
        transition: background-color .15s ease, color .15s ease;
    }
    #productnav-stickynav .producttypes-filter-item:hover {
        background: #f1f1f4;
        color: var(--rs-ink);
    }
    /* Hover: Name dunkel halten (sonst greift das weiße :hover h4 aus der Mobil-Sektion
       -> weiß auf hellgrau = unlesbar). */
    #productnav-stickynav .producttypes-filter-item:hover h4 { color: var(--rs-ink); }
    #productnav-stickynav .producttypes-filter-item:hover svg,
    #productnav-stickynav .producttypes-filter-item:hover svg path { fill: var(--maincolor); }
    #productnav-stickynav .producttypes-filter-item h4 {
        font-size: 1rem;
        font-weight: 600;
        color: inherit;
        margin: 0;
        /* KEIN font-family-Override -> erbt wie die Mobil-Variante die Theme-
           headline-font (styles.css h4), damit die Schrift überall gleich ist. */
    }
    #productnav-stickynav .producttypes-filter-item svg {
        width: 18px;
        height: 18px;
        color: currentColor;
        opacity: .6;
        flex: 0 0 auto;
    }
    #productnav-stickynav .producttypes-filter-item:hover svg { color: var(--maincolor); opacity: 1; }

    /* Hauptbereich rechts neben der Sidebar */
    #productfilterlist-Container {
        margin-left: calc(var(--rs-sidebar-width) + 1.5rem);
        margin-right: 1rem;
        max-width: none;
        width: auto;
    }

    /* Produktspalte über volle Breite (Warenkorb ist off-canvas, s. 13) */
    #productfilterlist-Container > .row > .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
}

/* ============================================================
 * 12) Produkt-Raster (2 Spalten) + Kategorie-Header
 * ============================================================ */
/* Die Produkte einer Kategorie liegen alle in EINEM .col-12 -> als Grid anordnen */
@media (min-width: 768px) {
    .producttype-container .row > .col-12 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        align-items: start;
    }
}
/* Karten-Abstand übernimmt das Grid */
.producttype-container .productitem { margin: 0; }

/* Kategorie-Header (Foodtype): Bild-Banner BLEIBT (wie gewünscht) – nur abgerundete Ecken */
.category-teaser {
    border-radius: var(--rs-radius);
    overflow: hidden;
}
.producttype-container { margin-bottom: 1.75rem; }

/* kleiner Abstand zwischen Foodtype-Bild (Banner) und der Produktliste */
.producttype-container .row { margin-top: .6rem; }

/* ============================================================
 * 13) Warenkorb: immer versteckt (off-canvas), per Griff ausklappbar –
 *     auf ALLEN Breiten (nicht nur mobil). Toggle läuft über das
 *     vorhandene jslib (.card-latch -> .cartPreview.show).
 * ============================================================ */
/* Off-Canvas-Panel rechts: standardmäßig komplett ausgefahren (versteckt) */
.cartPreview {
    position: fixed;
    z-index: 5000;
    top: 0;
    right: 0;
    left: auto;
    width: min(94vw, 400px);
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    transform: translateX(100%);            /* komplett rechts außerhalb */
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}
.cartPreview.show { transform: translateX(0); }   /* fährt von rechts rein */

/* Das Basis-CSS (styles.css) macht .cartPreview.noFix auf Mobile (<=992px) static/auto/z900.
   Das würde unser Off-Canvas-Panel zerstören (jslib toggelt .noFix u.a. beim Scrollen).
   Hier unwirksam machen: das Panel bleibt IMMER das fixe Off-Canvas, auch mit .noFix.
   body-Prefix -> Spezifität (0,2,1) schlägt die Basis-Regel (0,2,0). */
@media (max-width: 992px) {
    body .cartPreview.noFix {
        position: fixed;
        height: 100vh;
        max-height: 100vh;
        z-index: 5000;
    }
}

/* die Warenkorb-Karte füllt das Panel */
.cartPreview > .card {
    position: relative;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: -12px 0 40px rgba(17, 17, 26, .18);
}

/* der Original-Griff dient (nur) als Schließen-Lasche, wenn offen */
.card-latch { display: flex; }

/* Abdunkelung hinter dem Panel */
.rs-cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 4999;
}
.rs-cart-backdrop.show { opacity: 1; visibility: visible; }

/* schwebender Warenkorb-Button (öffnet das Panel) */
.rs-cart-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 4000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--maincolor);
    color: #fff;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px rgba(200, 16, 46, .38);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.rs-cart-fab:hover { transform: translateY(-2px); }
.rs-cart-fab svg { width: 26px; height: 26px; }
.rs-cart-fab-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 11px;
    background: #fff;
    color: var(--maincolor);
    border: 2px solid var(--maincolor);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* FAB ausblenden, solange das Panel offen ist */
body.rs-cart-open .rs-cart-fab { opacity: 0; pointer-events: none; }
body.rs-cart-open { overflow: hidden; }

/* ============================================================
 * 14) Sidebar-Suche + Suchfilter
 * ============================================================ */
.rs-sidebar-search {
    position: relative;
    margin: 0 0 .75rem;
    padding: 0 .25rem;
}
.rs-search-input {
    width: 100%;
    padding: .65rem 2.4rem .65rem 1rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #f1f1f4;
    font-size: .95rem;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--rs-ink);
    outline: none;
}
.rs-search-input::placeholder { color: var(--rs-muted); }
.rs-search-input:focus {
    border-color: var(--maincolor);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, .12);
}
.rs-search-icon {
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rs-muted);
    display: flex;
    pointer-events: none;
}

/* per Suche leer gefilterte Kategorie komplett ausblenden */
.rs-section-empty { display: none !important; }

/* ============================================================
 * 15) Produkt-Modal: Produktbild oben (rechteckig, cover)
 * ============================================================ */
#foodModal .modal-content {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: var(--rs-radius);
    box-shadow: 0 24px 70px rgba(17, 17, 26, .28);
}

/* Bild-Banner oben: rechteckig, cover, dunkler Hintergrund wie in der Card */
.rs-modal-img {
    width: 100%;
    height: 260px;
    background: #0e3a4f;
    overflow: hidden;
}
.rs-modal-img[hidden] { display: none; }
.rs-modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* runder Schließen-Button (überlagert Bild bzw. Kopf oben rechts) */
.rs-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    /* WICHTIG: nur background-COLOR setzen – das X-Icon kommt als background-IMAGE
       von Bootstraps .btn-close. Niemals auf das 'background'-Shorthand wechseln,
       sonst verschwindet das X. */
    background-color: #fff;
    background-size: 13px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
    opacity: 1;
}
.rs-modal-close:hover { opacity: 1; background-color: #f2f2f4; }

/* Original-Header-Close (falls vorhanden) ausblenden – wir nutzen den Overlay-Button */
#foodModal .modal-header .btn-close { display: none; }

/* Kopfbereich unter dem Bild etwas luftiger */
#foodModal .modal-header { border-bottom: 0; padding-bottom: .25rem; }
#foodModal .modal-body { padding-top: .5rem; }

@media (max-width: 575px) {
    .rs-modal-img { height: 200px; }
}

/* ============================================================
 * 16) Sticky-Nav: Icons einfärben + aktiver Zustand (Scrollspy)
 * ============================================================ */
/* Icons einfärben – die IconsMapping-SVGs haben fill="#fff" hartcodiert */
#productnav-stickynav .producttypes-filter-item svg,
#productnav-stickynav .producttypes-filter-item svg path { fill: var(--maincolor); }
#productnav-stickynav .producttypes-filter-item svg { opacity: 1; color: var(--maincolor); }

/* Aktiver Zustand (vom Scrollspy gesetzt) – mobil (Pills): kräftig rot */
#productnav-stickynav .producttypes-filter-item.rs-nav-active {
    background: var(--maincolor);
    border-color: var(--maincolor);
    color: #fff;
}
#productnav-stickynav .producttypes-filter-item.rs-nav-active h4 { color: #fff; }
#productnav-stickynav .producttypes-filter-item.rs-nav-active svg,
#productnav-stickynav .producttypes-filter-item.rs-nav-active svg path { fill: #fff; }

/* Aktiver Zustand – desktop (Liste): dezenter roter Tint */
@media (min-width: 992px) {
    #productnav-stickynav .producttypes-filter-item.rs-nav-active {
        background: rgba(200, 16, 46, .09);
        border-color: transparent;
        color: var(--maincolor);
    }
    #productnav-stickynav .producttypes-filter-item.rs-nav-active h4 { color: var(--maincolor); }
    #productnav-stickynav .producttypes-filter-item.rs-nav-active svg,
    #productnav-stickynav .producttypes-filter-item.rs-nav-active svg path { fill: var(--maincolor); }
}

/* ============================================================
 * 17) Homepage-Teaser (modern)
 * ============================================================ */
/* Aktions-Lauftext */
.rs-marquee { overflow: hidden; background: var(--maincolor); color: #fff; padding: 9px 0; }
.rs-marquee-track { display: inline-flex; white-space: nowrap; animation: rs-marquee 38s linear infinite; }
.rs-marquee-item { padding-right: 2.5rem; font-size: .9rem; font-weight: 500; }
.rs-marquee-item b { font-weight: 700; }
.rs-marquee-sep { opacity: .55; margin: 0 .4rem; }
@keyframes rs-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Hero */
.rs-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1f;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    text-align: center;
}
.rs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 17, 26, .35) 0%, rgba(17, 17, 26, .80) 100%);
}
.rs-hero-inner { position: relative; z-index: 1; max-width: 720px; padding: 3rem 1.25rem; color: #fff; }
.rs-hero-kicker {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    padding: .4rem .9rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.rs-hero-title {
    font-size: clamp(2rem, 5vw, 3.1rem);
    font-weight: 800;
    line-height: 1.08;
    margin: 0 0 .6rem;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
}
.rs-hero-city { display: block; font-weight: 600; opacity: .92; font-size: .52em; margin-top: .4rem; }
.rs-hero-sub { font-size: 1.05rem; color: rgba(255, 255, 255, .85); margin: 0 auto 1.6rem; max-width: 540px; }
.rs-hero-cta {
    display: inline-block;
    background: var(--maincolor);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: .85rem 2.2rem;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(200, 16, 46, .45);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.rs-hero-cta:hover {
    transform: translateY(-2px);
    background: var(--maincolor-darken);
    color: #fff;
    box-shadow: 0 14px 38px rgba(200, 16, 46, .5);
}

/* Trust-Badge (dezent modern) */
.trust-wrapper { padding: 1.5rem 1rem; }
.trust-badge { display: flex; flex-wrap: wrap; gap: 1.25rem 2.25rem; justify-content: center; align-items: center; max-width: 900px; margin: 0 auto; }
.trust-item { display: flex; align-items: center; gap: .5rem; color: var(--rs-muted); font-size: .9rem; }
.trust-item .trust-label { font-weight: 600; color: var(--rs-ink); }
.trust-item .trust-stars svg { width: 18px; height: 18px; fill: #f5b50a; }
.trust-item .trust-icon { width: 22px; height: 22px; }
.trust-pay img { height: 22px; width: auto; }

/* SEO-Text: dezent, ausklappbar (bleibt im DOM für SEO) */
.rs-seo { max-width: 820px; margin: 1.25rem auto 2rem; padding: 0 1.25rem; }
.rs-seo > summary {
    cursor: pointer;
    list-style: none;
    color: var(--rs-muted);
    font-size: .9rem;
    text-align: center;
    padding: .5rem 0;
    opacity: .85;
}
.rs-seo > summary::-webkit-details-marker { display: none; }
.rs-seo > summary::after { content: " ▾"; }
.rs-seo[open] > summary::after { content: " ▴"; }
.rs-seo-body { padding-top: .5rem; color: var(--rs-muted); }
.rs-seo-body h2 { font-size: 1.1rem; color: var(--rs-ink); font-weight: 700; }
.rs-seo-body p { font-size: .9rem; line-height: 1.6; }

/* ============================================================
 * 18) Portal: Tab-Nav + View-Umschaltung + Store-Details-Modal
 * ============================================================ */
.rs-portalnav {
    position: static;          /* bewusst NICHT fix/sticky – scrollt mit dem Inhalt */
    background: #fff;
    border-bottom: 1px solid var(--rs-border);
    margin-bottom: 1rem;
}
.rs-portalnav-inner {
    display: flex;
    align-items: center;
    gap: .25rem 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: .15rem 1rem;
}
.rs-portaltabs { display: flex; gap: .25rem; flex-wrap: wrap; align-items: center; }

/* Auth-Optionen (nur bei Treueprogramm) */
.rs-portalnav-auth { display: flex; align-items: center; gap: .9rem; }
.rs-auth-login {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--rs-ink);
    cursor: pointer;
    padding: .5rem .25rem;
    transition: color .15s ease;
}
.rs-auth-login:hover { color: var(--maincolor); }
.rs-auth-register {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--maincolor);
    border-radius: 999px;
    padding: .6rem 1.5rem;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(200, 16, 46, .25);
    transition: background-color .15s ease, transform .15s ease;
}
.rs-auth-register:hover { background: var(--maincolor-darken); transform: translateY(-1px); }

/* ============================================================
 * 19) Login-/Registrierungs-Modal
 * ============================================================ */
.rs-auth-modal .modal-content { border: 0; border-radius: var(--rs-radius); overflow: hidden; }
.rs-auth-form { display: flex; flex-direction: column; gap: .9rem; }
.rs-auth-label {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-weight: 600;
    color: var(--rs-ink);
    font-size: .9rem;
}
.rs-auth-label input {
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius-sm);
    padding: .65rem .8rem;
    font-size: .98rem;
    font-weight: 400;
    color: var(--rs-ink);
}
.rs-auth-label input:focus {
    border-color: var(--maincolor);
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, .12);
}
.rs-auth-submit {
    margin-top: .25rem;
    border: 0;
    border-radius: 999px;
    background: var(--maincolor);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: .75rem 1rem;
    cursor: pointer;
    transition: background-color .15s ease;
}
.rs-auth-submit:hover { background: var(--maincolor-darken); }
.rs-auth-submit:disabled { opacity: .6; cursor: default; }
.rs-auth-switch { text-align: center; font-size: .88rem; color: var(--rs-muted); margin: .5rem 0 0; }
.rs-auth-switch a { color: var(--maincolor); text-decoration: none; font-weight: 600; }
.rs-auth-switch a:hover { text-decoration: underline; }
.rs-auth-msg {
    border-radius: var(--rs-radius-sm);
    padding: .7rem .9rem;
    margin-bottom: 1rem;
    font-size: .92rem;
    font-weight: 600;
}
.rs-auth-msg.is-ok { background: #e7f6ec; color: #1b7a3e; }
.rs-auth-msg.is-error { background: #fdecec; color: #c01d1d; }
.rs-portaltab {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--rs-muted);
    padding: .9rem 1rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color .15s ease, border-color .15s ease;
}
.rs-portaltab:hover { color: var(--rs-ink); }
.rs-portaltab.is-active { color: var(--maincolor); border-bottom-color: var(--maincolor); }

/* --- Portal-Nav auf Mobile (<768px): kein Umbruch, kompakte Auth-Buttons --- */
@media (max-width: 767px) {
    .rs-portalnav-inner {
        flex-direction: column;
        align-items: stretch;
        gap: .4rem;
        padding: .25rem .75rem .55rem;
    }
    /* Tabs (Menü/Prämien/App/Store-Details) in EINER scrollbaren Zeile statt Umbruch */
    .rs-portaltabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: .15rem;
        scrollbar-width: none;
    }
    .rs-portaltabs::-webkit-scrollbar { display: none; }
    .rs-portaltab {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 1rem;
        padding: .65rem .6rem;
    }
    /* Anmelden + Registrieren: zwei gleich breite, saubere Pills nebeneinander */
    .rs-portalnav-auth {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .5rem;
    }
    .rs-auth-login {
        border: 1px solid var(--rs-border);
        border-radius: 999px;
        text-align: center;
        padding: .6rem .5rem;
        font-size: .95rem;
    }
    .rs-auth-register {
        text-align: center;
        padding: .6rem .5rem;
        font-size: .95rem;
    }
}

/* View-Umschaltung (Menü <-> Prämien) – per body[data-rs-view] (restyling.js) */
#rs-view-praemien { display: none; }
body[data-rs-view="praemien"] #rs-view-praemien { display: block; }
body[data-rs-view="praemien"] #productnav-stickynav,
body[data-rs-view="praemien"] #productfilterlist-Container { display: none !important; }

/* App-Ansicht (Portal-Tab, analog zu Prämien) */
#rs-view-app { display: none; }
body[data-rs-view="app"] #rs-view-app { display: block; }
body[data-rs-view="app"] #productnav-stickynav,
body[data-rs-view="app"] #productfilterlist-Container { display: none !important; }

/* ---- Prämien-Ansicht: Hero + Belohnungs-Grid (Loyalty show) -------------- */
.rs-praemien { padding: 0; }
.rs-rw { max-width: 1140px; margin: 0 auto; }

/* Hero */
.rs-rw-hero {
    text-align: center;
    padding: 3.5rem 1.25rem 3rem;
    background: radial-gradient(120% 90% at 50% 0%, rgba(200, 16, 46, .14) 0%, rgba(200, 16, 46, .05) 38%, transparent 70%);
    border-radius: var(--rs-radius);
}
.rs-rw-hero-inner { max-width: 720px; margin: 0 auto; }
.rs-rw-kicker {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(200, 16, 46, .12);
    color: var(--maincolor);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .45rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}
.rs-rw-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.05; margin: 0 0 .6rem; color: var(--rs-ink); }
.rs-rw-sub { font-size: 1.05rem; color: var(--rs-muted); margin: 0 0 1.8rem; }

.rs-rw-cta {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    cursor: pointer;
    background: var(--maincolor);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 1rem 2.4rem;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(200, 16, 46, .4);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.rs-rw-cta:hover { transform: translateY(-2px); background: var(--maincolor-darken); box-shadow: 0 16px 40px rgba(200, 16, 46, .5); }
.rs-rw-login { margin: 1rem 0 0; color: var(--rs-muted); font-size: .95rem; }
.rs-rw-login a { color: var(--rs-ink); font-weight: 600; text-decoration: underline; }
.rs-rw-login a:hover { color: var(--maincolor); }

/* Hero eingeloggt: Punktestand statt CTA */
.rs-rw-points {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid var(--rs-border);
    border-radius: var(--rs-radius);
    box-shadow: var(--rs-shadow);
    padding: 1.4rem 2.6rem;
}
.rs-rw-points-label { font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--rs-muted); }
.rs-rw-points-value { font-size: clamp(2.6rem, 7vw, 3.6rem); font-weight: 800; line-height: 1; color: var(--maincolor); margin: .15rem 0; }
.rs-rw-points-unit { font-size: .95rem; font-weight: 600; color: var(--rs-ink); }

/* Rewards-Bereich */
.rs-rw-rewards { padding: 1rem 1.25rem 3rem; text-align: center; }
.rs-rw-rewards-head { margin-bottom: 1.6rem; }
.rs-rw-kicker-dark { display: inline-block; color: var(--maincolor); font-weight: 700; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: .4rem; }
.rs-rw-rewards-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; color: var(--rs-ink); margin: 0; }

.rs-rw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.1rem;
    text-align: left;
}

/* Belohnungs-Karte: dunkelblau wie in der Vorlage, weißer Fuß */
.rs-rw-card {
    position: relative;
    background: #0e3a4f;
    border-radius: var(--rs-radius);
    overflow: hidden;
    box-shadow: var(--rs-shadow);
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .18s ease;
}
.rs-rw-card.is-unlocked { cursor: pointer; }
.rs-rw-card:hover { transform: translateY(-3px); box-shadow: var(--rs-shadow-hover); }

.rs-rw-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: #fff;
    color: var(--rs-ink);
    font-weight: 800;
    font-size: .72rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: .3rem .6rem;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.rs-rw-card-badge.is-free { background: var(--maincolor); color: #fff; }

.rs-rw-card-img { height: 150px; background: #0e3a4f; display: flex; align-items: center; justify-content: center; }
.rs-rw-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-rw-card-noimg { font-size: 2.4rem; color: rgba(255, 255, 255, .4); }

.rs-rw-card-foot { background: #fff; padding: .8rem .9rem 1rem; display: flex; flex-direction: column; gap: .25rem; flex: 1 1 auto; }
.rs-rw-card-name {
    font-weight: 700;
    color: var(--rs-ink);
    font-size: .95rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rs-rw-card-state { font-size: .85rem; color: var(--rs-muted); font-weight: 600; margin-top: auto; }
.rs-rw-card-state.is-ok { color: #1b7a3e; }

@media (max-width: 575px) {
    .rs-rw-hero { padding: 2.5rem 1rem 2.25rem; }
    .rs-rw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .rs-rw-card-img { height: 120px; }
}

/* ---- Auth-Erfolg: animiertes Häkchen + Meldung ------------------------- */
.rs-auth-success { text-align: center; padding: 1rem 0 1.5rem; }
.rs-auth-check { display: inline-block; width: 84px; height: 84px; }
.rs-auth-check svg { width: 100%; height: 100%; display: block; }
.rs-auth-check-circle { stroke: #1b7a3e; stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; }
.rs-auth-check-mark { stroke: #1b7a3e; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; }
.rs-auth-success.is-playing .rs-auth-check-circle { animation: rs-check-circle .5s ease-out forwards; }
.rs-auth-success.is-playing .rs-auth-check-mark { animation: rs-check-mark .35s .45s ease-out forwards; }
.rs-auth-success.is-playing .rs-auth-check { animation: rs-check-pop .3s .45s ease-out; }
@keyframes rs-check-circle { to { stroke-dashoffset: 0; } }
@keyframes rs-check-mark { to { stroke-dashoffset: 0; } }
@keyframes rs-check-pop { 0% { transform: scale(1); } 45% { transform: scale(1.08); } 100% { transform: scale(1); } }
.rs-auth-success-msg { margin: 1rem 0 0; font-weight: 700; font-size: 1.05rem; color: var(--rs-ink); }

/* Store-Details-Modal */
.rs-store-modal .modal-content { border: 0; border-radius: var(--rs-radius); overflow: hidden; }
.rs-store-map { width: 100%; height: 320px; background: #ececf0; }
.rs-store-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.rs-store-body { padding: 1.25rem 1.5rem 1.75rem; }
.rs-store-address { color: var(--rs-ink); margin-bottom: 1.25rem; line-height: 1.5; }
.rs-store-h { font-size: 1.15rem; font-weight: 700; color: var(--rs-ink); margin: 1.25rem 0 .6rem; }
.rs-store-hours { font-size: .98rem; }
.rs-hours-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem 0;
    border-bottom: 1px solid var(--rs-border);
    color: var(--rs-ink);
}
.rs-hours-row:last-child { border-bottom: 0; }
.rs-hours-row > span:first-child { color: var(--rs-ink); }
.rs-hours-row > span:last-child { color: var(--rs-muted); white-space: nowrap; }
.rs-store-website { color: #1a73e8; text-decoration: none; word-break: break-all; }
.rs-store-website:hover { text-decoration: underline; }

/* Öffnungszeiten-Tabs (Abholung / Lieferung / App) im Store-Details-Modal */
.rs-store-tabs { border-bottom: 1px solid var(--rs-border); margin-bottom: .75rem; gap: .25rem; flex-wrap: wrap; }
.rs-store-tabs .nav-link {
    color: var(--rs-muted);
    font-weight: 600;
    border: 0;
    border-bottom: 3px solid transparent;
    padding: .5rem .9rem;
    background: transparent;
}
.rs-store-tabs .nav-link:hover { color: var(--rs-ink); border-color: transparent; border-bottom-color: var(--rs-border); }
.rs-store-tabs .nav-link.active { color: var(--maincolor); background: transparent; border-bottom-color: var(--maincolor); }
.rs-store-tabcontent { padding-top: .25rem; }

/* App-Download-Ansicht (Portal-Tab, analog zu Prämien) */
.rs-app { padding: 1.5rem 1rem; }
.rs-app h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--rs-ink); margin-bottom: .5rem; }
.rs-app p { color: var(--rs-muted); margin-bottom: 1.25rem; }
.rs-app a { display: inline-block; margin: .4rem; }

/* ============================================================
 * 22) Liefer-/Abhol-spezifische Produkte + Warenkorb-Warnung
 *     Bestellart kommt als body-Klasse von jslib: .abholungChoosen / .deliveryChoosen.
 * ============================================================ */
/* Produkte mit "(Lieferung)" im Namen bei Abholung ausgrauen, "(Abholung)" bei Lieferung.
   Ausgrauen statt Ausblenden: bleiben sichtbar, sind aber deutlich deaktiviert und nicht
   anklickbar (pointer-events:none), damit sie in der falschen Bestellart nicht hinzugefügt werden. */
.abholungChoosen .productitem[data-productname~="(Lieferung)"],
.deliveryChoosen .productitem[data-productname~="(Abholung)"] {
    opacity: .45;
    filter: grayscale(1);
    pointer-events: none;
}

/* Liegt ein bestellart-fremdes Produkt im Warenkorb (Name-basiert, nicht foodid),
   wird das Bestellformular gesperrt und ein Hinweis vor #orderItem eingeblendet. */
.abholungChoosen:has(#cardPreview-productitemContainer .cardPreview-productitem[data-foodname~="(Lieferung)"]) #orderItem form { display: none; }
.abholungChoosen:has(#cardPreview-productitemContainer .cardPreview-productitem[data-foodname~="(Lieferung)"]) #orderItem::before {
    content: "Du hast ein Produkt mit Kennzeichnung '(Lieferung)' ausgewählt, welches nicht geliefert werden kann. Bitte entferne das entsprechende Produkt oder wechsel auf Abholung.";
    background: #e5a9a9;
    color: darkred;
    font-weight: bold;
    display: block;
    padding: 5px;
    border: 1px solid darkred;
}
.deliveryChoosen:has(#cardPreview-productitemContainer .cardPreview-productitem[data-foodname~="(Abholung)"]) #orderItem form { display: none; }
.deliveryChoosen:has(#cardPreview-productitemContainer .cardPreview-productitem[data-foodname~="(Abholung)"]) #orderItem::before {
    content: "Du hast ein Produkt mit Kennzeichnung '(Abholung)' ausgewählt, welches nicht abgeholt werden kann. Bitte entferne das entsprechende Produkt oder wechsel auf Lieferung.";
    background: #e5a9a9;
    color: darkred;
    font-weight: bold;
    display: block;
    padding: 5px;
    border: 1px solid darkred;
}
