/* =========================================================
   WAGYU-BERATER (Steakberater + Garplaner) – Stand 20.11.2026
   Plugin wznf_wagyuberater: Gestaltung 1:1 aus dem Prototyp, unten die Plugin-Ergänzungen
   ========================================================= */

.wb {
    --wb-gruen: var(--wznf-weidegruen, #1E2E1E);
    --wb-gruen2: var(--wznf-sommerweide, #4A6741);
    --wb-creme: var(--wznf-creme, #F4EDD8);
    --wb-hell: var(--wznf-maegerweiss, #FDFAF4);
    --wb-gold: var(--wznf-gerstengelb, #C4A84F);
    --wb-stoppel: var(--wznf-stoppelgold, #D9C89A);
    --wb-orange: var(--wznf-orange, #A06030);
    --wb-text: var(--wznf-text, #1A1A16);
    --wb-muted: var(--wznf-text-muted, #6B5E48);
    --wb-linie: rgba(30, 46, 30, 0.14);
    max-width: 1100px;
    margin: 0 auto;
    font-family: 'Montserrat', system-ui, sans-serif;
    color: var(--wb-text);
    scroll-margin-top: 110px;
}
.wb *, .wb *::before, .wb *::after { box-sizing: border-box; }
.wb [hidden] { display: none !important; }
.wb h3, .wb h4 { font-family: inherit; color: var(--wb-gruen); }

/* ---------- Tabs ---------- */
.wb-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--wb-gruen); border-radius: 2px; overflow: hidden; }
.wb-tab {
    display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; text-align: left;
    padding: 18px 22px; border: 0; background: var(--wb-hell); color: var(--wb-gruen); cursor: pointer; font: inherit;
    transition: background .15s ease;
}
.wb-tab + .wb-tab { border-left: 1px solid var(--wb-gruen); }
.wb-tab:hover { background: var(--wb-creme); }
.wb-tab.is-active { background: var(--wb-gruen); color: var(--wb-creme); }
.wb-tab__nr { grid-row: span 2; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--wb-gold); }
.wb-tab__t { font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.wb-tab__s { font-size: 13px; opacity: .8; }
.wb-tab:focus-visible, .wb-option:focus-visible, .wb-btn:focus-visible, .wb-back:focus-visible, .wb-step-btn:focus-visible { outline: 2px solid var(--wb-gold); outline-offset: 2px; }

.wb-panel { background: var(--wb-hell); border: 1px solid var(--wb-linie); border-top: 0; padding: 40px 44px 44px; }

/* ---------- Gemeinsame Bausteine ---------- */
.wb-eyebrow { margin: 0 0 8px !important; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wb-orange); }
.wb-frage { margin: 0 0 28px !important; font-size: clamp(22px, 3vw, 30px); font-weight: 600; line-height: 1.25; outline: none; }
.wb-hint { margin: 16px 0 0 !important; font-size: 13px; color: var(--wb-muted); }
.wb-hint a, .wb-ergebnis__foot a { color: var(--wb-orange); }

.wb-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 22px; border-radius: 2px;
    font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none !important;
    cursor: pointer; border: 1px solid var(--wb-gruen); transition: background .15s ease, color .15s ease;
}
.wb-btn--primary { background: var(--wb-gruen); color: var(--wb-creme) !important; }
.wb-btn--primary:hover { background: var(--wb-gruen2); border-color: var(--wb-gruen2); }
.wb-btn--ghost { background: transparent; color: var(--wb-gruen) !important; }
.wb-btn--ghost:hover { background: var(--wb-creme); }

/* ---------- Quiz ---------- */
.wb-progress { height: 3px; background: var(--wb-linie); margin: -8px 0 28px; }
.wb-progress span { display: block; height: 100%; background: var(--wb-gold); transition: width .3s ease; }
.wb-optionen { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.wb-option {
    display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 20px 22px; min-height: 96px;
    background: #fff; border: 1px solid var(--wb-linie); border-radius: 2px; cursor: pointer; font: inherit; color: var(--wb-text);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.wb-option:hover { border-color: var(--wb-gold); box-shadow: 0 6px 18px rgba(30, 46, 30, .08); transform: translateY(-1px); }
.wb-option.is-active { border-color: var(--wb-gruen); box-shadow: inset 0 0 0 1px var(--wb-gruen); }
.wb-option__t { font-size: 16px; font-weight: 700; color: var(--wb-gruen); }
.wb-option__s { font-size: 13px; line-height: 1.5; color: var(--wb-muted); }
.wb-back { margin-top: 24px; padding: 6px 0; background: none; border: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--wb-muted); cursor: pointer; }
.wb-back:hover { color: var(--wb-gruen); }
.wb-nav { margin-top: 28px; }

.wb-stepper { display: inline-flex; align-items: center; border: 1px solid var(--wb-gruen); border-radius: 2px; background: #fff; }
.wb-step-btn { width: 56px; height: 56px; border: 0; background: none; font-size: 24px; color: var(--wb-gruen); cursor: pointer; }
.wb-step-btn:hover { background: var(--wb-creme); }
.wb-step-val { min-width: 64px; text-align: center; font-size: 26px; font-weight: 700; color: var(--wb-gruen); }

/* ---------- Ergebnis ---------- */
.wb-ergebnis h3 { margin: 0 0 28px !important; font-size: clamp(22px, 3vw, 30px); font-weight: 600; outline: none; }
.wb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.wb-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--wb-linie); border-radius: 2px; }
.wb-card--top { border-color: var(--wb-gold); box-shadow: 0 0 0 1px var(--wb-gold); }
.wb-card__badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 5px 10px; background: var(--wb-gold); color: var(--wb-gruen); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.wb-card__img { display: block; aspect-ratio: 4 / 3; background: var(--wb-creme); overflow: hidden; }
.wb-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wb-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.wb-card__name { margin: 0 0 10px !important; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; hyphens: auto; }
.wb-card__warum { margin: 0 0 14px !important; font-size: 14px; line-height: 1.6; }
.wb-card__note { margin: -6px 0 14px !important; font-size: 12px; color: var(--wb-orange); }
.wb-card__facts { list-style: none; margin: 0 0 18px !important; padding: 14px 0 0 !important; border-top: 1px solid var(--wb-linie); font-size: 13px; line-height: 1.55; color: var(--wb-muted); }
.wb-card__facts li { margin: 0 0 8px; padding: 0; }
.wb-card__facts li::before { content: none; }
.wb-card__facts strong { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--wb-gruen); }
.wb-card__actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.wb-ergebnis__foot { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--wb-linie); }
.wb-ergebnis__foot p { flex: 1 1 380px; margin: 0 !important; font-size: 14px; line-height: 1.6; color: var(--wb-muted); }

/* ---------- Garplaner ---------- */
.wb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; }
.wb-field { display: flex; flex-direction: column; gap: 8px; margin: 0; font-weight: 400; }
.wb-field__l { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wb-gruen); }
.wb-field__l output { font-weight: 700; color: var(--wb-orange); letter-spacing: .04em; }
.wb-field select, .wb-field input[type="time"] {
    width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--wb-linie); border-radius: 2px; background: #fff;
    font: inherit; font-size: 15px; color: var(--wb-text);
}
.wb-field select:focus, .wb-field input:focus { outline: 2px solid var(--wb-gold); outline-offset: 0; border-color: var(--wb-gold); }
.wb-field input[type="range"] { width: 100%; min-height: 46px; accent-color: var(--wb-gruen); }
.wb-inline { display: grid; grid-template-columns: 1fr 110px; gap: 8px; }

