/*
 * Startseite A/B/C (inc/jo-home-ab.php, template-parts/home/block-*.php).
 * Mobile first (checked at 375 px); 834 px is the theme's tablet/desktop breakpoint.
 * Only classes prefixed jo-hab are styled here; product cards keep the shop's own styles and get a few size
 * adjustments inside .jo-hab-products.
 */

.jo-hab {
  --jo-ink: #191919;
  --jo-bg: #edebe8;
  --jo-paper: #f6f4f1;
  --jo-muted: #5f574e;
  --jo-line: #d3cdc5;
  --jo-light: #d3cdc5;
  --jo-red: #b3261e;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--jo-bg);
  color: var(--jo-ink);
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin-top: -34px; /* the body offset keeps 34 px for the black text bar of shop and product pages, the homepage has none */
}

.jo-hab *,
.jo-hab *::before,
.jo-hab *::after {
  box-sizing: border-box;
}

.jo-hab img {
  max-width: 100%;
}

.jo-hab a:focus-visible,
.jo-hab button:focus-visible {
  outline: 3px solid var(--jo-ink);
  outline-offset: 2px;
}

.jo-hab-jo--dark a:focus-visible,
.jo-hab-hero--xmas a:focus-visible,
.jo-hab-bf a:focus-visible,
.jo-hab-notice a:focus-visible,
.jo-hab-shopcard:focus-visible {
  outline-color: #fff;
}

.jo-hab-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* order on phones ("Position am Handy"), "Anzeigen auf" */
@media (max-width: 833.98px) {
  .jo-hab-block {
    order: var(--jo-hab-m, 0);
  }

  .jo-hab-on-desktop,
  .jo-hab-only-desktop {
    display: none !important;
  }
}

@media (min-width: 834px) {
  .jo-hab-on-mobile,
  .jo-hab-only-mobile {
    display: none !important;
  }
}

/* admin only */
.jo-hab-preview {
  order: -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 8px 16px;
  background: #fff4c2;
  border-bottom: 1px solid #e0c96b;
  font-size: 13px;
  line-height: 1.5;
}

.jo-hab-preview a {
  color: inherit;
}

.jo-hab-admin-note {
  margin: 0;
  padding: 8px 16px;
  background: #fff4c2;
  border: 1px dashed #b58900;
  color: #5f4500;
  font-size: 13px;
  line-height: 1.4;
}

.jo-hab-block.is-draft {
  outline: 2px dashed #b58900;
  outline-offset: -2px;
}

/* ------------------------------------------------------------------ layout & type */

.jo-hab-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.jo-hab-section {
  padding: 28px 0;
}

.jo-hab-section[id] {
  scroll-margin-top: 94px; /* fixed header */
}

.jo-hab-section--paper {
  background: var(--jo-paper);
}

.jo-hab-section--white {
  background: #fff;
}

.jo-hab .jo-hab-h2 {
  margin: 0;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: inherit;
}

.jo-hab-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--jo-muted);
}

.jo-hab-kicker--light {
  color: var(--jo-light);
}

.jo-hab-head {
  display: flex;
  flex-wrap: wrap; /* a long link moves below the headline instead of squeezing it */
  align-items: flex-end;
  justify-content: space-between;
  gap: 2px 12px;
  margin-bottom: 14px;
}

.jo-hab-head__text {
  min-width: 0;
}

.jo-hab-head__sub {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--jo-muted);
}

.jo-hab .jo-hab-head__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--jo-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jo-hab .jo-hab-head__link--small {
  font-size: 12px;
  font-weight: 600;
  color: var(--jo-muted);
}

.jo-hab .jo-hab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: 2px solid var(--jo-ink);
  border-radius: 6px;
  background: var(--jo-ink);
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.jo-hab .jo-hab-btn:hover {
  background: #000;
}

.jo-hab .jo-hab-btn--outline {
  background: transparent;
  color: var(--jo-ink);
}

.jo-hab .jo-hab-btn--outline:hover {
  background: var(--jo-ink);
  color: #fff;
}

.jo-hab .jo-hab-btn--light {
  border-color: #fff;
  background: #fff;
  color: var(--jo-ink);
}

.jo-hab .jo-hab-btn--light:hover {
  background: var(--jo-bg);
}

.jo-hab .jo-hab-btn--outline-light {
  border-color: #fff;
  background: transparent;
  color: #fff;
}

.jo-hab .jo-hab-btn--outline-light:hover {
  background: #fff;
  color: var(--jo-ink);
}

.jo-hab-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jo-hab-actions .jo-hab-btn {
  width: 100%;
}

/* ------------------------------------------------------------------ notice bar */

.jo-hab-notice {
  color: #fff;
  background: var(--jo-ink);
}

.jo-hab-notice--red {
  background: var(--jo-red);
}

.jo-hab-notice__inner {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-align: center;
  text-transform: uppercase;
}

