/**
 * Rezept ansehen: Layout/Typo angelehnt an index.htm + Page 4 (Nicepage).
 * Ziel: Editorial 2-Spalten-Layout (Main + "Mehr Rezepte" Sidebar).
 */

/* Wenn wir auf Nicepage-Markup setzen, nur minimale Fixes. */

body.home-landing-page {
  --mm-accent: var(--home-accent, #eeb16d);
  --mm-accent-dark: var(--home-accent-dark, #c98a45);
  --mm-ink: #1a1a1a;
  --mm-muted: rgba(26, 26, 26, 0.65);
  --mm-line: rgba(0, 0, 0, 0.18);
  --mm-bg: #f2f2f2;
}

/* Viewport: unter „xl“ volle Breite ohne Außenrand; ab 1200px (groß/sehr groß) wie Layout mit Rand */
@media (max-width: 1199px) {
  .row:has(#site-content-column .mm-rezept-ansehen-section) {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #site-content-column:has(.mm-rezept-ansehen-section) {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .mm-rezept-ansehen-section.u-section-4 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .mm-rezept-ansehen-section.u-section-4 > .u-sheet.u-sheet-1 {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  min-height: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }

/* Kein vertikales Zentrieren im Seiten-Wrapper (verursacht große Lücke unter dem Menü auf Tablet/Mobile) */
.mm-rezept-ansehen-section.u-section-4 > .u-sheet.u-sheet-1.u-valign-middle {
  justify-content: flex-start !important;
}
}

@media (min-width: 1200px) {
  .mm-rezept-ansehen-section.u-section-4 > .u-sheet.u-sheet-1 {
    padding-left: 24px !important;
    padding-right: 24px !important;
  min-height: 0 !important;
    box-sizing: border-box;
  }
}

@media (min-width: 1400px) {
  .mm-rezept-ansehen-section.u-section-4 > .u-sheet.u-sheet-1 {
    padding-left: 32px !important;
    padding-right: 32px !important;
  min-height: 0 !important;
  }
}

/*
 * Nur Einkaufsliste: .mm-einkauf-page ist nur dort gesetzt — überschreibt die allgemeinen
 * mm-rezept-ansehen-section-.u-sheet-Ränder (≥1200px), ohne Rezept ansehen / rezepte-hinzufuegen anzufassen.
 */
.mm-einkauf-page.mm-rezept-ansehen-section.u-section-4 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.mm-einkauf-page.mm-rezept-ansehen-section.u-section-4 > .u-sheet.u-sheet-1 {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: max(0px, env(safe-area-inset-left, 0px)) !important;
  padding-right: max(0px, env(safe-area-inset-right, 0px)) !important;
  box-sizing: border-box;
}

.mm-admin-ingredients-page.mm-rezept-ansehen-section.u-section-4 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.mm-admin-ingredients-page.mm-rezept-ansehen-section.u-section-4 > .u-sheet.u-sheet-1 {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: max(12px, env(safe-area-inset-left, 0px)) !important;
  padding-right: max(12px, env(safe-area-inset-right, 0px)) !important;
  box-sizing: border-box;
}

/*
 * Nur Einzelrezept: Inhalt max. --mm-layout-max (1180px).
 * Wichtig: Nur die .row mit direktem Kind #site-content-column begrenzen — nicht die äußere .row
 * um Header+Inhalt, sonst wird die Menüzeile mit verengt (gleiche Breite wie auf anderen Seiten).
 */
@media (min-width: 1200px) {
  .mm-content-row .row:has(> #site-content-column):has(.mm-recipe-detail-page) {
    max-width: min(100%, var(--mm-layout-max, 1180px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #site-content-column:has(.mm-recipe-detail-page) {
    padding-left: max(1rem, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(1rem, env(safe-area-inset-right, 0px)) !important;
  }
}

.mm-rezept-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0.25rem 0 0.5rem;
}

.mm-rezept-back {
  text-decoration: none;
  color: var(--mm-ink);
  font-weight: 800;
}

.mm-rezept-back:hover,
.mm-rezept-back:focus {
  text-decoration: underline;
}

/*
 * Brotkrumen: gleiche äußere Ausrichtung wie mm-cook-card.mm-page-card (zentriert, max. Layoutbreite)
 * und horizontaler Innenabstand wie die Karte (padding 28px → erste Zeile unter der linken Rundung bündig).
 */
.mm-recipe-breadcrumb-wrap {
  width: 100%;
  max-width: min(100%, var(--mm-layout-max, 1180px));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-left: 28px;
  padding-right: 28px;
}

/* Rezept bearbeiten: Zurück + Löschen zentriert unter dem mm-cook-box „Facetten & Tags“ (nicht im Kasten), gesperrte Kopie unter Brotkrumen */
.mm-rezept-edit-back-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 14px;
  margin-top: 16px;
}

.mm-rezept-edit-delete-form {
  margin: 0;
}

a.mm-rezept-edit-back,
button.mm-rezept-edit-back {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button.mm-rezept-edit-back {
  cursor: pointer;
  font: inherit;
}

#site-content-column .mm-rezept-ansehen-section .mm-recipe-breadcrumb-wrap,
#site-content-column .mm-recipe-detail-page .mm-recipe-breadcrumb-wrap {
  max-width: min(100%, var(--mm-layout-max));
}

.mm-recipe-breadcrumb {
  margin: 10px 0 12px;
}

.mm-recipe-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 0.92rem;
  line-height: 1.35;
}

.mm-recipe-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.mm-recipe-breadcrumb__item + .mm-recipe-breadcrumb__item::before {
  content: '';
  display: inline-block;
  width: 1.45em;
  height: 1.45em;
  margin: 0 0.4rem;
  flex-shrink: 0;
  background: url('/img/right.svg') center / contain no-repeat;
  opacity: 0.55;
}

body.mm-theme-dark .mm-recipe-breadcrumb__item + .mm-recipe-breadcrumb__item::before {
  filter: invert(1);
  opacity: 0.65;
}

.mm-recipe-breadcrumb__link {
  color: var(--mm-ink, #1a1a1a);
  font-weight: 400;
  text-decoration: none;
  border-bottom: 0;
  transition: color 0.15s ease, opacity 0.15s ease;
}

/* Neutraler Hover wie übrige Rezeptseite — überschreibt globale Nicepage-Linkfarben (#259bca / Unterstreichung) */
#site-content-column .mm-recipe-breadcrumb__link:hover,
#site-content-column .mm-recipe-breadcrumb__link:focus-visible,
.mm-recipe-breadcrumb__link:hover,
.mm-recipe-breadcrumb__link:focus-visible {
  color: var(--mm-muted, rgba(26, 26, 26, 0.72));
  text-decoration: none;
  border-bottom: 0;
  opacity: 1;
}

#site-content-column .mm-recipe-breadcrumb__link:focus {
  outline: none;
}

#site-content-column .mm-recipe-breadcrumb__link:focus-visible {
  outline: 2px solid rgba(90, 95, 105, 0.45);
  outline-offset: 3px;
  border-radius: 2px;
}

body.mm-theme-dark .mm-recipe-breadcrumb__link {
  color: #e7ecf6;
}

body.mm-theme-dark #site-content-column .mm-recipe-breadcrumb__link:hover,
body.mm-theme-dark #site-content-column .mm-recipe-breadcrumb__link:focus-visible,
body.mm-theme-dark .mm-recipe-breadcrumb__link:hover,
body.mm-theme-dark .mm-recipe-breadcrumb__link:focus-visible {
  color: rgba(231, 236, 246, 0.82);
  text-decoration: none;
}

body.mm-theme-dark #site-content-column .mm-recipe-breadcrumb__link:focus-visible {
  outline-color: rgba(200, 210, 230, 0.45);
}

.mm-recipe-breadcrumb__current {
  font-weight: 700;
  color: rgba(26, 26, 26, 0.82);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(100%, 42rem);
  display: inline-block;
  vertical-align: bottom;
}

body.mm-theme-dark .mm-recipe-breadcrumb__current {
  color: #e7ecf6;
}

/* Rezeptbild: Nicepage-card kompatibel */
.mm-u-rezeptimg {
  display: block;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mm-u-rezeptimg--placeholder {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(238, 177, 109, 0.55), transparent 60%),
    radial-gradient(circle at 75% 35%, rgba(0, 0, 0, 0.07), transparent 55%),
    linear-gradient(135deg, rgba(242, 242, 242, 1), rgba(255, 255, 255, 1));
}

/* --- Cooking-layout (Editorial-Referenz: klare Typo-Hierarchie + vertikaler Rhythmus) --- */
.mm-cook-card {
  padding: 24px 28px;
  border-radius: 20px;
}

.mm-p9-hero {
  padding: 0 !important;
}

/* Header ohne Background-Image */
.mm-p9-hero,
.mm-p9-hero .u-sheet-1,
.mm-p9-hero .u-layout-wrap-1,
.mm-p9-hero .u-layout-cell-1,
.mm-p9-hero .u-container-layout-1 {
  background-image: none !important;
  background: transparent !important;
}

/* Page-9 (.u-section-1) hat sehr große fixed min-heights/height -> wir überschreiben für dieses Seite kompakt */
.mm-p9-hero .u-sheet-1 {
  min-height: unset !important;
}

/* Nicepage: .u-valign-middle = flex column + justify-content:center -> Inhalt würde im Sheet vertikal zentriert (Bild wirkt tiefer als die Überschrift) */
.mm-p9-hero .u-sheet-1.u-valign-middle {
  justify-content: flex-start !important;
}

.mm-p9-hero .u-layout-wrap-1 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Layout-Zelle: min-height aus Page-9 entfernen; Kinder oben ausrichten */
.mm-p9-hero .u-layout-cell-1 {
  align-items: flex-start !important;
  min-height: unset !important;
}

.mm-p9-hero .u-layout-cell-2 {
  min-height: unset !important;
}

.mm-p9-hero .u-container-layout-1 {
  padding: 0 !important;
}

.mm-p9-hero .u-image-1 {
  height: auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Kopf: links Titel+Tags, rechts Bild; Beschreibung beginnt darunter über volle Breite */
.mm-p9-hero .u-container-layout-1 {
  justify-content: flex-start !important;
}

/* Nicepage: .u-valign-middle zentriert Kinder vertikal -> wir wollen oben bündig */
.mm-p9-hero .u-container-layout-1.u-valign-middle {
  justify-content: flex-start !important;
}

.mm-p9-hero-top {
  display: grid;
  /* Bildspalte ~20 % größer als zuvor (Faktoren 1,2 auf min/%-/max-Breite) */
  grid-template-columns: minmax(192px, min(50.4%, 408px)) minmax(0, 1fr);
  grid-template-areas: "media lead";
  column-gap: 28px;
  row-gap: 0;
  align-items: start;
  width: 100%;
}

.mm-p9-hero-top__lead {
  min-width: 0;
  grid-area: lead;
  padding-top: 0;
  margin-top: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--mm-ink);
}

/* Hauptüberschrift: groß, eng, ~ wie Referenz „Baked fresh daily…“ */
/* !important: globale Nicepage/Foundation-Regeln (z. B. h1:not(.u-title) → 3rem) überschreiben */
.mm-p9-hero-unique-title {
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  text-align: left;
  margin-top: 0 !important;
  margin-right: 0;
  margin-bottom: 1.25rem;
  margin-left: 0;
  padding: 0;
  font-weight: 800;
  font-size: clamp(1.875rem, 4.2vw, 2.625rem) !important;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--mm-ink);
}