.wb-plan { margin-top: 36px; }
.wb-warn { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-bottom: 24px; padding: 16px 20px; background: #FBEFE3; border-left: 3px solid var(--wb-orange); font-size: 14px; line-height: 1.5; }
.wb-plan-kopf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--wb-gruen); color: var(--wb-creme); }
.wb-plan-kopf > div { padding: 16px 20px; border-left: 1px solid rgba(244, 237, 216, .15); }
.wb-plan-kopf > div:first-child { border-left: 0; }
.wb-plan-kopf span { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--wb-stoppel); }
.wb-plan-kopf strong { display: block; margin-top: 4px; font-size: 15px; }

.wb-timeline { list-style: none; margin: 0 !important; padding: 8px 0 0 !important; }
.wb-tl { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--wb-linie); }
.wb-tl::before { content: none; }
.wb-tl__zeit span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wb-muted); }
.wb-tl__zeit strong { font-size: 22px; font-weight: 700; color: var(--wb-gruen); font-variant-numeric: tabular-nums; }
.wb-tl__inhalt h4 { margin: 2px 0 4px !important; font-size: 16px; font-weight: 700; }
.wb-tl__inhalt h4 small { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--wb-orange); }
.wb-tl__inhalt p { margin: 0 !important; font-size: 14px; line-height: 1.6; }
.wb-tl--gar { background: linear-gradient(90deg, rgba(196, 168, 79, .12), transparent 70%); }
.wb-tl--gar .wb-tl__zeit { padding-left: 12px; border-left: 3px solid var(--wb-gold); }
.wb-tl--neben .wb-tl__inhalt h4 { font-weight: 600; color: var(--wb-muted); }
.wb-tl--ende { border-bottom: 0; }
.wb-tl--ende .wb-tl__zeit strong { color: var(--wb-orange); }

