/* ==================================================
   Rezept drucken
   ================================================== */

.recipe-print-actions {
  display: flex;
  justify-content: center;
  margin: 3rem auto 0;
}

.recipe-print-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  background: var(--color-accent, #f57d00);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.recipe-print-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.recipe-print-button:active {
  transform: translateY(0);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

@media print {
  @page {
    size: A4;
    margin: 10mm;
  }

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

  body {
    font-size: 10.5pt !important;
    line-height: 1.35 !important;
  }

  /* Alles außerhalb des eigentlichen Seiteninhalts ausblenden */
  body > *:not(main),
  header,
  footer,
  nav,
  .site-header,
  .site-footer,
  .page-hero,
  .hero,
  .hero-section,
  .video-wrapper,
  .youtube-placeholder,
  .youtube-consent-box,
  iframe,
  .content-width-half,
  .recipe-print-actions,
  .recipe-print-button {
    display: none !important;
  }

  main,
  .content-section,
  .content-width,
  .text-content,
  .two-card-section,
  .two-card-section.content-width,
  .two-card-grid,
  .two-card,
  .two-card__content,
  .two-card__text {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .two-card {
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  /* Bilder, Kategoriezeile, Modulüberschrift und Buttons nicht drucken */
  .two-card-section__title,
  .two-card__image-wrap,
  .two-card__kicker,
  .two-card__button {
    display: none !important;
  }

  /* Rezeptüberschrift drucken */
  .two-card__title {
    display: block !important;
    margin: 0 0 0.35rem !important;
    padding: 0 !important;
    font-size: 18pt !important;
    line-height: 1.15 !important;
    color: #000 !important;
    font-weight: 500 !important;
  }

  .two-card__text,
  .text-content {
    color: #000 !important;
  }

  .two-card__text > *:first-child,
  .text-content > *:first-child {
    margin-top: 0 !important;
  }

  h1,
  h2,
  h3,
  h4 {
    color: #000 !important;
    break-after: avoid;
    page-break-after: avoid;
  }

  h1 {
    margin: 0 0 0.45rem !important;
    font-size: 18pt !important;
    line-height: 1.15 !important;
  }

  h2 {
    margin: 0.65rem 0 0.25rem !important;
    font-size: 14.5pt !important;
    line-height: 1.18 !important;
  }

  h3 {
    margin: 0.5rem 0 0.2rem !important;
    font-size: 12pt !important;
    line-height: 1.18 !important;
  }

  h4 {
    margin: 0.45rem 0 0.15rem !important;
    font-size: 11pt !important;
    line-height: 1.18 !important;
  }

  p,
  ul,
  ol {
    margin-top: 0 !important;
    margin-bottom: 0.35rem !important;
    padding-top: 0 !important;
  }

  ul,
  ol {
    padding-left: 1.15rem !important;
  }

  li {
    margin-bottom: 0.1rem !important;
  }

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