.jo-hab .jo-hab-notice__item {
  color: #fff;
}

/* ------------------------------------------------------------------ heads */

.jo-hab-hero {
  background: #fff;
}

.jo-hab-hero__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 0 28px;
}

.jo-hab-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
}

.jo-hab-hero__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 16px;
}

.jo-hab .jo-hab-hero__title {
  margin: 0;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 42px;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: inherit;
  overflow-wrap: break-word;
  hyphens: auto;
}

.jo-hab-hero__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.jo-hab-points {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jo-hab-points li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.jo-hab-proof {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--jo-muted);
}

/* Christmas head (C) */
.jo-hab-hero--xmas {
  background: var(--jo-ink);
  color: #fff;
}

.jo-hab-hero--xmas .jo-hab-hero__grid {
  padding-bottom: 28px;
}

.jo-hab-hero--xmas .jo-hab-hero__media img {
  object-position: center 25%;
}

.jo-hab-hero--xmas .jo-hab-hero__title {
  font-size: 40px;
}

.jo-hab-hero--xmas .jo-hab-hero__lead {
  color: var(--jo-bg);
}

.jo-hab-deadline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--jo-muted);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.jo-hab-deadline svg {
  flex: 0 0 auto;
}

/* recipe search head (B) */
.jo-hab-hero--search {
  background: #fff;
}

.jo-hab-searchhead {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  padding-bottom: 20px;
}

.jo-hab-searchhead__main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.jo-hab-hero--search .jo-hab-hero__title {
  font-size: 44px;
}

.jo-hab-search {
  display: flex;
  gap: 10px;
  margin: 0;
}

.jo-hab-search__field {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 56px;
  margin: 0;
  padding: 0 16px;
  border: 2px solid var(--jo-ink);
  border-radius: 8px;
  background: #fff;
  cursor: text;
}

.jo-hab-search__field svg {
  flex: 0 0 auto;
}

.jo-hab-search__field:focus-within {
  box-shadow: 0 0 0 3px rgba(25, 25, 25, 0.25);
}

.jo-hab .jo-hab-search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--jo-ink);
  font: 16px/1.2 "Open Sans", sans-serif;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.jo-hab .jo-hab-search__btn {
  display: none;
}

.jo-hab-chips {
  display: flex;
  gap: 8px;
  margin: 0 -16px;
  padding: 0 16px 2px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.jo-hab-chips::-webkit-scrollbar {
  display: none;
}

.jo-hab-chips__label {
  display: none;
}

.jo-hab .jo-hab-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--jo-line);
  border-radius: 999px;
  background: #fff;
  color: var(--jo-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.jo-hab .jo-hab-chip:hover {
  border-color: var(--jo-ink);
}

.jo-hab .jo-hab-shopcard {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 12px;
  background: var(--jo-ink);
  color: #fff;
  text-decoration: none;
}

.jo-hab-shopcard__media {
  flex: 0 0 112px;
}

.jo-hab-shopcard__media img {
  display: block;
  width: 112px;
  height: 100%;
  min-height: 124px;
  object-fit: cover;
}

.jo-hab-shopcard__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
}

.jo-hab-shopcard__title {
  font-family: "Anton", sans-serif;
  font-size: 21px;
  line-height: 1.05;
  text-transform: uppercase;
}

.jo-hab-shopcard__text {
  display: none;
  font-size: 15px;
  line-height: 1.5;
  color: var(--jo-bg);
}

.jo-hab-shopcard__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

/* ------------------------------------------------------------------ numbers */

.jo-hab-stats {
  background: var(--jo-ink);
  color: #fff;
}

.jo-hab-stats--light {
  background: #fff;
  color: var(--jo-ink);
}

.jo-hab-stats__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.jo-hab-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.jo-hab-stat__value {
  font-family: "Anton", sans-serif;
  font-size: 28px;
  line-height: 1;
}

.jo-hab-stat__label {
  font-size: 12px;
  line-height: 1.35;
}

/* ------------------------------------------------------------------ entries */

.jo-hab-entries .jo-hab-h2 {
  margin-bottom: 12px;
}

.jo-hab-entries__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jo-hab .jo-hab-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  color: var(--jo-ink);
  text-decoration: none;
}

.jo-hab-entry__media {
  flex: 0 0 auto;
}

.jo-hab-entry__media img {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
}

.jo-hab-entries--compact .jo-hab-entry__media img {
  width: 68px;
  height: 68px;
}

.jo-hab-entry__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.jo-hab-entry__title {
  font-family: "Anton", sans-serif;
  font-size: 18px;
  line-height: 1.1;
  text-transform: uppercase;
}

.jo-hab-entry__text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--jo-muted);
}

.jo-hab-entries--compact .jo-hab-entry__text,
.jo-hab-entry__cta {
  display: none;
}

.jo-hab-entry__chevron {
  flex: 0 0 auto;
  display: flex;
}