.wb-plan-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.wb-plan-extra > div { padding: 22px 24px; background: var(--wb-creme); }
.wb-plan-extra h4 { margin: 0 0 12px !important; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.wb-plan-extra ul { margin: 0 !important; padding-left: 18px !important; font-size: 14px; line-height: 1.6; }
.wb-plan-extra li { margin-bottom: 6px; }
.wb-plan-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ---------- Handy ---------- */
@media (max-width: 991.98px) {
    .wb-cards { grid-template-columns: 1fr 1fr; }
    .wb-grid { grid-template-columns: 1fr 1fr; }
    .wb-plan-kopf { grid-template-columns: 1fr 1fr; }
    .wb-plan-kopf > div:nth-child(3) { border-left: 0; }
    .wb-plan-kopf > div:nth-child(n+3) { border-top: 1px solid rgba(244, 237, 216, .15); }
}
@media (max-width: 767.98px) {
    .wb-panel { padding: 26px 16px 30px; }
    .wb-tab { padding: 14px 14px; column-gap: 8px; }
    .wb-tab__t { font-size: 13px; }
    .wb-tab__s { font-size: 12px; }
    .wb-optionen { grid-template-columns: 1fr; gap: 10px; }
    .wb-option { min-height: 0; padding: 16px 18px; }
    .wb-cards { grid-template-columns: 1fr; }
    .wb-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: start; }
    .wb-card__img { aspect-ratio: 1 / 1; width: 104px; height: 104px; margin: 16px 0 0 16px; }
    .wb-card__badge { top: 8px; left: 8px; padding: 4px 8px; font-size: 10px; }
    .wb-card__actions .wb-btn { padding: 10px 12px; letter-spacing: .08em; }
    .wb-card__body { padding: 16px; }
    .wb-card__facts li:last-child { display: none; }
    .wb-grid { grid-template-columns: 1fr; }
    .wb-tl { grid-template-columns: 78px 1fr; gap: 14px; }
    .wb-tl__zeit strong { font-size: 18px; }
    .wb-plan-extra { grid-template-columns: 1fr; }
    .wb-plan-actions .wb-btn { flex: 1 1 calc(50% - 5px); }
    .wb-plan-actions .wb-btn--primary { flex-basis: 100%; }
}

