/* =====================================================================
   BELAG-VORSCHAU – Stil zur Grafik auf der Bestellseite
   (gehört zu js/belag-vorschau.js)
   ===================================================================== */
.ib-vorschau {
    position: relative;
    margin: -4px 0 20px;
    padding: 14px 14px 12px;
    border-radius: 14px;
    background:
        radial-gradient(ellipse at 50% 42%, #fffaf2 0%, #f6ecdc 62%, #efe1cb 100%);
    border: 1px solid #eadfce;
    overflow: hidden;
}
.ib-vorschau[hidden] { display: none; }

/* feines Holzbrett-Muster, damit das Brot «auf etwas» liegt */
.ib-vorschau::before {
    content: "";
    position: absolute; inset: 0;
    background: repeating-linear-gradient(90deg, rgba(160,110,60,.035) 0 2px, transparent 2px 38px);
    pointer-events: none;
}

.ib-v-bild { display: block; width: 100%; height: auto; max-height: 300px; position: relative; }

/* Stück erscheint mit einem kleinen «Plopp» */
.ib-v-stueck { transform-box: fill-box; transform-origin: center; }
.ib-v-stueck.neu { animation: ib-v-plopp .42s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes ib-v-plopp {
    from { transform: scale(0) rotate(-25deg); opacity: 0; }
    to   { transform: scale(1) rotate(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .ib-v-stueck.neu { animation: none; }
}

.ib-v-legende {
    position: relative;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
    margin-top: 6px;
}
.ib-v-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px 4px 6px;
    border-radius: 99px;
    background: rgba(255,255,255,.85);
    border: 1px solid #eadfce;
    font-size: .82rem; font-weight: 600; color: #3d2b1f;
}
.ib-v-chip i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.ib-v-chip b { font-weight: 700; color: #8a5a2b; font-size: .76rem; }
.ib-v-leer { margin: 0; font-size: .88rem; color: #7d6f61; text-align: center; }

.ib-v-fuss {
    position: relative;
    display: block; margin-top: 6px;
    text-align: center; font-size: .72rem; color: #9a8b7c;
}

@media (max-width: 640px) {
    .ib-vorschau { padding: 8px 6px 10px; margin-bottom: 16px; }
    .ib-v-chip { font-size: .76rem; padding: 3px 9px 3px 5px; }
}

/* ---------- Das Runde in Lagen ---------- */
.ib-v-leg-lagen { flex-direction: column; align-items: stretch; gap: 5px; max-width: 460px; margin: 6px auto 0; }
.ib-v-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ib-v-nr { min-width: 104px; font-size: .78rem; font-weight: 700; color: #8a5a2b; text-transform: uppercase; letter-spacing: .04em; }
.ib-v-zeile em { font-size: .82rem; color: #b09a80; }
.ib-v-leg-lagen + .ib-v-fuss { margin-top: 8px; }
svg.ib-v-lagen { max-height: 420px; }
@media (max-width: 640px) {
    .ib-v-nr { min-width: 0; width: 100%; }
}
.ib-v-legende:not(.ib-v-leg-lagen) .ib-v-garn { width: 100%; justify-content: center; }
.ib-v-legende:not(.ib-v-leg-lagen) .ib-v-garn .ib-v-nr { min-width: 0; }

/* ---------- Umschalter: fertiges Brot / Lagen ---------- */
.ib-v-tabs { position: relative; display: flex; justify-content: center; gap: 4px; margin: 0 auto 6px; padding: 3px; width: max-content;
             background: rgba(255,255,255,.7); border: 1px solid #eadfce; border-radius: 99px; }
.ib-v-tabs button { border: 0; background: none; padding: 5px 14px; border-radius: 99px; font: inherit; font-size: .8rem; font-weight: 700; color: #8a7c6d; cursor: pointer; }
.ib-v-tabs button.an { background: #8a5a2b; color: #fff; }
.ib-v-titel { position: relative; margin: 2px 0 0; text-align: center; font-family: 'Cuprum', sans-serif; font-size: 1.05rem; font-weight: 700; color: #3d2b1f; }
.ib-v-stile { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 0 auto 4px; }
.ib-v-stile button { border: 1px solid #e2d4bf; background: rgba(255,255,255,.75); padding: 3px 11px; border-radius: 99px; font: inherit; font-size: .74rem; font-weight: 600; color: #8a7c6d; cursor: pointer; }
.ib-v-stile button.an { border-color: #8a5a2b; color: #8a5a2b; background: #fff; }