/* ------------------------------------------------------------------ product cards (shop template) */

.jo-hab .jo-hab-products.products-part {
  max-width: none;
  margin: 0;
  padding: 0;
  font-family: inherit;
}

.jo-hab .jo-hab-products .product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 12px;
  justify-content: stretch;
  margin: 0;
  padding: 0;
}

.jo-hab .jo-hab-swipe-m .product-grid {
  display: flex;
  gap: 12px;
  margin: 0 -16px;
  padding: 0 16px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  -webkit-overflow-scrolling: touch;
}

.jo-hab .jo-hab-swipe-m .product-grid .product-grid-item {
  flex: 0 0 64%;
  min-width: 0;
  scroll-snap-align: start;
}

/* square photo box via padding, not aspect-ratio: older Safari (17.x) sizes aspect-ratio boxes in grid rows wrongly */
.jo-hab .jo-hab-products .product-grid .product-grid-item .product-image a .image-container {
  position: relative;
  height: 0;
  padding-bottom: 100%;
  background: #fff;
}

.jo-hab .jo-hab-products .product-grid .product-grid-item .product-image a .image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jo-hab .jo-hab-products .product-grid .product-grid-item .info h4,
.jo-hab .jo-hab-products .product-grid .product-grid-item .info h4 a {
  min-height: 0;
  font-size: 18px;
  line-height: 1.15;
}

.jo-hab .jo-hab-products .product-grid .product-grid-item .info .rating {
  margin: 10px 0 6px;
}

.jo-hab-giftnote {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  line-height: 1.45;
}

.jo-hab-giftnote svg {
  flex: 0 0 auto;
}

/* ------------------------------------------------------------------ set offer */

.jo-hab-offer__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}

.jo-hab-offer--dark .jo-hab-offer__card {
  background: var(--jo-ink);
  color: #fff;
}

.jo-hab-offer__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.jo-hab-offer__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 20px;
}

.jo-hab-offer--dark .jo-hab-kicker {
  color: var(--jo-light);
}

.jo-hab .jo-hab-offer__title {
  margin: 0;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
}

.jo-hab .jo-hab-offer__title a {
  color: inherit;
  text-decoration: none;
}

.jo-hab-rating {
  font-size: 13px;
  font-weight: 700;
}

.jo-hab-rating span {
  font-weight: 400;
  color: var(--jo-muted);
}

.jo-hab-offer--dark .jo-hab-rating span,
.jo-hab-offer--dark .jo-hab-offer__text,
.jo-hab-offer--dark .jo-hab-offer__review span {
  color: var(--jo-light);
}

/* below the review threshold: one real review instead of average and count */
.jo-hab-offer__review {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.jo-hab-offer__review span {
  color: var(--jo-muted);
  white-space: nowrap;
}

.jo-hab-offer__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--jo-muted);
}

.jo-hab-offer__items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jo-hab-offer__items-title {
  font-size: 14px;
  font-weight: 700;
}

.jo-hab-offer__items ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jo-hab-offer__items li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.35;
}

.jo-hab-offer__items li svg {
  flex: 0 0 auto;
  margin-top: 1px;
}