/* ---------- Drucken: nur den Garplan ---------- */
@media print {
    body:has(#wagyu-berater) header, body:has(#wagyu-berater) footer,
    body:has(#wagyu-berater) #consent-manager, body:has(#wagyu-berater) .breadcrumb-wrapper { display: none !important; }
    .wb-tabs, .wb-plan-form, .wb-plan-actions, .wb-warn, #wb-panel-berater { display: none !important; }
    .wb-panel { border: 0; padding: 0; }
    .wb-plan-kopf { background: none; color: #000; border: 1px solid #000; }
    .wb-plan-kopf span { color: #555; }
    .wb-tl { break-inside: avoid; }
    .wb-tl--gar { background: none; }
}

/* =========================================================
   PLUGIN-ERGÄNZUNGEN: Preise, Gewichtswahl, Warenkorb, Produktbox
   ========================================================= */
.wb-card__preise { list-style: none; margin: 0 0 16px !important; padding: 0 !important; font-size: 13px; line-height: 1.5; }
.wb-card__preise li { margin: 0 0 6px; padding: 0; }
.wb-card__preise li::before { content: none; }
.wb-card__linie { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wb-gruen); }
.wb-card__preise a { color: var(--wb-orange); font-size: 12px; white-space: nowrap; }
.wb-muted { color: var(--wb-muted); font-size: .92em; font-weight: 400; }
.wb-plan-aus { margin: 0 !important; flex-basis: 100%; }

.wb-picker { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--wb-gold); }
.wb-weights { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 6px; min-width: 0; }
.wb-weights legend { font-size: 13px; font-weight: 700; color: var(--wb-gruen); margin: 0 0 8px; padding: 0; }
.wb-weight { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "box g p" "box q p"; align-items: center; gap: 0 10px;
    margin: 0; padding: 8px 10px; border: 1px solid var(--wb-linie); border-radius: 2px; background: #fff; cursor: pointer; font-size: 13px; font-weight: 400; }
.wb-weight input { grid-area: box; width: 18px; height: 18px; margin: 0; accent-color: var(--wb-gruen); }
.wb-weight__g { grid-area: g; font-weight: 700; color: var(--wb-gruen); }
.wb-weight__q { grid-area: q; font-size: 12px; color: var(--wb-muted); }
.wb-weight__p { grid-area: p; text-align: right; font-variant-numeric: tabular-nums; }
.wb-weight__p small { display: block; }
.wb-weight:has(input:checked) { border-color: var(--wb-gruen); background: var(--wb-creme); }
.wb-picker__foot { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.wb-sum { margin: 0 !important; font-size: 13px; font-weight: 700; color: var(--wb-gruen); }
.wb-msg { margin: 0 !important; min-height: 1em; font-size: 13px; color: var(--wb-orange); }
.wb-pick-single { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 13px; }
.wb-pick-single input { width: 72px; min-height: 40px; margin-left: 6px; padding: 6px 8px; border: 1px solid var(--wb-linie); border-radius: 2px; font: inherit; }
.wb-done { list-style: none; margin: 0 0 12px !important; padding: 0 !important; font-size: 13px; color: var(--wb-gruen2); }
.wb-done li { margin: 0 0 4px; padding: 0; }
.wb-done li::before { content: none; }
.wb-plan > .wb-picker { max-width: 560px; }

/* Box auf der Produktseite (liegt außerhalb von .wb) */
.wb-pbox {
    --wb-gruen: var(--wznf-weidegruen, #1E2E1E); --wb-gruen2: var(--wznf-sommerweide, #4A6741); --wb-creme: var(--wznf-creme, #F4EDD8);
    --wb-hell: var(--wznf-maegerweiss, #FDFAF4); --wb-gold: var(--wznf-gerstengelb, #C4A84F); --wb-orange: var(--wznf-orange, #A06030);
    --wb-text: var(--wznf-text, #1A1A16);
    display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; padding: 14px 16px; box-sizing: border-box;
    background: var(--wb-hell); border: 1px solid var(--wb-gold); border-left: 4px solid var(--wb-gruen2); border-radius: 2px;
    font-family: 'Montserrat', system-ui, sans-serif; color: var(--wb-text);
}
.wb-pbox * { box-sizing: border-box; }
.wb-pbox__icon { font-size: 22px; line-height: 1; }
.wb-pbox__body { min-width: 0; }
.wb-pbox__title { margin: 0 0 4px !important; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wb-orange); }
.wb-pbox__text { margin: 0 0 6px !important; font-size: 14px; line-height: 1.5; }
.wb-pbox__link { font-weight: 700; color: var(--wb-gruen); text-decoration: underline; }
.wb-pbox__link:focus-visible { outline: 2px solid var(--wb-gold); outline-offset: 2px; }

@media (min-width: 576px) {
    .wb-weights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wb-card .wb-weights { grid-template-columns: 1fr; }
}
@media print {
    .wb-picker, .wb-card__preise { display: none !important; }
}

/* Seite /wagyu-berater: Kopf wie auf den anderen Seiten (Hero aus der custom.css), Standard-Überschrift ausblenden */
body:has(.wb-hero) .index-heading-wrapper { display: none !important; }
.wb-hero { background-size: cover; background-position: center; }
/* Inhalt bündig mit dem Text im Bildkopf (gleiche Breite und Ränder wie .hero-content-grid in der custom.css) */
.wb-page { max-width: 1680px; margin: 48px auto 64px; padding: 0 4vw; box-sizing: border-box; }
.wb-page .wb { max-width: none; margin: 0; }
@media (max-width: 767.98px) { .wb-page { padding: 0 20px; } }

/* Handy: Karte einspaltig, Produktbild mittig unter dem Titel */
@media (max-width: 767.98px) {
    .wb-card { display: flex; flex-direction: column; padding: 44px 16px 18px; }
    .wb-card__body { display: contents; }
    .wb-card__body > * { order: 3; }
    .wb-card__body > .wb-card__name { order: 1; margin: 0 0 14px !important; }
    .wb-card > .wb-card__img { order: 2; align-self: center; width: min(220px, 70%); height: auto; aspect-ratio: 1 / 1; margin: 0 0 16px; }
    .wb-card__actions { margin-top: 4px; }
}

/* Uhrzeit-Feld: Safari/iOS zeichnet input[type=time] mit fester Mindestbreite und ragt sonst aus der Box */
.wb-inline { grid-template-columns: minmax(0, 1fr) minmax(0, 120px); }
.wb-inline > * { min-width: 0; max-width: 100%; }
.wb-field input[type="time"] {
    -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%;
    box-sizing: border-box; min-height: 46px; line-height: 1.2; background: #fff;
}
.wb-field input[type="time"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
@media (max-width: 400px) {
    .wb-inline { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* iOS zoomt bei Feldern unter 16 px beim Antippen hinein und verschiebt die Seite */
@media (max-width: 767.98px) {
    .wb-field select, .wb-field input[type="time"] { font-size: 16px; }
}

/* Auswahlfelder: eigene Optik statt Browser-Standard (Safari am Rechner zeichnet sonst kleine, graue Systemfelder) */
.wb-field select {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    display: block; width: 100%; min-height: 48px; padding: 11px 44px 11px 14px; box-sizing: border-box;
    border: 1px solid var(--wb-linie); border-radius: 2px; background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%231E2E1E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; background-size: 14px 9px;
    font: inherit; font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--wb-text);
    cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease;
}
.wb-field select:hover { border-color: var(--wb-gruen2); }
.wb-field select:focus { outline: none; border-color: var(--wb-gold); box-shadow: 0 0 0 2px var(--wb-gold); }
.wb-field select::-ms-expand { display: none; }
.wb-field select optgroup { font-weight: 700; color: var(--wb-gruen); }
.wb-field select option { font-weight: 400; color: var(--wb-text); }
.wb-field input[type="time"] { border: 1px solid var(--wb-linie); border-radius: 2px; padding: 11px 14px; font: inherit; font-size: 15px; font-weight: 500; color: var(--wb-text); }
.wb-field input[type="time"]:hover { border-color: var(--wb-gruen2); }
@media (max-width: 767.98px) {
    .wb-field select, .wb-field input[type="time"] { font-size: 16px; }
}

/* Produktbox am Rechner unter den Produktbildern (verschiebt das Plugin-Skript ab 992 px), am Handy unter dem Warenkorb */
.wb-pbox--gallery { margin: 24px 0 0; }

/* Hinweis "zu knapp" mit zwei Buttons (Express-Auftauen / Ab jetzt planen) */
.wb-warn__btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 767.98px) { .wb-warn__btns, .wb-warn__btns .wb-btn { width: 100%; } }
