/* ========================================
   HausmannKocht Rezept Template v2
   Clean, fast, responsive
   NOTE: Bricks setzt html { font-size: 10px }
   daher em statt rem verwenden!
   ======================================== */

/* Reset & Base */
.hk-rezept { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; font-size: 18px; color: #1a1a1a; background: #fafaf8; line-height: 1.7; }
.hk-rezept * { box-sizing: border-box; }
/* Bricks-Padding auf Sektionen killen */
.hk-rezept-article > div, .hk-rezept-article > section { padding: 0; }
.hk-container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header */
.hk-header { background: #fff; border-bottom: 3px solid #ad1e1e; padding: 16px 0; position: -webkit-sticky; position: sticky; top: 0; z-index: 100; }
.hk-header .hk-container { display: flex; justify-content: space-between; align-items: center; }
.hk-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.4em; font-weight: 800; color: #1a1a1a; text-decoration: none; letter-spacing: -0.02em; }
.hk-logo-icon { height: 28px; width: auto; display: block; flex-shrink: 0; }
.hk-logo-text span { color: #ad1e1e; }
.hk-nav a { color: #1a1a1a; text-decoration: none; font-size: 0.9em; margin-left: 24px; transition: color 0.2s; }
.hk-nav a:hover { color: #ad1e1e; }

/* Main */
.hk-main { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Titel */
.hk-rezept-header { padding: 24px 0 12px; }
.hk-rezept-header h1 { font-size: 2.2em; font-size: clamp(1.8em, 4vw, 2.6em); font-weight: 800; line-height: 1.2; margin: 0; color: #1a1a1a; letter-spacing: -0.02em; }
.hk-subtitle { display: block; margin: 8px 0 0; font-size: 0.5em; color: #666; font-weight: 400; font-style: italic; letter-spacing: 0; line-height: 1.4; }

/* Video */
.hk-video { margin: 0 0 20px; padding: 0; }
.hk-video-wrapper { position: relative; width: 100%; padding-bottom: 56.25%; background: #000; border-radius: 12px; overflow: hidden; }
lite-youtube { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; cursor: pointer; display: flex; align-items: center; justify-content: center; }
lite-youtube iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.lty-playbtn { width: 68px; height: 48px; background: none; border: none; cursor: pointer; opacity: 0.9; }
.lty-playbtn:hover { opacity: 1; }

/* Intro */
.hk-intro { color: #444; margin-bottom: 20px; padding: 0; line-height: 1.8; }
.hk-intro p { margin: 0 0 12px; }

/* Steckbrief */
.hk-steckbrief { background: #fff; border: 1px solid #e8e5e0; border-radius: 12px; padding: 24px; margin-bottom: 24px; }
.hk-steckbrief-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hk-steckbrief-item { text-align: center; padding: 8px 4px; }
.hk-steckbrief-icon { display: block; font-size: 1.6em; margin-bottom: 4px; }
.hk-steckbrief-label { display: block; font-size: 0.72em; color: #888; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.hk-steckbrief-value { display: block; font-weight: 600; color: #1a1a1a; }

/* Naehrwerte */
.hk-nw-row { display: flex; align-items: center; justify-content: center; gap: 16px; border-top: 1px solid #e8e5e0; margin-top: 16px; padding-top: 14px; flex-wrap: wrap; }
.hk-nw-main { display: flex; align-items: baseline; gap: 4px; }
.hk-nw-kcal { font-size: 1.6em; font-weight: 700; color: #1a1a1a; line-height: 1; }
.hk-nw-kcal-label { font-size: 0.75em; color: #999; font-weight: 400; }
.hk-nw-sep { width: 1px; height: 20px; background: #ddd; flex-shrink: 0; }
.hk-nw-macros { display: flex; gap: 14px; }
.hk-nw-macro { font-size: 0.85em; color: #555; font-weight: 500; }
.hk-nw-macro em { font-style: normal; color: #999; font-weight: 400; }
.hk-nw-hinweis { font-size: 0.65em; color: #bbb; font-style: italic; }

/* NutriScore Ampel */
.hk-nutriscore { flex-shrink: 0; }
.hk-nutriscore-scale { display: flex; gap: 2px; }
.hk-ns-letter { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 3px; font-weight: 700; font-size: 0.65em; }
.hk-ns-active { transform: scale(1.2); box-shadow: 0 1px 6px rgba(0,0,0,0.15); }

/* Section-Headings */
.hk-rezept-article h2 { font-size: 1.5em; font-weight: 700; color: #1a1a1a; margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #e8e5e0; }

/* Du brauchst */
.hk-zubehoer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hk-zubehoer li { background: #f0ede8; padding: 6px 14px; border-radius: 20px; }
.hk-zubehoer li a { color: inherit; text-decoration: none; border-bottom: 1px dashed #aaa; }
.hk-zubehoer li a:hover { color: #1a1a1a; border-bottom-color: #1a1a1a; }

/* Zutaten */
.hk-zutaten h3 { font-weight: 600; color: #666; margin: 20px 0 8px; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.72em; }
.hk-zutaten ul { list-style: none; padding: 0; margin: 0 0 16px; }
.hk-zutaten li { padding: 10px 0; border-bottom: 1px solid #f0ede8; display: flex; justify-content: space-between; }
.hk-menge { font-weight: 600; color: #1a1a1a; min-width: 120px; }
.hk-zutat { color: #444; flex: 1; }

/* Trick-Box */
.hk-trick { background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%); border: 1px solid #ffe082; border-radius: 12px; padding: 20px 24px; margin: 32px 0; }
.hk-trick h3 { margin: 0 0 8px; font-size: 1.1em; }
.hk-trick p { margin: 0; color: #5d4e37; line-height: 1.7; }

/* Zubereitung */
.hk-schritte { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.hk-schritt { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #f0ede8; }
.hk-schritt:last-child { border-bottom: none; }
.hk-schritt-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 10px; }
.hk-schritt-nr { display: flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; background: #1a1a1a; color: #fff; border-radius: 50%; font-weight: 700; font-size: 0.9em; flex-shrink: 0; }
.hk-schritt-header h3 { margin: 0; font-size: 1.1em; font-weight: 600; padding-top: 5px; }
.hk-schritt-body { padding-left: 50px; }
.hk-schritt-body p { margin: 0 0 10px; color: #444; }
.hk-kontrollpunkt { background: #f0faf0; border-left: 3px solid #4caf50; padding: 10px 14px; border-radius: 0 8px 8px 0; margin-top: 10px; }
.hk-tipp { background: #fff9e6; border-left: 3px solid #ff9800; padding: 10px 14px; border-radius: 0 8px 8px 0; margin-top: 8px; }
.hk-schritt-bild { width: 100%; max-width: 500px; border-radius: 8px; margin-top: 12px; margin-left: 50px; }

/* Varianten */
.hk-varianten p { color: #444; }

/* FAQ Accordion */
.hk-faq-liste { margin: 0; }
.hk-faq-item { border-bottom: 1px solid #e8e5e0; }
.hk-faq-item:first-child { border-top: 1px solid #e8e5e0; }
.hk-faq-item summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-weight: 700; color: #1a1a1a; cursor: pointer; list-style: none; }
.hk-faq-item summary::-webkit-details-marker { display: none; }
.hk-faq-item summary::after { content: '+'; font-size: 1.3em; font-weight: 300; color: #888; transition: transform 0.3s ease; flex-shrink: 0; margin-left: 16px; }
.hk-faq-item[open] summary::after { content: '\2212'; }
.hk-faq-item summary:hover { color: #444; }
.hk-faq-antwort { padding: 0 0 16px; color: #444; line-height: 1.7; }
.hk-faq-antwort p { margin: 0; }

/* Mehr Rezepte */
.hk-rezept-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.hk-rezept-card { background: #fff; border: 1px solid #e8e5e0; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.2s, box-shadow 0.2s; }
.hk-rezept-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.hk-rezept-card img { width: 100%; height: 140px; object-fit: cover; }
.hk-rezept-card h3 { padding: 12px; margin: 0; font-size: 0.85em; font-weight: 600; line-height: 1.3; }

/* Footer */
.hk-footer { margin-top: 60px; padding: 32px 0; background: #1a1a1a; color: #999; text-align: center; font-size: 0.78em; }
.hk-footer p { margin: 4px 0; opacity: 0.8; }
.hk-footer a { color: #fff; opacity: 0.7; text-decoration: none; }
.hk-footer a:hover { opacity: 1; }
.hk-footer-links { margin-bottom: 12px; }
.hk-footer-links a { margin: 0 12px; font-size: 1.1em; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .hk-steckbrief-grid { grid-template-columns: repeat(2, 1fr); }
    .hk-rezept-cards { grid-template-columns: repeat(2, 1fr); }
    .hk-schritt-bild { margin-left: 0; max-width: 100%; }
}

@media (max-width: 480px) {
    .hk-rezept-header { padding: 24px 0 16px; }
    .hk-rezept-header h1 { font-size: 1.6em; }
    .hk-steckbrief { padding: 16px; }
    .hk-steckbrief-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hk-nw-row { flex-direction: column; gap: 8px; padding-top: 12px; margin-top: 12px; }
    .hk-nw-sep { display: none; }
    .hk-nw-macros { gap: 10px; flex-wrap: wrap; justify-content: center; }
    .hk-zubehoer ul { flex-direction: column; }
    .hk-schritt-body { padding-left: 0; margin-top: 10px; }
    .hk-schritt-bild { margin-left: 0; }
    .hk-rezept-cards { grid-template-columns: 1fr; }
    .hk-rezept-article h2 { font-size: 1.3em; }
    .hk-trick { padding: 16px; }
}

/* ========================================
   DRUCKEN-BUTTON (Screen)
   ======================================== */
.hk-print-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: #f5f3f0; border: 1px solid #e8e5e0; border-radius: 6px; font-size: 0.85em; color: #666; cursor: pointer; margin-top: 4px; font-family: inherit; }
.hk-print-btn:hover { background: #ebe8e4; color: #1a1a1a; }

/* Print-Only Elemente im Screen verstecken */
.hk-print-only { display: none; }
.hk-print-logo { display: none; }
.hk-print-einkauf { display: none; }

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    @page { size: A4; margin: 12mm 14mm; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    body.hk-rezept { font-size: 13px !important; line-height: 1.5; color: #000 !important; background: #fff !important; margin: 0; padding: 0; -webkit-text-size-adjust: 100% !important; }

    #wpadminbar,
    .hk-header,
    .hk-video,
    .hk-intro,
    .hk-zubehoer,
    .hk-trick,
    .hk-faq,
    .hk-varianten,
    .hk-mehr-rezepte,
    .hk-print-btn,
    .hk-footer,
    .hk-schritt-bild,
    .hk-kontrollpunkt,
    .hk-tipp { display: none !important; }

    .hk-print-only { display: block !important; }
    .hk-print-logo { display: block !important; text-align: center; padding-bottom: 8px; border-bottom: 2px solid #ad1e1e; margin-bottom: 10px; }
    .hk-print-logo img,
    .hk-print-logo svg { width: auto; height: 36px; }

    .hk-main { max-width: 100%; padding: 0; margin: 0; }
    .hk-rezept-article { padding: 0; }
    .hk-rezept-article > div, .hk-rezept-article > section { padding: 0; margin: 0; }

    .hk-rezept-header { padding: 0 0 4px; text-align: center; }
    .hk-rezept-header h1 { font-size: 22px !important; margin: 0; line-height: 1.2; }
    .hk-subtitle { display: block; font-size: 13px !important; margin: 3px 0 8px; color: #444; font-style: italic; }

    .hk-steckbrief { background: none; border: none; border-top: 1px solid #999; border-bottom: 1px solid #999; border-radius: 0; padding: 6px 0; margin: 0 0 10px; }
    .hk-steckbrief-grid { display: flex; justify-content: center; gap: 20px; }
    .hk-steckbrief-item { padding: 0; text-align: center; }
    .hk-steckbrief-icon { font-size: 16px; margin-bottom: 0; }
    .hk-steckbrief-label { display: none; }
    .hk-steckbrief-value { font-size: 14px; }

    .hk-nw-row { margin-top: 4px; padding-top: 4px; border-top: 1px dotted #bbb; gap: 12px; flex-wrap: nowrap; }
    .hk-nw-kcal { font-size: 15px; }
    .hk-nw-kcal-label { font-size: 11px; }
    .hk-nw-sep { height: 14px; }
    .hk-nw-macros { gap: 12px; }
    .hk-nw-macro { font-size: 13px; }
    .hk-nw-macro em { font-size: 11px; }
    .hk-nutriscore-scale { gap: 3px; }
    .hk-ns-letter { width: 16px; height: 16px; font-size: 10px; border-radius: 2px; }
    .hk-ns-active { transform: scale(1.15); }
    .hk-nw-hinweis { font-size: 9px; }

    .hk-rezept-article h2 { font-size: 16px !important; margin: 12px 0 6px; padding-bottom: 3px; border-bottom: 2px solid #ad1e1e; }

    .hk-zutaten h3 { font-size: 12px !important; margin: 6px 0 3px; letter-spacing: 0.04em; }
    .hk-zutaten ul { margin: 0 0 5px; }
    .hk-zutaten li { padding: 2px 0; border-bottom: 1px solid #eee; font-size: 13px; }
    .hk-menge { min-width: 70px; font-size: 13px; }
    .hk-zutat { font-size: 13px; }

    /* LAYOUT A: Einkaufsliste (<=12 Zutaten) */
    .hk-print-shopping .hk-zutaten { display: flex; flex-wrap: wrap; }
    .hk-print-shopping .hk-zutaten > h2 { width: 100%; }
    .hk-print-shopping .hk-zutaten-list { width: 58%; }
    .hk-print-shopping .hk-print-einkauf { display: block !important; width: 38%; margin-left: 4%; padding-top: 28px; }
    .hk-print-einkauf h3 { font-size: 14px !important; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #666; margin: 0 0 6px; }
    .hk-einkauf-line { height: 26px; border-bottom: 1px solid #ccc; font-size: 13px; line-height: 26px; color: #999; padding-left: 2px; }

    /* LAYOUT B: 2-spaltig + Notizen (13-20 Zutaten) */
    .hk-print-compact .hk-zutaten-list { -webkit-columns: 2; columns: 2; -webkit-column-gap: 24px; column-gap: 24px; }
    .hk-print-compact .hk-zutaten-list h3 { -webkit-column-break-after: avoid; break-after: avoid; }
    .hk-print-compact .hk-zutaten-list ul { -webkit-column-break-inside: avoid; break-inside: avoid; }

    /* LAYOUT C: 2-spaltig (>20 Zutaten) – Notizen auf Seite 2 */
    .hk-print-minimal .hk-zutaten-list { -webkit-columns: 2; columns: 2; -webkit-column-gap: 24px; column-gap: 24px; }
    .hk-print-minimal .hk-zutaten-list h3 { -webkit-column-break-after: avoid; break-after: avoid; }
    .hk-print-minimal .hk-zutaten-list ul { -webkit-column-break-inside: avoid; break-inside: avoid; }

    .hk-schritte { padding: 0; margin: 0; }
    .hk-schritt { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid #eee; }
    .hk-schritt:last-child { border-bottom: none; }
    .hk-schritt-header { margin-bottom: 2px; }
    .hk-schritt-nr { display: inline-block; width: 22px; height: 22px; font-size: 12px; text-align: center; line-height: 22px; border-radius: 50%; background: #1a1a1a; color: #fff; font-weight: 700; vertical-align: middle; margin-right: 8px; }
    .hk-schritt-header h3 { display: inline; font-size: 13px !important; padding-top: 0; vertical-align: middle; }
    .hk-schritt-body { padding-left: 30px; font-size: 13px !important; line-height: 1.5; }
    .hk-schritt-body p { margin: 0; font-size: 13px !important; }

    .hk-print-notizen { margin-top: 20px; }
    .hk-print-notizen h3 { font-size: 14px !important; font-weight: 700; margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.06em; color: #666; border: none; padding: 0; }
    .hk-print-line { height: 30px; border-bottom: 1px solid #ccc; }

    .hk-print-footer { font-size: 11px; color: #666; border-top: 2px solid #ad1e1e; padding-top: 8px; margin-top: 20px; overflow: hidden; }
    .hk-print-footer span:first-child { float: left; }
    .hk-print-footer span:last-child { float: right; }
}