.jo-hab-offer__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.jo-hab-offer__now {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.jo-hab-offer__was {
  font-size: 15px;
  color: var(--jo-muted);
}

.jo-hab-offer--dark .jo-hab-offer__was {
  color: var(--jo-light);
}

.jo-hab-offer__save {
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--jo-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.jo-hab-offer__note {
  font-size: 12px;
  line-height: 1.4;
  color: var(--jo-muted);
}

.jo-hab-offer--dark .jo-hab-offer__note {
  color: var(--jo-light);
}

.jo-hab .jo-hab-offer__extra {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jo-hab-price-notes {
  font-size: 12px;
  line-height: 1.4;
  color: var(--jo-muted);
}

.jo-hab-price-notes p {
  display: inline;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.jo-hab-price-notes p + p::before {
  content: ", ";
}

.jo-hab .jo-hab-price-notes a {
  color: inherit;
  text-decoration: underline;
}

.jo-hab-offer--dark .jo-hab-price-notes,
.jo-hab-bf .jo-hab-price-notes {
  color: var(--jo-light);
}

/* ------------------------------------------------------------------ budget (C) */

.jo-hab-budget .jo-hab-h2 {
  margin-bottom: 12px;
}

.jo-hab-budget__tiers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jo-hab .jo-hab-tier {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 10px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fff;
  color: var(--jo-ink);
  text-decoration: none;
}

.jo-hab .jo-hab-tier[aria-expanded="true"] {
  border-color: var(--jo-ink);
}

.jo-hab-tier__media {
  flex: 0 0 auto;
}

.jo-hab-tier__media img {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
}

.jo-hab-tier__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.jo-hab-tier__title {
  font-family: "Anton", sans-serif;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
}

.jo-hab-tier__text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 13px;
  line-height: 1.4;
  color: var(--jo-muted);
}

.jo-hab-tier__cta {
  display: none;
}

.jo-hab-tier__chevron {
  flex: 0 0 auto;
  display: flex;
  transition: transform 0.15s ease;
}

.jo-hab-tier[aria-expanded="true"] .jo-hab-tier__chevron {
  transform: rotate(90deg);
}

.jo-hab-budget__panel {
  margin-top: 20px;
  scroll-margin-top: 110px; /* below the fixed header */
}

.jo-hab-budget__panel:focus {
  outline: none;
}

.jo-hab .jo-hab-budget__panel-title {
  margin: 0 0 12px;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ Black Friday band (C) */

.jo-hab-bf__band {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 18px;
  border-radius: 14px;
  background: var(--jo-red);
  color: #fff;
}

.jo-hab-bf__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jo-hab-bf__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.jo-hab .jo-hab-bf__title {
  margin: 0;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}

.jo-hab-bf__lead,
.jo-hab-bf__legal {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.jo-hab-bf__legal {
  font-size: 12px;
}

.jo-hab-bf .jo-hab-btn {
  width: 100%;
}

/* ------------------------------------------------------------------ recipes */

.jo-hab-recipes__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jo-hab-recipes__list--m-swipe {
  display: flex;
  gap: 12px;
  margin: 0 -16px;
  padding: 0 16px 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  -webkit-overflow-scrolling: touch;
}

.jo-hab-recipes__list--m-swipe > li {
  flex: 0 0 62%;
  scroll-snap-align: start;
}

.jo-hab-recipe {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.jo-hab .jo-hab-recipe__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--jo-ink);
  text-decoration: none;
}

.jo-hab-recipe__media {
  position: relative;
  display: block;
}

.jo-hab-recipe__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
  background: var(--jo-line);
}

.jo-hab-recipe__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.jo-hab-recipe__title {
  font-family: "Anton", sans-serif;
  font-size: 16px;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.jo-hab-recipes__list--m-swipe .jo-hab-recipe__title {
  font-size: 18px;
}

.jo-hab .jo-hab-helper {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 5px 8px 5px 5px;
  border: 1px solid var(--jo-line);
  border-radius: 10px;
  background: #fff;
  color: var(--jo-ink);
  text-decoration: none;
}

.jo-hab-helper__media img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}

.jo-hab-helper__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.jo-hab-helper__label {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--jo-muted);
}

.jo-hab-helper__name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.jo-hab-helper__chevron {
  display: none;
}

.jo-hab-footnote {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--jo-muted);
}

.jo-hab .jo-hab-footnote a {
  color: inherit;
}

/* ------------------------------------------------------------------ reviews */

.jo-hab-reviews__list {
  display: flex;
  gap: 12px;
  margin: 0 -16px;
  padding: 0 16px 6px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
}

.jo-hab-reviews__list > li {
  flex: 0 0 80%;
  scroll-snap-align: start;
}

.jo-hab-review {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  margin: 0;
  padding: 18px;
  border-radius: 12px;
  background: #fff;
}

.jo-hab-review__stars {
  font-size: 16px;
  line-height: 1;
  letter-spacing: 2px;
}

.jo-hab-review__quote {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 15px;
  font-style: normal;
  line-height: 1.5;
}

.jo-hab-review__who {
  margin-top: auto;
  font-size: 12px;
  line-height: 1.4;
  color: var(--jo-muted);
}

.jo-hab .jo-hab-review__who a {
  color: inherit;
}

.jo-hab-review--inline {
  padding: 16px;
  border: 1px solid var(--jo-muted);
  background: transparent;
}

.jo-hab-jo--dark .jo-hab-review__who {
  color: var(--jo-light);
}

/* ------------------------------------------------------------------ Jo */

.jo-hab-jo--light {
  background: #fff;
}

.jo-hab-jo--dark {
  background: var(--jo-ink);
  color: #fff;
}

.jo-hab-jo__grid {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.jo-hab-jo__body {
  display: contents;
}

.jo-hab-jo__media {
  grid-column: 1;
  grid-row: 1;
}

.jo-hab-jo__media img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 999px;
}

.jo-hab .jo-hab-jo__title {
  grid-column: 2;
  grid-row: 1;
  font-size: 26px;
}

.jo-hab-jo__body > *:not(.jo-hab-jo__title) {
  grid-column: 1 / -1;
}

.jo-hab-jo__text p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
}

.jo-hab-jo__text p:last-child {
  margin-bottom: 0;
}

.jo-hab-jo--dark .jo-hab-jo__text p {
  color: var(--jo-bg);
}

.jo-hab-jo__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.jo-hab-jo__stats .jo-hab-stat__label {
  color: var(--jo-muted);
}

.jo-hab-jo--dark .jo-hab-jo__stats .jo-hab-stat__label {
  color: var(--jo-light);
}

