/*
 * Recipe helpers ("Jos Helfer für dieses Rezept") and shop entries by need.
 * Enqueued by src/RecipeHelpers.php / src/ShopEntries.php only where these blocks are shown.
 * Breakpoints and widths as in main.less: 834px (666px), 1194px (810px); font colour #191919.
 */

/* ---------- Recipe page: box below "Das brauchst du" ---------- */

.single-recipes .jo-recipe-helpers {
  max-width: calc(100% - 72px);
  margin: 22px auto 34px;
  font-family: 'Open Sans', sans-serif;
  color: #191919;
}

@media only screen and (min-width: 834px) {
  .single-recipes .jo-recipe-helpers {
    max-width: 666px;
    margin-top: 26px;
  }
}

@media only screen and (min-width: 1194px) {
  .single-recipes .jo-recipe-helpers {
    max-width: 810px;
  }
}

@media print {
  .single-recipes .jo-recipe-helpers {
    display: none;
  }
}

.jo-recipe-helpers__box {
  background: #fff;
  border-radius: 7px;
  padding: 18px 16px 16px;
}

@media only screen and (min-width: 834px) {
  .jo-recipe-helpers__box {
    padding: 22px 24px 20px;
  }
}

.single-recipes .jo-recipe-helpers .jo-recipe-helpers__title {
  margin: 0 0 16px;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  text-transform: uppercase;
}

.jo-recipe-helpers__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 16px;
}

@media only screen and (min-width: 834px) {
  .jo-recipe-helpers__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 20px;
  }
}

.jo-recipe-helpers__item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  margin: 0;
}

@media only screen and (min-width: 834px) {
  .jo-recipe-helpers__item {
    grid-template-columns: 76px minmax(0, 1fr);
  }
}

.jo-recipe-helpers__image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  background: #EDEBE8;
}

.jo-recipe-helpers__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jo-recipe-helpers__name {
  display: block;
  font-family: 'Anton', sans-serif;
  font-size: 17px;
  line-height: 21px;
  font-weight: 400;
  text-transform: uppercase;
  color: #191919;
  text-decoration: none;
}

.jo-recipe-helpers__name:hover {
  text-decoration: underline;
}

.single-recipes .jo-recipe-helpers .jo-recipe-helpers__benefit {
  margin: 3px 0 5px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}

.jo-recipe-helpers__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 14px;
  row-gap: 2px;
}

.jo-recipe-helpers__price {
  font-size: 15px;
  font-weight: 600;
}

.jo-recipe-helpers__price del {
  opacity: .5;
}

.jo-recipe-helpers__price ins {
  text-decoration: none;
}

.jo-recipe-helpers__link {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: underline;
  color: #191919;
}

.single-recipes .jo-recipe-helpers .jo-recipe-helpers__note {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid #EDEBE8;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}

/* ---------- Shop: row of entries and entry pages ---------- */

.jo-shop-entries {
  padding: 0 40px 0 31px;
  margin: 18px auto 0;
  font-family: 'Open Sans', sans-serif;
  color: #191919;
  text-align: center;
}

@media only screen and (min-width: 1194px) {
  .jo-shop-entries {
    padding: 0 140px 0 139px;
    max-width: 1440px;
    margin-top: 6px;
    margin-bottom: 8px;
  }
}

.jo-shop-entries__label {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.jo-shop-entries__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.jo-shop-entries__list li {
  margin: 0;
}

.jo-shop-entries__link {
  display: inline-block;
  padding: 8px 14px;
  border: 1.5px solid #191919;
  border-radius: 6px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: #191919;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}

.jo-shop-entries__link:hover,
.jo-shop-entries__link:focus-visible,
.jo-shop-entries__link.is-active {
  background: #191919;
  color: #fff;
}

/* phones: one line that scrolls sideways instead of five wrapped lines */
@media only screen and (max-width: 833px) {
  .jo-shop-entries {
    padding: 0;
  }

  .jo-shop-entries__label {
    padding: 0 40px 0 31px;
  }

  .jo-shop-entries__list {
    position: relative;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 31px 2px;
    scroll-padding: 0 31px;
  }

  .jo-shop-entries__list::-webkit-scrollbar {
    display: none;
  }

  .jo-shop-entries__list li {
    flex: 0 0 auto;
  }
}

/* entry page: intro text below the headline; long entry names need a smaller headline than categories */
.product-archive-top h1.jo-entry-title {
  font-size: 44px;
  line-height: 50px;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media only screen and (min-width: 834px) {
  .product-archive-top h1.jo-entry-title {
    font-size: 60px;
    line-height: 68px;
  }
}

@media only screen and (min-width: 1194px) {
  .product-archive-top h1.jo-entry-title {
    font-size: 72px;
    line-height: 82px;
    margin-left: 190px;
    margin-right: 190px;
  }
}

.jo-entry-intro {
  max-width: 720px;
  margin: 12px auto 0;
  padding: 0 40px 0 31px;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 23px;
  font-weight: 500;
  color: #191919;
  text-align: center;
}

@media only screen and (min-width: 834px) {
  .jo-entry-intro {
    font-size: 16px;
    line-height: 25px;
  }
}

.jo-entry-intro p {
  margin: 0 0 8px;
}

.jo-entry-intro p:last-child {
  margin-bottom: 0;
}

.tax-jo_einstieg .jo-shop-entries {
  margin-top: 24px;
}

/* Phone check 2026-11-12: entry buttons 44 px high (phones only) */
@media only screen and (max-width: 833px) {
  .jo-shop-entries__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