/* Mit Tags: etwas weniger Abstand Titel → Tags; ohne Tags: voller Abstand bis Fließtext/Zeiten */
.mm-p9-hero-top__lead:has(.mm-p9-hero-floattaxo) .mm-p9-hero-unique-title {
  margin-top: 0 !important;
  margin-bottom: 0.85rem;
}

.mm-p9-hero-top__lead:not(:has(.mm-p9-hero-floattaxo)) .mm-p9-hero-unique-title {
  margin-top: 0 !important;
  margin-bottom: 1.25rem;
}

.mm-recipe-rating {
  position: relative;
  display: inline-block;
  margin: -0.35rem 0 0.35rem;
  padding: 0;
}

.mm-recipe-rating__title,
.mm-recipe-rating__meta,
.mm-recipe-rating__hint,
.mm-recipe-rating__status {
  margin: 0;
}

.mm-recipe-rating__title {
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mm-muted);
}

.mm-recipe-rating__line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mm-recipe-rating__stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 0;
}

.mm-recipe-rating__star {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 2px;
  line-height: 0;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.mm-recipe-rating__star-img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.26;
  filter: invert(75%) sepia(46%) saturate(593%) hue-rotate(334deg) brightness(98%) contrast(90%);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.mm-recipe-rating__star.is-active .mm-recipe-rating__star-img,
.mm-recipe-rating__star:hover .mm-recipe-rating__star-img,
.mm-recipe-rating__star:focus-visible .mm-recipe-rating__star-img,
.mm-recipe-rating__star:hover ~ .mm-recipe-rating__star .mm-recipe-rating__star-img {
  opacity: 1;
}

.mm-recipe-rating__stars:hover .mm-recipe-rating__star .mm-recipe-rating__star-img {
  opacity: 1;
}

.mm-recipe-rating__stars .mm-recipe-rating__star:hover ~ .mm-recipe-rating__star .mm-recipe-rating__star-img {
  opacity: 0.26;
}

.mm-recipe-rating__star:focus-visible {
  outline: 2px solid var(--mm-accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.mm-recipe-rating__star:disabled {
  cursor: wait;
  opacity: 0.72;
}

.mm-recipe-rating__stars[role="img"] .mm-recipe-rating__star {
  cursor: default;
}

.mm-recipe-rating__meta,
.mm-recipe-rating__hint,
.mm-recipe-rating__status {
  margin-top: 0;
  font-size: 1.18rem;
  line-height: 1.15;
  color: var(--mm-muted);
}

.mm-recipe-rating__meta {
  font-weight: 800;
  color: rgba(26, 26, 26, 0.72);
  white-space: nowrap;
}

.mm-recipe-rating__meta.is-empty {
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(26, 26, 26, 0.42);
}

.mm-recipe-rating__hint {
  margin-top: 5px;
  font-size: 0.88rem;
  line-height: 1.35;
}

.mm-recipe-rating__status {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  margin-top: 0;
  padding: 2px 0;
  min-height: 0;
  font-size: 0.88rem;
  line-height: 1.25;
  color: #407a2d;
  background: transparent;
  pointer-events: none;
  white-space: nowrap;
}

.mm-recipe-rating__status.is-error {
  color: #b00020;
}

body.mm-theme-dark .mm-recipe-rating {
  background: transparent;
}

body.mm-theme-dark .mm-recipe-rating__meta {
  color: rgba(231, 236, 246, 0.82);
}

body.mm-theme-dark .mm-recipe-rating__meta.is-empty {
  color: rgba(231, 236, 246, 0.42);
}

/* Bewertung im Hero: über Zubereitungszeit, eine Zeile, goldgelbe Sterne, Zeilenhöhe wie .mm-prep */
.mm-recipe-rating--hero {
  display: block;
  width: 100%;
  margin: 0.65rem 0 0;
  padding: 0;
}

.mm-recipe-rating--hero .mm-recipe-rating__line {
  gap: 6px;
  flex-wrap: nowrap;
  align-items: center;
}

.mm-recipe-rating--hero .mm-recipe-rating__stars {
  gap: 2px;
}

.mm-recipe-rating--hero .mm-recipe-rating__star {
  padding: 0 1px;
}

.mm-recipe-rating--hero .mm-recipe-rating__star-img {
  width: 22px;
  height: 22px;
  opacity: 0.34;
  filter: grayscale(1);
}

.mm-recipe-rating--hero .mm-recipe-rating__star.is-active .mm-recipe-rating__star-img {
  opacity: 1;
  filter: invert(78%) sepia(45%) saturate(1200%) hue-rotate(359deg) brightness(104%) contrast(98%);
}

.mm-recipe-rating--hero .mm-recipe-rating__stars:hover .mm-recipe-rating__star .mm-recipe-rating__star-img {
  opacity: 1;
  filter: invert(78%) sepia(45%) saturate(1200%) hue-rotate(359deg) brightness(104%) contrast(98%);
}

.mm-recipe-rating--hero .mm-recipe-rating__stars .mm-recipe-rating__star:hover ~ .mm-recipe-rating__star .mm-recipe-rating__star-img {
  opacity: 0.34;
  filter: grayscale(1);
}

.mm-recipe-rating--hero .mm-recipe-rating__star:hover .mm-recipe-rating__star-img,
.mm-recipe-rating--hero .mm-recipe-rating__star:focus-visible .mm-recipe-rating__star-img {
  opacity: 1;
  filter: invert(78%) sepia(45%) saturate(1200%) hue-rotate(359deg) brightness(104%) contrast(98%);
}

.mm-recipe-rating--hero .mm-recipe-rating__meta,
.mm-recipe-rating--hero .mm-recipe-rating__meta.is-empty {
  font-size: 1rem !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.mm-recipe-rating--hero .mm-recipe-rating__meta {
  color: var(--mm-ink);
}

.mm-recipe-rating--hero .mm-recipe-rating__meta.is-empty {
  color: rgba(26, 26, 26, 0.42);
}

.mm-recipe-rating--hero .mm-recipe-rating__hint {
  margin-top: 4px;
  font-size: 0.88rem;
  line-height: 1.45;
}

body.mm-theme-dark .mm-recipe-rating--hero .mm-recipe-rating__star-img {
  opacity: 0.38;
  filter: grayscale(1) brightness(1.15);
}

body.mm-theme-dark .mm-recipe-rating--hero .mm-recipe-rating__star.is-active .mm-recipe-rating__star-img,
body.mm-theme-dark .mm-recipe-rating--hero .mm-recipe-rating__stars:hover .mm-recipe-rating__star .mm-recipe-rating__star-img,
body.mm-theme-dark .mm-recipe-rating--hero .mm-recipe-rating__star:hover .mm-recipe-rating__star-img,
body.mm-theme-dark .mm-recipe-rating--hero .mm-recipe-rating__star:focus-visible .mm-recipe-rating__star-img {
  opacity: 1;
  filter: invert(82%) sepia(48%) saturate(900%) hue-rotate(359deg) brightness(108%) contrast(98%);
}

body.mm-theme-dark .mm-recipe-rating--hero .mm-recipe-rating__stars .mm-recipe-rating__star:hover ~ .mm-recipe-rating__star .mm-recipe-rating__star-img {
  opacity: 0.38;
  filter: grayscale(1) brightness(1.15);
}

body.mm-theme-dark .mm-recipe-rating--hero .mm-recipe-rating__meta {
  color: rgba(231, 236, 246, 0.92);
}

body.mm-theme-dark .mm-recipe-rating--hero .mm-recipe-rating__meta.is-empty {
  color: rgba(231, 236, 246, 0.45);
}

.mm-p9-hero-top__media {
  justify-self: start;
  width: 100%;
  grid-area: media;
  padding-top: 0;
  margin-top: 5px;
}

.mm-p9-hero-top__visual {
  position: relative;
  width: 100%;
}

/* Entspricht u-radius-30: alle vier Ecken (Picture clippt; img erhält gleichen Radius) */
.mm-p9-hero-top__visual picture.mm-recipe-picture {
  border-radius: 30px;
  overflow: hidden;
}

.mm-rezept-privacy-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  width: 50px;
  height: 50px;
  pointer-events: auto;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--color-neutral);
}

.mm-rezept-privacy-badge:disabled {
  opacity: 0.7;
  cursor: default;
}

.mm-rezept-privacy-badge:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.45);
  outline-offset: 3px;
  border-radius: 999px;
}

.mm-rezept-privacy-badge__img {
  width: 100%;
  height: 100%;
  display: block;
}

.mm-rezept-fav-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 50px;
  height: 50px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.mm-rezept-fav-badge.is-active {
  opacity: 1;
}

.mm-rezept-fav-badge:not(.is-active) {
  opacity: 0.63;
}

.mm-rezept-fav-badge:disabled {
  opacity: 0.61;
  cursor: default;
}

.mm-rezept-fav-badge:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.45);
  outline-offset: 3px;
  border-radius: 999px;
}

.mm-rezept-fav-badge__img {
  width: 100%;
  height: 100%;
  display: block;
}

.mm-p9-hero-top__visual .mm-recipe-vegan-badge--hero {
  left: 12px;
  right: auto;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 10px;
  box-sizing: border-box;
  background: rgba(110, 110, 110, 0.92);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);
}

.mm-p9-hero-top__visual .mm-recipe-vegan-badge--hero .mm-recipe-vegan-badge__img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

body.mm-theme-dark .mm-p9-hero-top__visual .mm-recipe-vegan-badge--hero {
  background: rgba(130, 130, 130, 0.88);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* Hero: PDF-Export — Kreis unten rechts (wie Vegan-Badge unten links) */
.mm-p9-hero-top__visual .mm-recipe-hero-pdf-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  left: auto;
  top: auto;
  z-index: 4;
  width: 50px;
  height: 50px;
  padding: 10px;
  box-sizing: border-box;
  border: 0;
  border-radius: 50%;
  background: rgba(110, 110, 110, 0.92);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.mm-p9-hero-top__visual .mm-recipe-hero-pdf-btn:hover:not(:disabled) {
  background: rgba(95, 95, 95, 0.96);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.mm-p9-hero-top__visual .mm-recipe-hero-pdf-btn:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.45);
  outline-offset: 3px;
}

.mm-p9-hero-top__visual .mm-recipe-hero-pdf-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.mm-p9-hero-top__visual .mm-recipe-hero-pdf-btn__icon {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  display: block;
}