.jo-hab-jo__actions {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.jo-hab .jo-hab-jo__actions .jo-hab-btn {
  width: auto;
  min-height: 48px;
  padding: 0 22px;
  font-size: 14px;
}

.jo-hab-jo__social {
  font-size: 14px;
  font-weight: 600;
}

.jo-hab .jo-hab-jo__social a {
  color: inherit;
}

/* ------------------------------------------------------------------ 834 px and up */

@media (min-width: 834px) {
  .jo-hab-wrap {
    padding: 0 20px;
  }

  .jo-hab-section {
    padding: clamp(40px, 6vw, 72px) 0;
  }

  .jo-hab .jo-hab-h2 {
    font-size: clamp(30px, 3.6vw, 46px);
  }

  .jo-hab-kicker {
    font-size: 13px;
  }

  .jo-hab-head {
    flex-wrap: wrap;
    margin-bottom: 24px;
  }

  .jo-hab-head__sub {
    font-size: 15px;
  }

  .jo-hab .jo-hab-head__link--small {
    font-size: 13px;
  }

  .jo-hab-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .jo-hab-actions .jo-hab-btn {
    width: auto;
  }

  .jo-hab .jo-hab-btn {
    padding: 0 28px;
  }

  /* notice bar */
  .jo-hab-notice__inner {
    justify-content: space-between;
    padding-top: 9px;
    padding-bottom: 9px;
    letter-spacing: 1px;
  }

  /* heads */
  .jo-hab-hero__grid {
    flex-direction: row-reverse;
    align-items: center;
    gap: 56px;
    padding: clamp(28px, 5vw, 64px) 20px;
  }

  .jo-hab-hero__media {
    flex: 1 1 380px;
    min-width: 0;
  }

  .jo-hab-hero__media img {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
  }

  .jo-hab-hero__text {
    flex: 1 1 440px;
    gap: 20px;
    min-width: 0;
    padding: 0;
  }

  .jo-hab .jo-hab-hero__title,
  .jo-hab-hero--xmas .jo-hab-hero__title {
    font-size: clamp(46px, 6vw, 82px);
  }

  .jo-hab-hero__lead {
    max-width: 520px;
    font-size: clamp(16px, 1.5vw, 19px);
  }

  .jo-hab-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
  }

  .jo-hab-proof {
    display: none;
  }

  .jo-hab-hero--xmas .jo-hab-hero__media {
    max-width: 520px;
  }

  .jo-hab-deadline {
    padding: 14px 18px;
    font-size: 15px;
  }

  .jo-hab-hero--search {
    background: transparent;
  }

  .jo-hab-searchhead {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 24px;
    padding-top: clamp(28px, 5vw, 64px);
    padding-bottom: clamp(28px, 5vw, 64px);
  }

  .jo-hab-searchhead__main {
    flex: 999 1 520px;
    justify-content: center;
    gap: 20px;
  }

  .jo-hab-hero--search .jo-hab-hero__title {
    font-size: clamp(46px, 6vw, 84px);
  }

  .jo-hab-search {
    flex-wrap: wrap;
  }

  .jo-hab-search__field {
    flex: 1 1 260px;
    height: 60px;
    padding: 0 18px;
  }

  .jo-hab .jo-hab-search__input {
    font-size: 17px;
  }

  .jo-hab .jo-hab-search__btn {
    display: inline-flex;
    flex: 0 0 auto;
    height: 60px;
    border-radius: 8px;
  }

  .jo-hab-chips {
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    overflow: visible;
    white-space: normal;
  }

  .jo-hab-chips__label {
    display: inline;
    margin-right: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--jo-muted);
  }

  .jo-hab .jo-hab-shopcard {
    flex: 1 1 340px;
    flex-direction: column;
    border-radius: 16px;
  }

  .jo-hab-shopcard__media {
    flex: 0 0 auto;
  }

  .jo-hab-shopcard__media img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .jo-hab-shopcard__body {
    justify-content: flex-start;
    gap: 10px;
    padding: 22px 24px 26px;
  }

  .jo-hab-shopcard__title {
    font-size: 30px;
  }

  .jo-hab-shopcard__text {
    display: block;
  }

  .jo-hab-shopcard__cta {
    align-self: flex-start;
    min-height: 48px;
    margin-top: 4px;
    padding: 0 22px;
    border-radius: 6px;
    background: #fff;
    color: var(--jo-ink);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  /* numbers */
  .jo-hab-stats__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px 32px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .jo-hab-stats__list .jo-hab-stat {
    flex: 1 1 140px;
  }

  .jo-hab-stat__value {
    font-size: 34px;
  }

  .jo-hab-stat__label {
    font-size: 13px;
  }

  /* entries */
  .jo-hab-entries .jo-hab-h2 {
    margin-bottom: 24px;
  }

  .jo-hab-entries__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .jo-hab-entries__list > li {
    flex: 1 1 300px;
  }

  .jo-hab .jo-hab-entry {
    gap: 16px;
    padding: 14px;
  }

  .jo-hab-entry__media img,
  .jo-hab-entries--compact .jo-hab-entry__media img {
    width: 112px;
    height: 112px;
  }

  .jo-hab-entries--compact .jo-hab-entry__media img {
    width: 96px;
    height: 96px;
  }

  .jo-hab-entry__body {
    gap: 6px;
  }

  .jo-hab-entry__title {
    font-size: 21px;
  }

  .jo-hab-entry__text,
  .jo-hab-entries--compact .jo-hab-entry__text {
    display: block;
    font-size: 14px;
    line-height: 1.45;
  }

  .jo-hab-entry__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .jo-hab-entries--compact .jo-hab-entry__cta,
  .jo-hab-entries:not(.jo-hab-entries--compact) .jo-hab-entry__chevron {
    display: none;
  }

  /* product cards */
  .jo-hab .jo-hab-products .product-grid,
  .jo-hab .jo-hab-swipe-m .product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 20px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .jo-hab .jo-hab-products .product-grid .product-grid-item .info h4,
  .jo-hab .jo-hab-products .product-grid .product-grid-item .info h4 a {
    font-size: 22px;
    line-height: 1.15;
  }

  .jo-hab .jo-hab-products .product-grid .product-grid-item .info .rating .star-rating {
    width: 100px;
    font-size: 16px;
  }

  .jo-hab .jo-hab-products .product-grid .product-grid-item .info .rating .rating-count {
    font-size: 14px;
  }

  .jo-hab-giftnote {
    padding: 16px 20px;
    font-size: 15px;
  }

  /* set offer */
  .jo-hab-offer__card {
    flex-direction: row;
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
    padding: clamp(20px, 3vw, 40px);
    border-radius: 16px;
  }

  .jo-hab-offer__media {
    flex: 0 1 46%;
    max-width: 520px;
  }

  .jo-hab-offer__media img {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
  }

  .jo-hab-offer__body {
    flex: 1 1 420px;
    gap: 16px;
    padding: 0;
  }

  .jo-hab .jo-hab-offer__title {
    font-size: clamp(34px, 4.4vw, 58px);
  }

  .jo-hab-rating {
    font-size: 15px;
  }

  .jo-hab-offer__items li {
    font-size: 15px;
  }

  .jo-hab-offer__now {
    font-size: 30px;
  }

  .jo-hab-offer__was {
    font-size: 17px;
  }

  .jo-hab-offer__save {
    font-size: 13px;
  }

  /* budget */
  .jo-hab-budget .jo-hab-h2 {
    margin-bottom: 24px;
  }

  .jo-hab-budget__tiers {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .jo-hab-budget__tiers > li {
    flex: 0 1 calc(50% - 8px);
    min-width: 0;
  }

  .jo-hab .jo-hab-tier {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }

  .jo-hab-tier__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 0;
  }

  .jo-hab-tier__body {
    gap: 6px;
    padding: 18px 20px 22px;
  }

  .jo-hab-tier__title {
    font-size: 30px;
  }

  .jo-hab-tier__text {
    font-size: 14px;
    line-height: 1.45;
  }

  .jo-hab-tier__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .jo-hab-tier__chevron {
    display: none;
  }

  .jo-hab-budget__panel {
    margin-top: 32px;
  }

  .jo-hab .jo-hab-budget__panel-title {
    font-size: 28px;
  }

  /* Black Friday band */
  .jo-hab-bf__band {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    padding: 28px 32px;
    border-radius: 16px;
  }

  .jo-hab-bf__text {
    flex: 1 1 380px;
    gap: 6px;
  }

  .jo-hab-bf__kicker {
    font-size: 12px;
  }

  .jo-hab .jo-hab-bf__title {
    font-size: clamp(30px, 3.4vw, 44px);
  }

  .jo-hab-bf__legal {
    font-size: 13px;
  }

  .jo-hab-bf .jo-hab-btn {
    width: auto;
  }

  /* recipes */
  .jo-hab-recipes__list,
  .jo-hab-recipes__list--m-swipe {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 20px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .jo-hab-recipes__list--d-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jo-hab-recipe {
    gap: 10px;
  }

  .jo-hab .jo-hab-recipe__link {
    gap: 10px;
  }

  .jo-hab-recipe__tag {
    font-size: 11px;
  }

  .jo-hab-recipe__title,
  .jo-hab-recipes__list--m-swipe .jo-hab-recipe__title {
    font-size: 19px;
  }

  .jo-hab-recipes__list--d-3 .jo-hab-recipe__title {
    font-size: 20px;
  }

  .jo-hab .jo-hab-helper {
    gap: 10px;
    padding: 6px 10px 6px 6px;
  }

  .jo-hab-helper__label {
    font-size: 11px;
  }

  .jo-hab-helper__name {
    font-size: 13px;
  }

  .jo-hab-helper__chevron {
    display: flex;
  }

  /* reviews */
  .jo-hab-reviews__list {
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .jo-hab-reviews__list > li {
    flex: 1 1 300px;
  }

  .jo-hab-review {
    gap: 12px;
    padding: 24px;
  }

  .jo-hab-review__stars {
    font-size: 18px;
  }

  .jo-hab-review__quote {
    font-size: 16px;
  }

  .jo-hab-review__who {
    font-size: 13px;
  }

  .jo-hab-review--inline {
    padding: 18px 20px;
  }

  .jo-hab-review--inline .jo-hab-review__quote {
    font-size: 15px;
  }

  /* Jo */
  .jo-hab-jo__grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px 56px;
  }

  .jo-hab-jo--img-right .jo-hab-jo__grid {
    flex-direction: row-reverse;
  }

  .jo-hab-jo__body {
    display: flex;
    flex: 1 1 420px;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
  }

  .jo-hab-jo__media {
    flex: 1 1 340px;
    max-width: 480px;
  }

  .jo-hab-jo__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
  }

  .jo-hab .jo-hab-jo__title {
    font-size: clamp(30px, 3.6vw, 46px);
  }

  .jo-hab-jo__text p {
    font-size: 17px;
  }

  .jo-hab-jo__stats {
    gap: 16px 36px;
  }

  .jo-hab-jo__stats .jo-hab-stat__value {
    font-size: 34px;
  }

  .jo-hab-jo__stats .jo-hab-stat__label {
    font-size: 13px;
  }

  .jo-hab .jo-hab-jo__actions .jo-hab-btn {
    min-height: 50px;
    padding: 0 24px;
  }
}

