/*!
 * Bestellsystem „Bestellung per WhatsApp oder E-Mail“ – order.css (gehört zu order.js)
 * Urheber: BAYER Marketing · imbiss-webseiten.de · Leipzig
 * Urheberrechtlich geschützt. Lizenz und Nutzungsbedingungen: siehe Kopf von js/order.js.
 * Dieser Hinweis darf nicht entfernt oder verändert werden.
 */
/* ==========================================================
   Pizzeria Bella Vista – css/order.css
   Warenkorb & Bestellanfrage (gehört zu js/order.js)
========================================================== */

/* „+“ an jedem Gericht */
.add-btn{flex:none;width:34px;height:34px;border-radius:50%;background:var(--tomato);color:#fff;font-size:1.3rem;font-weight:700;line-height:1;display:inline-flex;align-items:center;justify-content:center;align-self:center;box-shadow:0 4px 10px rgba(200,64,42,.3);transition:transform .2s,background .2s}
.add-btn:hover{background:var(--tomato-dark)}
.add-btn.pop{transform:scale(1.25)}
.plus{display:inline-flex;align-items:center;justify-content:center;width:1.3em;height:1.3em;border-radius:50%;background:var(--tomato);color:#fff;font-weight:700;font-size:.85em;vertical-align:middle}

/* Extras & Empfehlungen in Seitenkästen */
.side-card li.orderable{display:flex;justify-content:space-between;align-items:center;gap:.6rem}
.side-card li.orderable .add-btn{width:30px;height:30px;font-size:1.1rem}

/* Jugendschutz */
.cart-age,.age-note{background:#fff3cd;color:#6b5200;border-radius:10px;padding:.6rem .8rem;font-size:.85rem}
.age-note{margin:0 0 1.2rem;border:1px solid #f0d78c}

/* Bestell-Kasten auf der Startseite */
.feature.order-feature{background:var(--tomato);border-color:var(--tomato);color:#fff;flex-direction:column;gap:.7rem}
.feature.order-feature h3{font-family:var(--head);font-size:1.35rem;line-height:1.25;color:#fff}
.feature.order-feature p{color:#ffe9e2;font-size:.92rem}
.feature.order-feature .btn{background:#fff;color:var(--tomato);box-shadow:none;align-self:flex-start}
.feature.order-feature .btn:hover{background:var(--cream)}

/* Hinweis über der Karte */
.order-info{background:var(--paper);border:1px solid var(--line);border-left:4px solid var(--basil);border-radius:12px;padding:.9rem 1.1rem;margin:0 0 1.4rem;font-size:.92rem;color:var(--ink-2)}
.order-info strong{color:var(--ink)}

/* schwebender Warenkorb-Knopf */
.cart-fab{position:fixed;right:18px;bottom:18px;z-index:900;display:none;align-items:center;gap:.6rem;background:var(--tomato);color:#fff;padding:.8rem 1.2rem;border-radius:999px;font-weight:600;box-shadow:0 12px 28px rgba(200,64,42,.45)}
.cart-fab.show{display:inline-flex}
.cart-fab .cart-ico{color:#fff;flex:none}
.cart-fab .cart-count{background:#fff;color:var(--tomato);border-radius:999px;min-width:1.6em;padding:0 .4em;text-align:center;font-weight:700}
.cart-fab:hover{background:var(--tomato-dark)}

/* Platz unten, damit der Knopf nichts verdeckt */
body.has-cart{padding-bottom:84px}

/* Panel */
.cart-overlay{position:fixed;inset:0;background:rgba(24,18,13,.55);z-index:950;opacity:0;visibility:hidden;transition:opacity .25s}
.cart-panel{position:fixed;top:0;right:0;bottom:0;width:min(440px,100%);background:var(--cream);z-index:960;transform:translateX(100%);transition:transform .3s ease;display:flex;flex-direction:column;box-shadow:var(--shadow)}
body.cart-open{overflow:hidden}
body.cart-open .cart-overlay{opacity:1;visibility:visible}
body.cart-open .cart-panel{transform:none}
body.cart-open .cart-fab{display:none}
.cart-head{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.2rem;background:var(--dark);color:#f4ead9}
.cart-head h2{font-family:var(--head);font-size:1.35rem}
.cart-close{color:#f4ead9;font-size:1.3rem;width:40px;height:40px;border-radius:50%}
.cart-close:hover{background:rgba(255,255,255,.12)}
.cart-body{overflow-y:auto;padding:1rem 1.2rem 2rem;flex:1}
.cart-demo{font-size:.8rem;background:#fff3cd;color:#6b5200;border-radius:8px;padding:.5rem .7rem;margin-bottom:.8rem}
.cart-empty{color:var(--ink-2);padding:1.5rem 0}

.cart-items li{display:grid;grid-template-columns:1fr auto auto;gap:.6rem;align-items:center;padding:.6rem 0;border-bottom:1px dashed var(--line)}
.ci-name{font-weight:600;font-size:.95rem;line-height:1.3}
.ci-name small{display:block;font-weight:400;color:var(--ink-2);font-size:.8rem}
.ci-qty{display:inline-flex;align-items:center;gap:.4rem}
.ci-qty button{width:30px;height:30px;border-radius:50%;border:1px solid var(--line);background:var(--paper);font-weight:700;color:var(--ink)}
.ci-qty button:hover{border-color:var(--tomato);color:var(--tomato)}
.ci-qty b{min-width:1.2em;text-align:center}
.ci-sum{font-weight:700;color:var(--tomato);white-space:nowrap;min-width:4.6em;text-align:right}

.cart-form{display:grid;gap:.8rem;margin-top:1rem}
.cart-form label{display:grid;gap:.25rem;font-size:.85rem;font-weight:600;color:var(--ink)}
.cart-form input,.cart-form textarea{font:inherit;font-weight:400;font-size:1rem;padding:.65rem .8rem;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);width:100%}
.cart-form input:focus,.cart-form textarea:focus{outline:2px solid rgba(200,64,42,.4);border-color:var(--tomato)}
.cart-mode{border:0;display:flex;gap:.6rem;flex-wrap:wrap}
.cart-mode legend{font-size:.85rem;font-weight:600;margin-bottom:.35rem;width:100%}
.cart-mode label{display:inline-flex;align-items:center;gap:.4rem;background:var(--paper);border:1px solid var(--line);border-radius:999px;padding:.45rem .9rem;cursor:pointer}
.cart-mode input{width:auto}
.cart-sum{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:.8rem 1rem;font-size:.92rem}
.cart-sum div{display:flex;justify-content:space-between;padding:.15rem 0}
.cart-sum .total{font-weight:700;font-size:1.05rem;border-top:1px solid var(--line);margin-top:.3rem;padding-top:.45rem}
.cart-min{color:var(--tomato-dark);font-size:.85rem;margin-top:.4rem}
.cart-area{color:var(--ink-2);font-size:.8rem;margin-top:.25rem}
.cart-form .cart-check{display:flex;gap:.55rem;align-items:flex-start;font-weight:400;font-size:.85rem;color:var(--ink-2)}
.cart-check input{width:auto;margin-top:.2rem;flex:none}
.cart-error{color:var(--tomato-dark);font-size:.88rem;min-height:1em}
.cart-ok{color:var(--basil);font-weight:600}
.cart-send{justify-content:center;width:100%}
.cart-mail{color:var(--ink-2);text-decoration:underline;font-size:.9rem;justify-self:center}
.cart-legal{font-size:.75rem;color:var(--ink-2)}
.cart-legal a{text-decoration:underline}

/* Rückmeldung */
.cart-toast{position:fixed;left:50%;bottom:86px;transform:translate(-50%,20px);background:var(--dark);color:#f4ead9;padding:.6rem 1.1rem;border-radius:999px;font-size:.88rem;z-index:970;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:90vw;text-align:center}
.cart-toast.show{opacity:1;transform:translate(-50%,0)}
body.cart-open .cart-toast{display:none}

@media (max-width:600px){
  .cart-fab{right:12px;left:12px;bottom:12px;justify-content:center}
  .add-btn{width:38px;height:38px}
}
@media (prefers-reduced-motion:reduce){
  .cart-panel,.cart-overlay,.cart-toast,.add-btn{transition:none}
}

/* Letzte Online-Bestellung in Öffnungszeiten-Listen */
.hours li.last-order,ul li.last-order{display:block;font-weight:600;color:var(--tomato);padding-top:.45rem}

/* Rückfallebene E-Mail (kein Mailprogramm eingerichtet) */
.cart-fallback{display:block;margin-top:.6rem;color:var(--ink-2);font-size:.85rem}
.cart-fallback a{text-decoration:underline;color:var(--ink)}
.cart-fallback .cart-copy{display:flex;margin-top:.5rem}

/* Hinweis Bereitstellungszeit */
.cart-time{background:var(--paper);border:1px solid var(--line);border-left:4px solid var(--basil);border-radius:10px;padding:.6rem .8rem;font-size:.88rem;color:var(--ink)}

/* Beilagen / Dressings als bestellbare Liste */
.extras-block{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:1.1rem 1.2rem;margin-top:1.6rem}
.extras-block h3{font-family:var(--head);font-size:1.15rem;margin-bottom:.4rem}
.extras-list li{display:flex;justify-content:space-between;align-items:center;gap:.8rem;padding:.55rem 0;border-bottom:1px dashed var(--line);font-size:.95rem}
.extras-list li:last-child{border-bottom:0}
.extras-list .add-btn{width:32px;height:32px;font-size:1.15rem}
.extras-block .note{margin-top:.6rem}

/* Warenkorb-Symbol im Bestell-Kasten der Startseite */
.feature.order-feature h3 .order-ico{display:inline-block;vertical-align:-5px;margin-right:.45rem;color:#fff}

/* Pizza in mehreren Größen */
.dish.sized .dish-top h3{flex:1}
.sizes{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.55rem}
.size-opt{display:inline-flex;align-items:center;gap:.45rem;background:var(--paper);border:1px solid var(--line);border-radius:999px;padding:.2rem .25rem .2rem .8rem;font-size:.88rem}
.size-opt small{color:var(--ink-2);font-size:.8rem}
.size-opt .price{color:var(--tomato);font-weight:700;white-space:nowrap}
.size-opt .add-btn{width:30px;height:30px;font-size:1.1rem}

/* Telefon unter den Öffnungszeiten */
.hours li.hours-phone{display:block;font-weight:600;padding-top:.45rem}
.hours li.hours-phone a,.feature p a[href^="tel:"]{color:var(--tomato);font-weight:600}

/* Liefergebiete im Lieferservice-Kasten der Startseite */
.feature .delivery-areas{list-style:none;margin:.5rem 0 0;padding:0;display:grid;gap:.15rem;font-size:.85rem;color:var(--ink-2)}
.feature .delivery-areas li::before{content:"📍 "}

/* Fortlaufende Nummer im Kreis vor dem Gerichtnamen */
.dish-nr{display:inline-grid;place-items:center;min-width:1.75em;height:1.75em;padding:0 .3em;margin-right:.5em;border-radius:999px;background:#fff;color:#1a1410;border:1.5px solid #1a1410;box-sizing:border-box;font-size:.78em;font-weight:700;line-height:1;vertical-align:.12em;font-variant-numeric:tabular-nums}
/* Zusatz in der Dressing-Überschrift „(1× pro Salat)“ */
.extras-block h3 .dress-note{font-family:var(--body,inherit);font-size:.83em;font-weight:500;color:var(--ink);white-space:nowrap}