body.mm-theme-dark .mm-p9-hero-top__visual .mm-recipe-hero-pdf-btn {
  background: rgba(130, 130, 130, 0.88);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

body.mm-theme-dark .mm-p9-hero-top__visual .mm-recipe-hero-pdf-btn:hover:not(:disabled) {
  background: rgba(145, 145, 145, 0.92);
}

body.mm-theme-dark .mm-p9-hero-top__visual .mm-recipe-hero-pdf-btn:focus-visible {
  outline-color: rgba(231, 236, 246, 0.55);
}

.mm-u-rezeptimg.mm-u-rezeptimg--hero-top {
  width: 100%;
  height: auto;
  display: block;
}

.mm-u-rezeptimg--zoomable {
  cursor: zoom-in;
}

.mm-u-rezeptimg--zoomable:focus-visible {
  outline: 2px solid rgba(45, 127, 249, 0.55);
  outline-offset: 3px;
}

body.mm-theme-dark .mm-u-rezeptimg--zoomable:focus-visible {
  outline-color: rgba(120, 169, 255, 0.65);
}

/* Vollbild-Vorschau Rezeptbild (Klick auf Hero, Badges bleiben darüber klickbar) */
.mm-recipe-img-modal {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
}

.mm-recipe-img-modal.is-open {
  display: flex;
}

.mm-recipe-img-modal__panel {
  position: relative;
  width: min(980px, 96vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.mm-recipe-img-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #f7f7f7;
}

.mm-recipe-img-modal__title {
  font-weight: 800;
  font-size: 0.95rem;
  color: rgba(0, 0, 0, 0.78);
  margin: 0;
}

.mm-recipe-img-modal__close {
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 10px;
  color: inherit;
}

.mm-recipe-img-modal__close img {
  display: block;
  width: 22px;
  height: 22px;
}

body.mm-theme-dark .mm-recipe-img-modal__close img {
  filter: invert(1) brightness(1.05);
}

.mm-recipe-img-modal__close:focus-visible {
  outline: 2px solid rgba(45, 127, 249, 0.35);
  outline-offset: 2px;
}

.mm-recipe-img-modal__body {
  padding: 12px;
  max-height: calc(90vh - 52px);
  overflow: auto;
  background: #fff;
}

.mm-recipe-img-modal__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

body.mm-theme-dark .mm-recipe-img-modal__panel,
body.mm-theme-dark .mm-recipe-img-modal__body {
  background: #1b2029;
}

body.mm-theme-dark .mm-recipe-img-modal__head {
  background: #171b22;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.mm-theme-dark .mm-recipe-img-modal__title {
  color: #e7ecf6;
}

.mm-p9-hero-top__media .mm-u-rezeptimg--hero-top,
.mm-p9-hero-top__media .mm-u-rezeptimg--placeholder {
  margin: 0 !important;
  margin-bottom: 5px;
  padding: 0 !important;
  border-radius: 30px !important;
}

.mm-p9-hero-floathead {
  margin-top: 0;
}

.mm-p9-hero-top__lead .mm-taxo.mm-p9-hero-floattaxo {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* Tags → Zubereitungszeit */
.mm-p9-hero-top__lead .mm-p9-hero-floattaxo + .mm-prep {
  margin-top: 5px !important;
}

.mm-p9-hero-top__lead .mm-p9-hero-floattaxo:has(+ .mm-prep) {
  margin-bottom: 0.5rem;
}

/* Kompakter Abstand: Linie direkt zwischen Tags und Beschreibung (Beschreibung in linker Spalte) */
.mm-p9-hero-taxo-desc-sep {
  height: 1px;
  width: 100%;
  background: rgba(0, 0, 0, 0.1);
  margin-top: 4px;
  margin-bottom: 4px;
}

.mm-p9-hero-floattext {
  margin-top: 0;
}

.mm-p9-hero-floathead + .mm-p9-hero-floattext {
  margin-top: 6px;
}

.mm-p9-hero-taxo-desc-sep + .mm-p9-hero-floattext {
  margin-top: 0;
}

/* Fließtext im Kopf: 16px, luftige Zeilenhöhe (wie Referenz-Absatz) */
/* Page-4.css: .u-section-4 .u-text-3 ist kursiv — Beschreibung soll normaler Fließtext sein */
.mm-p9-hero-top__lead .mm-p9-hero-floattext {
  font-size: 1rem !important;
  font-style: normal !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1.6 !important;
  margin: 0 0 1.25rem !important;
  color: var(--mm-ink);
}

/* Nicepage Page-9: .u-text-3 bringt margin:20px 0 0 — im Lead neutralisieren */
.mm-p9-hero-top__lead .u-text-3 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.mm-p9-hero-top__lead .mm-prep.u-text-3 {
  margin-top: 5px !important;
  margin-bottom: 1rem !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
  color: var(--mm-ink);
}

/* Letzte Kochung: klein unter der Zubereitungszeit, ohne andere Blöcke zu verschieben */
.mm-p9-hero-top__lead .mm-prep.mm-prep--gekocht.u-text-3 {
  margin-top: -0.5rem !important;
  margin-bottom: 1rem !important;
  font-size: 0.8125rem !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
  color: rgba(26, 26, 26, 0.68);
}

body.mm-theme-dark .mm-p9-hero-top__lead .mm-prep.mm-prep--gekocht.u-text-3 {
  color: rgba(231, 236, 246, 0.72);
}

.mm-rezept-public-autor a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.mm-theme-dark .mm-rezept-public-autor {
  color: rgba(231, 236, 246, 0.78) !important;
}

.mm-p9-hero-top__lead .mm-quelle {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* Tags im Kopf: etwas ruhiger, näher an „kleine Bold-Zeile“ */
.mm-p9-hero-top__lead .mm-tags.mm-tags--taxo + .mm-tags.mm-tags--taxo {
  margin-top: 0.5rem;
}

.mm-p9-hero-top__lead .mm-tags.mm-tags--taxo .mm-tag {
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
}

@media (max-width: 767px) {
  .mm-p9-hero-top {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "lead";
    row-gap: 2rem;
  }

  .mm-p9-hero-top__media {
    justify-self: stretch;
    order: -1;
  }

  .mm-p9-hero-top__lead .mm-p9-hero-unique-title,
  .mm-p9-hero-top__lead:has(.mm-p9-hero-floattaxo) .mm-p9-hero-unique-title,
  .mm-p9-hero-top__lead:not(:has(.mm-p9-hero-floattaxo)) .mm-p9-hero-unique-title {
    font-size: clamp(1.25rem, 4.8vw, 1.5rem) !important;
  }
}

/* Zubereitung: normaler Text (keine Versalien/keine Kursivschrift) */
.mm-prep,
.mm-prep * {
  text-transform: none !important;
  font-style: normal !important;
  letter-spacing: normal !important;
}

/* Vertikal komprimieren (Inline-style sonst sehr dominant) */
.mm-prep {
  margin-top: 0 !important;
  margin-bottom: 0;
}

/* Nährwerte-Table (wie Screenshot) */
.mm-nw {
  margin-top: 0;
}

.mm-nw__title {
  font-weight: 800;
  margin-bottom: 6px;
}

.mm-nw__table {
  width: auto;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: transparent;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.mm-nw__wrap {
  display: inline-block;
  max-width: 100%;
}

.mm-nw__table th,
.mm-nw__table td {
  padding: 4px 10px 4px 0;
  border: 0;
  text-align: left;
  vertical-align: top;
  background: transparent;
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
}

.mm-nw__table thead th {
  font-weight: 400;
  border: 0;
  white-space: nowrap;
}

.mm-nw__table thead,
.mm-nw__table tbody,
.mm-nw__table tr {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.mm-nw__table td:first-child {
  padding-right: 16px;
  white-space: nowrap;
}

.mm-nw__table td:nth-child(2),
.mm-nw__table td:nth-child(3) {
  white-space: nowrap;
}

.mm-quelle {
  margin-top: 0;
  font-size: 0.9rem;
  opacity: 0.75;
}

/* KI-Bild erzeugen: Ladebalken */
.mm-gen-image-panel {
  margin-top: 10px;
  max-width: 280px;
}

.mm-gen-image-panel[hidden] {
  display: none !important;
}

.mm-gen-image-msg {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(26, 26, 26, 0.78);
}

.mm-gen-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.mm-gen-bar__indet {
  height: 100%;
  width: 38%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c98a45, #eeb16d, #f5c896);
  animation: mm-gen-bar-slide 1.35s ease-in-out infinite;
}

@keyframes mm-gen-bar-slide {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

.mm-danger-zone {
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Formular ohne Browser-Abstände; innen flex, damit der Submit mit PDF/Bearbeiten auf einer Linie sitzt */
.mm-danger-zone > form {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  align-self: center;
}

.mm-btn-edit {
  background: linear-gradient(180deg, #6b6f76 0%, #4a4e54 100%);
  color: #f4f4f5 !important;
  border: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 14px 18px; /* gleiche Größe wie Löschen */
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: filter 0.12s ease, box-shadow 0.12s ease;
}

.mm-btn-edit:hover,
.mm-btn-edit:focus {
  background: linear-gradient(180deg, #787c84 0%, #555a62 100%);
  color: #f4f4f5 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.mm-btn-danger {
  background: linear-gradient(180deg, #6b6f76 0%, #4a4e54 100%);
  color: #f4f4f5 !important;
  border: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 14px 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: filter 0.12s ease, box-shadow 0.12s ease;
}

.mm-btn-danger:hover,
.mm-btn-danger:focus {
  background: linear-gradient(180deg, #787c84 0%, #555a62 100%);
  color: #f4f4f5 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.mm-btn-edit:focus-visible,
.mm-btn-danger:focus-visible {
  outline: 2px solid rgba(90, 95, 105, 0.65);
  outline-offset: 2px;
}

.mm-export-overlay {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(18, 18, 18, 0.18);
  backdrop-filter: blur(4px);
}

.mm-export-overlay[hidden] {
  display: none !important;
}

.mm-export-overlay__panel {
  width: min(320px, calc(100vw - 32px));
  min-height: 140px;
  padding: 22px 20px;
  border-radius: 18px;
  background: rgba(43, 48, 56, 0.62);
  color: #f4f4f5;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.mm-export-overlay__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
}

.mm-export-overlay__bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.mm-export-overlay__bar-indet {
  height: 100%;
  width: 38%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c98a45, #eeb16d, #f5c896);
  animation: mm-export-overlay-bar-slide 1.35s ease-in-out infinite;
}

@keyframes mm-export-overlay-bar-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

body.mm-theme-dark .mm-export-overlay__panel {
  background: rgba(20, 24, 31, 0.66);
  color: #e7ecf6;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}


/* Zubereitung: Nummern-Kreis grau */
.mm-cook-step__num::before {
  background: rgba(0, 0, 0, 0.10) !important;
  color: rgba(0, 0, 0, 0.70) !important;
}

/* Nährwerttabelle: keine alternierenden Zeilenfarben */
.mm-nw__table,
.mm-nw__table thead tr,
.mm-nw__table tbody tr,
.mm-nw__table th,
.mm-nw__table td {
  background: transparent !important;
}

.mm-nw__table tbody tr:nth-child(odd),
.mm-nw__table tbody tr:nth-child(even) {
  background: transparent !important;
}

.mm-cook-title {
  margin: 0 0 6px;
  font-weight: 800;
}

.mm-cook-rating {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(26, 26, 26, 0.78);
  margin-bottom: 10px;
}

.mm-cook-rating__hint {
  font-size: 0.95rem;
  opacity: 0.85;
}

.mm-cook-lead {
  margin: 0 0 14px;
  line-height: 1.6;
  color: rgba(26, 26, 26, 0.78);
}

.mm-cook-hero__img .mm-u-rezeptimg {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.mm-cook-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.mm-cook-cta {
  flex: 1 1 auto;
  border: 0;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(224, 96, 112, 0.85);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.mm-cook-cta:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

.mm-cook-iconbar {
  display: flex;
  gap: 8px;
}

.mm-cook-icbtn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  cursor: not-allowed;
  font-size: 16px;
  line-height: 1;
}

.mm-cook-share {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(31, 63, 143, 0.06);
  border: 1px solid rgba(31, 63, 143, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.mm-cook-share__icons {
  display: flex;
  gap: 10px;
}

.mm-share-ico {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.10);
  font-weight: 800;
  color: rgba(26, 26, 26, 0.75);
}

.mm-cook-stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mm-cook-stat {
  text-align: center;
  padding: 12px 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.mm-cook-stat__label {
  font-weight: 800;
  color: rgba(26, 26, 26, 0.72);
  font-size: 0.9rem;
}

.mm-cook-stat__value {
  margin-top: 2px;
  font-weight: 900;
  color: rgba(26, 26, 26, 0.9);
}

.mm-cook-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* Zutaten links, Nährwerte rechts daneben */
.mm-cook-ing-nw {
  --mm-recipe-aside-width: 386px;
  --mm-share-btn: 50px;
  --mm-share-gap: 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--mm-recipe-aside-width);
  gap: 20px 28px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

/* Linke Spalte (Zutaten): gesamte Restbreite, darf schrumpfen */
.mm-cook-ing-nw > .mm-cook-box--ingredients {
  min-width: 0;
}

/* Rezept bearbeiten: zweite Spalte = Schritte (nicht max-content), sonst bleiben Zutaten-Chips in einer Zeile */
@media (min-width: 768px) {
  .mm-cook-ing-nw:has(> .mm-cook-steps) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.mm-cook-ing-nw > .mm-cook-steps {
  min-width: 0;
  max-width: 100%;
}

.mm-cook-ing-nw > .mm-cook-steps #mm-steps .mm-edit-step__zutaten {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Rechte Spalte: Share-Buttons, Nährwerte und Allergene teilen dieselbe feste Breite. */
.mm-cook-nw-column {
  box-sizing: border-box;
  align-self: start;
  justify-self: end;
  min-width: 0;
  width: var(--mm-recipe-aside-width);
  max-width: var(--mm-recipe-aside-width);
}

/* Innenlayout: volle rechte Spalte, nicht breiter als die Share-Button-Zeile. */
.mm-cook-nw-aside-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  gap: 4px;
}

.mm-cook-nw-column .mm-recipe-share {
  width: 100%;
  max-width: 100%;
}

.mm-cook-nw-column .mm-cook-box--naehrwerte {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.mm-recipe-share {
  margin: 0;
}

/* Kein Karten-Rahmen um die Teilen-Zeile (nur die einzelnen Icon-Buttons bleiben) */
.mm-recipe-share.mm-cook-box {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.mm-recipe-share__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--mm-share-gap, 6px);
  margin: 0;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  line-height: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.mm-recipe-share__row .mm-recipe-share__btn {
  flex: 0 0 auto;
}

/* Nicepage / .u-text: Absätze oft mit margin — für die Icon-Zeile neutralisieren */
.mm-recipe-share.mm-cook-box > .mm-recipe-share__row.u-text {
  margin-top: 0;
  margin-bottom: 0;
}

.mm-recipe-share__btn,
.mm-recipe-share__btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--mm-share-btn, 50px);
  height: var(--mm-share-btn, 50px);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: rgba(26, 26, 26, 0.82);
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.mm-recipe-share__btn:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.14);
}

.mm-recipe-share__btn--wa,
.mm-recipe-share__btn--wa:visited {
  color: #128c7e;
}

.mm-recipe-share__btn--pin,
.mm-recipe-share__btn--pin:visited {
  color: #bd081c;
}

.mm-recipe-share__btn--fb,
.mm-recipe-share__btn--fb:visited {
  color: #1877f2;
}

.mm-recipe-share__btn--x,
.mm-recipe-share__btn--x:visited {
  color: #0f1419;
}

.mm-recipe-share__btn--mail,
.mm-recipe-share__btn--mail:visited {
  color: rgba(26, 26, 26, 0.78);
}

.mm-recipe-share__btn--ig,
.mm-recipe-share__btn--ig:visited {
  color: #e4405f;
}

/* Snapchat: Markenfarben im SVG (gelb #FFFC00 + weißer Geist), nicht currentColor */
.mm-recipe-share__btn--snap,
.mm-recipe-share__btn--snap:visited {
  color: inherit;
}

.mm-recipe-share__btn:focus {
  outline: none;
}

.mm-recipe-share__btn:focus-visible {
  outline: 2px solid #c98a45;
  outline-offset: 2px;
}

.mm-recipe-share__icon {
  display: block;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
}

.mm-recipe-share__icon--snap {
  display: block;
  border-radius: 6px;
  object-fit: contain;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.mm-cook-box--naehrwerte {
  justify-self: auto;
  min-width: 0;
}

.mm-nw--beside-ingredients {
  width: 100%;
  box-sizing: border-box;
}

.mm-nw--beside-ingredients .mm-nw__wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mm-recipe-allergens {
  margin-top: 14px;
  padding-top: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mm-nw--beside-ingredients:not(:has(.mm-nw__wrap)) .mm-recipe-allergens {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.mm-nw--beside-ingredients .mm-recipe-allergens__line {
  overflow-wrap: anywhere;
}

.mm-recipe-allergens__heading {
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  font-weight: 700;
  color: rgba(26, 26, 26, 0.92);
}

.mm-recipe-allergens__heading + .mm-recipe-allergens__line {
  margin-top: 10px;
}

.mm-recipe-allergens__line {
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  font-weight: 400;
  color: rgba(26, 26, 26, 0.88);
}

.mm-recipe-allergens__line + .mm-recipe-allergens__line {
  margin-top: 12px;
}

.mm-recipe-allergens__label {
  display: inline-block;
  font-weight: 400;
  color: rgba(26, 26, 26, 0.55);
  margin: 0 0 2px 0;
}

.mm-recipe-allergens__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 4px;
}

.mm-recipe-allergens__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 4px 11px;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 400;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  max-width: 100%;
}

.mm-recipe-allergens__tag--present {
  color: #b71c1c;
  background: #ffebee;
  border-color: #ef9a9a;
}

.mm-recipe-allergens__tag--absent {
  color: rgba(26, 26, 26, 0.82);
  background: #f5f5f5;
  border-color: rgba(0, 0, 0, 0.12);
}

.mm-recipe-allergens__tag--hot {
  cursor: pointer;
}

.mm-recipe-allergens__tag--hot:focus-visible {
  outline: 2px solid rgba(25, 118, 210, 0.55);
  outline-offset: 2px;
}

.mm-recipe-allergens__tag--picked {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mm-cook-ingredients__item.mm-allergen-highlight .mm-ing-col--name,
.mm-cook-ingredients__item.mm-allergen-highlight .mm-ing-line--fixed,
.mm-cook-step__zutaten-list > li.mm-allergen-highlight .mm-ing-col--name,
.mm-cook-step__zutaten-list > li.mm-allergen-highlight .mm-ing-line--fixed {
  font-weight: 700;
}

.mm-recipe-allergens__empty {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(26, 26, 26, 0.5);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
}

.mm-recipe-allergens__footnote {
  margin: 12px 0 0 0;
  padding: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 400;
  font-style: italic;
  color: rgba(26, 26, 26, 0.52);
}

body.mm-theme-dark .mm-recipe-allergens {
  border-top-color: rgba(255, 255, 255, 0.12);
}

body.mm-theme-dark .mm-recipe-allergens__heading {
  color: rgba(231, 236, 246, 0.92);
}

body.mm-theme-dark .mm-recipe-allergens__line {
  color: rgba(231, 236, 246, 0.88);
}

body.mm-theme-dark .mm-recipe-allergens__label {
  color: rgba(231, 236, 246, 0.55);
}

body.mm-theme-dark .mm-recipe-allergens__tag--present {
  color: #ffcdd2;
  background: rgba(183, 28, 28, 0.28);
  border-color: rgba(239, 154, 154, 0.45);
}

body.mm-theme-dark .mm-recipe-allergens__tag--absent {
  color: rgba(231, 236, 246, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

body.mm-theme-dark .mm-recipe-allergens__tag--hot:focus-visible {
  outline-color: rgba(144, 202, 249, 0.75);
}

body.mm-theme-dark .mm-recipe-allergens__empty {
  color: rgba(231, 236, 246, 0.5);
}

body.mm-theme-dark .mm-recipe-allergens__footnote {
  color: rgba(231, 236, 246, 0.52);
}

.mm-nw--beside-ingredients .mm-nw__table {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border: 0;
  outline: 0;
  box-shadow: none;
}

/* Sonst erzwingen thead white-space:nowrap eine zu große Mindestbreite → rechte Spalte wird breiter als Icons */
.mm-nw--beside-ingredients .mm-nw__table thead th {
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.mm-nw--beside-ingredients .mm-nw__table th:first-child,
.mm-nw--beside-ingredients .mm-nw__table td:first-child {
  width: 38%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.mm-nw--beside-ingredients .mm-nw__table th:nth-child(2),
.mm-nw--beside-ingredients .mm-nw__table th:nth-child(3),
.mm-nw--beside-ingredients .mm-nw__table td:nth-child(2),
.mm-nw--beside-ingredients .mm-nw__table td:nth-child(3) {
  text-align: right;
  width: 31%;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .mm-cook-ing-nw {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .mm-cook-nw-column {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
  }

  .mm-cook-nw-aside-inner {
    display: flex;
    width: 100%;
    max-width: 100%;
  }

  .mm-cook-box--naehrwerte {
    justify-self: stretch;
  }

  .mm-recipe-share {
    width: 100%;
    max-width: 100%;
  }

  .mm-nw--beside-ingredients .mm-nw__table {
    margin-left: 0;
    width: 100%;
  }
}

.mm-cook-box {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 14px 14px;
}

/*
 * Nährwerte/Allergene: wieder als lesbare Karte (Hellmodus).
 * Breite kommt von .mm-cook-nw-column (max. 386px); Innenpadding zählt bei border-box zur Gesamtbreite.
 */
.mm-cook-box.mm-cook-box--naehrwerte {
  padding: 12px 10px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #1a1a1a;
  box-shadow: none;
}

.mm-cook-ingredients-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 12px;
  min-width: 0;
  overflow-x: visible;
}

.mm-cook-ingredients-head__lead {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  flex: 1 1 auto;
  min-width: 0;
}

.mm-cook-ingredients-head__lead .mm-cook-h3--zutaten {
  flex: 0 1 auto;
  min-width: 0;
}

.mm-cook-ingredients-head .mm-cook-ing-sort {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 10px;
  flex: 0 0 auto;
  margin-left: auto;
  max-width: 100%;
}

@media (max-width: 520px) {
  .mm-cook-ingredients-head .mm-cook-ing-sort {
    width: auto;
    max-width: 100%;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
  /* Reihenfolge fix: SVG immer links, Select immer rechts */
  .mm-cook-ing-sort__label {
    order: 1;
  }
  .mm-cook-ing-sort__select {
    order: 2;
    min-width: 0;
    width: clamp(120px, 46vw, 160px) !important;
    max-width: 160px !important;
    flex: 0 0 auto;
    display: inline-block;
  }
}

/* Zutaten / Zubereitung: feste Sektionen (kein Auf-/Zuklappen) */
.mm-recipe-view-section {
  width: 100%;
}

.mm-recipe-accordion__panel {
  padding-top: 0;
}

/* Zutatenzeilen: umbrechen, wenn der Platz nicht reicht (kein horizontales Scrollen) */
.mm-cook-ingredients__list {
  overflow-x: visible;
}

.mm-cook-ingredients__item .mm-ing-line,
.mm-cook-ingredients__item .mm-ing-line--fixed,
.mm-cook-ingredients__item .mm-ing-line--no-qty {
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.mm-cook-ingredients__item .mm-ing-col--name,
.mm-cook-ingredients__item .mm-ing-col--name *,
.mm-cook-ingredients__item .mm-ing-kcal-wrap,
.mm-cook-ingredients__item .mm-ing-kcal-wrap * {
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Menge + Einheit = eine Einheit, nicht umbrechen; Name darf umbrechen (s. .mm-ing-col--name) */
.mm-cook-ingredients__item .mm-ing-col--qty,
.mm-cook-ingredients__item .mm-ing-col--qty * {
  white-space: nowrap;
}

.mm-cook-ingredients__item {
  font-size: 0.98rem;
}

.mm-nw__table {
  font-size: 0.85rem;
}

@media (max-width: 520px) {
  .mm-cook-box {
    padding: 12px 12px;
  }

  .mm-cook-h3--zutaten {
    font-size: 0.92rem;
  }

  .mm-cook-ingredients__item {
    font-size: 0.9rem;
  }

  .mm-nw__table {
    font-size: 0.78rem;
  }

  .mm-nw__table th,
  .mm-nw__table td {
    padding: 3px 8px 3px 0;
  }
}
.mm-cook-ing-sort__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  margin: 0;
  color: rgba(26, 26, 26, 0.62);
  flex: 0 0 auto;
}

.mm-cook-ing-sort__icon {
  display: block;
  width: 21px;
  height: 21px;
}

.mm-cook-ing-sort__select {
  margin: 0;
  min-width: 140px;
  width: clamp(130px, 32vw, 170px);
  max-width: 170px;
  padding: 8px 32px 8px 10px;
  font-size: 1rem;
  line-height: 1.35;
  color: #1a1a1a;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 10px;
  cursor: pointer;
}

.mm-cook-ing-sort__select:hover {
  border-color: rgba(0, 0, 0, 0.22);
}

.mm-cook-ing-sort__select:focus {
  outline: 2px solid rgba(224, 96, 112, 0.45);
  outline-offset: 2px;
}

.mm-cook-h3 {
  font-weight: 900;
  margin: 0 0 10px;
}

.mm-cook-h3--zutaten {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.92);
}

.mm-cook-portionen-hinweis {
  margin: 8px 0 0;
  font-size: 0.9rem;
  opacity: 0.82;
}

.mm-cook-ingredients-sep {
  height: 1px;
  margin: 12px 0 4px;
  background: rgba(0, 0, 0, 0.1);
}

.mm-cook-ingredients-empty {
  margin: 10px 0 0;
}

.mm-cook-ingredients {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.mm-cook-ingredients__item {
  padding: 6px 0;
  font-size: 1.03rem;
}

.mm-ing-row {
  width: 100%;
  text-align: left;
}

/* Inline-Span + Grid: als Block volle Zeilenbreite, damit der Zutatenblock links bündig mit der Überschrift bleibt */
.mm-cook-ingredients__item > .mm-ing-item-inner > .mm-ing-row > .mm-ing-line:not(.mm-ing-line--fixed) {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.mm-ing-item-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
  position: relative;
}

.mm-ing-item-inner .mm-ing-row {
  flex: 1;
  min-width: 0;
}

.mm-ing-pantry-actions {
  display: none;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.mm-ing-pantry-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(198, 40, 40, 0.45);
  border-radius: 6px;
  background: rgba(198, 40, 40, 0.08);
  color: #b71c1c;
  cursor: pointer;
  line-height: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mm-ing-pantry-action-btn.mm-ing-pantry-action-btn--ok {
  border-color: rgba(46, 125, 50, 0.55);
  background: rgba(46, 125, 50, 0.12);
  color: #1b5e20;
}

.mm-ing-pantry-action-btn.mm-ing-pantry-action-btn--ok:hover,
.mm-ing-pantry-action-btn.mm-ing-pantry-action-btn--ok:focus {
  background: rgba(46, 125, 50, 0.14);
  border-color: rgba(46, 125, 50, 0.65);
  color: #1b5e20;
}

.mm-ing-pantry-action-btn.mm-ing-pantry-action-btn--ok:focus-visible {
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.28);
}

.mm-ing-shopping-add-btn.mm-ing-shopping-add-btn--ok {
  cursor: default;
}

.mm-ing-pantry-action-btn:hover,
.mm-ing-pantry-action-btn:focus {
  background: rgba(198, 40, 40, 0.16);
  border-color: rgba(198, 40, 40, 0.65);
  color: #8b0000;
  outline: none;
}

.mm-ing-pantry-action-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.35);
}

.mm-ing-pantry-action-btn[disabled] {
  opacity: 0.55;
  cursor: wait;
}

.mm-ing-pantry-action-icon {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  pointer-events: none;
}

/* Haus: Form aus home.svg, Farbe = Button-`color` (dunkelrot / dunkelgrün, inkl. Hover/Darkmode) */
.mm-ing-pantry-home-btn .mm-ing-pantry-home-icon.mm-ing-pantry-action-icon {
  object-fit: unset;
  background-color: currentColor;
  -webkit-mask: url("/img/home.svg") center / contain no-repeat;
  mask: url("/img/home.svg") center / contain no-repeat;
}

/* Einkaufswagen: Form aus einkaufswagen.svg, Farbe = Button-`color` */
.mm-ing-shopping-add-btn .mm-ing-pantry-shop-icon.mm-ing-pantry-action-icon {
  object-fit: unset;
  background-color: currentColor;
  -webkit-mask: url("/img/einkaufswagen.svg") center / contain no-repeat;
  mask: url("/img/einkaufswagen.svg") center / contain no-repeat;
}

.mm-cook-ingredients.mm-pantry-match--on .mm-ing-pantry-actions {
  display: inline-flex;
  position: absolute;
  right: 0;
  top: 0;
  margin-top: 0;
}

/* Wenn die Pantry-Actions sichtbar sind, sollen sie den Zeilenabstand nicht vergrößern.
   Dafür liegen sie absolut und wir reservieren Platz rechts, damit Text nicht überlappt. */
.mm-cook-ingredients.mm-pantry-match--on .mm-ing-item-inner {
  padding-right: 74px;
}

body.mm-theme-dark .mm-ing-pantry-action-btn {
  border-color: rgba(239, 154, 154, 0.55);
  background: rgba(239, 154, 154, 0.12);
  color: #ffcdd2;
}

body.mm-theme-dark .mm-ing-pantry-action-btn.mm-ing-pantry-action-btn--ok {
  border-color: rgba(129, 199, 132, 0.55);
  background: rgba(129, 199, 132, 0.18);
  color: rgba(231, 236, 246, 0.92);
}

body.mm-theme-dark .mm-ing-pantry-action-btn.mm-ing-pantry-action-btn--ok:hover,
body.mm-theme-dark .mm-ing-pantry-action-btn.mm-ing-pantry-action-btn--ok:focus {
  border-color: rgba(129, 199, 132, 0.7);
  background: rgba(129, 199, 132, 0.22);
  color: rgba(231, 236, 246, 0.95);
}

body.mm-theme-dark .mm-ing-pantry-action-btn.mm-ing-pantry-action-btn--ok:focus-visible {
  box-shadow: 0 0 0 2px rgba(129, 199, 132, 0.28);
}

body.mm-theme-dark .mm-ing-pantry-action-btn:hover,
body.mm-theme-dark .mm-ing-pantry-action-btn:focus {
  background: rgba(239, 154, 154, 0.22);
  border-color: rgba(239, 154, 154, 0.75);
  color: #fff;
}

.mm-ing-row__cols {
  display: grid;
  /* --mm-qty-col: gemeinsame Breite (längste Menge+Einheit), gesetzt per JS auf #mm-cook-ingredients */
  grid-template-columns: var(--mm-qty-col, max-content) minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 8px;
  align-items: start;
  width: 100%;
  font-size: 1.03rem;
}

@media (max-width: 420px) {
  .mm-ing-row__cols {
    grid-template-columns: var(--mm-qty-col, max-content) minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 6px;
    font-size: clamp(0.78rem, 3.6vw, 0.9rem);
  }
}

.mm-ing-col--qty {
  font-weight: 700;
  color: rgba(26, 26, 26, 0.95);
  text-align: right;
  justify-self: end;
  min-width: 0;
  max-width: 100%;
}

.mm-ing-col--name {
  min-width: 0;
  text-align: left;
  font-weight: 400;
  color: rgba(26, 26, 26, 0.92);
}

.mm-ing-line--fixed {
  display: block;
  flex: 1;
  font-weight: 400;
}

/* Portionen-Widget: in der Kopfzeile rechts neben „Zutaten“, vor der Sortierung */
.mm-cook-servings {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0;
  padding: 2px 4px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.mm-serv-btn {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #c4c4c4;
  color: rgba(26, 26, 26, 0.92);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.05s ease, border-color 0.15s ease;
}

.mm-serv-btn:hover {
  background: #b4b4b4;
}

.mm-serv-btn:active {
  transform: scale(0.96);
}

.mm-serv-btn:focus-visible {
  outline: 2px solid rgba(26, 26, 26, 0.35);
  outline-offset: 2px;
}

.mm-serv-val-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0 3px;
  padding: 1px 8px;
  min-height: 24px;
  border-radius: 5px;
  background: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  color: rgba(26, 26, 26, 0.92);
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.mm-serv-val {
  font-weight: 800;
}

.mm-cook-steps {
  margin-top: 14px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 14px 14px;
}

.mm-cook-steps__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.mm-cook-steps__toggles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 20px;
  margin-left: auto;
}

.mm-cook-steps__toggles .mm-cook-step-ing-toggle {
  margin-left: 0;
}

.mm-cook-step-ing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  cursor: pointer;
  user-select: none;
  flex: 0 0 auto;
  white-space: nowrap;
}

.mm-cook-step-ing-toggle__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.mm-cook-step-ing-toggle__track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  transition: background-color 0.2s ease;
  flex: 0 0 auto;
}

.mm-cook-step-ing-toggle__track::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease;
}

.mm-cook-step-ing-toggle__input:checked + .mm-cook-step-ing-toggle__track {
  background: rgba(26, 26, 26, 0.46);
}

.mm-cook-step-ing-toggle__input:checked + .mm-cook-step-ing-toggle__track::before {
  transform: translateX(18px);
}

.mm-cook-step-ing-toggle__input:focus-visible + .mm-cook-step-ing-toggle__track {
  outline: 2px solid rgba(26, 26, 26, 0.28);
  outline-offset: 2px;
}

.mm-cook-step-ing-toggle__text {
  font-size: 0.84rem;
  font-weight: 700;
  color: rgba(26, 26, 26, 0.7);
  white-space: nowrap;
}

.mm-cook-step-ing-toggle--inline {
  margin-left: 0;
}

.mm-cook-stepList {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  counter-reset: step;
}

.mm-cook-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mm-cook-step:last-child {
  border-bottom: 0;
}

.mm-cook-step__num::before {
  counter-increment: step;
  content: counter(step);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(224, 96, 112, 0.20);
  color: rgba(224, 96, 112, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.mm-cook-step__main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.mm-cook-step__text {
  line-height: 1.65;
  color: rgba(26, 26, 26, 0.88);
}

.mm-cook-step__zutaten {
  font-size: 0.92rem;
  color: rgba(26, 26, 26, 0.62);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.03);
}

.mm-cook-step__zutaten-label {
  display: block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.48);
  margin-bottom: 4px;
}

.mm-cook-step__zutaten-list {
  margin: 0;
  padding-left: 1.15em;
}

.mm-cook-step__zutaten-list li {
  margin: 1px 0;
  line-height: 1.4;
}

.mm-cook-step__zutaten-list li:first-child {
  margin-top: 0;
}

.mm-cook-step__zutaten-list li:last-child {
  margin-bottom: 0;
}

.mm-cook-steps.is-step-zutaten-hidden .mm-cook-step__zutaten {
  display: none;
}

.mm-cook-step__kochmodus {
  font-size: 0.92rem;
  line-height: 1.5;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(224, 96, 112, 0.07);
  border: 1px solid rgba(224, 96, 112, 0.18);
}

.mm-cook-step__kochmodus .mm-kochmodus-km {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 0.5em;
  font-size: 0.88em;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(26, 26, 26, 0.62);
}

.mm-cook-step__kochmodus .mm-kochmodus-km__label {
  flex: 0 0 auto;
}

.mm-cook-step__kochmodus .mm-kochmodus-km__icons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.mm-km-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(90, 74, 66, 0.88);
}

.mm-km-tool--labeled {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  text-align: left;
}

.mm-km-tool__name {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(26, 26, 26, 0.88);
  word-break: break-word;
}

.mm-cook-step__kochmodus .mm-km-tool__name {
  color: rgba(26, 26, 26, 0.9);
}

.mm-km-tool__svg {
  display: block;
  width: 2.5em;
  height: 2.5em;
  max-width: 42px;
  max-height: 42px;
  flex-shrink: 0;
}

.mm-km-tool__svg--lg {
  width: 3rem;
  height: 3rem;
  max-width: 52px;
  max-height: 52px;
}

.mm-km-tool__svg--overlay {
  width: 3.25rem;
  height: 3.25rem;
  max-width: 56px;
  max-height: 56px;
}

.mm-km-tool--overlay-step {
  width: 100%;
  box-sizing: border-box;
}

.mm-cook-step__kochmodus .mm-kochmodus-anweisung {
  margin: 0 0 0.35em;
  line-height: 1.55;
  color: rgba(26, 26, 26, 0.9);
}

.mm-cook-step__kochmodus .mm-kochmodus-anweisung:last-child {
  margin-bottom: 0;
}

.mm-cook-steps.is-step-kochmodus-hidden .mm-cook-step__kochmodus {
  display: none;
}

.mm-cook-notes {
  margin-top: 14px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 14px 14px;
  line-height: 1.65;
  color: rgba(26, 26, 26, 0.88);
}

/* Outer wrapper: no "boxed callout" feeling */
body.home-landing-page .callout.page-leistungen {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.mm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--mm-line);
}

.mm-taxo {
  margin-top: 8px;
  font-size: 0.85rem;
}

/* In Header: keine Trennlinie, kompakter */
.mm-tags.mm-tags--taxo {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  gap: 0.35rem;
}

.mm-tags__label {
  font-weight: 900;
  color: var(--mm-muted);
  margin-right: 0.25rem;
}

.mm-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--mm-bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: rgba(26, 26, 26, 0.92);
  font-weight: 800;
  font-size: 0.8rem;
}

a.mm-tag.mm-tag--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

a.mm-tag.mm-tag--link:hover {
  background: rgba(224, 96, 112, 0.12);
  border-color: rgba(224, 96, 112, 0.35);
}

a.mm-tag.mm-tag--link:focus-visible {
  outline: 2px solid rgba(224, 96, 112, 0.55);
  outline-offset: 2px;
}

body.mm-theme-dark a.mm-tag.mm-tag--link:hover {
  background: rgba(224, 96, 112, 0.18);
  border-color: rgba(231, 236, 246, 0.22);
}

.mm-sammlung-wrap {
  margin-top: 1.1rem;
}

.mm-sammlung-wrap.mm-cook-box .mm-sammlung-block {
  margin: 0;
  padding: 0;
  border: 0;
}

/* Rezeptansicht: Sammlung ohne äußeren mm-cook-box (Bearbeiten behält mm-sammlung-wrap) */
.mm-sammlung-block.mm-sammlung-block--view {
  margin-top: 1.1rem;
}

.mm-tags.mm-tags--sammlung {
  margin-top: 0.35rem;
  padding-top: 0;
  border-top: 0;
  gap: 0.35rem;
}

button.mm-tag.mm-tag--sammlung {
  cursor: pointer;
  font: inherit;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
}

button.mm-tag.mm-tag--sammlung:hover {
  background: rgba(224, 96, 112, 0.12);
  border-color: rgba(224, 96, 112, 0.35);
}

button.mm-tag.mm-tag--sammlung:focus-visible {
  outline: 2px solid rgba(224, 96, 112, 0.55);
  outline-offset: 2px;
}

button.mm-tag.mm-tag--sammlung[aria-pressed="true"] {
  background: rgba(224, 96, 112, 0.14);
  border-color: rgba(224, 96, 112, 0.4);
}

body.mm-theme-dark button.mm-tag.mm-tag--sammlung:hover {
  background: rgba(224, 96, 112, 0.18);
  border-color: rgba(231, 236, 246, 0.22);
}

body.mm-theme-dark button.mm-tag.mm-tag--sammlung[aria-pressed="true"] {
  background: rgba(224, 96, 112, 0.22);
  border-color: rgba(231, 236, 246, 0.28);
}

body.mm-theme-dark .mm-sammlung-add__display {
  color: #e7ecf6;
}

body.mm-theme-dark .mm-sammlung-add__placeholder {
  color: rgba(231, 236, 246, 0.58);
}

body.mm-theme-dark .mm-sammlung-add__display:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

body.mm-theme-dark .mm-sammlung-add__display:focus-visible {
  outline-color: rgba(200, 210, 230, 0.45);
}

.mm-sammlung-new {
  margin-top: 0.65rem;
}

.mm-sammlung-add__display {
  cursor: pointer;
  font-size: 0.98rem;
  line-height: 1.45;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  box-sizing: border-box;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.mm-sammlung-add__placeholder {
  font-style: italic;
  color: rgba(26, 26, 26, 0.52);
}

.mm-sammlung-add__display:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.mm-sammlung-add__display:focus {
  outline: none;
}

.mm-sammlung-add__display:focus-visible {
  outline: 2px solid rgba(90, 95, 105, 0.45);
  outline-offset: 2px;
  border-radius: 10px;
}

.mm-sammlung-add__panel[hidden] {
  display: none !important;
}

.mm-sammlung-add__edit-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin-top: 0.35rem;
}

.mm-sammlung-add__fields {
  flex: 1 1 auto;
  min-width: 0;
}

.mm-sammlung-new__input {
  width: 100%;
  max-width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--mm-line);
  background: var(--mm-bg);
  color: inherit;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.mm-sammlung-new .mm-btn-edit {
  flex: 0 0 auto;
}

input.mm-sammlung-inline-input {
  display: inline-block;
  vertical-align: middle;
  min-width: 5.5rem;
  max-width: 18rem;
  width: auto;
  box-sizing: border-box;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(224, 96, 112, 0.45);
  background: var(--mm-bg);
  color: inherit;
  font: inherit;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.8rem;
  line-height: 1.25;
}

input.mm-sammlung-inline-input:focus {
  outline: 2px solid rgba(224, 96, 112, 0.55);
  outline-offset: 2px;
}

input.mm-sammlung-inline-input:disabled {
  opacity: 0.75;
}

.mm-sep {
  height: 1px;
  width: 100%;
  background: rgba(0, 0, 0, 0.10);
  margin-top: 0;
}

/* Sidebar */
.mm-sidebar {
  margin-top: 0.25rem;
}

.mm-sidebar__title {
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  margin: 0.25rem 0 0.75rem;
  color: rgba(26, 26, 26, 0.85);
  border-top: 1px solid var(--mm-line);
  padding-top: 0.85rem;
}

.mm-sidebar-card {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 1.25rem;
}

.mm-sidebar-card__imgwrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: #ffffff;
}

.mm-sidebar-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.mm-sidebar-card__img--placeholder {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(238, 177, 109, 0.55), transparent 60%),
    radial-gradient(circle at 75% 35%, rgba(0, 0, 0, 0.07), transparent 55%),
    linear-gradient(135deg, rgba(242, 242, 242, 1), rgba(255, 255, 255, 1));
}

.mm-sidebar-card__title {
  margin-top: 0.55rem;
  font-weight: 900;
  color: rgba(26, 26, 26, 0.92);
  line-height: 1.25;
}


/* Kochmodus: Button unter Nährwert-Box (gleiche Breite wie Tabelle); Overlay Light/Dark wie Seitenthema */
.mm-kochmodus-start-wrap {
  width: 100%;
  max-width: 100%;
}

.mm-kochmodus-start {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-align: center;
  color: #f4f4f5;
  background: linear-gradient(180deg, #6b6f76 0%, #4a4e54 100%);
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.mm-kochmodus-start:hover,
.mm-kochmodus-start:focus {
  filter: brightness(1.05);
  background: linear-gradient(180deg, #787c84 0%, #555a62 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  outline: none;
}

.mm-kochmodus-start:focus-visible {
  outline: 3px solid rgba(90, 95, 105, 0.65);
  outline-offset: 2px;
}

.mm-kochmodus-start:active {
  transform: translateY(1px);
}

body.mm-theme-dark .mm-kochmodus-start {
  color: #f4f4f5;
  background: linear-gradient(180deg, #7d828b 0%, #5c6068 100%);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

body.mm-theme-dark .mm-kochmodus-start:hover,
body.mm-theme-dark .mm-kochmodus-start:focus {
  background: linear-gradient(180deg, #8b9099 0%, #686d76 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

body.mm-theme-dark .mm-kochmodus-start:focus-visible {
  outline-color: rgba(140, 146, 156, 0.75);
}

/* Overlay: Hellmodus (Standard) — breitflächig, große Leseschrift */
.mm-kochmodus-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: stretch;
  justify-content: center;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  padding: env(safe-area-inset-top, 0) max(12px, env(safe-area-inset-right, 0)) env(safe-area-inset-bottom, 0) max(12px, env(safe-area-inset-left, 0));
  background: #eef0f4;
  color: #1a1a1a;
}

.mm-kochmodus-overlay[hidden] {
  display: none !important;
}

.mm-kochmodus-overlay:fullscreen,
.mm-kochmodus-overlay:-webkit-full-screen {
  background: #eef0f4;
}

.mm-kochmodus-overlay__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(var(--mm-layout-max, 1180px), calc(100vw - 24px));
  height: 100%;
  max-height: 100%;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 20px) clamp(14px, 3vw, 32px) clamp(16px, 2.5vw, 28px);
  box-sizing: border-box;
  min-height: 0;
}

.mm-kochmodus-overlay__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  flex-shrink: 0;
  margin-bottom: 10px;
}

.mm-kochmodus-overlay__headline-block {
  text-align: center;
  min-width: 0;
  justify-self: center;
  max-width: 100%;
}

.mm-kochmodus-overlay__nav--back {
  justify-self: start;
}

.mm-kochmodus-overlay__step-pos {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw + 0.5rem, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  line-height: 1.2;
}

.mm-kochmodus-overlay__recipe-title {
  margin: 6px 0 0;
  font-size: clamp(0.85rem, 1.2vw + 0.45rem, 1.05rem);
  font-weight: 600;
  color: rgba(26, 26, 26, 0.55);
  line-height: 1.35;
}

.mm-kochmodus-overlay__nav {
  flex: 0 0 auto;
  padding: 10px 16px;
  font-size: clamp(0.95rem, 1.2vw + 0.4rem, 1.05rem);
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  color: #1a1a1a;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mm-kochmodus-overlay__nav:hover:not(:disabled),
.mm-kochmodus-overlay__nav:focus {
  background: rgba(0, 0, 0, 0.04);
  outline: none;
}

.mm-kochmodus-overlay__nav:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.mm-kochmodus-overlay__nav--forward {
  border: 0;
  color: #f4f4f5;
  background: linear-gradient(180deg, #6b6f76 0%, #4a4e54 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  padding: 10px 20px;
}

.mm-kochmodus-overlay__nav--forward:hover:not(:disabled),
.mm-kochmodus-overlay__nav--forward:focus {
  filter: brightness(1.05);
  background: linear-gradient(180deg, #787c84 0%, #555a62 100%);
}

.mm-kochmodus-overlay__header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.mm-kochmodus-overlay__close-x {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a1a;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mm-kochmodus-overlay__close-x:hover,
.mm-kochmodus-overlay__close-x:focus {
  background: rgba(0, 0, 0, 0.1);
  outline: none;
}

.mm-kochmodus-overlay__close-x:focus-visible {
  outline: 2px solid rgba(45, 127, 249, 0.55);
  outline-offset: 2px;
}

.mm-kochmodus-overlay__progress-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: clamp(12px, 2vw, 20px);
}

.mm-kochmodus-overlay__progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7a7f87, #a8adb5);
  transition: width 0.25s ease;
}

.mm-kochmodus-overlay__body {
  flex: 1 1 0%;
  min-height: 0;
  overflow: hidden;
  padding: 0 0 4px;
}

.mm-kochmodus-overlay__body.mm-kochmodus-overlay__body--intro {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mm-kochmodus-overlay__body.mm-kochmodus-overlay__body--outro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mm-kochmodus-overlay--outro .mm-kochmodus-overlay__close-x {
  display: none;
}

.mm-kochmodus-overlay__footer {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: clamp(12px, 2vw, 20px) 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mm-kochmodus-overlay__footer-btn {
  margin: 0;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(26, 26, 26, 0.65);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.mm-kochmodus-overlay__footer-btn:hover,
.mm-kochmodus-overlay__footer-btn:focus {
  background: rgba(0, 0, 0, 0.04);
  color: rgba(26, 26, 26, 0.88);
  outline: none;
}

.mm-kochmodus-overlay__footer-btn:focus-visible {
  outline: 2px solid rgba(90, 95, 105, 0.65);
  outline-offset: 2px;
}

body.mm-theme-dark .mm-kochmodus-overlay__footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.mm-theme-dark .mm-kochmodus-overlay__footer-btn {
  color: rgba(231, 236, 246, 0.65);
}

body.mm-theme-dark .mm-kochmodus-overlay__footer-btn:hover,
body.mm-theme-dark .mm-kochmodus-overlay__footer-btn:focus {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(231, 236, 246, 0.88);
}

.mm-kochmodus-overlay__outro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(8px, 2vw, 20px) 0;
  gap: clamp(16px, 3vw, 28px);
}

.mm-kochmodus-overlay__outro-img {
  display: block;
  width: 100%;
  max-width: min(520px, 100%);
  height: auto;
  max-height: min(48vh, 440px);
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.mm-kochmodus-overlay__outro-img--placeholder {
  aspect-ratio: 4 / 3;
  min-height: 180px;
  width: 100%;
  max-width: min(520px, 100%);
  background-image:
    radial-gradient(circle at 22% 22%, rgba(120, 120, 128, 0.2), transparent 58%),
    radial-gradient(circle at 78% 38%, rgba(0, 0, 0, 0.05), transparent 52%),
    linear-gradient(145deg, #e4e6ea 0%, #f7f8fa 100%);
}

.mm-kochmodus-overlay__outro-msg {
  margin: 0;
  font-size: clamp(1.15rem, 2vw + 0.6rem, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
  color: #2c3138;
  letter-spacing: 0.01em;
}

body.mm-theme-dark .mm-kochmodus-overlay__outro-msg {
  color: #e7ecf6;
}

body.mm-theme-dark .mm-kochmodus-overlay__outro-img {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

body.mm-theme-dark .mm-kochmodus-overlay__outro-img--placeholder {
  background-image:
    radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(145deg, #252830 0%, #1a1d24 100%);
}

/* Schriftgröße der Schritte: Basis-Element für fitKochmodusBody */
.mm-kochmodus-overlay__step {
  box-sizing: border-box;
  width: 100%;
  font-size: clamp(13px, 2.2vw + 8px, 28px);
  min-width: 0;
}

.mm-kochmodus-overlay__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(16px, 3vw, 36px);
  align-items: stretch;
  min-height: min(52vh, 420px);
}

@media (max-width: 639px) {
  .mm-kochmodus-overlay__split {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

.mm-kochmodus-overlay__tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(16px, 3vw, 28px);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  min-height: 180px;
}

.mm-kochmodus-overlay__tool-label {
  font-size: 0.55em;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(60, 64, 72, 0.75);
  margin-bottom: 0.65em;
}

.mm-kochmodus-overlay__tool-text {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  min-height: 2.75em;
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.45;
  color: rgba(26, 26, 26, 0.88);
  word-break: break-word;
  max-width: 100%;
}

.mm-kochmodus-overlay__tool-icons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(10px, 2vw, 14px);
  width: 100%;
}

.mm-kochmodus-overlay__tool-empty {
  font-weight: 700;
  color: rgba(26, 26, 26, 0.4);
}

.mm-kochmodus-overlay .mm-km-tool {
  color: rgba(40, 44, 52, 0.92);
}

.mm-kochmodus-overlay__instruction {
  display: flex;
  align-items: center;
  padding: clamp(12px, 2vw, 20px) 0;
  min-width: 0;
}

.mm-kochmodus-overlay__instruction-text {
  font-size: 1.55em;
  line-height: 1.45;
  font-weight: 600;
  color: #243040;
  word-break: break-word;
}

/* Kochmodus-Overlay: Darkmode */
body.mm-theme-dark .mm-kochmodus-overlay {
  background: #0f1218;
  color: #e7ecf6;
}

body.mm-theme-dark .mm-kochmodus-overlay:fullscreen,
body.mm-theme-dark .mm-kochmodus-overlay:-webkit-full-screen {
  background: #0f1218;
}

body.mm-theme-dark .mm-kochmodus-overlay__close-x {
  background: rgba(255, 255, 255, 0.08);
  color: #e7ecf6;
}

body.mm-theme-dark .mm-kochmodus-overlay__close-x:hover,
body.mm-theme-dark .mm-kochmodus-overlay__close-x:focus {
  background: rgba(255, 255, 255, 0.14);
}

body.mm-theme-dark .mm-kochmodus-overlay__close-x:focus-visible {
  outline-color: rgba(120, 169, 255, 0.75);
}

body.mm-theme-dark .mm-kochmodus-overlay__step-pos {
  color: #e7ecf6;
}

body.mm-theme-dark .mm-kochmodus-overlay__recipe-title {
  color: rgba(231, 236, 246, 0.55);
}

body.mm-theme-dark .mm-kochmodus-overlay__nav.mm-kochmodus-overlay__nav--back {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #e7ecf6;
}

body.mm-theme-dark .mm-kochmodus-overlay__nav.mm-kochmodus-overlay__nav--back:hover:not(:disabled),
body.mm-theme-dark .mm-kochmodus-overlay__nav.mm-kochmodus-overlay__nav--back:focus {
  background: rgba(255, 255, 255, 0.1);
}

body.mm-theme-dark .mm-kochmodus-overlay__nav--forward {
  color: #f4f4f5;
  background: linear-gradient(180deg, #7d828b 0%, #5c6068 100%);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

body.mm-theme-dark .mm-kochmodus-overlay__nav--forward:hover:not(:disabled),
body.mm-theme-dark .mm-kochmodus-overlay__nav--forward:focus {
  background: linear-gradient(180deg, #8b9099 0%, #686d76 100%);
}

body.mm-theme-dark .mm-kochmodus-overlay__progress-track {
  background: rgba(255, 255, 255, 0.1);
}

body.mm-theme-dark .mm-kochmodus-overlay__progress-fill {
  background: linear-gradient(90deg, #8b919b, #b4bac4);
}

body.mm-theme-dark .mm-kochmodus-overlay__tool {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

body.mm-theme-dark .mm-kochmodus-overlay__tool-label {
  color: rgba(200, 206, 216, 0.85);
}

body.mm-theme-dark .mm-kochmodus-overlay__tool-text {
  color: #e7ecf6;
}

body.mm-theme-dark .mm-kochmodus-overlay__tool-empty {
  color: rgba(231, 236, 246, 0.45);
}

body.mm-theme-dark .mm-kochmodus-overlay .mm-km-tool {
  color: #d0d8e4;
}

body.mm-theme-dark .mm-kochmodus-overlay .mm-km-tool__name {
  color: #e7ecf6;
}

body.mm-theme-dark .mm-cook-step__kochmodus .mm-km-tool__name {
  color: rgba(231, 236, 246, 0.92);
}

body.mm-theme-dark .mm-kochmodus-overlay__instruction-text {
  color: #e7ecf6;
}

/* Kochmodus: Zusammenfassung vor dem ersten Schritt */
.mm-kochmodus-overlay--intro .mm-kochmodus-overlay__progress-track {
  display: none;
}

.mm-kochmodus-overlay--intro .mm-kochmodus-overlay__nav--back,
.mm-kochmodus-overlay--intro .mm-kochmodus-overlay__nav--forward {
  visibility: hidden;
  pointer-events: none;
}

.mm-kochmodus-overlay__intro {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  max-width: 100%;
  width: 100%;
}

.mm-kochmodus-overlay__intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
  min-height: 0;
  flex: 1 1 auto;
}

.mm-kochmodus-overlay__intro-left {
  min-width: 0;
  font-size: clamp(0.9rem, 1.2vw + 0.55rem, 1.05rem);
  line-height: 1.5;
  color: #1a1a1a;
}

.mm-kochmodus-overlay__intro-section {
  margin: 0 0 clamp(14px, 2vw, 22px);
}

.mm-kochmodus-overlay__intro-section:last-of-type {
  margin-bottom: 0;
}

.mm-kochmodus-overlay__intro-h {
  margin: 0 0 8px;
  font-size: clamp(0.78rem, 0.9vw + 0.5rem, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.5);
}

.mm-kochmodus-overlay__intro-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0 0 6px;
  align-items: baseline;
}

.mm-kochmodus-overlay__intro-line:last-child {
  margin-bottom: 0;
}

.mm-kochmodus-overlay__intro-line--dauer {
  margin-bottom: 0;
}

.mm-kochmodus-overlay__intro-line--dauer .mm-kochmodus-overlay__intro-v {
  flex: 1 1 auto;
  min-width: 0;
}

.mm-kochmodus-overlay__intro-k {
  font-weight: 700;
  color: #1a1a1a;
}

.mm-kochmodus-overlay__intro-k::after {
  content: ":";
}

.mm-kochmodus-overlay__intro-v {
  font-weight: 600;
  color: rgba(26, 26, 26, 0.85);
}

.mm-kochmodus-overlay__intro-list {
  margin: 0;
  padding-left: 1.2em;
}

.mm-kochmodus-overlay__intro-list li {
  margin-bottom: 4px;
}

.mm-kochmodus-overlay__intro-tools-hint {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(26, 26, 26, 0.58);
}

.mm-kochmodus-overlay__intro-tools-kurz {
  margin: 10px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(26, 26, 26, 0.72);
}

.mm-kochmodus-overlay__intro-tools-kurz-k {
  font-weight: 800;
  margin-right: 0.35em;
}

.mm-kochmodus-overlay__intro-list--tools {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.mm-kochmodus-overlay__intro-list--tools .mm-kochmodus-overlay__intro-tool {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.mm-kochmodus-overlay__intro-section .mm-km-tool {
  color: rgba(40, 44, 52, 0.92);
}

.mm-kochmodus-overlay__intro-section .mm-km-tool__name {
  color: rgba(26, 26, 26, 0.9);
  font-size: 1rem;
}

body.mm-theme-dark .mm-kochmodus-overlay__intro-tools-hint {
  color: rgba(200, 208, 220, 0.65);
}

body.mm-theme-dark .mm-kochmodus-overlay__intro-tools-kurz {
  color: rgba(210, 218, 230, 0.78);
}

body.mm-theme-dark .mm-kochmodus-overlay__intro-list--tools .mm-kochmodus-overlay__intro-tool {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

body.mm-theme-dark .mm-kochmodus-overlay__intro-section .mm-km-tool {
  color: rgba(220, 228, 238, 0.95);
}

body.mm-theme-dark .mm-kochmodus-overlay__intro-section .mm-km-tool__name {
  color: #e7ecf6;
}

.mm-kochmodus-overlay__intro-empty {
  margin: 0;
  color: rgba(26, 26, 26, 0.45);
}

.mm-kochmodus-overlay__intro-right {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 20px);
  align-items: stretch;
}

.mm-kochmodus-overlay__intro-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 420px);
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.mm-kochmodus-overlay__intro-img--placeholder {
  aspect-ratio: 4 / 3;
  min-height: 160px;
  background-image:
    radial-gradient(circle at 22% 22%, rgba(120, 120, 128, 0.2), transparent 58%),
    radial-gradient(circle at 78% 38%, rgba(0, 0, 0, 0.05), transparent 52%),
    linear-gradient(145deg, #e4e6ea 0%, #f7f8fa 100%);
}

.mm-kochmodus-overlay__intro-actions {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.mm-kochmodus-overlay__start-flow {
  margin: 0;
  padding: 14px 28px;
  font-size: clamp(1rem, 1.2vw + 0.55rem, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  color: #f4f4f5;
  background: linear-gradient(180deg, #6b6f76 0%, #4a4e54 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.mm-kochmodus-overlay__start-flow:hover,
.mm-kochmodus-overlay__start-flow:focus {
  filter: brightness(1.05);
  outline: none;
}

.mm-kochmodus-overlay__start-flow:focus-visible {
  outline: 2px solid rgba(90, 95, 105, 0.65);
  outline-offset: 3px;
}

@media (max-width: 719px) {
  .mm-kochmodus-overlay__intro-grid {
    grid-template-columns: 1fr;
  }

  .mm-kochmodus-overlay__intro-right {
    position: static;
    order: -1;
  }

  .mm-kochmodus-overlay__intro-img {
    max-height: min(38vh, 280px);
  }
}

body.mm-theme-dark .mm-kochmodus-overlay__intro-left {
  color: #e7ecf6;
}

body.mm-theme-dark .mm-kochmodus-overlay__intro-h {
  color: rgba(231, 236, 246, 0.45);
}

body.mm-theme-dark .mm-kochmodus-overlay__intro-k {
  color: #e7ecf6;
}

body.mm-theme-dark .mm-kochmodus-overlay__intro-v {
  color: rgba(231, 236, 246, 0.88);
}

body.mm-theme-dark .mm-kochmodus-overlay__intro-empty {
  color: rgba(231, 236, 246, 0.4);
}

body.mm-theme-dark .mm-kochmodus-overlay__intro-img {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

body.mm-theme-dark .mm-kochmodus-overlay__start-flow {
  color: #f4f4f5;
  background: linear-gradient(180deg, #7d828b 0%, #5c6068 100%);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

body.mm-theme-dark .mm-kochmodus-overlay__start-flow:hover,
body.mm-theme-dark .mm-kochmodus-overlay__start-flow:focus {
  background: linear-gradient(180deg, #8b9099 0%, #686d76 100%);
}

@media (max-width: 520px) {
  .mm-kochmodus-overlay__header {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .mm-kochmodus-overlay__headline-block {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .mm-kochmodus-overlay__nav--back {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .mm-kochmodus-overlay__header-right {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }
}

body.mm-theme-dark .mm-recipe-share.mm-cook-box {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.mm-theme-dark .mm-recipe-share__btn,
body.mm-theme-dark .mm-recipe-share__btn:visited {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

body.mm-theme-dark .mm-recipe-share__btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

body.mm-theme-dark .mm-recipe-share__btn--x,
body.mm-theme-dark .mm-recipe-share__btn--x:visited {
  color: #e7ecf6;
}

body.mm-theme-dark .mm-recipe-share__btn--mail,
body.mm-theme-dark .mm-recipe-share__btn--mail:visited {
  color: rgba(231, 236, 246, 0.85);
}

body.mm-theme-dark .mm-recipe-share__btn--ig,
body.mm-theme-dark .mm-recipe-share__btn--ig:visited {
  color: #fd5c8f;
}

body.mm-theme-dark .mm-recipe-share__icon--snap {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Druckansicht (ehemals rezept-ansehen-print.css) */
@media print {
  .site-header,
  #site-nav-overlay,
  #site-nav-offcanvas,
  .mm-page-footer-tone,
  .cc-window,
  .mm-recipe-share,
  .mm-danger-zone,
  .mm-kochmodus-start-wrap,
  .mm-kochmodus-overlay,
  .mm-rezept-privacy-badge,
  .mm-rezept-fav-badge,
  #btn-generate-image,
  #gen-image-panel,
  #gen-image-status,
  .mm-cook-servings,
  .mm-cook-ing-sort,
  .mm-cook-steps__toggles,
  .mm-cook-card > section > .u-clearfix > .u-sheet > p.u-align-left,
  .u-btn,
  button,
  form {
    display: none !important;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
  }

  .row,
  #site-content-column,
  .mm-content-row,
  .mm-rezept-ansehen-section,
  .u-sheet,
  .mm-cook-card,
  .mm-cook-box,
  .mm-cook-grid,
  .mm-cook-ing-nw,
  .mm-p9-hero,
  .mm-p9-hero-top,
  .mm-p9-hero-top__lead,
  .mm-p9-hero-top__media {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
    background: transparent !important;
  }

  .mm-u-rezeptimg--hero-top,
  .mm-u-rezeptimg--placeholder {
    max-width: 320px !important;
    margin: 0 0 16px 0 !important;
    border-radius: 12px !important;
  }

  .mm-p9-hero-top {
    display: block !important;
  }

  .mm-cook-box {
    page-break-inside: avoid;
    break-inside: avoid;
    margin-top: 18px !important;
  }

  a,
  a:visited {
    color: #000 !important;
    text-decoration: none !important;
  }

  .mm-rezept-head-actions,
  .mm-rezept-back,
  .mm-sidebar {
    display: none !important;
  }

  .mm-rezept-headcard,
  .mm-rezept-content {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}

