.bmek { --bmek-line: #d9d7d2; --bmek-accent: #ffdd00; --bmek-ink: #2b2a29; --bmek-muted: #6b6969; margin: 1.25rem 0; display: grid; gap: 1rem; width: 100%; }
.bmek-row--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 540px) { .bmek-row--3 { grid-template-columns: 1fr 1fr; } .bmek-row--3 > :last-child { grid-column: 1 / -1; } }
.bmek-field { display: flex; flex-direction: column; gap: .3rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.bmek-label { font-weight: 700; color: var(--bmek-ink); font-size: .95rem; display: flex; align-items: center; gap: .4rem; padding: 0; }
.bmek-label abbr { color: #c0392b; text-decoration: none; }
.bmek-field input[type=number], .bmek-field select { width: 100%; height: 46px; padding: 0 .75rem; border: 1px solid var(--bmek-line); border-radius: 6px; font-size: 1rem; background: #fff; }
.bmek-field input:focus, .bmek-field select:focus { outline: 2px solid var(--bmek-accent); outline-offset: 1px; border-color: var(--bmek-ink); }
.bmek-field small { color: var(--bmek-muted); font-size: .8rem; }
.bmek-area { margin: -.4rem 0 0; font-size: .85rem; color: var(--bmek-muted); }
.bmek-choice { display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; border: 1px solid var(--bmek-line); border-radius: 6px; cursor: pointer; margin: 0 0 .4rem; background: #fff; }
.bmek-choice:has(input:checked) { border-color: var(--bmek-ink); box-shadow: inset 4px 0 0 var(--bmek-accent); }
.bmek-choice input { margin: 0; accent-color: var(--bmek-ink); width: 18px; height: 18px; }
.bmek-choice em { font-style: normal; color: var(--bmek-muted); }
.bmek-choice .bmek-surcharge { margin-left: auto; font-weight: 600; color: var(--bmek-ink); }
.bmek-info { position: relative; display: inline-block; font-weight: 400; }
.bmek-info summary { list-style: none; width: 20px; height: 20px; border-radius: 50%; background: var(--bmek-ink); color: #fff; font-size: 12px; line-height: 20px; text-align: center; cursor: pointer; }
.bmek-info summary::-webkit-details-marker { display: none; }
.bmek-info[open] > div { position: absolute; z-index: 20; left: 0; top: 26px; width: min(420px, 80vw); padding: 1rem; background: #fff; border: 1px solid var(--bmek-line); border-radius: 8px; box-shadow: 0 12px 32px -12px rgba(0,0,0,.3); font-size: .85rem; line-height: 1.5; color: var(--bmek-ink); }
.bmek-summary { margin: 0; padding: 1rem 1.1rem; background: #f6f5f2; border-radius: 8px; display: grid; gap: .35rem; }
.bmek-summary div { display: flex; justify-content: space-between; gap: 1rem; }
.bmek-summary dt, .bmek-summary dd { margin: 0; }
.bmek-summary .bmek-total { border-top: 1px solid var(--bmek-line); padding-top: .5rem; margin-top: .2rem; font-weight: 800; font-size: 1.15rem; color: var(--bmek-ink); }
.bmek-hint { margin: -.4rem 0 0; font-size: .85rem; color: var(--bmek-muted); }
form.cart:has(.bmek) { display: block !important; }
form.cart:has(.bmek) .single_add_to_cart_button { width: 100%; margin-top: .5rem; }

/* Angebot als PDF */
.bmek-angebot-hinweis { background: #fff8d6; border-left: 4px solid #ffdd00; padding: .6em .9em; margin: 0 0 1em; font-size: .95em; }
.bmek-offer { margin: .4em 0 1.2em; }
.bmek-offer__toggle { display: inline-flex; align-items: center; gap: .5em; background: #fff !important; color: #2b2a29 !important; border: 2px solid #2b2a29 !important; border-radius: 40px !important; padding: .55em 1.1em !important; font-weight: 800; font-size: .95em; cursor: pointer; box-shadow: none !important; }
.bmek-offer__toggle::before { content: "PDF"; font-size: .7em; font-weight: 900; letter-spacing: .04em; background: #2b2a29; color: #ffdd00; border-radius: 4px; padding: .2em .45em; }
.bmek-offer__toggle:hover { background: #2b2a29 !important; color: #fff !important; }
.bmek-offer__panel { margin-top: .7em; padding: .9em 1em; background: #f6f5f2; border-radius: 10px; display: grid; gap: .6em; }
.bmek-offer__panel .bmek-field { margin: 0; }
.bmek-offer__panel small { color: #6f6e6e; }
.bmek-offer__go { justify-self: start; }

/* Druckdaten später per E-Mail / WeTransfer */
.bmek-later { margin: -.4em 0 .8em; }
.bmek-later-hint { background: #fff8d6; border-left: 4px solid #ffdd00; padding: .6em .9em; margin: 0 0 1em; font-size: .92em; }
.bmek-upload.is-optional { opacity: .55; }
.bmek-upload.is-optional abbr { display: none; }

/* Online-Designer (bm-designer) im Konfigurator */
.bmek-designer.bmd-box { margin: 0; padding: 0; border: 0; background: none; counter-increment: none; }
.bmek-designer .bm-schritt, .bmek-designer .bmd-spaeter, .bmek-designer .bmd-karte[data-modus=upload] { display: none !important; }
.bmek-designer .bmd-wahl { display: block; margin: 0; }
.bmek-designer .bmd-karte[data-modus=design] { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 0 .8rem; padding: .7rem .9rem; border: 2px solid var(--bmek-ink); border-radius: 8px; background: #fff; text-align: left; min-height: 0; }
.bmek-designer .bmd-karte-icon { grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 50%; background: var(--bmek-accent); color: var(--bmek-ink); display: grid; place-items: center; font-size: 18px; margin: 0; }
.bmek-designer .bmd-karte strong { font-size: .95rem; }
.bmek-designer .bmd-karte-text { grid-column: 2; font-size: .8rem; color: var(--bmek-muted); }
.bmek-designer .bmd-open.button { grid-column: 3; grid-row: 1 / 3; margin: 0; background: var(--bmek-ink) !important; color: #fff !important; border-radius: 40px !important; padding: .5em 1.1em !important; font-size: .85rem; }
.bmek-designer .bmd-hint { grid-column: 2; font-size: .75rem; }
.bmek-designer .bmd-result { margin-top: .5rem; }
/* Formatfelder des Designers werden aus Länge × Höhe befüllt */
form.cart:has([data-bmek]) .bmd-format { display: none !important; }
/* nach dem Gestalten: kein Upload / „per E-Mail" mehr nötig */
.bmek.is-designed .bmek-upload, .bmek.is-designed .bmek-later, .bmek.is-designed .bmek-later-hint { display: none !important; }
/* Editor in Shop-Farben statt Rot */
.bmd-modal { --bmd-accent: #2b2a29; }
#bmd-modal .button.bmd-save:hover { background: #000; border-color: #000; }

/* Blitzschnell über der Stückzahl-Grenze */
.bmek-choice.is-disabled { opacity: .45; cursor: not-allowed; background: #f6f5f2; }
.bmek-choice.is-disabled .bmek-surcharge::after { content: " · nur bis " attr(data-max) " Stück"; }

/* Hinweis individuelles Angebot (unter der Menge) */
.bmek-individuell { margin: -.2rem 0 0; padding: .55rem .8rem; background: #fff8d6; border-left: 4px solid #ffdd00; border-radius: 4px; font-size: .85rem; line-height: 1.45; }
.bmek-individuell a { font-weight: 700; color: inherit; text-decoration: none; text-underline-offset: 3px; }
.bmek-individuell a:hover { text-decoration: underline; text-decoration-color: #ffdd00; text-decoration-thickness: 2px; }

/* Datenanlage-Hinweise beim Upload */
.bmek-anlage { margin: -.3rem 0 .2rem; border: 1px solid var(--bmek-line); border-radius: 8px; background: #fff; font-size: .85rem; }
.bmek-anlage summary { cursor: pointer; padding: .55rem .8rem; font-weight: 700; list-style: none; }
.bmek-anlage summary::before { content: "i"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: .5rem; border-radius: 50%; background: var(--bmek-ink); color: #fff; font-size: 11px; font-weight: 800; }
.bmek-anlage summary::-webkit-details-marker { display: none; }
.bmek-anlage table { width: 100%; border-collapse: collapse; margin: 0; }
.bmek-anlage th, .bmek-anlage td { text-align: left; vertical-align: top; padding: .35rem .8rem; border-top: 1px solid #efede8; font-size: .82rem; }
.bmek-anlage th { width: 34%; color: var(--bmek-muted); font-weight: 600; }
.bmek-anlage td small { color: var(--bmek-muted); }
.bmek-anlage__links { margin: .5rem .8rem .3rem !important; font-size: .82rem; }
.bmek-anlage__links a { font-weight: 700; color: inherit; text-decoration: none; text-underline-offset: 3px; }
.bmek-anlage__links a:hover { text-decoration: underline; text-decoration-color: #ffdd00; text-decoration-thickness: 2px; }
.bmek-anlage > small { display: block; margin: 0 .8rem .6rem; color: var(--bmek-muted); }
.bmek.is-designed .bmek-anlage { display: none; }

/* Musterbestellung: links Anschrift (Karte), rechts Muster als Bilder */
.bmek-muster { --m-line: #e1ded8; --m-ink: #2b2a29; --m-gelb: #ffdd00; }
.bmek-muster__layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.bmek-muster__karte { background: #fff; border: 1px solid var(--m-line); border-radius: 16px; padding: 26px 26px 22px; box-shadow: 0 18px 40px -30px rgba(0,0,0,.35); }
.bmek-muster__karte h2, .bmek-muster__wahl legend { font-size: 1.15rem; font-weight: 800; margin: 0 0 16px; padding: 0; color: var(--m-ink); }
.bmek-muster__felder { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-bottom: 16px; }
.bmek-muster__felder label { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; font-weight: 700; color: #5c5a58; }
.bmek-muster__felder label.is-breit { grid-column: 1 / -1; }
.bmek-muster__felder small { font-weight: 500; color: #9a9792; }
.bmek-muster input[type=text], .bmek-muster input[type=email], .bmek-muster input[type=tel], .bmek-muster select, .bmek-muster textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--m-line); border-radius: 10px; font: inherit; font-size: .95rem; font-weight: 500; color: var(--m-ink); background: #f8f7f4; transition: border-color .15s, background .15s; }
.bmek-muster input:focus, .bmek-muster select:focus, .bmek-muster textarea:focus { outline: none; border-color: var(--m-ink); background: #fff; box-shadow: 0 0 0 3px rgba(255,221,0,.45); }
.bmek-muster abbr { color: #e3120b; text-decoration: none; }
.bmek-muster__ds { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; line-height: 1.45; color: #5c5a58; margin: 0 0 18px; }
.bmek-muster__ds input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--m-ink); }
.bmek-muster__ds a { font-weight: 700; color: inherit; text-decoration: none; text-underline-offset: 3px; }
.bmek-muster__ds a:hover { text-decoration: underline; text-decoration-color: #ffdd00; text-decoration-thickness: 2px; }
.bmek-muster__btn { width: 100%; background: var(--m-ink) !important; color: #fff !important; border-radius: 40px !important; padding: 14px 20px !important; font-weight: 800 !important; font-size: 1rem !important; }
.bmek-muster__btn:hover { background: #000 !important; }
.bmek-muster__btn span { color: var(--m-gelb); }
.bmek-muster__wahl { border: 0; padding: 0; margin: 0; min-width: 0; position: sticky; top: 24px; }
.bmek-muster__alle { display: inline-flex; gap: 8px; align-items: center; font-size: .85rem; font-weight: 700; margin: 14px 0 0; cursor: pointer; }
.bmek-muster__alle input { width: 17px; height: 17px; accent-color: var(--m-ink); margin: 0; }
.bmek-muster__bilder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bmek-muster__bild { position: relative; display: block; border-radius: 14px; overflow: hidden; background: #fff; border: 2px solid var(--m-line); cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.bmek-muster__bild img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.75) brightness(.97); transition: filter .2s; }
.bmek-muster__bild span { display: block; padding: 9px 12px 10px; font-size: .88rem; font-weight: 800; color: #2b2a29; }
.bmek-muster__bild input { position: absolute; opacity: 0; pointer-events: none; }
.bmek-muster__bild::after { content: ""; position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: inset 0 0 0 2px var(--m-line); }
.bmek-muster__bild:has(input:checked) { border-color: var(--m-ink); box-shadow: 0 10px 22px -16px rgba(0,0,0,.6); }
.bmek-muster__bild:has(input:checked) img { filter: none; }
.bmek-muster__bild:has(input:checked) span { color: var(--m-ink); }
.bmek-muster__bild:has(input:checked)::after { content: "\2713"; display: grid; place-items: center; background: var(--m-gelb); color: var(--m-ink); font-weight: 900; font-size: 14px; box-shadow: 0 0 0 2px var(--m-ink); }
.bmek-muster__bild:hover { transform: translateY(-2px); }
.bmek-muster__bild:has(input:focus-visible) { outline: 3px solid var(--m-gelb); outline-offset: 2px; }
.bmek-muster__hp { position: absolute !important; left: -9999px; }
.bmek-muster__ok { background: #e7f5ea; border-left: 4px solid #2e9e4f; padding: 1rem 1.2rem; border-radius: 8px; }
.bmek-muster__fehler { background: #fdecea; border-left: 4px solid #e3120b; padding: .8rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
@media (max-width: 900px) { .bmek-muster__layout { grid-template-columns: 1fr; } .bmek-muster__wahl { position: static; order: -1; } }
@media (max-width: 520px) { .bmek-muster__felder { grid-template-columns: 1fr; } .bmek-muster__karte { padding: 20px 16px; } }
#bmek { scroll-margin-top: 110px; }

/* Upload-Ablagefläche (wie bm-artprint, etwas flacher) */
.bmek-drop { position: relative; display: grid; justify-items: center; gap: 2px; padding: 14px 16px 13px; border: 2px dashed #d6d1c6; border-radius: 10px; background: #fff; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.bmek-drop:hover, .bmek-drop.is-over { border-color: var(--bmek-ink); background: #fffbe6; }
.bmek-drop.has-files { border-style: solid; border-color: #2e8b57; background: #f3faf5; }
.bmek-drop input { position: absolute; inset: auto; width: 1px; height: 1px; opacity: 0; }
.bmek-drop svg { width: 28px; height: 28px; color: var(--bmek-ink); background: var(--bmek-accent, #ffdd00); border-radius: 50%; padding: 5px; margin-bottom: 2px; }
.bmek-drop strong { font-size: 14.5px; }
.bmek-drop span { font-size: 12.5px; color: var(--bmek-muted); }
.bmek-drop:focus-within { outline: 2px solid var(--bmek-ink); outline-offset: 2px; }
.bmek-drop__liste { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; }
.bmek-drop__liste li::before { content: "\2713"; color: #2e8b57; font-weight: 800; margin-right: 6px; }
.bmek-muster__frei { margin: -.4rem 0 .8rem; font-size: .9rem; color: var(--bmek-muted); }
.bmek-tabelle-menge { display: block; color: #2e8b57; font-weight: 700; }
input[name="bmek[qty]"][readonly] { background: #f3f2ee; }