@media (min-width: 1100px) {
  .jo-hab .jo-hab-products .product-grid,
  .jo-hab .jo-hab-swipe-m .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .jo-hab-tier__chevron {
    transition: none;
  }
}

/* ------------------------------------------------------------------ owner feedback 2026-11-12 */

/* heads on phones: headline and buttons first, the photo flat below (or above, or hidden: field "Bild am Handy") */
@media (max-width: 833.98px) {
  .jo-hab-hero__grid {
    padding: 24px 0 28px;
  }

  .jo-hab-hero--img-below .jo-hab-hero__grid {
    padding-bottom: 0;
  }

  .jo-hab-hero--img-top .jo-hab-hero__grid {
    padding-top: 0;
  }

  .jo-hab-hero--img-top .jo-hab-hero__media {
    order: -1;
  }

  .jo-hab-hero--img-none .jo-hab-hero__media {
    display: none;
  }

  .jo-hab-hero__media img {
    aspect-ratio: 2 / 1;
    max-height: 38vh;
  }
}

/* large screens: text left, photo right (the text now comes first in the markup) */
@media (min-width: 834px) {
  .jo-hab-hero__grid {
    flex-direction: row;
  }
}

/* "Wo stehst du gerade?": small link row for entries that are product groups */
.jo-hab-entries__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.4;
}

