/* Rojin Order – zusätzliche Ansichten der Gerichte: Kacheln, Groß, Kompakt.
   Die Ansicht "Aktuell" nutzt weiter das bestehende Design und wird hier nicht verändert.
   Alle Regeln gelten nur innerhalb von .dvx-grid (Kategorien mit einer neuen Ansicht). */

html body .dvx-grid{display:grid!important;gap:14px!important;margin:0 0 6px!important}
html body .dvx-grid-kacheln{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
@media(min-width:700px){html body .dvx-grid-kacheln{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}}
@media(min-width:1150px){html body .dvx-grid-kacheln{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
html body .dvx-grid-gross{grid-template-columns:minmax(0,1fr)!important}
@media(min-width:820px){html body .dvx-grid-gross{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(min-width:1250px){html body .dvx-grid-gross{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
html body .dvx-grid-kompakt{grid-template-columns:minmax(0,1fr)!important;gap:0!important;background:#fff;border:1px solid #e6e9ee;border-radius:18px;overflow:hidden}
@media(min-width:900px){html body .dvx-grid-kompakt{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* Handy (bis 620 px) oder Tablet & PC – nur die passende Ansicht zeigen */
@media(max-width:620px){html body .dvx-hide-m{display:none!important}}
@media(min-width:621px){html body .dvx-hide-d{display:none!important}}

/* Grundkarte – überschreibt die allgemeinen .dish-Regeln */
html body .dvx-grid article.dish.dvx{position:relative!important;min-height:0!important;height:auto!important;max-height:none!important;aspect-ratio:auto!important;display:flex!important;flex-direction:column!important;gap:0!important;grid-template-columns:none!important;padding:0!important;margin:0!important;min-width:0!important;background:#fff!important;border:1px solid #e9ecf1!important;border-left-width:1px!important;border-radius:20px!important;box-shadow:0 4px 14px rgba(20,28,40,.07)!important;overflow:visible!important;transform:none;transition:transform .25s ease,box-shadow .25s ease!important;color:#15181d}
@media(hover:hover){html body .dvx-grid article.dish.dvx:not(.is-soldout):hover{transform:translateY(-3px)!important;box-shadow:0 12px 26px rgba(20,28,40,.13)!important}}
html body .dvx-grid .dvx .dvx-ph{position:relative;overflow:hidden;background:#f1f2f4;border-radius:20px 20px 0 0;flex:0 0 auto}
html body .dvx-grid .dvx .dvx-ph img{display:block;width:100%;height:100%;object-fit:cover;margin:0;border:0;border-radius:0;transition:transform .5s ease}
@media(hover:hover){html body .dvx-grid .dvx:not(.is-soldout):hover .dvx-ph img{transform:scale(1.05)}}
html body .dvx-grid .dvx .dvx-noimg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:40px;opacity:.5}
html body .dvx-grid .dvx .dvx-body{display:flex;flex-direction:column;gap:4px;padding:12px;flex:1 1 auto;min-width:0}
html body .dvx-grid .dvx .dvx-name{font-weight:800;font-size:16px;line-height:1.25;color:#15181d;overflow-wrap:anywhere}
html body .dvx-grid .dvx .dvx-no{color:var(--price-color,#c8102e)}
html body .dvx-grid .dvx .dvx-desc{color:#5b626d;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
html body .dvx-grid .dvx .dvx-pricerow{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px 8px;margin-top:auto;padding-top:6px;min-width:0}
html body .dvx-grid .dvx .dvx-pricerow .dvx-price{margin-top:0;padding-top:0}
html body .dvx-grid .dvx button.dvx-info-sm{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;min-height:32px;padding:0 4px;font-weight:700;font-size:12px;color:#15181d;white-space:nowrap;-webkit-tap-highlight-color:transparent}
html body .dvx-grid .dvx button.dvx-info-sm b{width:18px;height:18px;border-radius:50%;border:2px solid currentColor;display:inline-flex;align-items:center;justify-content:center;font:italic 700 10px Georgia,serif}
html body .dvx-grid .dvx .dvx-price{margin-top:auto;padding-top:6px;color:var(--price-color,#c8102e);font-weight:900;font-size:18px;white-space:nowrap}
html body .dvx-grid .dvx s{color:#8a909a;font-weight:600;font-size:.75em;margin-right:4px}
html body .dvx-grid .dvx .dvx-disc,html body .dvx-grid .dvx .dvx-pop{position:absolute;left:8px;top:8px;z-index:3;background:#e50919;color:#fff;font-weight:900;font-size:12px;line-height:1;padding:6px 10px;border-radius:999px;box-shadow:0 2px 6px rgba(0,0,0,.2)}
html body .dvx-grid .dvx .dvx-pop{background:#fff3d6;color:#8a4b00;border:1px solid #efb530}
html body .dvx-grid .dvx .dvx-soldout{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-8deg);z-index:4;background:rgba(20,22,26,.9);color:#fff;font-weight:900;font-size:14px;padding:7px 14px;border-radius:8px;white-space:nowrap}
html body .dvx-grid .dvx.is-soldout .dvx-ph img{filter:grayscale(1);opacity:.5}
html body .dvx-grid .dvx.is-soldout .dvx-price{color:#8a909c!important}

/* Buttons (Klasse add-btn bleibt, damit Warenkorb, Animationen und Vorschläge funktionieren) */
html body .dvx-grid .dvx button.add-btn{all:unset;box-sizing:border-box!important;cursor:pointer!important;-webkit-tap-highlight-color:transparent}
html body .dvx-grid .dvx button.add-btn.dvx-add-round{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;width:48px!important;height:48px!important;min-height:48px!important;flex:0 0 48px!important;border-radius:50%!important;background:var(--cart-color,#c90016)!important;color:#fff!important;box-shadow:0 4px 12px rgba(0,0,0,.25)!important;transition:transform .15s ease!important}
html body .dvx-grid .dvx button.add-btn.dvx-add-round:after{content:"+";position:absolute;top:-4px;right:-4px;width:20px;height:20px;border-radius:50%;background:#fff;color:var(--cart-color,#c90016);font:900 17px/19px Arial,sans-serif;text-align:center;box-shadow:0 1px 4px rgba(0,0,0,.3)}
html body .dvx-grid .dvx button.add-btn:active{transform:scale(.92)!important}
html body .dvx-grid .dvx .dvx-cart-ic{display:block;width:24px;height:24px;flex:0 0 24px}
html body .dvx-grid .dvx .dvx-opts{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
html body .dvx-grid .dvx .dvx-opts button.option-add{border:1px solid #f1b7bd!important;background:#fff5f6!important;border-radius:8px!important;padding:6px 8px!important;color:#b20d1b!important;font-size:12px!important;font-weight:700!important;cursor:pointer;min-height:34px}

/* 1) Kacheln */
html body .dvx-grid .dvx-kacheln .dvx-ph{aspect-ratio:4/3;overflow:visible}
html body .dvx-grid .dvx-kacheln .dvx-ph img{border-radius:20px 20px 0 0}
html body .dvx-grid article.dvx-kacheln button.add-btn.dvx-add-round{position:absolute!important;right:10px!important;bottom:-22px!important;z-index:5!important;border:3px solid #fff!important}
html body .dvx-grid .dvx-kacheln .dvx-name{padding-right:40px;font-size:15px}
html body .dvx-grid .dvx-kacheln .dvx-desc{font-size:12px}
@media(max-width:380px){html body .dvx-grid .dvx-kacheln .dvx-name{font-size:14px}html body .dvx-grid .dvx-kacheln .dvx-price{font-size:16px}}

/* 2) Groß */
html body .dvx-grid .dvx-gross .dvx-ph{aspect-ratio:16/10}
html body .dvx-grid .dvx-gross .dvx-ph img{position:relative;z-index:0}
html body .dvx-grid .dvx-gross .dvx-ph:after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.75));z-index:2;pointer-events:none}
html body .dvx-grid .dvx-gross .dvx-over{position:absolute;left:14px;right:12px;bottom:12px;z-index:4;display:flex;align-items:flex-end;justify-content:space-between;gap:10px}
/* Name auf dem Bild: Standard weiß; eine Farbe aus dem Admin gilt auch hier (Schatten hält sie lesbar) */
html body .dvx-grid .dvx-gross .dvx-name.dvx-over-name{color:#fff;font-weight:900;font-size:clamp(19px,4.8vw,24px);line-height:1.15;text-shadow:0 2px 6px rgba(0,0,0,.7),0 0 2px rgba(0,0,0,.6)}
html body .dvx-grid .dvx-gross .dvx-over-name .dvx-no{color:#fff}
html body .dvx-grid .dvx-gross .dvx-over-name{font-weight:900;font-size:clamp(19px,4.8vw,24px);line-height:1.15;text-shadow:0 2px 8px rgba(0,0,0,.45);overflow-wrap:anywhere}
html body .dvx-grid .dvx-gross .dvx-over-name .dvx-no{color:#fff}
html body .dvx-grid .dvx-gross .dvx-pill{flex:0 0 auto;box-shadow:0 4px 12px rgba(0,0,0,.3);background:var(--price-color,#c8102e);color:#fff;font-weight:900;font-size:17px;padding:6px 12px;border-radius:999px;white-space:nowrap}
html body .dvx-grid .dvx-gross .dvx-pill s{color:#ffd9dc}
html body .dvx-grid .dvx-gross .dvx-body{padding:12px 14px 14px;gap:8px}
html body .dvx-grid .dvx-gross .dvx-desc{font-size:15px;color:#3d434c}
html body .dvx-grid .dvx-gross .dvx-actions{display:flex;align-items:center;gap:10px;margin-top:auto;padding-top:4px}
html body .dvx-grid .dvx-gross button.dvx-info{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:14px;color:#15181d;white-space:nowrap}
html body .dvx-grid .dvx-gross button.dvx-info b{width:20px;height:20px;border-radius:50%;border:2px solid currentColor;display:inline-flex;align-items:center;justify-content:center;font:italic 700 11px Georgia,serif}
html body .dvx-grid .dvx-gross button.add-btn.dvx-add-wide{flex:1 1 auto!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;height:50px!important;min-height:50px!important;padding:0 14px!important;border-radius:14px!important;background:var(--cart-color,#c90016)!important;color:#fff!important;font:800 16px/1 inherit!important;font-family:inherit!important;box-shadow:0 4px 12px rgba(160,0,10,.25)!important;transition:transform .15s ease!important;white-space:nowrap}

/* 3) Kompakt */
html body .dvx-grid-kompakt article.dish.dvx{flex-direction:row!important;align-items:center!important;gap:12px!important;padding:10px 12px!important;border:0!important;border-bottom:1px solid #eef0f3!important;border-radius:0!important;box-shadow:none!important}
@media(hover:hover){html body .dvx-grid-kompakt article.dish.dvx:not(.is-soldout):hover{transform:none!important;box-shadow:none!important;background:#fafbfc!important}}
html body .dvx-grid .dvx-kompakt .dvx-ph{width:72px;height:72px;flex:0 0 72px;border-radius:14px}
html body .dvx-grid .dvx-kompakt .dvx-disc,html body .dvx-grid .dvx-kompakt .dvx-pop{font-size:10px;padding:4px 6px;left:4px;top:4px}
html body .dvx-grid .dvx-kompakt .dvx-soldout{font-size:10px;padding:4px 6px}
html body .dvx-grid .dvx-kompakt .dvx-body{padding:0;gap:2px}
html body .dvx-grid .dvx-kompakt .dvx-desc{white-space:normal}
html body .dvx-grid .dvx-kompakt .dvx-pricerow{justify-content:flex-start;gap:12px;padding-top:2px}html body .dvx-grid .dvx-kompakt .dvx-price{font-size:16px}
html body .dvx-grid article.dvx-kompakt button.add-btn.dvx-add-round{width:44px!important;height:44px!important;min-height:44px!important;flex:0 0 44px!important}

/* Erscheinen beim ersten Laden */
html body .dvx-grid .dvx{animation:dvxIn .45s cubic-bezier(.2,.9,.3,1) both}
@keyframes dvxIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){html body .dvx-grid .dvx{animation:none}html body .dvx-grid .dvx .dvx-ph img{transition:none}}

/* Suche: ausgeblendete Gerichte wirklich ausblenden */
html body .dvx-grid article.dish.dvx[style*="display: none"],html body .dvx-grid article.dish.dvx[style*="display:none"]{display:none!important}

/* Farben aus Admin › Design und Farben übernehmen (gleiche Variablen wie die Ansicht "Aktuell") */
html body .dvx-grid .dvx .dvx-ph{border:var(--frame-width,1px) solid var(--frame-color,#e9ebf0);box-sizing:border-box}
html body .dvx-grid .dvx-kacheln .dvx-ph,html body .dvx-grid .dvx-gross .dvx-ph{border-bottom-width:0}
html body .dvx-grid article.dvx-kacheln.dish.dvx,html body .dvx-grid article.dvx-gross.dish.dvx{border-bottom:4px solid var(--card-accent,#b20408)!important}
html body .dvx-grid article.dvx-kompakt.dish.dvx{box-shadow:none!important}

html body .dvx-grid .dvx .dvx-disc{background:var(--price-color,#e50919)}
html body .dvx-grid .dvx .dvx-opts button.option-add{border-color:var(--price-color,#c8102e)!important;color:var(--price-color,#c8102e)!important}
html body .site-ad-slider .ad-dots button.on{background:var(--category-accent,var(--red,#e50919))}

/* ===== Kompakt: jedes Gericht eine eigene Karte mit Abstand. Stil im Admin wählbar (Ansicht → Kompakt-Stil) ===== */
html body .dvx-grid.dvx-grid-kompakt,html body .dvx-grid.dvx-grid-kompakt.dvx-grid-kompakt{gap:12px!important;background:transparent!important;border:0!important;border-radius:0!important;overflow:visible!important}
html body .dvx-grid.dvx-grid-kompakt article.dish.dvx.dvx-kompakt{border:0!important;border-radius:18px!important;padding:12px 14px!important;overflow:hidden!important;box-shadow:0 2px 10px rgba(0,0,0,.07)!important}
/* 1 · Streifen (Standard) */
html body.kstyle-streifen .dvx-grid.dvx-grid-kompakt article.dish.dvx.dvx-kompakt{box-shadow:inset 5px 0 0 var(--card-accent,#b20408),0 2px 10px rgba(0,0,0,.07)!important;padding-left:18px!important}
/* 4 · Schwebend */
html body.kstyle-schwebend .dvx-grid.dvx-grid-kompakt article.dish.dvx.dvx-kompakt{box-shadow:0 8px 22px rgba(20,24,40,.11)!important;border-radius:22px!important}
html body.kstyle-schwebend .dvx-grid.dvx-grid-kompakt .dvx-kompakt .dvx-ph{box-shadow:0 6px 14px rgba(0,0,0,.18);box-shadow:0 6px 14px color-mix(in srgb,var(--card-accent,#b20408) 35%,transparent)}
html body.kstyle-schwebend .dvx-grid.dvx-grid-kompakt .dvx.dvx .dvx-no{background:var(--card-accent,#b20408);color:#fff!important;border-radius:7px;padding:0 5px;margin-right:3px}
/* 5 · Farbverlauf */
html body.kstyle-verlauf .dvx-grid.dvx-grid-kompakt article.dish.dvx.dvx.dvx-kompakt{background-image:linear-gradient(90deg,color-mix(in srgb,var(--card-accent,#b20408) 15%,transparent) 0%,transparent 48%)!important}
/* 7 · Unterstrich */
html body.kstyle-unterstrich .dvx-grid.dvx-grid-kompakt article.dish.dvx.dvx-kompakt{border-bottom:4px solid var(--card-accent,#b20408)!important}
@media(hover:hover){html body .dvx-grid.dvx-grid-kompakt article.dish.dvx.dvx-kompakt:not(.is-soldout):hover{transform:translateY(-2px)!important}}
