/* ============================================================
   Druck-Stylesheet — nur für recipe.php
   Zeigt das Rezept sauber auf A4, ohne Navigation/Buttons.

   Die Optionen "Ohne Bilder" und "Schwarz-Weiß" werden über
   Body-Klassen gesteuert, die vor dem Drucken per JS gesetzt
   werden (siehe initPrintOptions in js/main.js):
     body.print-no-images  -> Rezeptfoto wird ausgeblendet
     body.print-bw         -> alle Farben werden zu Schwarz/Weiß
   ============================================================ */

@media print {

    @page {
        size: A4;
        margin: 1.5cm;
    }

    body {
        background: #fff !important;
        font-family: Georgia, 'Times New Roman', serif;
    }

    .navbar,
    .filter-bar,
    .site-footer,
    .recipe-actions,
    .servings-adjuster,
    .no-print {
        display: none !important;
    }

    .container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .recipe-hero {
        max-height: 260px;
        border-radius: 0;
        margin: 0 0 16px;
        box-shadow: none;
    }

    .recipe-hero img {
        height: 260px;
    }

    .recipe-title-row h1 {
        font-size: 22pt;
    }

    .recipe-meta-bar {
        box-shadow: none;
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    .recipe-content-grid {
        display: block;
    }

    .recipe-section-title {
        font-size: 14pt;
        border-bottom: 1px solid #000;
        padding-bottom: 6px;
        margin-top: 20px;
    }

    .recipe-section-title i {
        display: none;
    }

    .ingredient-table {
        box-shadow: none;
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    .ingredient-table td {
        border-bottom: 1px solid #ccc;
    }

    .instructions-block {
        box-shadow: none;
        border: 1px solid #999;
        padding: 14px 18px;
    }

    a[href]::after {
        content: '';
    }

    /* ---------------- Option: ohne Bilder ---------------- */
    body.print-no-images .recipe-hero {
        display: none !important;
    }

    /* ---------------- Option: Schwarz-Weiß ---------------- */
    body.print-bw {
        color: #000 !important;
    }

    body.print-bw .recipe-hero img {
        border: 1px solid #000;
        filter: grayscale(100%);
    }

    body.print-bw .recipe-title-row h1,
    body.print-bw .recipe-author-line,
    body.print-bw .recipe-meta-bar .meta-item,
    body.print-bw .recipe-meta-bar .meta-item i,
    body.print-bw .recipe-section-title,
    body.print-bw .ingredient-table td,
    body.print-bw .ingredient-table td.ingredient-qty,
    body.print-bw .instructions-block {
        color: #000 !important;
    }

    body.print-bw .recipe-meta-bar,
    body.print-bw .instructions-block {
        background: #fff !important;
    }

    body.print-bw .badge {
        border: 1px solid #000;
        background: #fff !important;
        color: #000 !important;
    }
}