.jo-hab-entries__more-label {
  font-weight: 600;
  color: var(--jo-muted);
}

.jo-hab .jo-hab-entries__more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--jo-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* sets: "für wen / was drin" on the product cards and in the set offer */
.jo-hab .jo-hab-card-note {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--jo-muted);
}

.jo-hab .jo-hab-offer__for {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

/* gift budgets on phones: compact 2 × 2 grid (title and text, no photo); products below in 2 columns */
@media (max-width: 833.98px) {
  .jo-hab-budget__tiers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .jo-hab .jo-hab-tier {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 88px;
    padding: 12px;
  }

  .jo-hab-tier__media,
  .jo-hab-tier__chevron {
    display: none;
  }

  .jo-hab-tier__title {
    font-size: 20px;
  }
}

/* ------------------------------------------------------------------ phone check 2026-11-12 */

/* phones only: swipe rows without scrollbars or vertical scrolling (room for the focus ring), shorter recipe photos
   in swipe rows, small labels at 12 px, bigger tap areas for small links (padding on inline links widens the tap
   area without moving anything), set photo keeps the title printed at the top of the product photo */
@media (max-width: 833.98px) {
  .jo-hab .jo-hab-swipe-m .product-grid,
  .jo-hab-recipes__list--m-swipe,
  .jo-hab-reviews__list {
    margin-top: -6px;
    padding-top: 6px;
    padding-bottom: 8px;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .jo-hab .jo-hab-swipe-m .product-grid::-webkit-scrollbar,
  .jo-hab-recipes__list--m-swipe::-webkit-scrollbar,
  .jo-hab-reviews__list::-webkit-scrollbar {
    display: none;
  }

  .jo-hab-recipes__list--m-swipe .jo-hab-recipe__media img {
    aspect-ratio: 4 / 3;
  }

  .jo-hab-offer__media img {
    object-position: 50% 8%;
  }

  .jo-hab-notice__inner,
  .jo-hab-bf__kicker {
    font-size: 12px;
  }

  .jo-hab-recipe__tag,
  .jo-hab-helper__label {
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .jo-hab .jo-hab-footnote a,
  .jo-hab .jo-hab-price-notes a {
    padding: 14px 0;
  }

  .jo-hab .jo-hab-jo__social a {
    padding: 12px 0;
  }

  .jo-hab .jo-hab-review__who a {
    padding: 4px 0;
  }
}

/* ------------------------------------------------------------------ no sideways scrolling (2026-11-12) */

/* Visually hidden texts with position:absolute (WooCommerce's .screen-reader-text in struck-through prices,
   quick-add labels) take the nearest positioned ancestor as their box. Without one they escaped the swipe rows and
   made the whole page wider than the phone (B + C: 613 px at 390 px). Positioned rows keep them inside. */
.jo-hab,
.jo-hab .jo-hab-products .product-grid,
.jo-hab-recipes__list,
.jo-hab-reviews__list,
.jo-hab-chips,
.jo-hab-budget__tiers {
  position: relative;
}

/* gift budgets: all tiles in one row from 1024 px (four 300 px tiles did not fit into 1160 px, the 4th wrapped and grew to full width) */
@media (min-width: 1024px) {
  .jo-hab-budget__tiers > li {
    flex: 1 1 0;
  }
}

/* ------------------------------------------------------------------ owner feedback 2026-11-13 (Startseite B) */

/* field "Hintergrund" (recipes, entries): white band only on phones or only from 834 px */
@media (max-width: 833.98px) {
  .jo-hab-section--white-m {
    background: #fff;
  }
}

@media (min-width: 834px) {
  .jo-hab-section--white-d {
    background: #fff;
  }
}

/* "Wo stehst du gerade?" on a white band: the cards in soft beige instead of white */
.jo-hab .jo-hab-entries.jo-hab-section--white .jo-hab-entry {
  background: #f4f2ef;
}

@media (max-width: 833.98px) {
  .jo-hab .jo-hab-entries.jo-hab-section--white-m .jo-hab-entry {
    background: #f4f2ef;
  }
}

@media (min-width: 834px) {
  .jo-hab .jo-hab-entries.jo-hab-section--white-d .jo-hab-entry {
    background: #f4f2ef;
  }
}

/* search head (B) directly followed by the recipes ("Gerade beliebt"): about half the usual space above the recipes
   (phones 28 -> 14 px, from 834 px 40-72 -> 20-36 px); other block orders and variant A keep the full space */
.jo-hab-block--hero-search + .jo-hab-block--recipes > .jo-hab-recipes {
  padding-top: 14px;
}

@media (min-width: 834px) {
  .jo-hab-block--hero-search + .jo-hab-block--recipes > .jo-hab-recipes {
    padding-top: clamp(20px, 3vw, 36px);
  }
}

/* recipe cards: photo and title at the top, "Jos Helfer" at the bottom of the card, so the helper boxes of a row
   (swipe row on phones, grid) are on one line also when a title takes two lines (the cards of a row are equally high) */
.jo-hab .jo-hab-recipe__link {
  flex: 1 1 auto;
}

/* block "Produkte" (Jos Bestseller, Jos Geschenk-Tipps): the "In den Warenkorb" / "Ansehen" buttons of a row on one
   line, also when a product name takes two lines; the cards of a row are equally high, the button goes to the bottom.
   Only here: shop, categories, gift page and the gift budgets keep their cards. */
.jo-hab .jo-hab-productrow .product-grid .product-grid-item {
  display: flex;
  flex-direction: column;
}

.jo-hab .jo-hab-productrow .product-grid .product-grid-item .product-image {
  flex: 0 0 auto;
}

.jo-hab .jo-hab-productrow .product-grid .product-grid-item .info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.jo-hab .jo-hab-productrow .product-grid .product-grid-item .info .jm-qa-wrap {
  margin-top: auto;
  padding-top: 8px; /* the 8 px space it had as margin */
}

/* grids (from 834 px, and "2 Spalten" on phones): the cards of a row share two rows (photo + title, helper), so the
   helper boxes are also equally high when one helper name takes more lines; only lists that show helpers (others keep
   their layout); browsers without subgrid / :has keep the boxes bottom-aligned (rule above) */
@supports (grid-template-rows: subgrid) and selector(:has(a)) {
  .jo-hab-recipes__list--m-grid:has(.jo-hab-helper) > .jo-hab-recipe {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
  }

  @media (min-width: 834px) {
    .jo-hab-recipes__list:has(.jo-hab-helper) > .jo-hab-recipe {
      display: grid;
      grid-row: span 2;
      grid-template-rows: subgrid;
    }
  }
}
