/* ───────────────────────────────────────────────────────────
   themes.css — Layout-Varianten & Theme-Feinschliff
   ───────────────────────────────────────────────────────────
   Wird von theme.php (theme_head) NACH style.css + menu.css
   eingebunden, sodass diese Regeln in der Kaskade gewinnen.

   Die Farb-Variablen (--burgundy, --gold, --dark …) kommen aus
   dem <style id="theme-vars"> Block, den theme_head zusätzlich
   ausgibt. Hier geht es ausschliesslich um LAYOUT (Anordnung der
   Menü-Items) und kleine themen-spezifische Typografie-Akzente.

   Body-Klassen:  theme-<id>  +  layout-<list|cards|compact>
   ─────────────────────────────────────────────────────────── */


/* ===========================================================
   LAYOUT: LIST  (Standard – wie bisher)
   Kompakte, zusammenhängende Tabelle aus Zeilen mit 1px-Fugen.
   Keine Overrides nötig → entspricht dem menu.css-Standard.
   =========================================================== */


/* ===========================================================
   LAYOUT: CARDS
   Freistehende Karten mit Abstand, Rundung & Hover-Lift.
   =========================================================== */
.layout-cards .menu-items {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.layout-cards .menu-item {
  background: var(--dark2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.layout-cards .menu-item:hover {
  background: var(--dark2);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
}

.layout-cards .menu-item-name { font-size: 1.02rem; }


/* ===========================================================
   LAYOUT: COMPACT
   Dichte 2-Spalten-Liste – viele Gerichte auf wenig Platz.
   =========================================================== */
.layout-compact .menu-items {
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
}

.layout-compact .menu-item {
  padding: 0.7rem 1rem;
  gap: 0.8rem;
}

.layout-compact .menu-item-name {
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

.layout-compact .menu-item-desc {
  font-size: 0.76rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.layout-compact .menu-item-price { font-size: 0.95rem; }

.layout-compact .menu-section { padding: 2.2rem 0; }
.layout-compact .menu-section-header { margin-bottom: 1.2rem; }

@media (max-width: 720px) {
  .layout-compact .menu-items { grid-template-columns: 1fr; }
}


/* ===========================================================
   THEMEN-TYPOGRAFIE
   Überschriften-Schriften je nach Theme. Die Body-Schrift
   setzt theme_head() bereits separat per inline <style>.
   =========================================================== */

/* Royal – elegante Serifen auch in den Menü-Überschriften */
.theme-royal .section-title,
.theme-royal .menu-section-title,
.theme-royal .nav-brand-name {
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 0.3px;
}

/* Mono – moderne, geometrische Sans-Headlines + ruhigere Akzente */
.theme-mono .section-title,
.theme-mono .menu-section-title,
.theme-mono .menu-item-price,
.theme-mono .nav-brand-name {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: 0.2px;
}
.theme-mono .menu-item-price { font-weight: 700; }
.theme-mono .order-banner-btn { color: var(--dark); }

/* Ocean – etwas hellere Item-Trennlinien für den frischen Look */
.theme-ocean .menu-items { background: rgba(255, 255, 255, 0.06); }

/* Sunset – wärmere Karten-/Hover-Töne passend zum Compact-Layout */
.theme-sunset .menu-item:hover { background: var(--dark3); }


/* ===========================================================
   GEMEINSAME FEINHEITEN
   Akzentfarben konsequent aus den Theme-Variablen ableiten,
   damit jeder Skin stimmig wirkt.
   =========================================================== */
.menu-hero .section-subtitle { color: var(--gold); }
.cat-nav-link.active { color: var(--gold); border-bottom-color: var(--gold); }
.order-banner { background: var(--burgundy); }
.menu-item-price { color: var(--gold); }
