/* AFG 2026-11-15: Einzelne Kochkarte auf Basis des vorhandenen Favoriten-PDF-Layouts. */
.afg-account-topbar,.afg-live-topbar{display:none!important}
.afg-single-food-print {max-width:1000px;margin:1.2rem auto 2rem;}
.afg-single-food-print-hero{display:flex;align-items:center;gap:1rem;padding:1.2rem 1.35rem;margin-bottom:1rem}
.afg-single-food-print-icon{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:11px;background:#112f4b;color:#9ecbff;font-size:1.35rem}
.afg-single-food-print-hero h1{margin:0 0 .25rem;color:#fff;font-size:clamp(1.3rem,2.5vw,1.8rem)}
.afg-single-food-print-hero p{margin:0;color:#aebfd2;line-height:1.5}
/* Auswahl im Stil der AFG-Aktionskarten; native Radio-Inputs bleiben tastaturbedienbar. */
.afg-single-food-print-options{display:flex;align-items:stretch;flex-wrap:wrap;gap:1rem 1.5rem;padding:1.15rem 1.25rem;margin-bottom:1rem}
.afg-single-food-print-options .afg-food-print-option-group{display:block;flex:1 1 320px;min-width:0;margin:0;padding:0;border:0}
.afg-single-food-print-options .afg-food-print-option-group legend{display:block;width:auto;margin:0 0 .7rem;padding:0;color:#dcecff;font-size:.82rem;font-weight:800;letter-spacing:.015em}
.afg-single-food-print-options .afg-food-print-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
.afg-single-food-print-options .afg-food-print-choice{display:block;position:relative;margin:0;min-width:0;cursor:pointer}
.afg-single-food-print-options .afg-food-print-choice input{position:absolute;opacity:0;width:1px;height:1px;left:50%;top:50%;margin:0}
.afg-single-food-print-options .afg-food-print-choice-content{display:flex;align-items:center;justify-content:center;gap:.55rem;min-height:46px;padding:.6rem .65rem;border:1px solid #34546f;border-radius:10px;background:#0e253c;color:#bfcfe1;font-size:.84rem;font-weight:650;line-height:1.25;text-align:center;transition:background .15s,border-color .15s,box-shadow .15s,color .15s}
.afg-single-food-print-options .afg-food-print-choice-content i{font-size:1.05rem;color:#91b9df;flex:none}
.afg-single-food-print-options .afg-food-print-choice:hover .afg-food-print-choice-content{background:#153854;border-color:#5788b6;color:#fff}
.afg-single-food-print-options .afg-food-print-choice input:checked + .afg-food-print-choice-content{background:#123e64;border-color:#67a9e7;box-shadow:inset 0 0 0 1px rgba(103,169,231,.25);color:#fff}
.afg-single-food-print-options .afg-food-print-choice input:checked + .afg-food-print-choice-content i{color:#85c5ff}
.afg-single-food-print-options .afg-food-print-choice input:focus-visible + .afg-food-print-choice-content{outline:2px solid #b1d8ff;outline-offset:3px}
.afg-single-food-print-bottom{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin:.25rem 0 1.3rem}
.afg-single-food-print [data-afg-method-panel][hidden],.afg-single-food-print [data-afg-layout-panel][hidden],.afg-single-food-print [data-afg-values][hidden],.afg-single-food-print [data-afg-personal-label][hidden],.afg-single-food-print [data-afg-personal-note][hidden]{display:none!important}
.afg-single-food-print .afg-single-food-print-apply,
.afg-single-food-print .afg-single-food-print-go,
.afg-single-food-print .afg-single-food-print-back {display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:38px;border:1px solid #537fa9;border-radius:8px;padding:.45rem .8rem;font-size:.82rem;font-weight:700;text-decoration:none;background:#123b60;color:#fff;cursor:pointer}
.afg-single-food-print .afg-single-food-print-back {background:#102639;color:#dcecff;border-color:#37526b}
/* Konto-CTA: gleiche Hoehe wie Zurueck-Button, rechts ausgerichtet. */
.afg-single-food-print .afg-single-food-print-signup{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:38px;margin-left:auto;padding:.45rem .85rem;border:1px solid #299c69;border-radius:8px;background:#167846;color:#fff;font-size:.82rem;font-weight:700;line-height:1.25;text-decoration:none;cursor:pointer}
.afg-single-food-print .afg-single-food-print-signup:hover{background:#1b9156;border-color:#44b37d;color:#fff;text-decoration:none}
.afg-single-food-print .afg-single-food-print-signup:focus-visible{outline:2px solid #b9f5d4;outline-offset:3px}
.afg-single-food-print .afg-single-food-print-signup-short{display:none}

.afg-single-food-print .afg-single-food-print-go{background:#bd671d;border-color:#dc8c37;color:#fff}
.afg-single-food-print .afg-single-food-print-apply:hover,
.afg-single-food-print .afg-single-food-print-go:hover,
.afg-single-food-print .afg-single-food-print-back:hover{filter:brightness(1.13);text-decoration:none}
.afg-single-food-print .afg-favorites-pdf-preview-shell{overflow:visible}
.afg-single-food-print .afg-favorites-pdf-image-grid{grid-template-columns:minmax(0,1fr);max-width:760px}
.afg-single-food-print .afg-favorites-pdf-print-header{gap:.8rem}
.afg-single-food-print .afg-favorites-pdf-table-wrap{overflow:hidden;border:1px solid rgba(110,154,197,.42);border-radius:12px;background:#0b2034}
.afg-single-food-print .afg-favorites-pdf-table{min-width:680px;width:100%;border-collapse:collapse;border-spacing:0;table-layout:fixed}
.afg-single-food-print .afg-favorites-pdf-table th,
.afg-single-food-print .afg-favorites-pdf-table td{border:1px solid rgba(110,154,197,.28);overflow-wrap:anywhere;box-sizing:border-box}
.afg-single-food-print .afg-favorites-pdf-table th.image-col{width:78px}
.afg-single-food-print .afg-favorites-pdf-table th.variant-col{width:112px}
.afg-single-food-print .afg-favorites-pdf-table th.temp-col{width:138px}
.afg-single-food-print .afg-favorites-pdf-table th.time-col{width:126px}
.afg-single-food-print .afg-favorites-pdf-table td.image-col{width:78px}
/* Nur Bildschirm: Thumbnail an die tatsaechliche Innenbreite der Zelle anpassen. */
@media screen{
  .afg-single-food-print .afg-favorites-pdf-table td.image-col{padding:.35rem!important;overflow:hidden}
  .afg-single-food-print .afg-favorites-pdf-table td.image-col img{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;box-sizing:border-box}
}

.afg-single-food-print .afg-favorites-pdf-table .food-col{width:112px}
.afg-single-food-print .afg-food-print-note-label{font-weight:800;color:#9ecbff}
.afg-single-food-print .afg-single-food-print-note{margin:.35rem 0 0;white-space:pre-wrap;overflow-wrap:anywhere;color:#c4dfff;font-size:.86em}
.afg-single-food-print .afg-single-food-print-note strong{color:#9ecbff}
.afg-single-food-print .afg-single-food-print-personal{margin:1rem 0 0;color:#9fc8ff;font-size:.81rem}
.afg-single-food-print .afg-pdf-image-personal-note{white-space:pre-wrap;overflow-wrap:anywhere}
.afg-single-food-print .afg-favorites-pdf-personal-cook-label{display:block;margin:0 0 .5rem;color:#9ecbff;font-size:.75rem}
/* Das AFG-Footerlabel gehoert ausschliesslich auf das Druckblatt. */
.afg-single-food-print .afg-favorites-pdf-print-footer{display:none!important}
@media screen and (max-width:720px){
  .afg-single-food-print{margin:1rem auto}
  .afg-single-food-print-options{padding:1rem;gap:1rem}
  .afg-single-food-print-options .afg-food-print-option-group{flex:1 1 100%}
  .afg-single-food-print-options .afg-food-print-choice-content{font-size:.78rem;padding:.55rem .35rem;gap:.35rem}
  .afg-single-food-print-hero{padding:1rem}
  .afg-single-food-print .afg-favorites-pdf-preview-head{align-items:start;flex-direction:column}
  .afg-single-food-print .afg-favorites-pdf-actions{width:100%;justify-content:flex-start}
  /* Im AFG-Responsive-CSS ist die mobile PDF-Vorschau eine Kartenliste.
     Die fruehere Tabellen-Mindestbreite von 680px schnitt aber die rechte
     Haelfte der Karte (Temperatur/Garzeit) ab. Nur Bildschirm/mobile. */
  .afg-single-food-print .afg-favorites-pdf-preview-shell,
  .afg-single-food-print .afg-favorites-pdf-category,
  .afg-single-food-print [data-afg-layout-panel="compact"]{min-width:0;max-width:100%}
  .afg-single-food-print .afg-favorites-pdf-table-wrap{
    width:100%;max-width:100%;min-width:0;
    overflow:visible;border:0;border-radius:0;background:transparent;
  }
  .afg-single-food-print .afg-favorites-pdf-table{
    display:block;width:100%!important;min-width:0!important;max-width:100%;
    table-layout:auto;background:transparent;
  }
  .afg-single-food-print .afg-favorites-pdf-table thead{display:none}
  .afg-single-food-print .afg-favorites-pdf-table tbody{
    display:grid;gap:.65rem;min-width:0;width:100%;
  }
  .afg-single-food-print .afg-favorites-pdf-table tbody tr{
    display:grid;width:100%;min-width:0;
    grid-template-columns:60px minmax(0,1fr);column-gap:.65rem;
    padding:.65rem;border:1px solid rgba(110,154,197,.42);
    border-radius:10px;background:#0b2034;
  }
  .afg-single-food-print .afg-favorites-pdf-table tbody td{
    display:block;min-width:0;width:auto!important;padding:.18rem 0;
    border:0;overflow-wrap:anywhere;
  }
  .afg-single-food-print .afg-favorites-pdf-table tbody td.image-col{
    grid-column:1;grid-row:1/span 3;padding:0!important;overflow:visible;
  }
  .afg-single-food-print .afg-favorites-pdf-table tbody td.image-col img{
    width:100%!important;max-width:100%!important;height:auto!important;
    aspect-ratio:4/3;object-fit:cover;
  }
  .afg-single-food-print .afg-favorites-pdf-table tbody td.food-col,
  .afg-single-food-print .afg-favorites-pdf-table tbody td.temp-col,
  .afg-single-food-print .afg-favorites-pdf-table tbody td.time-col{grid-column:2}
  .afg-single-food-print .afg-favorites-pdf-table tbody td.temp-col,
  .afg-single-food-print .afg-favorites-pdf-table tbody td.time-col{
    display:grid;grid-template-columns:minmax(74px,.8fr) minmax(0,1fr);
    align-items:start;gap:.4rem;
  }
  .afg-single-food-print .afg-favorites-pdf-table tbody td:last-child{
    grid-column:1/-1;margin-top:.45rem;padding-top:.55rem;
    border-top:1px solid rgba(148,163,184,.14);
  }
  /* Beide Navigation-Buttons mobil in derselben Zeile und auf gleicher Hoehe. */
  .afg-single-food-print .afg-single-food-print-bottom{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:stretch;gap:.55rem;flex-wrap:nowrap;
  }
  .afg-single-food-print .afg-single-food-print-bottom a{
    display:flex;min-width:0;width:100%;min-height:44px;height:100%;
    margin:0;padding:.45rem .35rem;gap:.35rem;
    font-size:.78rem;line-height:1.2;text-align:center;
    white-space:nowrap;
  }
  .afg-single-food-print .afg-single-food-print-signup-full{display:none}
  .afg-single-food-print .afg-single-food-print-signup-short{display:inline}
}
@media print{
  @page{size:A4 landscape;margin:12mm}
  html,body{background:#fff!important;color:#111!important}
  .afg-site-header,footer,.no-print,.afg-single-food-print-options,.afg-single-food-print-hero,.afg-account-topbar,.afg-live-topbar{display:none!important}
  .afg-single-food-print{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  .afg-single-food-print .afg-favorites-pdf-preview-shell{overflow:visible!important;background:#fff!important;border:0!important;box-shadow:none!important;margin:0!important;padding:0!important}
  .afg-single-food-print .afg-favorites-pdf-print-header{padding:0 0 5mm!important;border-bottom:1px solid #aaa!important}
  .afg-single-food-print .afg-favorites-pdf-print-header img{width:58px!important;height:auto!important}
  .afg-single-food-print .afg-favorites-pdf-print-header h1{font-size:18pt!important;line-height:1.1!important;color:#111!important}
  .afg-single-food-print .afg-favorites-pdf-print-header p{font-size:11.2pt!important;line-height:1.3!important;color:#555!important}
  .afg-single-food-print .afg-favorites-pdf-category{padding:5mm 0 0!important}
  .afg-single-food-print .afg-favorites-pdf-category>h2{font-size:14pt!important;line-height:1.2!important;color:#111!important;break-after:avoid}
  .afg-single-food-print .afg-favorites-pdf-table-wrap{overflow:visible!important;border:1px solid #bbb!important;border-radius:0!important}
  .afg-single-food-print .afg-favorites-pdf-table{display:table!important;min-width:0!important;width:100%!important;table-layout:fixed!important;background:#fff!important;border-collapse:collapse!important;border-spacing:0!important}
  .afg-single-food-print .afg-favorites-pdf-table thead{display:table-header-group!important}
  .afg-single-food-print .afg-favorites-pdf-table tbody{display:table-row-group!important}
  .afg-single-food-print .afg-favorites-pdf-table tbody tr{display:table-row!important;break-inside:avoid!important;page-break-inside:avoid!important;background:#fff!important}
  .afg-single-food-print .afg-favorites-pdf-table th,
  .afg-single-food-print .afg-favorites-pdf-table td{display:table-cell!important;min-width:0!important;width:auto!important;padding:2.2mm!important;border:1px solid #c8c8c8!important;border-radius:0!important;vertical-align:top!important;color:#111!important;background:#fff!important;font-size:10.2pt!important;line-height:1.38!important}
  .afg-single-food-print .afg-favorites-pdf-table th{background:#f1f1f1!important;font-size:8.6pt!important;line-height:1.2!important}
  /* Bei A4-Querformat muss jeder Spaltenkopf in eine Zeile passen. */
  .afg-single-food-print .afg-favorites-pdf-table thead th{
    white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;
    font-size:8.6pt!important;letter-spacing:0!important;
  }
  .afg-single-food-print .afg-favorites-pdf-table th.image-col{width:18mm!important}
  .afg-single-food-print .afg-favorites-pdf-table th.variant-col{width:30mm!important}
  .afg-single-food-print .afg-favorites-pdf-table th.temp-col{width:38mm!important}
  .afg-single-food-print .afg-favorites-pdf-table th.time-col{width:35mm!important}
  .afg-single-food-print .afg-favorites-pdf-table td strong{color:#111!important;font-size:10.8pt!important;line-height:1.3!important}
  .afg-single-food-print .afg-favorites-pdf-table td.temp-col,
  .afg-single-food-print .afg-favorites-pdf-table td.time-col{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
  .afg-single-food-print .afg-favorites-pdf-table td:last-child{font-size:10.2pt!important;line-height:1.45!important}

  .afg-single-food-print .afg-favorites-pdf-table td::before{display:none!important;content:none!important}
  .afg-single-food-print .afg-favorites-pdf-table td.image-col img{max-width:100%;height:auto!important}
  .afg-single-food-print .afg-favorites-pdf-image-grid{grid-template-columns:minmax(0,1fr)!important;max-width:200mm!important;gap:0!important}
  .afg-single-food-print .afg-favorites-pdf-image-card{border:1px solid #bbb!important;border-radius:2mm!important;background:#fff!important;break-inside:avoid-page!important}
  .afg-single-food-print .afg-favorites-pdf-image-card>img{display:block;width:100%;height:74mm!important;object-fit:cover!important}
  .afg-single-food-print .afg-favorites-pdf-image-card-body{padding:3mm!important}
  .afg-single-food-print .afg-favorites-pdf-image-card h3{color:#111!important;font-size:15pt!important;line-height:1.12!important;margin:0 0 2.4mm!important}
  .afg-single-food-print .afg-favorites-pdf-cook-row{background:#fff!important;border:1px solid #d4d4d4!important;padding:2.4mm!important;break-inside:avoid}
  .afg-single-food-print .afg-favorites-pdf-cook-row strong{color:#111!important}
  .afg-single-food-print .afg-favorites-pdf-cook-row p,
  .afg-single-food-print .afg-favorites-pdf-cook-row strong span{color:#555!important}
  .afg-single-food-print .afg-favorites-pdf-cook-row strong,
  .afg-single-food-print .afg-favorites-pdf-cook-row strong span{font-size:11.8pt!important;line-height:1.3!important}
  .afg-single-food-print .afg-favorites-pdf-cook-row p{font-size:10.6pt!important;line-height:1.45!important;margin:.8mm 0 0!important}
  .afg-single-food-print .afg-food-print-note-label,
  .afg-single-food-print .afg-favorites-pdf-personal-cook-label{color:#315a86!important}
  .afg-single-food-print .afg-pdf-image-personal-note{color:#111!important;background:transparent!important}
  .afg-single-food-print .afg-single-food-print-personal{color:#444!important}
  .afg-single-food-print .afg-single-food-print-note{color:#111!important}
  .afg-single-food-print .afg-single-food-print-note strong{color:#315a86!important}
  .afg-single-food-print .afg-favorites-pdf-print-footer{display:block!important;color:#555!important;margin:7mm 0 0!important;border-top:1px solid #bbb!important}
}
