/* PDF-Export neu (28.09.2026, Winki: "die pdf exporte hat es im wochenplan und bei den
   nems komplett zerlegt. hier müssen wir es komplett neu machen").
   Wird als LETZTES Stylesheet geladen und raeumt fuer den Druck alles weg, was seit
   dem Redesign dazugekommen ist (Themes-Deko, Handy-Kopfzeile, Lilli, Rechtstexte,
   Bedienknoepfe), und gibt Wochenplan bzw. Einnahmeplan ein klares Papier-Layout:
   weisser Grund, schwarze Schrift, feine Linien, Titel oben.
   Grundlogik (welcher Bereich gedruckt wird) bleibt in style.css (@media print). */
@media print{
  /* ---------- fuer ALLE Ausdrucke ---------- */
  html, body{ background:#fff !important; background-image:none !important; color:#111 !important; }
  body::before, body::after, #appWrap::after{ display:none !important; }
  .sidebar, .masthead, .section-subnav-row, .theme-header-banner, .theme-flourish,
  .mobile-nav-btn, .mobile-nav-scrim, .help-lilli, .billing-legal-footer, .toast,
  #recipeReviewHint, .today-inspire-teaser, .kuren-group-subnav, #sectionSubnav, nav{ display:none !important; }
  .app-shell, .wrap, main, #main-content{ display:block !important; padding:0 !important; margin:0 !important; max-width:none !important; min-height:0 !important; }
  *{ -webkit-print-color-adjust:exact; print-color-adjust:exact; }

  /* ---------- Wochenplan ---------- */
  #tab-plan{ padding:0 !important; }
  #tab-plan::before{
    content:attr(data-print-title); display:block; font-family:'Arvo', serif; font-size:15pt; font-weight:700;
    margin:0 0 4mm; padding-bottom:2mm; border-bottom:1.5pt solid #111;
  }
  #tab-plan > :not(.plan-grid):not(#planCureBanner){ display:none !important; }
  #planTopbar, .plan-topbar, .plan-toolbar, #planWeekNav{ display:none !important; }
  .plan-cell-actions, .plan-cell-add-btn, .plan-cell-note-btn, .plan-cell-restaurant-btn,
  .plan-chip-duplicate, .plan-chip-remove, .plan-chip-pin, .tile-rate-trigger, .plan-chip-cook{ display:none !important; }

  .plan-grid, .plan-grid-horizontal{ overflow:visible !important; width:100% !important; }
  .plan-grid .plan-table{
    display:grid !important; width:100% !important; min-width:0 !important;
    grid-template-columns:22mm repeat(7, minmax(0, 1fr)) !important; gap:0 !important;
    border-top:.5pt solid #bbb; border-left:.5pt solid #bbb;
  }
  .plan-grid .plan-table > *{ border-right:.5pt solid #bbb !important; border-bottom:.5pt solid #bbb !important; }
  .plan-corner{ background:#fff !important; }
  .plan-day-head{ padding:1.5mm 1mm !important; text-align:center !important; font-size:8.5pt !important; font-weight:700 !important; background:#f3f3f3 !important; color:#111 !important; }
  .plan-day-date{ display:block; font-size:7pt !important; font-weight:400 !important; color:#555 !important; }
  .plan-day-today{ box-shadow:none !important; }

  /* Zeitleiste der Mahlzeiten -> schlichte Zeilenbeschriftung */
  .plan-slot-label{ padding:1.5mm !important; background:#f3f3f3 !important; }
  .plan-slot-tl::before, .plan-slot-tl::after{ display:none !important; }
  .plan-slot-dot{ display:none !important; }
  .plan-slot-label *{ background:transparent !important; box-shadow:none !important; }
  .plan-day-head, .plan-slot-label, .plan-corner{ border-radius:0 !important; }
  .plan-table > *{ border-top:none !important; border-left:none !important; }
  .plan-slot-text{ font-size:8pt !important; font-weight:700 !important; line-height:1.2 !important; }
  .plan-slot-time{ display:block; font-size:6.5pt !important; font-weight:400 !important; color:#555 !important; }

  .plan-cell{
    display:flex !important; flex-direction:column !important; gap:1mm !important; padding:1mm !important;
    min-height:14mm !important; border:none !important; border-radius:0 !important; background:#fff !important; break-inside:avoid;
  }
  .plan-chip{
    display:block !important; width:auto !important; border:.5pt solid #ccc !important; border-radius:1.5mm !important;
    box-shadow:none !important; background:#fff !important; overflow:hidden; break-inside:avoid;
  }
  .plan-chip-photo{ width:100% !important; aspect-ratio:3 / 2 !important; height:auto !important; }
  .plan-chip-photo img{ width:100%; height:100%; object-fit:cover; }
  .plan-chip-body{ padding:.8mm 1mm !important; }
  .plan-chip-name{ font-size:7pt !important; font-weight:700 !important; line-height:1.2 !important; color:#111 !important; }
  .plan-chip-portions, .budget-chip-cost{ font-size:6.5pt !important; color:#444 !important; }
  .plan-summary{ font-size:6.5pt !important; color:#444 !important; border-top:.5pt dashed #ccc !important; padding-top:.8mm !important; }
  .plan-summary .hicon{ width:6pt !important; height:6pt !important; }
  .plan-summary-none, .plan-summary-empty{ display:none !important; }
  .plan-day-total-label{ font-size:7pt !important; font-weight:700 !important; padding:1.5mm !important; background:#f3f3f3 !important; }
  .plan-day-total-cell{ padding:1mm !important; }

  /* "ohne Bilder" */
  body.print-no-images .plan-chip-photo{ display:none !important; }
  body.print-no-images .plan-cell{ min-height:9mm !important; }

  /* ---------- NEM-Einnahmeplan (seit 25.09.2026 eine Seite #tab-nem-plan, kein Popup
     mehr - die alten Regeln in style.css blendeten sie mit allen .tab-panel aus) ---------- */
  body.printing-einnahmeplan #tab-nem-plan{ display:block !important; padding:0 !important; }
  body.printing-einnahmeplan #tab-plan{ display:none !important; }
  body.printing-einnahmeplan #nemEinnahmeplanRoot .drawer-close,
  body.printing-einnahmeplan .einnahmeplan-print-toolbar,
  body.printing-einnahmeplan .einnahmeplan-member-select-label,
  body.printing-einnahmeplan #nemEinnahmeplanRoot button{ display:none !important; }
  body.printing-einnahmeplan #nemEinnahmeplanRoot h2,
  body.printing-einnahmeplan #nemEinnahmeplanRoot h3:first-child{ font-family:'Arvo', serif; font-size:15pt !important; border-bottom:1.5pt solid #111; padding-bottom:2mm; margin:0 0 4mm !important; }
  body.printing-einnahmeplan .einnahmeplan-gruppe{ break-inside:avoid-page; margin:0 0 4mm !important; padding:0 !important; }
  body.printing-einnahmeplan .einnahmeplan-gruppe::before,
  body.printing-einnahmeplan .einnahmeplan-gruppe::after,
  body.printing-einnahmeplan .einnahmeplan-slot-dot{ display:none !important; }
  body.printing-einnahmeplan .einnahmeplan-tile-grid{ display:grid !important; grid-template-columns:repeat(4, minmax(0, 1fr)) !important; gap:2.5mm !important; }
  body.printing-einnahmeplan .einnahmeplan-tile{ border:.5pt solid #ccc !important; box-shadow:none !important; background:#fff !important; break-inside:avoid; }
  body.printing-einnahmeplan .einnahmeplan-tile{ padding:2mm !important; }
  body.printing-einnahmeplan .einnahmeplan-nem-img{ width:10mm !important; height:10mm !important; }
  body.printing-einnahmeplan .einnahmeplan-meal-thumb{ width:7mm !important; height:7mm !important; }
  body.printing-einnahmeplan .einnahmeplan-nem-name{ font-size:8.5pt !important; }
  body.printing-einnahmeplan .einnahmeplan-tile-menge{ font-size:8pt !important; background:none !important; color:#111 !important; }
  body.printing-einnahmeplan .einnahmeplan-tile-bezug{ font-size:8pt !important; color:#333 !important; }
  body.printing-einnahmeplan .einnahmeplan-ki-badge, body.printing-einnahmeplan .einnahmeplan-einordnen-btn{ display:none !important; }
  body.print-no-images.printing-einnahmeplan .einnahmeplan-nem-img,
  body.print-no-images.printing-einnahmeplan .einnahmeplan-meal-thumb{ display:none !important; }
  /* Warnhinweis gut sichtbar oben (Winki, 28.09.2026) */
  body.printing-einnahmeplan .nem-disclaimer{ font-size:8.5pt !important; font-weight:700; border:1pt solid #999 !important; padding:2mm 3mm !important; margin:0 0 4mm !important; }
  body.printing-einnahmeplan .nem-disclaimer, body.printing-einnahmeplan .disclaimer{ font-size:7pt !important; background:#fff !important; border:.5pt solid #ccc !important; color:#333 !important; }
}

