/* HOD Stickerei Konfigurator v0.2.30 – nur auf aktivierten Produkten geladen */
.hod-stickerei{clear:both;margin:24px 0 28px;padding:clamp(16px,2vw,30px);border:1px solid #e0e6e4;border-radius:18px;background:#fff;color:#263832;max-width:100%;font-family:inherit;box-shadow:0 8px 32px rgba(23,54,43,.035)}
.hod-stickerei *{box-sizing:border-box}
.hod-stickerei__header{margin-bottom:22px}
.hod-stickerei__eyebrow{display:block;color:#72837b;font-size:.68rem;font-weight:700;letter-spacing:.11em;margin-bottom:5px}
.hod-stickerei__header h3{margin:0 0 7px!important;font-size:clamp(1.36rem,2.2vw,2rem)!important;font-weight:650;line-height:1.25;color:#203b30}
.hod-stickerei__header p{margin:0!important;color:#68766d;font-size:.94rem}
.hod-stickerei__layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(270px,1fr);align-items:start;gap:clamp(16px,2vw,36px)}
.hod-stickerei__fields{min-width:0;padding:2px 0}
.hod-stickerei__field{margin:0 0 22px!important;padding:0;border:0;min-width:0}
.hod-stickerei__field>label,.hod-stickerei__field>legend{display:block;margin:0 0 9px;padding:0;font-size:1.03rem;font-weight:660;color:#203b30}
.hod-stickerei__step{font-size:.72rem;color:#9a8e6c;font-weight:600;margin-right:8px}
.hod-stickerei__subheading{font-size:.78rem;margin:0 0 8px!important;color:#66796e}
.hod-stickerei__field input[type=text],.hod-stickerei__field select{display:block;width:100%;min-height:48px;margin:0;padding:11px 12px;border:1px solid #cbd5d0;border-radius:10px;background:#fff;color:#24372f;font-size:16px;line-height:1.4;box-shadow:none}
.hod-stickerei :is(input,select,button):focus-visible{outline:2px solid #1a6551;outline-offset:2px}
.hod-stickerei__help{display:block;margin:5px 0 0!important;color:#75857e;font-size:.76rem;line-height:1.5}
.hod-stickerei__font-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.hod-stickerei__font-card{display:flex;position:relative;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:95px;padding:9px 6px;border:1px solid #dce2de;border-radius:11px;background:#fff;cursor:pointer;text-align:center;font-weight:400}
.hod-stickerei__font-card:has(input:checked){background:#ecf5ef;border:2px solid #33674e;padding:8px 5px}
.hod-stickerei__font-card input{position:absolute;opacity:0;top:10px;left:10px;width:20px;height:20px;pointer-events:none}
.hod-stickerei__font-card:has(input:focus-visible){outline:2px solid #1a6551;outline-offset:2px}
.hod-stickerei__font-sample{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#263b31;font-size:clamp(16px,1.65vw,24px);line-height:1.25;font-weight:600}
.hod-stickerei__font-name{font-size:.7rem;line-height:1.3;color:#697b70;overflow-wrap:anywhere}
.hod-stickerei__swatches{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.hod-stickerei__swatch-label{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;min-width:0;padding:8px 3px 5px;border:1px solid transparent;border-radius:9px;cursor:pointer;position:relative;font-weight:400}
.hod-stickerei__swatch-label:has(input:checked){background:#eff5f1;border-color:#9ab6a6}
.hod-stickerei__swatch-label input{position:absolute;opacity:0;left:50%;top:13px;width:20px;height:20px;pointer-events:none}
.hod-stickerei__swatch{width:33px;height:33px;border:1px solid #a8afa7;border-radius:50%;background:var(--hod-swatch);display:block;box-shadow:inset 0 0 0 2px rgba(255,255,255,.16)}
.hod-stickerei__swatch-label:has(input:checked) .hod-stickerei__swatch{outline:2px solid #315c46;outline-offset:3px}
.hod-stickerei__swatch-label:has(input:focus-visible){outline:2px solid #1a6551;outline-offset:2px}
.hod-stickerei__swatch-name{text-align:center;font-size:.69rem;line-height:1.25;overflow-wrap:anywhere;color:#44564a}
.hod-stickerei__price{margin-top:28px;padding:22px 24px;border:1px solid #d7e5dc;border-radius:14px;background:#f0f6f2;font-size:.9rem;line-height:1.5}
.hod-stickerei__price [hidden]{display:none!important}
.hod-stickerei__price-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.hod-stickerei__price-grid>div+div{border-left:1px solid #cfdfd4;padding-left:24px}
.hod-stickerei__price-label{display:block;color:#355545;font-weight:600}
.hod-stickerei__price-amount{display:flex;align-items:baseline;flex-wrap:wrap;gap:10px;margin:5px 0}
.hod-stickerei__price-amount strong{font-size:clamp(1.4rem,2vw,1.9rem);color:#194e37;line-height:1.25}
.hod-stickerei__price-amount del{color:#758279;font-size:.95rem}
.hod-stickerei__price-caption{display:block;font-size:.78rem;color:#576b5e}
.hod-stickerei__purchase{display:grid;gap:22px;align-items:center;text-align:left}
.hod-stickerei__price-grid,.hod-stickerei__cart-actions{min-width:0}
.hod-stickerei__quantity-label{display:block;margin:0 0 7px;font-size:.8rem;font-weight:600;color:#355545}
.hod-stickerei__cart-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;text-align:left}
.hod-stickerei .hod-stickerei__cart-controls .quantity{display:flex;align-items:center;flex:0 0 auto;float:none!important;margin:0!important;max-width:100%}
.hod-stickerei .hod-stickerei__cart-controls input.qty,.hod-stickerei .hod-stickerei__cart-controls input[name=quantity]{box-sizing:border-box;float:none!important;width:4.25rem!important;min-width:0;max-width:100%;height:46px;margin:0!important;padding:8px 4px;border:1px solid #bdcfc3;border-radius:8px;background:#fff;color:#194e37;font:inherit;text-align:center}
.hod-stickerei .hod-stickerei__cart-controls .quantity .minus,.hod-stickerei .hod-stickerei__cart-controls .quantity .plus{box-sizing:border-box;float:none;min-width:28px;height:46px;margin:0;padding:0 7px;border:1px solid #bdcfc3;background:#fff;color:#194e37;font:inherit}
.hod-stickerei .hod-stickerei__cart-controls .single_add_to_cart_button{box-sizing:border-box;display:inline-flex!important;align-items:center;justify-content:center;flex:1 1 180px;float:none!important;width:auto!important;max-width:100%;min-width:0;min-height:46px;margin:0!important;padding:12px 18px!important;border:1px solid #194e37!important;border-radius:9px!important;background:#194e37!important;background-image:none!important;color:#fff!important;font-size:.95rem;font-weight:700;line-height:1.3;text-align:center;text-transform:none!important;letter-spacing:0;white-space:normal;cursor:pointer}
.hod-stickerei .hod-stickerei__cart-controls .single_add_to_cart_button:hover{background:#113c29!important;border-color:#113c29!important}
.hod-stickerei .hod-stickerei__cart-controls .single_add_to_cart_button:focus-visible,.hod-stickerei .hod-stickerei__cart-controls input:focus-visible{outline:2px solid #194e37;outline-offset:3px}
.hod-stickerei .hod-stickerei__cart-controls .single_add_to_cart_button:disabled,.hod-stickerei .hod-stickerei__cart-controls .single_add_to_cart_button.disabled{opacity:.5;cursor:not-allowed}
@container hod-stickerei (min-width:900px){.hod-stickerei--integrated-cart .hod-stickerei__purchase{grid-template-columns:minmax(0,1fr) minmax(260px,320px)}.hod-stickerei--integrated-cart .hod-stickerei__cart-actions{padding-left:22px;border-left:1px solid #cfdfd4}}
.hod-stickerei__price .hod-stickerei__price-breakdown{margin:15px 0 0;font-size:.8rem;color:#576b5e}
.hod-stickerei__price .hod-stickerei__discount-active{margin:12px 0 0;font-weight:600;color:#195b3e}
.hod-stickerei__price .hod-stickerei__discount-next{margin:10px 0 0;color:#355545}
.hod-stickerei__discount-details{margin-top:12px;font-size:.84rem}
.hod-stickerei__discount-details summary{cursor:pointer;color:#245f43;text-decoration:underline;text-underline-offset:3px}
.hod-stickerei__discount-details summary:focus-visible{outline:2px solid #245f43;outline-offset:4px}
.hod-stickerei__discount-details p{max-width:640px;margin:12px 0!important;font-size:.8rem;color:#576b5e}
.hod-stickerei__discount-details table{width:100%;max-width:480px;border-collapse:collapse;margin:10px 0 0;text-align:left;background:transparent}
.hod-stickerei__discount-details th,.hod-stickerei__discount-details td{padding:7px 10px;border:0;border-bottom:1px solid #d6e3da;font-size:.85rem}
.hod-stickerei__discount-details tr.is-active{background:#dcecdf;font-weight:700}
@media(max-width:600px){.hod-stickerei__price{padding:17px 14px;margin-top:24px}.hod-stickerei__price-grid{gap:12px}.hod-stickerei__price-grid>div+div{padding-left:12px}.hod-stickerei__price-label{font-size:.8rem}.hod-stickerei__price-amount{gap:3px 7px}.hod-stickerei__price-amount strong{font-size:1.35rem}.hod-stickerei__price-caption{font-size:.72rem}}
.hod-stickerei__preview-col{min-width:0;position:sticky;top:24px}
.hod-stickerei__preview-title{display:flex;align-items:center;justify-content:space-between;font-size:.95rem;font-weight:700;margin-bottom:11px}
.hod-stickerei__preview-title span{border-radius:99px;background:#edf6ef;color:#356a4d;padding:4px 9px;font-size:.67rem;font-weight:750;letter-spacing:.07em}
.hod-stickerei__stage{position:relative;isolation:isolate;overflow:hidden;width:100%;aspect-ratio:1/1.06;min-height:350px;max-height:690px;display:block;border:1px solid #e3e4e0;border-radius:14px;background:#fff}
.hod-stickerei__scene{position:absolute;inset:0;transform-origin:50% 50%;transition:transform .16s ease}
.hod-stickerei__towel{position:absolute;width:80%;height:86%;left:10%;top:7%;z-index:0;border-radius:5px 5px 10px 10px;background:repeating-linear-gradient(0deg,rgba(255,255,255,.055) 0px,rgba(255,255,255,.055) 1px,rgba(0,0,0,.026) 2px,rgba(0,0,0,.026) 4px),linear-gradient(135deg,#fafafa 0%,#e7e8eb 48%,#d4d7da 100%);box-shadow:5px 9px 19px rgba(31,29,24,.2),inset 0 2px 7px #fff}
.hod-stickerei__towel::before{content:"";position:absolute;left:0;right:0;bottom:12%;height:7%;border-top:2px solid rgba(120,123,128,.16);border-bottom:2px solid rgba(120,123,128,.16);background:repeating-linear-gradient(90deg,rgba(100,100,100,.045) 0 2px,transparent 2px 5px)}
.hod-stickerei__cap-mockup,.hod-stickerei__textile-mockup{display:none}
.hod-stickerei--cap:not(.hod-stickerei--photo) .hod-stickerei__towel,.hod-stickerei--textile:not(.hod-stickerei--photo) .hod-stickerei__towel{display:none}
.hod-stickerei--cap:not(.hod-stickerei--photo) .hod-stickerei__cap-mockup{display:block;position:absolute;z-index:0;left:17%;top:26%;width:66%;height:42%;border-radius:65% 65% 23% 23%;background:linear-gradient(145deg,#444a4c,#202528 68%,#14191b);box-shadow:inset 5px 7px 12px #858d8f,0 10px 15px #84786b}
.hod-stickerei--cap:not(.hod-stickerei--photo) .hod-stickerei__cap-mockup:after{content:"";position:absolute;top:85%;left:2%;width:96%;height:32%;border-radius:8% 8% 75% 75%;background:linear-gradient(#202427,#0c1012);transform:perspective(90px) rotateX(33deg)}
.hod-stickerei--textile:not(.hod-stickerei--photo) .hod-stickerei__textile-mockup{display:block;position:absolute;z-index:0;left:23%;top:7%;width:54%;height:85%;background:linear-gradient(110deg,#e3e4e5,#f5f6f7 40%,#dadde0);clip-path:polygon(26% 0,40% 5%,60% 5%,74% 0,100% 13%,90% 39%,78% 34%,78% 100%,22% 100%,22% 34%,10% 39%,0 13%);filter:drop-shadow(4px 8px 5px #aaa)}
.hod-stickerei--photo .hod-stickerei__towel,.hod-stickerei--photo .hod-stickerei__cap-mockup,.hod-stickerei--photo .hod-stickerei__textile-mockup{display:none!important}
.hod-stickerei__product-image{position:absolute;inset:0;z-index:0;width:100%;height:100%!important;max-height:none!important;object-fit:contain;object-position:center;pointer-events:none}
.hod-stickerei__product-image[hidden]{display:none!important}
.hod-stickerei__workarea{position:absolute;z-index:1;pointer-events:none}
.hod-stickerei__thread{position:absolute;z-index:1;display:block;max-width:100%;text-align:center;pointer-events:none;transform:translate(-50%,-50%);filter:drop-shadow(0 1px 1px rgba(0,0,0,.2));line-height:1.18;white-space:nowrap;color:var(--hod-thread-color,#c49a39)}
.hod-stickerei__thread span{display:block;white-space:nowrap;font-weight:600;letter-spacing:.02em;color:var(--hod-thread-color,#c49a39);-webkit-text-fill-color:currentColor;text-shadow:0 .5px .5px rgba(0,0,0,.2)}
/* v0.2.5: Schriftmaske und feine, lokal ausgerichtete Satinfaeden.
   Der originale Text bleibt fuer Schriftmessung und Barrierefreiheit erhalten. */
.hod-stickerei__thread{filter:none}
.hod-stickerei__thread-canvas{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:none!important;pointer-events:none;filter:drop-shadow(0 .65px .45px rgba(0,0,0,.32));display:none}
.hod-stickerei__thread[data-thread-ready="true"] span{color:transparent;-webkit-text-fill-color:transparent;text-shadow:none}
.hod-stickerei__thread[data-thread-ready="true"] .hod-stickerei__thread-canvas{display:block}
.hod-stickerei__thread[data-font="italic"] span{font-style:italic}
.hod-stickerei__thread--bottom-right{left:80%;top:78%}
.hod-stickerei__thread--bottom-center{left:50%;top:78%}
.hod-stickerei__thread--center{left:50%;top:44%}
.hod-stickerei__error{margin:12px 0 0!important;padding:12px;border:1px solid #da9696;border-radius:7px;background:#fff3f3;color:#981b1b;font-size:.88rem}
.hod-stickerei__error[hidden]{display:none!important}
/* v0.2.30: Galerie und Produktinfos oben, breiter Konfigurator darunter.
   Die echten Galerie- und Formular-Elemente bleiben samt Ereignissen erhalten. */
body.single-product.hod-stickerei-wide-product .hod-stickerei-product-summary {
  float:none!important;clear:both!important;flex:0 0 100%!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  grid-column:1 / -1!important;margin-left:0!important;margin-right:0!important;
  container:hod-product-summary / inline-size;
}
.hod-stickerei-product-intro{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;align-items:start;margin-bottom:26px;text-align:left}
.hod-stickerei-product-intro>.hod-stickerei-product-gallery{display:block!important;float:none!important;clear:none!important;flex:none!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;grid-column:auto}
.hod-stickerei-product-details{min-width:0;max-width:100%;text-align:left;font-size:.95rem;line-height:1.55}
.hod-stickerei-product-details .product-title,.hod-stickerei-product-details .price-wrapper,.hod-stickerei-product-details .price,.hod-stickerei-product-details .woocommerce-product-details__short-description,.hod-stickerei-product-details .product-short-description{text-align:left}
.hod-stickerei-product-details .product-title{font-size:clamp(1.4rem,2vw,1.9rem);line-height:1.25}
.hod-stickerei-product-details .is-divider{margin-left:0;margin-right:auto}
.hod-stickerei-product-details .woocommerce-product-details__short-description,.hod-stickerei-product-details .product-short-description{max-width:44rem;margin:16px 0;font-size:.95rem;line-height:1.55}
.hod-stickerei-product-details .woocommerce-product-details__short-description p,.hod-stickerei-product-details .product-short-description p{margin:0 0 .75em;font-size:inherit;line-height:inherit}
.hod-stickerei-product-details .woocommerce-product-details__short-description ul,.hod-stickerei-product-details .product-short-description ul{margin:0 0 .85em;padding-left:1.25em;list-style-position:outside;text-align:left}
.hod-stickerei-product-details .woocommerce-product-details__short-description li,.hod-stickerei-product-details .product-short-description li{margin:0 0 .35em;padding-left:0;font-size:inherit;line-height:inherit;text-align:left}
@container hod-product-summary (min-width:760px){.hod-stickerei-product-intro{grid-template-columns:minmax(0,.95fr) minmax(0,1fr);gap:clamp(28px,3vw,48px)}}
body.single-product.hod-stickerei-wide-product div.product .summary form.cart,
body.single-product.hod-stickerei-wide-product div.product .entry-summary form.cart,
body.single-product.hod-stickerei-wide-product div.product form.cart {
  display:block;max-width:none!important;width:100%!important;min-width:0!important;
}
body.single-product.hod-stickerei-wide-product div.product .summary form.cart .hod-stickerei,
body.single-product.hod-stickerei-wide-product div.product .entry-summary form.cart .hod-stickerei {
  max-width:none!important;width:100%;margin:28px 0 30px;
}
/* Der Konfigurator wird erst ab echter verfügbarer Breite zweispaltig.
   Bei engem Shop-Theme stapeln wir die Spalten, statt Mini-Vorschauen zu erzeugen. */
.hod-stickerei{container-type:inline-size;container-name:hod-stickerei;box-sizing:border-box;width:100%;min-width:0}
.hod-stickerei__layout{grid-template-columns:minmax(0,1fr);gap:28px}
.hod-stickerei__header{max-width:850px;margin:0 auto 32px;text-align:center}
.hod-stickerei__header h3{font-size:clamp(1.65rem,2.7vw,2.55rem)!important}
.hod-stickerei__header p{font-size:1.06rem}
.hod-stickerei__product-group{display:inline-block;margin-left:9px;color:#335948;font-weight:700;letter-spacing:.02em}
.hod-stickerei__field>label,.hod-stickerei__field>legend{font-size:1.09rem}
.hod-stickerei__field input[type=text],.hod-stickerei__field select{min-height:54px;font-size:1rem}
.hod-stickerei__stage{width:100%;aspect-ratio:1/1;max-height:780px;min-height:370px}
.hod-stickerei__preview-title{font-size:1.1rem}
.hod-stickerei__font-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hod-stickerei__font-card{min-height:113px;padding:13px 10px;gap:9px}
.hod-stickerei__font-card:has(input:checked){padding:12px 9px}
.hod-stickerei__font-sample{font-size:clamp(19px,2vw,29px);font-weight:550;overflow:visible;text-overflow:clip;white-space:nowrap;transform-origin:center;max-width:none;min-width:0}
.hod-stickerei__font-name{font-size:.79rem}
.hod-stickerei__swatches{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.hod-stickerei__swatch{width:39px;height:39px}
.hod-stickerei__swatch-name{font-size:.78rem}
@container hod-stickerei (min-width:860px){
  .hod-stickerei__layout{grid-template-columns:minmax(0,1.18fr) minmax(370px,.92fr);gap:clamp(24px,3.3vw,58px)}
  .hod-stickerei__stage{min-height:540px}
  .hod-stickerei__preview-col{position:sticky;top:95px}
}
@container hod-stickerei (min-width:1220px){
  .hod-stickerei__layout{grid-template-columns:minmax(0,1.27fr) minmax(455px,.94fr)}
  .hod-stickerei__font-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hod-stickerei__font-card{min-height:122px}
}
@container hod-stickerei (max-width:859px){
  .hod-stickerei__layout{grid-template-columns:1fr}
  .hod-stickerei__preview-col{position:static}
  .hod-stickerei__stage{aspect-ratio:1/.93;max-height:650px}
}
@media(max-width:600px){
  .hod-stickerei{padding:16px;margin:18px 0}
  .hod-stickerei__header{margin-bottom:20px}
  .hod-stickerei__stage{min-height:260px;max-height:490px}
  .hod-stickerei__font-grid{gap:9px}
  .hod-stickerei__font-card{min-height:95px;padding:10px 7px}
  .hod-stickerei__font-card:has(input:checked){padding:9px 6px}
  .hod-stickerei__font-sample{font-size:21px}
  .hod-stickerei__swatches{gap:5px}
  .hod-stickerei__swatch{width:32px;height:32px}
  .hod-stickerei__swatch-name{font-size:.7rem}
}
@media(max-width:360px){.hod-stickerei__swatches{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Schriftende in der rechten Stickposition wirklich rechts ausrichten. */
.hod-stickerei__thread--bottom-right{left:92%;top:78%;transform:translate(-100%,-50%)}

/* v0.2.2 – Verschiebbare Beschriftung nur innerhalb der vorgegebenen Vorschauflaeche. */
.hod-stickerei__workarea{pointer-events:none}
.hod-stickerei__thread{pointer-events:auto;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;padding:5px 7px;border:1px dashed transparent;border-radius:5px;min-height:36px;min-width:36px;display:flex;align-items:center;justify-content:center}
.hod-stickerei__thread:hover,.hod-stickerei__thread:focus-visible,.hod-stickerei__thread--dragging{outline:none;border-color:rgba(255,255,255,.9);background:rgba(255,255,255,.1);box-shadow:0 0 0 1px rgba(13,67,44,.48);cursor:grabbing}
.hod-stickerei__thread span{pointer-events:none;flex-shrink:0}
.hod-stickerei__thread--bottom-right,.hod-stickerei__thread--bottom-center,.hod-stickerei__thread--center,.hod-stickerei__thread--custom{transform:translate(-50%,-50%)}

.hod-stickerei--positioning .hod-stickerei__workarea{outline:2px dashed rgba(25,91,65,.76);outline-offset:-2px;background:rgba(255,255,255,.075)}

/* v0.2.7: Gut sichtbare, mitlaufende Masse direkt an der Produktvorschau. */
.hod-stickerei__dimensions{margin:12px 0 8px;padding:13px 16px;border:1px solid #d4e2da;border-radius:12px;background:#f4f8f5;color:#244335;text-align:left}
.hod-stickerei__dimensions[hidden]{display:none!important}
.hod-stickerei__dimensions-title{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.8rem;font-weight:650}
.hod-stickerei__dimensions-title>span{font-size:.72rem;font-weight:400;color:#677c70}
.hod-stickerei__dimensions-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:7px}
.hod-stickerei__dimensions-values>div{display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-width:0}
.hod-stickerei__dimensions-values>div+div{border-left:1px solid #d4e2da;padding-left:16px}
.hod-stickerei__dimensions-values span{font-size:.78rem;color:#60766a}
.hod-stickerei__dimensions-values strong{font-size:1.16rem;line-height:1.35;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums;color:#244e39}
.hod-stickerei__dimensions p{margin:7px 0 0!important;font-size:.76rem;line-height:1.4;color:#60766a}
@media(max-width:600px){.hod-stickerei__dimensions{padding:11px 12px}.hod-stickerei__dimensions-values{gap:10px}.hod-stickerei__dimensions-values>div{gap:5px}.hod-stickerei__dimensions-values>div+div{padding-left:10px}.hod-stickerei__dimensions-values strong{font-size:1.05rem}}

/* v0.2.8: Optionale Garnkontur; der Greifbereich schliesst die Kontur ein. */
.hod-stickerei__thread{padding:calc(5px + var(--hod-outline-px,0px) + var(--hod-overhang-top,0px)) calc(7px + var(--hod-outline-px,0px) + var(--hod-overhang-right,0px)) calc(5px + var(--hod-outline-px,0px) + var(--hod-overhang-bottom,0px)) calc(7px + var(--hod-outline-px,0px) + var(--hod-overhang-left,0px))}
.hod-stickerei__thread[data-outline="true"]:not([data-thread-ready="true"]) span{-webkit-text-stroke:calc(2 * var(--hod-outline-px,0px)) var(--hod-outline-color,#242424);paint-order:stroke fill}
/* v0.2.33: Sichtbare Glyphen statt der fontabhaengigen Zeilenbox greifen. */
.hod-stickerei__thread[data-ink-bounds="true"]{box-sizing:border-box;display:block;padding:0;min-width:0;min-height:0}
.hod-stickerei__thread[data-ink-bounds="true"] span{position:absolute;width:max-content;max-width:none;line-height:1.18}
.hod-stickerei__thread[data-ink-bounds="true"]::after{content:"";position:absolute;left:50%;top:50%;width:100%;height:100%;min-width:36px;min-height:36px;transform:translate(-50%,-50%)}
.hod-stickerei__mockup-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(85px,1fr));gap:10px}
.hod-stickerei__mockup-card{display:block;position:relative;min-width:0;margin:0!important;cursor:pointer}
.hod-stickerei__mockup-card input{position:absolute;opacity:0;width:20px;height:20px;top:8px;left:8px}
.hod-stickerei__mockup-card-content{display:flex;flex-direction:column;align-items:center;gap:7px;height:100%;box-sizing:border-box;padding:7px;border:2px solid #dce2de;border-radius:10px;background:#fff;text-align:center;font-size:13px;font-weight:500;line-height:1.3;overflow-wrap:anywhere}
.hod-stickerei__mockup-card-content img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:5px}
.hod-stickerei__mockup-card input:checked + .hod-stickerei__mockup-card-content{border-color:#33674e;background:#ecf5ef}
.hod-stickerei__mockup-card input:focus-visible + .hod-stickerei__mockup-card-content{outline:2px solid #1a6551;outline-offset:2px}
.hod-stickerei__view-switch{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.hod-stickerei__view-switch[hidden],.hod-stickerei__overview-scene[hidden],.hod-stickerei__view-status[hidden]{display:none!important}
.hod-stickerei__view-switch button{flex:1 1 130px;min-width:0;max-width:100%;min-height:44px;padding:10px 12px;border:1px solid #cbd8d0;border-radius:9px;background:#fff;color:#284c3a;font:inherit;font-size:.88rem;font-weight:600;white-space:normal;cursor:pointer}
.hod-stickerei__view-switch button[aria-pressed="true"]{background:#eaf3ed;border:2px solid #33674e;padding:9px 11px}
.hod-stickerei__view-switch button:focus-visible{outline:2px solid #1a6551;outline-offset:2px}
.hod-stickerei__view-switch button:disabled{opacity:.45;cursor:default}
.hod-stickerei__overview-scene{position:absolute;inset:0;transform-origin:50% 50%;transition:transform .16s ease}
.hod-stickerei__overview-scene .hod-stickerei__product-image{display:block!important}
.hod-stickerei__overview-thread{pointer-events:none!important;max-width:none!important;min-width:0;min-height:0;transform-origin:50% 50%;cursor:default!important;border-color:transparent!important;box-shadow:none!important;background:transparent!important}
.hod-stickerei__view-status{font-size:.78rem;color:#68766d;line-height:1.4;margin:8px 0!important}
.hod-stickerei.hod-stickerei--square-preview .hod-stickerei__stage{aspect-ratio:1;min-height:0;max-height:none}

/* v0.2.18: Größe/Platzierung gemeinsam; Kontur als kompakte Zusatzoption. */
.hod-stickerei .hod-stickerei__sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.hod-stickerei .hod-stickerei__geometry{margin-bottom:16px!important;text-align:left}
.hod-stickerei__geometry>legend{margin-bottom:6px}
.hod-stickerei__compact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr));gap:12px;align-items:start}
.hod-stickerei__compact-control{position:relative;min-width:0;text-align:left}
.hod-stickerei__compact-label{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:32px;margin:0 0 4px;padding-right:36px}
.hod-stickerei__compact-label>label,.hod-stickerei__compact-label>span,.hod-stickerei .hod-stickerei__compact-control-label{font-size:.85rem;font-weight:650;color:#304e3d;line-height:1.35;text-align:left}
.hod-stickerei__geometry-grid>.hod-stickerei__contour-col>.hod-stickerei__compact-label{padding-right:0}
.hod-stickerei .hod-stickerei__geometry-grid .hod-stickerei__contour--compact{padding:5px 9px!important;margin:0!important;min-height:48px}
.hod-stickerei .hod-stickerei__geometry-grid .hod-stickerei__contour-heading{padding-right:24px}
.hod-stickerei .hod-stickerei__geometry-grid .hod-stickerei__contour-toggle{min-height:36px;font-size:.85rem;gap:7px}
.hod-stickerei .hod-stickerei__geometry-grid .hod-stickerei__contour--compact>.hod-stickerei__info>summary{top:7px;right:4px;width:24px;height:32px}
.hod-stickerei .hod-stickerei__contour-col [data-hod-contour-options]{grid-template-columns:minmax(0,1fr)}
.hod-stickerei .hod-stickerei__compact-control-label{display:flex;align-items:center;min-height:32px;margin:0 0 4px}
.hod-stickerei .hod-stickerei__compact-control select{min-height:48px;padding:10px 12px;font-size:16px;text-align:left}
.hod-stickerei .hod-stickerei__geometry>.hod-stickerei__help{margin-top:7px!important;line-height:1.4}
.hod-stickerei .hod-stickerei__contour--compact{position:relative;padding:10px 12px!important;margin-bottom:4px!important;border:1px solid #d4e2da;border-radius:10px;background:#f6f9f6;text-align:left}
.hod-stickerei__contour-heading{padding-right:36px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.hod-stickerei .hod-stickerei__contour-toggle{display:flex;align-items:center;gap:9px;min-height:40px;margin:0!important;cursor:pointer;font-size:.9rem;font-weight:500;line-height:1.45;text-align:left}
.hod-stickerei__contour-toggle input{flex:0 0 auto;width:20px;height:20px;margin:0;accent-color:#315f46}
.hod-stickerei__contour-toggle strong{display:inline-block;color:#315f46;font-size:.8rem;font-weight:600}
.hod-stickerei [data-hod-contour-options]{margin-top:9px;padding-top:9px;border-top:1px solid #dfe8e1}
.hod-stickerei [data-hod-contour-options][hidden]{display:none!important}
.hod-stickerei .hod-stickerei__contour-width-label{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:32px;margin:0 0 4px!important;font-size:.85rem;font-weight:650;color:#304e3d;line-height:1.35}
.hod-stickerei__contour-width-label output{white-space:nowrap;color:#315f46;font-size:.9rem;font-weight:700}
.hod-stickerei input[name=hod_stickerei_contour_width_mm]{display:block;box-sizing:border-box;width:100%;height:48px;margin:0;accent-color:#315f46;cursor:pointer;touch-action:pan-y}
.hod-stickerei__range-labels{display:flex;justify-content:space-between;gap:10px;margin-top:0;font-size:.7rem;color:#626e67;line-height:1.3}
.hod-stickerei__info{position:static;margin:0;padding:0;text-align:left}
.hod-stickerei__info>summary{position:absolute;right:0;top:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:32px;height:32px;min-height:32px;margin:0;padding:4px;border:0;border-radius:50%;background:transparent;cursor:pointer;list-style:none;color:#496b56;font:inherit;text-transform:none}
.hod-stickerei__info>summary::-webkit-details-marker{display:none}
.hod-stickerei__info>summary::marker{content:''}
.hod-stickerei__info>summary>span{display:flex;align-items:center;justify-content:center;width:20px;height:20px;border:1px solid #a8bdb0;border-radius:50%;font-size:12px;font-weight:700;line-height:1}
.hod-stickerei__info[open]>summary,.hod-stickerei__info>summary:hover{background:#e5eee7}
.hod-stickerei__info>summary:focus-visible{outline:2px solid #1a6551;outline-offset:2px}
.hod-stickerei__info-content{margin:0 0 8px;padding:11px 12px;border:1px solid #c3d3c8;border-radius:9px;background:#fff;color:#405947;font-size:.8rem;font-weight:400;line-height:1.5;text-align:left}
.hod-stickerei__contour--compact>.hod-stickerei__info>summary{top:14px;right:12px}
.hod-stickerei__contour--compact .hod-stickerei__info-content{margin:8px 0 0}
.hod-stickerei .hod-stickerei__info-content p{margin:0!important;color:inherit;font-size:inherit;line-height:inherit}
.hod-stickerei .hod-stickerei__info-content p+p{margin-top:8px!important}
@media(max-width:600px){.hod-stickerei__compact-grid{grid-template-columns:minmax(0,1fr)}.hod-stickerei .hod-stickerei__contour--compact{position:relative;padding:9px 11px!important}.hod-stickerei [data-hod-contour-options]{gap:9px}}

/* v0.2.20: Eine aufgeräumte Werkzeugzeile statt doppelter Platzierungsangaben. */
.hod-stickerei__preview-tools{container:hod-preview-tools / inline-size;position:relative;min-height:42px;margin:12px 0 0;text-align:left}
.hod-stickerei__preview-info{margin:0;padding:0}
.hod-stickerei__preview-info>summary{display:flex;align-items:center;gap:6px;box-sizing:border-box;width:calc(100% - 296px);min-height:42px;margin:0;padding:4px 0;border:0;background:transparent;color:#4d6858;cursor:pointer;list-style:none;font:inherit;font-size:.8rem;line-height:1.35;text-align:left;text-transform:none;letter-spacing:normal}
.hod-stickerei__preview-info>summary::-webkit-details-marker{display:none}
.hod-stickerei__preview-info>summary::marker{content:''}
.hod-stickerei__preview-info>summary:focus-visible{outline:2px solid #1a6551;outline-offset:2px;border-radius:5px}
.hod-stickerei__preview-info-icon{display:flex;align-items:center;justify-content:center;flex:0 0 18px;width:18px;height:18px;border:1px solid #a8bdb0;border-radius:50%;font-size:12px;font-weight:700;line-height:1}
.hod-stickerei__preview-info>summary [data-hod-view-help]{min-width:0;overflow-wrap:anywhere}
.hod-stickerei__preview-info>.hod-stickerei__info-content{margin:8px 0 0}
.hod-stickerei .hod-stickerei__zoom-buttons{flex:0 0 142px;display:grid!important;grid-template-columns:40px 60px 40px;align-items:center;gap:0!important;width:142px;box-sizing:border-box;height:42px;border:1px solid #c5d7cb;border-radius:10px;background:#fff}
.hod-stickerei .hod-stickerei__zoom-buttons>button,.hod-stickerei .hod-stickerei__zoom-buttons>output{display:grid!important;place-items:center;box-sizing:border-box;height:40px!important;min-height:40px!important;max-height:40px!important;padding:0!important;margin:0!important;font-family:inherit;font-size:18px!important;font-weight:600;line-height:1!important;letter-spacing:normal;text-align:center;text-transform:none;box-shadow:none;transform:none}
.hod-stickerei .hod-stickerei__zoom-buttons>button{width:40px!important;min-width:40px!important;max-width:40px!important;border:0!important;background:transparent!important;color:#25513f;cursor:pointer;border-radius:9px 0 0 9px!important}
.hod-stickerei .hod-stickerei__zoom-buttons>button:last-child{border-radius:0 9px 9px 0!important}
.hod-stickerei .hod-stickerei__zoom-buttons>button:disabled{opacity:.35;cursor:default}
.hod-stickerei .hod-stickerei__zoom-buttons>button:hover:not(:disabled){background:#edf5ef!important}
.hod-stickerei .hod-stickerei__zoom-buttons>output{width:60px!important;min-width:60px!important;max-width:60px!important;border:0;border-left:1px solid #dce6df;border-right:1px solid #dce6df;background:transparent;color:#25513f;font-variant-numeric:tabular-nums;white-space:nowrap;border-radius:0}
@media(max-width:360px){.hod-stickerei__preview-info>summary{font-size:12px}}

/* v0.2.21: Sichtbare Zoom-Beschriftung; schmale Vorschauen nutzen eine eigene Zeile. */
.hod-stickerei__zoom-control{position:absolute;right:0;top:0;display:flex;align-items:center;gap:10px;width:280px;max-width:100%}
.hod-stickerei__zoom-title{flex:1 1 0;min-width:0;color:#4d6858;font-size:.8rem;font-weight:400;line-height:1.35;text-align:left}
@container hod-preview-tools (max-width:460px){
 .hod-stickerei__preview-info>summary{width:100%;min-height:32px}
 .hod-stickerei__zoom-control{position:static;width:100%;margin-top:6px}
}
