/* Handmade-Etiketten-Generator · ausdrucken.eu · alle Regeln auf #ae-label-editor begrenzt */
#ae-label-editor{--ael-ink:#24364b;--ael-muted:#66788a;--ael-line:#dbe3ea;--ael-soft:#f3f6f8;--ael-brand:#1f4b67;--ael-brand2:#2f6f9b;--ael-ok:#2e7d4f;--ael-warn:#a86400;--ael-radius:12px;margin:0;font:15px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ael-ink);background:transparent;-webkit-text-size-adjust:100%}
#ae-label-editor *,#ae-label-editor *::before,#ae-label-editor *::after{box-sizing:border-box}
#ae-label-editor [hidden]{display:none!important}
#ae-label-editor button,#ae-label-editor input,#ae-label-editor select,#ae-label-editor textarea{font:inherit;color:inherit;margin:0}
#ae-label-editor .ael-grid{display:grid;grid-template-columns:minmax(290px,360px) minmax(0,1fr);gap:20px;max-width:1320px;margin:0 auto;align-items:start}
#ae-label-editor .ael-panel,#ae-label-editor .ael-stage{background:#fff;border:1px solid var(--ael-line);border-radius:16px;box-shadow:0 6px 18px rgba(31,54,79,.05)}
#ae-label-editor .ael-panel{padding:6px 16px 14px}
#ae-label-editor .ael-stage{padding:14px;position:sticky;top:8px}
@media (min-width:901px){#ae-label-editor .ael-panel{max-height:calc(100vh - 24px);overflow:auto;position:sticky;top:8px;scrollbar-width:thin}}
@media (max-width:900px){#ae-label-editor .ael-grid{grid-template-columns:1fr}#ae-label-editor .ael-stage{position:static;order:-1;padding:10px}}
/* Schritte */
#ae-label-editor details.ael-step{border-bottom:1px solid #e6ecf1;padding:10px 0}
#ae-label-editor details.ael-step:last-child{border-bottom:0}
#ae-label-editor details.ael-step>summary{cursor:pointer;font-weight:700;font-size:16px;list-style:none;display:flex;align-items:center;gap:10px;padding:4px 0;min-height:36px}
#ae-label-editor details.ael-step>summary::-webkit-details-marker{display:none}
#ae-label-editor details.ael-step>summary::after{content:"";margin-left:auto;width:9px;height:9px;border-right:2px solid #8aa0b3;border-bottom:2px solid #8aa0b3;transform:rotate(45deg);transition:transform .15s}
#ae-label-editor details.ael-step[open]>summary::after{transform:rotate(-135deg)}
#ae-label-editor .ael-num{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--ael-brand);color:#fff;font-size:13px;flex:none}
#ae-label-editor details.ael-sub{margin:10px 0 0;border:1px solid var(--ael-line);border-radius:10px;padding:0 10px}
#ae-label-editor details.ael-sub>summary{cursor:pointer;font-weight:600;font-size:13.5px;padding:9px 0;color:#3c5266}
#ae-label-editor details.ael-sub[open]{padding-bottom:10px}
/* Formulare */
#ae-label-editor label,#ae-label-editor .ael-lbl{display:block;font-size:13px;font-weight:600;margin:10px 0 4px;color:#3c5266}
#ae-label-editor input[type=text],#ae-label-editor input[type=search],#ae-label-editor input[type=number],#ae-label-editor select,#ae-label-editor textarea{width:100%;border:1px solid #c9d5df;border-radius:8px;padding:8px 10px;background:#fff;min-height:40px}
#ae-label-editor input:focus-visible,#ae-label-editor select:focus-visible,#ae-label-editor button:focus-visible,#ae-label-editor textarea:focus-visible{outline:3px solid rgba(47,111,155,.35);outline-offset:1px}
#ae-label-editor input[type=color]{width:100%;height:40px;border:1px solid #c9d5df;border-radius:8px;padding:3px;background:#fff;cursor:pointer}
#ae-label-editor input[type=range]{width:100%;accent-color:var(--ael-brand2)}
#ae-label-editor input[type=checkbox]{width:18px;height:18px;vertical-align:-3px;margin-right:6px;accent-color:var(--ael-brand2)}
#ae-label-editor .ael-check{font-weight:500;display:flex;align-items:center}
#ae-label-editor .ael-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#ae-label-editor .ael-trio{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
#ae-label-editor .ael-hint{font-size:12.5px;color:var(--ael-muted);line-height:1.5;margin:8px 0}
#ae-label-editor .ael-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #c9d5df;border-radius:9px;padding:8px 12px;background:#fff;cursor:pointer;font-weight:600;min-height:40px;line-height:1.2;text-align:center}
#ae-label-editor .ael-btn:hover{background:var(--ael-soft)}
#ae-label-editor .ael-btn:disabled{opacity:.45;cursor:default}
#ae-label-editor .ael-btn.ael-primary{background:var(--ael-brand);border-color:var(--ael-brand);color:#fff}
#ae-label-editor .ael-btn.ael-primary:hover{filter:brightness(1.08)}
#ae-label-editor .ael-btn.ael-wide{width:100%;margin-top:8px}
#ae-label-editor .ael-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
#ae-label-editor .ael-row>.ael-btn{flex:1 1 auto}
/* Formatsuche */
#ae-label-editor .ael-current{background:var(--ael-soft);border-radius:10px;padding:10px 12px;margin:8px 0;font-size:13.5px}
#ae-label-editor .ael-current b{font-size:14.5px}
#ae-label-editor .ael-badge{display:inline-block;font-size:11.5px;font-weight:700;border-radius:20px;padding:2px 8px;margin-left:4px;white-space:nowrap;vertical-align:1px}
#ae-label-editor .ael-b-hersteller{background:#e3f3e9;color:var(--ael-ok)}
#ae-label-editor .ael-b-abgeglichen{background:#e6f0f7;color:#245a80}
#ae-label-editor .ael-b-einzelquelle{background:#fff2dc;color:var(--ael-warn)}
#ae-label-editor .ael-b-pending{background:#f6e3e3;color:#9b2c2c}
#ae-label-editor .ael-b-frei{background:#eef1f4;color:#4b5d6e}
#ae-label-editor .ael-results{border:1px solid var(--ael-line);border-radius:10px;max-height:300px;overflow:auto;margin-top:6px;background:#fff}
#ae-label-editor .ael-results .ael-group{position:sticky;top:0;background:#f7f9fb;font-size:12px;font-weight:700;color:var(--ael-muted);padding:6px 10px;border-bottom:1px solid var(--ael-line);text-transform:uppercase;letter-spacing:.03em}
#ae-label-editor .ael-results button{display:flex;width:100%;text-align:left;gap:10px;align-items:center;border:0;border-bottom:1px solid #eef2f5;background:#fff;padding:8px 10px;cursor:pointer;min-height:44px}
#ae-label-editor .ael-results button:hover,#ae-label-editor .ael-results button.ael-on{background:#eef5fa}
#ae-label-editor .ael-results .ael-ico{flex:none;width:34px;height:34px;display:flex;align-items:center;justify-content:center}
#ae-label-editor .ael-results .ael-t{flex:1;min-width:0}
#ae-label-editor .ael-results .ael-t b{display:block;font-size:14px}
#ae-label-editor .ael-results .ael-t span{font-size:12.5px;color:var(--ael-muted)}
#ae-label-editor .ael-chips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
#ae-label-editor .ael-chips button{border:1px solid #c9d5df;border-radius:20px;background:#fff;padding:6px 11px;font-size:13px;cursor:pointer;min-height:34px}
#ae-label-editor .ael-chips button.ael-on{background:var(--ael-brand);border-color:var(--ael-brand);color:#fff}
/* Motive */
#ae-label-editor .ael-motifs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;max-height:250px;overflow:auto;margin:8px 0;padding:2px}
#ae-label-editor .ael-motifs button{border:1px solid #d6dfe7;border-radius:9px;background:#fff;padding:4px;font-size:11px;line-height:1.2;cursor:pointer;overflow-wrap:anywhere}
#ae-label-editor .ael-motifs button:hover{border-color:var(--ael-brand2)}
#ae-label-editor .ael-motifs button.ael-on{border:2px solid var(--ael-brand2);background:#edf5f8}
#ae-label-editor .ael-motifs img{display:block;width:100%;aspect-ratio:1;object-fit:contain}
#ae-label-editor .ael-swatches{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
#ae-label-editor .ael-swatches button{width:28px;height:28px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #c9d5df;cursor:pointer}
#ae-label-editor .ael-designs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
#ae-label-editor .ael-designs button{border:1px solid #c9d5df;border-radius:9px;background:#fff;padding:8px 4px;font-size:12.5px;cursor:pointer;min-height:40px}
#ae-label-editor .ael-designs button.ael-on{border:2px solid var(--ael-brand2);background:#edf5f8;font-weight:700}
#ae-label-editor .ael-list{margin:6px 0}
#ae-label-editor .ael-item{display:flex;gap:6px;align-items:center;border:1px solid var(--ael-line);border-radius:9px;padding:6px 8px;margin:5px 0;background:#fff;cursor:pointer}
#ae-label-editor .ael-item.ael-on{border-color:var(--ael-brand2);background:#f2f8fc}
#ae-label-editor .ael-item span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13.5px}
#ae-label-editor .ael-item img{width:28px;height:28px;object-fit:contain}
#ae-label-editor .ael-x{border:0;background:transparent;cursor:pointer;font-size:18px;line-height:1;padding:4px 6px;color:#8a5050;border-radius:6px}
#ae-label-editor .ael-x:hover{background:#f7e9e9}
/* Bühne / Vorschau */
#ae-label-editor .ael-topbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
#ae-label-editor .ael-seg{display:inline-flex;border:1px solid #c9d5df;border-radius:10px;overflow:hidden;background:#fff}
#ae-label-editor .ael-seg button{border:0;background:#fff;padding:9px 14px;font-weight:600;cursor:pointer;min-height:40px}
#ae-label-editor .ael-seg button.ael-on{background:var(--ael-brand);color:#fff}
#ae-label-editor .ael-spacer{flex:1}
#ae-label-editor .ael-iconbtn{border:1px solid #c9d5df;background:#fff;border-radius:9px;min-width:40px;height:40px;cursor:pointer;font-size:16px;display:inline-flex;align-items:center;justify-content:center;padding:0 10px;gap:6px;font-weight:600}
#ae-label-editor .ael-iconbtn:disabled{opacity:.4;cursor:default}
#ae-label-editor .ael-wrap{position:relative;background:linear-gradient(180deg,#eef2f5,#e4eaef);border-radius:14px;padding:26px 18px;min-height:240px;display:flex;align-items:center;justify-content:center;user-select:none;-webkit-user-select:none}
#ae-label-editor #ael-preview{width:100%;display:flex;justify-content:center;align-items:center}
#ae-label-editor .ael-wrap svg.ael-svg{display:block;max-width:100%;height:auto;background:transparent;touch-action:none;overflow:visible}
#ae-label-editor .ael-wrap.ael-single svg.ael-svg{width:100%;max-width:680px;max-height:58vh;filter:drop-shadow(0 8px 22px rgba(19,34,50,.16))}
#ae-label-editor .ael-wrap.ael-sheet svg.ael-svg{width:auto;max-height:76vh;box-shadow:0 10px 30px rgba(19,34,50,.14)}
#ae-label-editor .ael-wrap.ael-sheet [data-slot]{cursor:pointer}
#ae-label-editor .ael-wrap.ael-sheet svg.ael-svg{touch-action:manipulation}
@media (max-width:900px){#ae-label-editor .ael-wrap{padding:16px 8px;min-height:200px}#ae-label-editor .ael-wrap.ael-single svg.ael-svg{max-height:46vh}#ae-label-editor .ael-wrap.ael-sheet svg.ael-svg{max-height:62vh;width:100%}}
#ae-label-editor [data-el]{cursor:move}
#ae-label-editor .ael-h{cursor:nwse-resize}
#ae-label-editor .ael-h[data-h=ne],#ae-label-editor .ael-h[data-h=sw]{cursor:nesw-resize}
#ae-label-editor .ael-h[data-h=rot]{cursor:grab}
/* Kontext-Werkzeugleiste */
#ae-label-editor .ael-ctx{position:absolute;z-index:5;display:flex;gap:4px;align-items:center;flex-wrap:wrap;background:#fff;border:1px solid #c9d5df;border-radius:12px;box-shadow:0 8px 24px rgba(19,34,50,.18);padding:5px;max-width:calc(100% - 12px)}
#ae-label-editor .ael-ctx button{border:0;background:transparent;border-radius:8px;min-width:36px;height:36px;cursor:pointer;font-size:15px;font-weight:700;padding:0 8px;white-space:nowrap}
#ae-label-editor .ael-ctx button:hover{background:var(--ael-soft)}
#ae-label-editor .ael-ctx button.ael-on{background:#dcebf5}
#ae-label-editor .ael-ctx select{width:auto;min-height:36px;height:36px;padding:4px 6px;max-width:160px}
#ae-label-editor .ael-ctx input[type=color]{width:36px;height:36px;padding:2px}
#ae-label-editor .ael-ctx .ael-sep{width:1px;height:24px;background:#dbe3ea;margin:0 2px}
#ae-label-editor .ael-ctx .ael-del{color:#a33}
@media (max-width:900px){#ae-label-editor .ael-wrap.ael-single{padding-bottom:62px}#ae-label-editor .ael-ctx{left:6px!important;right:6px;bottom:6px;top:auto!important;justify-content:center;max-width:none}}
#ae-label-editor .ael-inline{position:absolute;z-index:6;border:2px solid var(--ael-brand2);border-radius:4px;background:rgba(255,255,255,.92);text-align:center;resize:none;overflow:hidden;padding:0 4px;line-height:1.18;min-width:60px;white-space:pre;box-shadow:0 4px 14px rgba(19,34,50,.2)}
#ae-label-editor .ael-info{font-size:13px;color:var(--ael-muted);margin:8px 2px 0;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
#ae-label-editor .ael-warnline{color:#9b2c2c;font-weight:700}
#ae-label-editor .ael-export{margin-top:12px;border-top:1px solid var(--ael-line);padding-top:12px}
#ae-label-editor .ael-export .ael-row .ael-btn{min-width:140px}
#ae-label-editor .ael-status{font-size:13px;color:var(--ael-muted);margin:8px 0 0}
#ae-label-editor .ael-status.ael-okmsg{color:var(--ael-ok);font-weight:600}
#ae-label-editor .ael-status.ael-errmsg{color:#9b2c2c;font-weight:600}
#ae-label-editor .ael-busy{opacity:.6;pointer-events:none}
#ae-label-editor .ael-firsthelp{background:#fffbea;border:1px solid #f1e3a8;border-radius:10px;padding:8px 12px;font-size:13px;margin:0 0 10px;display:flex;gap:8px;align-items:flex-start}
#ae-label-editor .ael-firsthelp p{margin:0;flex:1}
#ae-label-editor .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#ae-label-editor .ael-ok{color:var(--ael-ok);font-weight:600;font-size:13px}
#ae-label-editor .ael-feats{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0 2px}
#ae-label-editor .ael-feats span{font-size:12px;background:#fff;border:1px solid var(--ael-line);border-radius:20px;padding:2px 8px;color:#3c5266}
#ae-label-editor a.ael-amz{display:block;margin-top:8px;text-align:center;border:1px solid #c9d5df;background:#fff;border-radius:9px;padding:8px 10px;font-weight:600;color:var(--ael-brand);text-decoration:none;font-size:13.5px}
#ae-label-editor a.ael-amz:hover{background:#eef5fa}
#ae-label-editor .ael-adlabel{display:block;font-size:11px;color:var(--ael-muted);margin-top:4px;line-height:1.4}

/* Zusätzlicher Druckmodus */
#ae-label-editor .ael-batch{margin:10px 0;padding:10px;border:1px solid var(--ael-line);border-radius:12px;background:var(--ael-soft)}
#ae-label-editor .ael-batch-mode{display:flex;width:100%;margin-top:6px}
#ae-label-editor .ael-batch-mode button{flex:1;min-width:0;font-size:13px;padding:8px 6px}
#ae-label-editor .ael-batch [aria-pressed=true]{background:var(--ael-brand);color:#fff}
#ae-label-editor .ael-batch-nav{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;align-items:center}
#ae-label-editor .ael-batch-nav label{grid-column:1/-1;margin:0}
#ae-label-editor .ael-batch-nav select{min-width:0}
#ae-label-editor .ael-batch-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:8px}
#ae-label-editor .ael-batch-actions .ael-batch-check{display:flex;align-items:center;gap:6px;margin:0}
#ae-label-editor .ael-batch-actions .ael-btn{font-size:12px;min-height:32px;padding:5px 9px}
#ae-label-editor .ael-batch details{background:#fff}
