/* foodie – Default-Brand */
.foodie-default,
section[data-brand="foodie"] {
  --accent: #c0392b;
  --bg: #fff;
  --text: #222;
  font-family: "Sora", sans-serif;
  line-height: 1.6;
  color: var(--text);
}

.foodie-default h2,
section[data-brand="foodie"] h2 {
  color: var(--accent);
  font-weight: 700;
}

/* === (4) Nährwertbox (Wolt-Style) – update-sicher, auch in Woodmart-Tabs === */

/* Basiscontainer (greift auch in .wd-accordion-content, .elementor etc.) */
.wd-accordion-content .wolt-nutrition,
.elementor .wolt-nutrition,
.wolt-nutrition {
  background: #121212;
  color: #eee;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 8px 0 14px;
}

/* Überschrift */
.wolt-nutrition h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

/* Tabelle */
.wolt-nutrition-table {
  width: 100%;
  border-collapse: collapse;
}

.wolt-nutrition-table tr {
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.wolt-nutrition-table tr:last-child {
  border-bottom: none;
}

.wolt-nutrition,
.wolt-nutrition * {
  color: #eee;
}

/* Spaltenausrichtung */
.wolt-nutrition-table th {
  text-align: left;
  opacity: .9;
  font-weight: 400;
}

.wolt-nutrition-table td {
  text-align: right;
  font-weight: 600;
  color: #fff;
}

/* Unterzeilen (z. B. „davon Zucker“) */
.wolt-nutrition-table tr.nv-subrow th {
  padding-left: 18px;
  font-weight: 400;
  opacity: .9;
  text-transform: none;
}

/* Light-Theme Override (Frontend-Standard) */
body:not(.dark-mode) .wolt-nutrition,
body:not(.dark-mode) .wd-accordion-content .wolt-nutrition,
body:not(.dark-mode) .elementor .wolt-nutrition {
  background: #f6f6f6;
  color: #222;
}

body:not(.dark-mode) .wolt-nutrition-table tr {
  border-bottom: 1px solid rgba(0,0,0,.08);
}

body:not(.dark-mode) .wolt-nutrition,
body:not(.dark-mode) .wolt-nutrition * {
  color: #222;
}

/* === (4a) Responsive Optimierungen für Wolt-Nährwertbox === */

@media (max-width: 768px) {

  /* Box: weniger Padding */
  .wolt-nutrition {
    padding: 12px 14px;
    margin: 6px 0 12px;
  }

  /* Überschrift kompakter */
  .wolt-nutrition h4 {
    font-size: 15px;
    margin-bottom: 8px;
  }

  /* Tabelle: schmalere Zeilenhöhe */
  .wolt-nutrition-table th,
  .wolt-nutrition-table td {
    font-size: 14px;
    padding: 4px 0;
  }

  /* Unterzeilen (davon Zucker etc.) leicht eingerückt */
  .wolt-nutrition-table tr.nv-subrow th {
    padding-left: 12px;
  }
}

@media (max-width: 480px) {

  /* noch enger auf sehr kleinen Screens */
  .wolt-nutrition {
    padding: 10px 12px;
  }

  .wolt-nutrition h4 {
    font-size: 14px;
  }

  .wolt-nutrition-table th,
  .wolt-nutrition-table td {
    font-size: 13px;
    line-height: 1.3;
  }

  /* Bodytext etwas dunkler für Kontrast im Light-Mode */
  body:not(.dark-mode) .wolt-nutrition,
  body:not(.dark-mode) .wolt-nutrition * {
    color: #111;
  }
}

/* ===== (4b) Food-Law / Meta-Informationen (gleiche Box-Optik) ===== */
.food-law,
.wd-accordion-content .food-law,
.elementor .food-law {
  background: #f6f6f6;
  color: #222;
  border-radius: 12px;
  padding: 16px 18px;
}

.food-law.meta-table dt {
  font-weight: 600;
  margin: 0;
  padding: 8px 0 2px;
  border-top: 1px solid rgba(0,0,0,.06);
}

.food-law.meta-table dt:first-of-type {
  border-top: none;
  padding-top: 0;
}

.food-law.meta-table dd {
  margin: 0 0 8px;
}
/* === (4c) Responsive Optimierungen für Food-Law / Zusatzstoffboxen === */

@media (max-width: 768px) {

  /* Box: kompakter, gleichmäßig mit Nährwertbox */
  .food-law {
    padding: 12px 14px;
    margin: 6px 0 12px;
    border-radius: 10px;
  }

  .food-law.meta-table dt {
    font-size: 14px;
    padding: 6px 0 2px;
  }

  .food-law.meta-table dd {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 6px;
  }
}

@media (max-width: 480px) {

  /* Noch schmalere Screens */
  .food-law {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .food-law.meta-table dt {
    font-size: 13px;
  }

  .food-law.meta-table dd {
    font-size: 12.5px;
    line-height: 1.3;
  }

  /* etwas dunklerer Textkontrast im Light Mode */
  body:not(.dark-mode) .food-law,
  body:not(.dark-mode) .food-law * {
    color: #111;
  }
}

/* 5) Badges & Nutri-Score */
.woocommerce .diet-row{ display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.woocommerce .diet-badges{ display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce .diet-badge{
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1;
  display: inline-block;
}
/* Badge Tiefgekühlt */
.woocommerce .diet-badge.badge--tiefgekuehlt {
  border-color: #00aaff;
  color: #00aaff;
}

.woocommerce .nutriscore-badge{
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.woocommerce .nutriscore-badge strong{ font-size: 15px; }

.nutriscore-badge.ns-A{ background: #2ecc71; }
.nutriscore-badge.ns-B{ background: #8bc34a; }
.nutriscore-badge.ns-C{ background: #ffc107; color: #222; }
.nutriscore-badge.ns-D{ background: #ff9800; }
.nutriscore-badge.ns-E{ background: #f44336; }

.woocommerce .nutriscore-badge {
  box-shadow: 0 2px 4px rgba(0,0,0,.12);
  text-transform: uppercase;
  min-width: 2.2rem;
  justify-content: center;
}
