:root{
    --vrms-bg:#f4f6f9;
    --vrms-surface:#ffffff;
    --vrms-surface-soft:#f8fafc;
    --vrms-border:#dde4ec;
    --vrms-text:#1d2939;
    --vrms-muted:#667085;
    --vrms-primary:#2563c7;
    --vrms-primary-dark:#1d4f9f;
    --vrms-primary-soft:#eef4ff;
    --vrms-success:#087a55;
    --vrms-success-bg:#ecfdf3;
    --vrms-warning:#a15c07;
    --vrms-warning-bg:#fff7e8;
    --vrms-danger:#b42318;
    --vrms-danger-bg:#fef3f2;
    --vrms-shadow:0 8px 30px rgba(16,24,40,.07);
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--vrms-text);
    background:var(--vrms-bg);
    line-height:1.4;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;background:var(--vrms-bg)}
body{margin:0;min-height:100vh;background:var(--vrms-bg)}
button,input{font:inherit}
button{-webkit-tap-highlight-color:transparent}
svg{width:1.25em;height:1.25em;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.app-bg{position:fixed;inset:0 0 auto;height:210px;background:linear-gradient(145deg,#f8fbff,#eef3fa);z-index:-1;border-bottom:1px solid #edf1f5}
.app-shell{width:min(860px,100%);margin:0 auto;padding:0 18px 92px}
.app-header{display:flex;align-items:center;gap:12px;padding:22px 2px 14px}
.brand-mark{width:48px;height:48px;display:grid;place-items:center;flex:0 0 auto;border-radius:14px;background:var(--vrms-primary);color:#fff;box-shadow:0 6px 18px rgba(37,99,199,.22)}
.brand-mark svg{width:27px;height:27px;stroke-width:0;fill:currentColor}
.header-copy{min-width:0}.eyebrow{display:block;text-transform:uppercase;letter-spacing:.1em;font-size:.67rem;font-weight:800;color:var(--vrms-primary)}
.app-header h1{margin:2px 0 0;font-size:clamp(1.4rem,5vw,2rem);line-height:1.1;letter-spacing:-.025em}
.vrms-panel{background:var(--vrms-surface);border:1px solid var(--vrms-border);border-radius:17px;box-shadow:var(--vrms-shadow)}
.scan-panel{padding:19px}.result-card{padding:19px;margin-top:16px}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:17px}
.panel-heading>div{display:flex;align-items:center;gap:11px;min-width:0}.panel-heading h2{margin:0;font-size:1.05rem;letter-spacing:-.01em}.panel-heading p{margin:2px 0 0;font-size:.79rem;color:var(--vrms-muted)}
.step-pill{display:grid;place-items:center;width:30px;height:30px;flex:0 0 auto;border-radius:9px;background:var(--vrms-primary-soft);color:var(--vrms-primary-dark);font-size:.82rem;font-weight:850}
.primary-action{width:100%;display:flex;align-items:center;gap:13px;border:0;border-radius:13px;padding:14px 15px;background:linear-gradient(135deg,var(--vrms-primary),#3476d9);color:#fff;text-align:left;cursor:pointer;box-shadow:0 5px 15px rgba(37,99,199,.19);min-height:68px}
.primary-action:active{transform:translateY(1px)}.action-icon{width:39px;height:39px;display:grid;place-items:center;flex:0 0 auto;border-radius:11px;background:rgba(255,255,255,.15)}.action-icon svg{width:24px;height:24px}.action-copy{display:block;min-width:0;flex:1}.action-copy strong{display:block;font-size:.96rem}.action-copy small{display:block;margin-top:2px;font-size:.75rem;font-weight:500;opacity:.84}.action-chevron{font-size:1.7rem;font-weight:300;opacity:.8}
.reader-wrap{margin:15px 0 0;border-radius:14px;overflow:hidden;border:1px solid #23334a;background:#0f172a}.reader{overflow:hidden}.reader video{width:100%!important;max-height:52vh!important;object-fit:cover}.scan-help{display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 12px;color:#d8e0ea;background:#111c2e;font-size:.74rem}.scan-help span{width:7px;height:7px;border-radius:50%;background:#32d583;box-shadow:0 0 0 4px rgba(50,213,131,.12)}
.hidden{display:none!important}.or-divider{display:flex;align-items:center;gap:10px;margin:17px 0 12px;color:#98a2b3;font-size:.65rem;font-weight:800;letter-spacing:.08em}.or-divider:before,.or-divider:after{content:"";height:1px;flex:1;background:#e7ebf0}
.field-label{display:block;margin:0 0 6px;font-size:.76rem;font-weight:750;color:#475467}.manual-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}.input-shell{position:relative}.input-icon{position:absolute;left:13px;top:50%;transform:translateY(-50%);display:grid;place-items:center;color:#98a2b3;pointer-events:none}.input-icon svg{width:20px;height:20px;stroke-width:0;fill:currentColor}.manual-search input{width:100%;height:50px;border:1px solid #cfd8e3;border-radius:11px;padding:0 13px 0 42px;background:#fff;color:var(--vrms-text);font-size:1rem}.manual-search input:focus,.edit-field input:focus,.price-input-large input:focus,.price-tile input:focus{outline:3px solid rgba(37,99,199,.12);border-color:var(--vrms-primary)}.search-button{height:50px;display:flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:11px;padding:0 15px;background:#eaf1fb;color:var(--vrms-primary-dark);font-size:.83rem;font-weight:800;cursor:pointer}.search-button svg{width:18px;height:18px}
.status{display:flex;align-items:flex-start;gap:9px;margin-top:12px;padding:10px 12px;border-radius:10px;font-size:.78rem;font-weight:650;background:#f2f4f7;color:#475467}.status:before{content:"";width:8px;height:8px;margin-top:4px;flex:0 0 auto;border-radius:50%;background:#98a2b3}.status.busy{background:#eff6ff;color:#175cd3}.status.busy:before{background:#2e90fa}.status.success{background:var(--vrms-success-bg);color:var(--vrms-success)}.status.success:before{background:#12b76a}.status.error{background:var(--vrms-danger-bg);color:var(--vrms-danger)}.status.error:before{background:#f04438}
.result-heading{margin-bottom:14px}.price-badge{display:inline-flex;align-items:center;white-space:nowrap;padding:5px 8px;border-radius:999px;background:var(--vrms-primary-soft);color:var(--vrms-primary-dark);font-size:.66rem;font-weight:800}
.product-card{display:grid;grid-template-columns:104px 1fr;gap:14px;padding:13px;border:1px solid #e4e9f0;border-radius:14px;background:var(--vrms-surface-soft)}.product-image{width:104px;height:104px;display:grid;place-items:center;overflow:hidden;border:1px solid #e4e9f0;border-radius:12px;background:#fff}.product-image img{max-width:92%;max-height:92%;object-fit:contain}.product-copy{display:grid;align-content:start;gap:7px;min-width:0}.edit-field{display:block}.edit-field>span{display:block;margin-bottom:2px;font-size:.64rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#98a2b3}.edit-field input{width:100%;border:0;border-bottom:1px solid transparent;background:transparent;padding:2px 0;color:var(--vrms-text);border-radius:0}.product-name{font-size:1rem;font-weight:800}.brand-name{font-size:.84rem;color:#667085}.ean-chip{display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:100%;margin-top:1px;padding:4px 7px;border:1px solid #e4e7ec;border-radius:7px;background:#fff;color:#667085;font-size:.68rem}.ean-chip span{font-weight:800}.ean-chip input{width:112px;min-width:0;border:0;background:transparent;padding:0;color:#475467;font-size:.7rem}
.history-card{margin-top:12px;padding:11px 12px;border-left:3px solid #9db7dc;border-radius:10px;background:#f7f9fc}.history-card strong{display:block;font-size:.75rem}.history-card span{display:block;margin-top:2px;font-size:.77rem;color:#475467}.history-card small{display:block;margin-top:2px;font-size:.69rem;color:#98a2b3}
.section-label-row{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:17px 1px 7px}.section-label-row>span{font-size:.75rem;font-weight:850;text-transform:uppercase;letter-spacing:.045em;color:#475467}.section-label-row small{font-size:.68rem;color:#98a2b3}.market-price-card{padding:14px 15px;border:1px solid #d7e2f0;border-radius:14px;background:linear-gradient(135deg,#f7faff,#f1f6fc)}.market-main{display:flex;align-items:center;justify-content:space-between;gap:14px}.market-label{display:block;font-size:.72rem;font-weight:750;color:#667085}.price-input-large{display:flex;align-items:center;gap:5px;margin-top:1px;color:var(--vrms-primary);font-size:1.3rem;font-weight:850}.price-input-large input{width:160px;max-width:48vw;border:0;background:transparent;padding:0;color:#16345e;font-size:1.85rem;font-weight:900;letter-spacing:-.035em}.market-icon{width:43px;height:43px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;background:#fff;color:var(--vrms-primary);box-shadow:0 2px 7px rgba(31,79,145,.08)}.market-icon svg{width:23px;height:23px}.lookup-info{margin-top:8px;padding-top:8px;border-top:1px solid #dfe7f1;color:#667085;font-size:.72rem;overflow-wrap:anywhere}.lookup-info:empty{display:none}.lookup-info a{color:var(--vrms-primary-dark);font-weight:750;text-decoration:none}.lookup-info a:hover{text-decoration:underline}
.price-results{display:grid;grid-template-columns:1fr 1fr;gap:10px}.price-tile{display:block;position:relative;overflow:hidden;padding:13px 13px 11px;border:1px solid var(--vrms-border);border-radius:14px;background:#fff}.price-tile.normal{border-top:3px solid #3b78ce}.price-tile.expired{border-top:3px solid #d69940}.tile-top{display:flex;align-items:center;gap:7px;color:#475467;font-size:.77rem;font-weight:800}.tile-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:7px;background:var(--vrms-primary-soft);color:var(--vrms-primary-dark);font-size:.72rem}.expired .tile-icon{background:var(--vrms-warning-bg);color:var(--vrms-warning)}.tile-price{display:flex;align-items:center;gap:4px;margin:9px 0 3px;color:#475467;font-size:1rem;font-weight:800}.tile-price input{width:100%;min-width:0;border:0;background:transparent;padding:0;color:var(--vrms-text);font-size:1.45rem;font-weight:900;letter-spacing:-.025em}.price-tile small{display:block;color:#98a2b3;font-size:.65rem;line-height:1.3}.info-note{display:flex;align-items:flex-start;gap:8px;margin-top:11px;padding:10px 11px;border-radius:10px;background:#f8fafc;color:#667085;font-size:.69rem}.info-note svg{width:16px;height:16px;flex:0 0 auto;margin-top:1px}
.save-bar{margin-top:16px}.save-button{width:100%;min-height:52px;display:flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:12px;background:#253448;color:#fff;font-weight:800;font-size:.9rem;cursor:pointer;box-shadow:0 5px 14px rgba(37,52,72,.16)}.save-button svg{width:18px;height:18px}.save-button:disabled,.search-button:disabled{opacity:.55;cursor:wait}.save-button:active{transform:translateY(1px)}
@media(max-width:600px){
    .app-bg{height:145px}.app-shell{padding:0 9px calc(80px + env(safe-area-inset-bottom))}.app-header{padding:12px 5px 10px}.brand-mark{width:40px;height:40px;border-radius:11px}.brand-mark svg{width:23px;height:23px}.eyebrow{font-size:.61rem}.app-header h1{font-size:1.25rem}.vrms-panel{border-radius:14px;box-shadow:0 4px 14px rgba(16,24,40,.055)}.scan-panel,.result-card{padding:13px}.result-card{margin-top:10px}.panel-heading{margin-bottom:12px}.panel-heading h2{font-size:.94rem}.panel-heading p{font-size:.7rem}.step-pill{width:27px;height:27px;border-radius:8px}.primary-action{min-height:62px;padding:11px 12px;border-radius:11px}.action-icon{width:36px;height:36px;border-radius:9px}.action-copy strong{font-size:.9rem}.action-copy small{font-size:.69rem}.reader-wrap{margin-left:-13px;margin-right:-13px;border-radius:0;border-left:0;border-right:0}.manual-search{grid-template-columns:minmax(0,1fr) 50px}.manual-search input{height:48px}.search-button{height:48px;width:50px;padding:0}.search-button span{display:none}.product-card{grid-template-columns:80px 1fr;gap:10px;padding:10px}.product-image{width:80px;height:80px;border-radius:10px}.product-name{font-size:.9rem}.brand-name{font-size:.77rem}.price-badge{font-size:.61rem;padding:4px 7px}.section-label-row{margin-top:14px}.market-price-card{padding:12px}.price-input-large input{font-size:1.7rem}.market-icon{width:38px;height:38px}.price-results{gap:8px}.price-tile{padding:11px 10px 9px}.tile-top{font-size:.7rem}.tile-price input{font-size:1.3rem}.price-tile small{font-size:.59rem}.save-bar{position:fixed;left:0;right:0;bottom:0;margin:0;padding:8px max(9px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left));background:rgba(244,246,249,.92);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid #dfe5ec;z-index:40}.save-button{max-width:842px;margin:0 auto;min-height:50px}.result-card.hidden~* .save-bar{display:none}
}
@media(max-width:380px){.price-results{grid-template-columns:1fr}.product-card{grid-template-columns:68px 1fr}.product-image{width:68px;height:68px}.panel-heading p{display:none}.price-input-large input{max-width:55vw}}

/* Produktübersicht */
.products-panel{padding:19px;margin-bottom:16px}.products-heading{margin-bottom:14px}.count-badge{display:inline-grid;place-items:center;min-width:32px;height:28px;padding:0 9px;border-radius:999px;background:var(--vrms-primary-soft);color:var(--vrms-primary-dark);font-size:.76rem;font-weight:850}.product-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}.list-search-shell{position:relative}.list-search-shell svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#98a2b3}.list-search-shell input{width:100%;height:46px;border:1px solid #cfd8e3;border-radius:11px;padding:0 12px 0 40px;background:#fff;color:var(--vrms-text)}.list-search-shell input:focus{outline:3px solid rgba(37,99,199,.12);border-color:var(--vrms-primary)}.status-filter{display:flex;gap:4px;padding:4px;border:1px solid #e1e6ed;border-radius:11px;background:#f7f9fc}.filter-btn{border:0;border-radius:8px;padding:8px 10px;background:transparent;color:#667085;font-size:.72rem;font-weight:800;cursor:pointer}.filter-btn.active{background:#fff;color:var(--vrms-primary-dark);box-shadow:0 1px 4px rgba(16,24,40,.08)}.export-row{display:flex;justify-content:flex-end;gap:7px;margin-top:10px}.export-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid #d9e1ea;border-radius:9px;background:#fff;color:#475467;text-decoration:none;font-size:.72rem;font-weight:800}.export-btn svg{width:16px;height:16px}.export-btn.excel{color:#16794b}.export-btn.pdf{color:#b42318}.product-list{display:grid;gap:8px;margin-top:12px}.product-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px 12px;border:1px solid #e3e8ef;border-radius:12px;background:#fff;transition:.15s ease}.product-row:hover{border-color:#cfd9e6;box-shadow:0 3px 10px rgba(16,24,40,.04)}.product-row.inactive{background:#f8fafc;opacity:.78}.product-main{min-width:0}.product-title-line{display:flex;align-items:center;gap:8px;min-width:0}.product-list-name{font-size:.88rem;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-dot{width:8px;height:8px;flex:0 0 auto;border-radius:50%;background:#12b76a;box-shadow:0 0 0 3px rgba(18,183,106,.12)}.product-row.inactive .status-dot{background:#98a2b3;box-shadow:none}.product-meta{display:flex;flex-wrap:wrap;gap:4px 10px;margin-top:4px;color:#667085;font-size:.69rem}.product-prices{display:flex;gap:12px;margin-top:7px}.mini-price{display:flex;flex-direction:column;gap:1px}.mini-price span{font-size:.59rem;text-transform:uppercase;letter-spacing:.04em;color:#98a2b3;font-weight:800}.mini-price strong{font-size:.78rem;color:#344054}.product-actions{display:flex;align-items:center;gap:7px}.open-product-btn{display:grid;place-items:center;width:38px;height:38px;border:1px solid #dbe3ec;border-radius:10px;background:#fff;color:var(--vrms-primary);cursor:pointer}.open-product-btn svg{width:18px;height:18px}.status-toggle{position:relative;display:inline-flex;align-items:center;gap:7px;cursor:pointer;user-select:none}.status-toggle input{position:absolute;opacity:0;pointer-events:none}.switch-track{width:42px;height:24px;padding:3px;border-radius:999px;background:#cfd6df;transition:.2s}.switch-knob{display:block;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:.2s}.status-toggle input:checked + .switch-track{background:#12b76a}.status-toggle input:checked + .switch-track .switch-knob{transform:translateX(18px)}.toggle-text{min-width:42px;font-size:.68rem;font-weight:800;color:#667085}.empty-state{margin-top:12px;padding:24px 12px;text-align:center;border:1px dashed #d9e1ea;border-radius:12px;color:#667085}.empty-state strong{display:block;color:#344054;font-size:.86rem}.empty-state span{display:block;margin-top:3px;font-size:.72rem}
@media(max-width:600px){.products-panel{padding:13px;margin-bottom:10px}.product-toolbar{grid-template-columns:1fr}.status-filter{width:100%}.filter-btn{flex:1;padding:8px 6px}.export-row{justify-content:stretch}.export-btn{flex:1;justify-content:center;min-height:40px}.product-row{grid-template-columns:minmax(0,1fr) auto;padding:10px;gap:8px}.product-list-name{font-size:.83rem}.product-meta{font-size:.64rem}.product-prices{gap:9px}.mini-price strong{font-size:.73rem}.product-actions{flex-direction:column-reverse;gap:5px}.open-product-btn{width:36px;height:36px}.status-toggle{gap:0}.toggle-text{display:none}.switch-track{width:40px;height:23px}.switch-knob{width:17px;height:17px}.status-toggle input:checked + .switch-track .switch-knob{transform:translateX(17px)}}


/* v1.7: editierbare Produkt-Stammdaten */
.edit-product-btn { width: 42px; height: 42px; border: 1px solid var(--line, #dfe5ee); border-radius: 12px; background: #fff; display: inline-grid; place-items: center; cursor: pointer; }
.edit-product-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.inline-edit-input { width: min(100%, 360px); min-height: 40px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 8px 10px; font: inherit; background: #fff; color: inherit; }
.product-row.editing { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(59,130,246,.08); }
.product-row.editing .product-title-line, .product-row.editing .product-meta { align-items: center; }
.inline-save-btn, .inline-cancel-btn { min-height: 42px; border-radius: 11px; padding: 0 13px; font-weight: 700; cursor: pointer; }
.inline-save-btn { border: 0; background: #2563eb; color: #fff; }
.inline-cancel-btn { border: 1px solid #cbd5e1; background: #fff; color: #334155; }
@media (max-width: 680px) {
  .product-row.editing .product-main { width: 100%; }
  .product-row.editing .product-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .product-row.editing .status-toggle { grid-column: 1 / -1; }
  .inline-save-btn, .inline-cancel-btn { width: 100%; }
  .inline-edit-input { width: 100%; }
}

/* v1.8: bewusste Preisaktualisierung ohne unnötige externe API-Aufrufe */
.price-basis-heading{align-items:center}.price-basis-heading>div{display:flex;flex-direction:column;gap:1px}.price-basis-heading>div>span{font-size:.75rem;font-weight:850;text-transform:uppercase;letter-spacing:.045em;color:#475467}.price-basis-heading>div>small{font-size:.68rem;color:#98a2b3}.renew-price-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:0 11px;border:1px solid #cdd9e8;border-radius:10px;background:#fff;color:var(--vrms-primary-dark);font-size:.72rem;font-weight:800;cursor:pointer;box-shadow:0 1px 2px rgba(16,24,40,.03)}.renew-price-btn:hover{background:var(--vrms-primary-soft);border-color:#b8cae3}.renew-price-btn:disabled{opacity:.55;cursor:wait}.renew-price-btn svg{width:16px;height:16px}
@media(max-width:600px){.price-basis-heading{align-items:stretch;gap:8px}.renew-price-btn{min-height:44px;width:100%;font-size:.76rem}}
