:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#1d3128;background:#f5f7f3;font-synthesis:none;-webkit-font-smoothing:antialiased;--green:#183d2f;--green-light:#e5f1e5;--accent:#b9df69;--ink:#1e3329;--muted:#718077;--border:#e2e9e2;--surface:#fff;--bg:#f5f7f3;--shadow:0 8px 36px #17372909}
*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.56}a{color:inherit}svg{flex-shrink:0}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #97c55e;outline-offset:2px}
.app-shell{display:grid;grid-template-columns:256px minmax(0,1fr);min-height:100dvh}
.sidebar{position:sticky;top:0;height:100dvh;background:var(--green);color:#c9d8ce;display:flex;flex-direction:column;padding:29px 17px;z-index:30}
.brand{display:flex;gap:12px;align-items:center;margin:2px 10px 37px}.brand-symbol{width:42px;height:42px;border-radius:14px;background:#a8d65a;display:grid;place-items:center;color:#183c2d}.brand-name{font-weight:760;color:#fff;line-height:1.13;letter-spacing:-.03em;font-size:18px}.brand-sub{font-size:11px;letter-spacing:.11em;text-transform:uppercase;color:#a8c2b1;margin-top:4px}
.nav-caption{padding:14px 16px 10px;font-size:10px;letter-spacing:.18em;font-weight:750;color:#769a86;text-transform:uppercase}.nav-link{width:100%;display:flex;align-items:center;gap:12px;border:0;border-radius:12px;background:none;color:#c7d5cb;text-align:left;padding:12px 15px;margin:3px 0;font-weight:560;font-size:13.5px}.nav-link .nav-icon{width:18px;height:18px}.nav-link:hover{background:#254d3a}.nav-link.active{color:#123226;background:#c9e88e;font-weight:730}.nav-link .upcoming{margin-left:auto;font-size:9px;letter-spacing:.02em;background:#315541;border-radius:7px;padding:3px 6px;color:#aaccb5}.sidebar-foot{margin-top:auto;background:#28503d;border:1px solid #426851;border-radius:14px;padding:15px}.sidebar-foot strong{font-size:12px;color:#fff}.sidebar-foot p{font-size:11px;color:#bad0bf;margin:5px 0 0;line-height:1.5}.sidebar-user{display:flex;align-items:center;gap:10px;margin-top:16px;padding:0 4px}.avatar{width:35px;height:35px;border-radius:11px;background:#d2ec9c;color:#254330;display:grid;place-items:center;font-size:13px;font-weight:800}.sidebar-user .user-title{font-size:12px;font-weight:700;color:white}.sidebar-user .user-sub{font-size:10.5px;color:#b1cab7}
.content{min-width:0}.topbar{height:91px;border-bottom:1px solid var(--border);background:rgba(255,255,255,.8);display:flex;align-items:center;justify-content:space-between;padding:0 40px;gap:16px}.breadcrumbs{font-size:12px;font-weight:600;color:#87958a;display:flex;gap:12px;align-items:center}.breadcrumbs strong{font-size:13px;color:#2f493b}.top-right{display:flex;align-items:center;gap:13px}.status-pill{display:inline-flex;gap:7px;align-items:center;border:1px solid #e1e9db;border-radius:25px;background:#f5faf0;font-size:11px;color:#527246;padding:8px 11px;font-weight:700;white-space:nowrap}.status-dot{width:7px;height:7px;background:#77af3b;border-radius:100%}.icon-btn{height:38px;width:38px;display:grid;place-items:center;border:1px solid var(--border);background:white;border-radius:11px;color:#607468}.icon-btn:hover{background:#f0f5ed}
.page{padding:33px 40px 54px;max-width:1600px;margin:0 auto}.welcome{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:29px}.eyebrow{color:#759272;font-size:11px;font-weight:760;letter-spacing:.12em;text-transform:uppercase;margin-bottom:9px}.h1{font-size:30px;letter-spacing:-.05em;line-height:1.12;font-weight:780;color:#1a382a;margin:0}.subtitle{margin:9px 0 0;color:#7b8a7f;font-size:13px;line-height:1.6}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid #dce6db;border-radius:11px;font-weight:700;font-size:12.5px;padding:12px 16px;background:#fff;color:#2e4736;transition:filter .13s,transform .13s;white-space:nowrap}.btn:hover:not(:disabled){filter:brightness(.97);transform:translateY(-1px)}.btn-primary{background:#173f2d;border-color:#173f2d;color:white}.btn-primary:hover:not(:disabled){filter:brightness(1.15)}.btn-soft{background:#edf5e8;border-color:#dce9d4;color:#345a3d}.btn-danger{color:#a6453b;background:#fff9f7;border-color:#f0d3ce}.btn-small{padding:8px 11px;font-size:11.5px}.btn-ghost{background:transparent;border:0}.btn-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.btn svg,.btn-small svg{width:16px;height:16px}
.demo-banner{padding:12px 17px;border:1px solid #e8dca2;background:#fff9e7;border-radius:12px;color:#705c22;display:flex;align-items:center;gap:10px;font-size:12px;line-height:1.5;margin-bottom:22px}.demo-banner strong{font-weight:780}
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:17px;padding:21px 21px 18px;min-height:141px;box-shadow:var(--shadow)}.stat-head{display:flex;align-items:center;justify-content:space-between;color:#748779;font-size:12px;font-weight:660}.stat-icon{height:32px;width:32px;display:grid;place-items:center;border-radius:10px;background:#eff5e9;color:#527c40}.stat-number{margin-top:17px;font-size:28px;color:#1e3f2f;letter-spacing:-.05em;font-weight:800;line-height:1}.stat-hint{font-size:11px;color:#8b9a8e;margin-top:7px}.stat-card.accent{background:#dbecb3;border-color:#d4e8a8}.stat-card.accent .stat-icon{background:#c4df8a;color:#295334}.stat-card.accent .stat-hint{color:#67834f}
.section-row{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px}.section-title{font-size:15px;font-weight:760;color:#234533;letter-spacing:-.02em;margin:0}.section-note{font-size:11px;color:#87958a}.dashboard-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:18px}.panel{background:#fff;border:1px solid var(--border);border-radius:17px;box-shadow:var(--shadow);overflow:hidden}.panel-pad{padding:22px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:19px 21px;border-bottom:1px solid #edf0e9}.panel-head h2{font-size:14px;font-weight:740;margin:0;color:#274434}.panel-head p{font-size:11px;margin:5px 0 0;color:#97a398}.table-wrap{overflow-x:auto}.data-table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}.data-table th{padding:13px 17px;color:#8a998e;font-weight:720;background:#fbfcfa;font-size:10px;text-transform:uppercase;letter-spacing:.065em;white-space:nowrap}.data-table td{padding:14px 17px;border-top:1px solid #f0f2ed;color:#475d4d;vertical-align:middle}.data-table tbody tr:hover{background:#fbfdf9}.primary-cell{font-weight:720;color:#264533;display:flex;gap:10px;align-items:center}.initial-circle{height:32px;width:32px;min-width:32px;border-radius:10px;display:grid;place-items:center;font-weight:750;background:#e8f0d9;color:#57753c}.sub-cell{font-size:10.5px;color:#8b9b8e;margin-top:3px;font-weight:400}.chip{font-size:10px;padding:6px 9px;border-radius:25px;background:#edf5e5;color:#4d773f;font-weight:730;white-space:nowrap;display:inline-block}.chip.neutral{background:#f0f3f0;color:#758479}.chip.blue{background:#e9f2f8;color:#457b9e}.action-inline{border:0;background:none;color:#4b7a48;font-weight:750;font-size:11.5px;padding:8px}.action-inline:hover{text-decoration:underline}.quick-list{padding:13px 19px}.quick-card{width:100%;display:flex;align-items:center;gap:13px;border:1px solid transparent;border-radius:12px;background:#f8faf7;padding:13px;text-align:left;margin:9px 0}.quick-card:hover{border-color:#d7e9c8;background:#f4f9f0}.quick-icon{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#e7f2dc;color:#527945}.quick-title{font-size:12px;font-weight:760;color:#385341}.quick-sub{font-size:10.5px;color:#8e9b8d;margin-top:4px}.quick-arrow{margin-left:auto;color:#92a28d}
.toolstrip{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:17px;flex-wrap:wrap}.searchbox{display:flex;align-items:center;gap:9px;max-width:345px;width:100%;border:1px solid #dfe7df;border-radius:12px;background:white;padding:0 13px;color:#8a9a8e}.searchbox input{height:41px;border:none;outline:none!important;width:100%;min-width:0;color:#2b4535;font-size:12px;background:transparent}.searchbox input::placeholder{color:#9daa9e}.filter-select{height:42px;border-radius:11px;border:1px solid #dfe7df;background:white;padding:0 11px;color:#536858;font-size:12px;max-width:210px}.toolbar-left{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.meta-count{font-size:11px;color:#84978a}.empty{text-align:center;padding:47px 20px;color:#8d9c90}.empty-icon{height:52px;width:52px;border-radius:16px;background:#eef5e9;color:#769661;display:grid;place-items:center;margin:0 auto 13px}.empty strong{display:block;color:#375243;font-size:14px}.empty p{font-size:12px;max-width:340px;margin:8px auto;line-height:1.6}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field.span-2{grid-column:span 2}.field label{color:#526c59;font-size:11.5px;font-weight:740}.field label .required{color:#c96450}.field input,.field select,.field textarea{width:100%;border:1px solid #dce6dc;background:#fff;border-radius:10px;padding:11px 12px;outline:none!important;color:#264533;font-size:12px}.field textarea{resize:vertical;min-height:81px}.field input:focus,.field select:focus,.field textarea:focus{border-color:#72a455;box-shadow:0 0 0 3px #e4f2d8}.field-help{color:#98a59a;font-size:10.5px}.field input::placeholder,.field textarea::placeholder{color:#b4c0b5}.form-section-title{grid-column:span 2;font-weight:780;color:#2d4f3a;font-size:12px;padding-top:9px;margin-top:1px;border-top:1px solid #edf1ea}
.overlay{position:fixed;inset:0;background:#10241dd1;display:flex;align-items:center;justify-content:center;z-index:200;padding:18px;backdrop-filter:blur(3px)}.modal{width:min(660px,100%);max-height:min(92dvh,900px);background:white;border-radius:20px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 20px 60px #08201e43}.modal-head{padding:23px 26px 18px;border-bottom:1px solid #e9eee8;display:flex;align-items:center;justify-content:space-between;gap:16px}.modal-head h2{font-size:18px;color:#244935;letter-spacing:-.03em;margin:0}.modal-head p{font-size:11px;margin:6px 0 0;color:#829387}.modal-body{padding:22px 26px;overflow:auto}.modal-foot{padding:15px 26px;border-top:1px solid #e9eee8;display:flex;align-items:center;justify-content:space-between;gap:12px}.modal-actions{margin-left:auto;display:flex;gap:10px;align-items:center}.modal-close{border:0;background:#f0f4ee;color:#6f8272;border-radius:10px;display:grid;place-items:center;width:31px;height:31px}.error-text{color:#ae3c37;font-size:11px;font-weight:650;margin-top:11px}
.login-page{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;background:#f5f7f3}.login-art{background:#193e2e;color:white;padding:clamp(32px,5vw,75px);display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-art:before{content:"";position:absolute;right:-170px;bottom:-250px;width:630px;height:630px;border-radius:50%;border:120px solid #30583a;opacity:.85}.login-art .brand{margin:0;position:relative;z-index:1}.login-hero{position:relative;z-index:1;max-width:490px}.login-hero .superline{color:#b3dc74;font-size:12px;letter-spacing:.18em;text-transform:uppercase;font-weight:770}.login-hero h1{font-size:clamp(39px,5vw,67px);font-weight:800;letter-spacing:-.065em;line-height:1.03;margin:15px 0}.login-hero p{font-size:15px;color:#c5d7ca;line-height:1.8}.login-foot{font-size:12px;color:#9bbba8;position:relative;z-index:1}.login-form-wrap{display:grid;place-items:center;padding:24px}.login-form{width:min(410px,100%);background:white;border:1px solid #e3ebe4;padding:35px;border-radius:22px;box-shadow:var(--shadow)}.login-form h2{font-size:26px;color:#1c3d2a;letter-spacing:-.045em;margin:0}.login-form p{color:#829385;font-size:12px;line-height:1.6;margin:12px 0 25px}.login-form .field{margin:15px 0}.login-form .btn{width:100%;margin-top:12px}.login-form .fineprint{font-size:10.5px;color:#93a194;margin-top:18px;line-height:1.6}.login-error{font-size:11px;background:#fff4f2;color:#973d31;padding:12px 13px;border-radius:8px;margin-top:13px}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.settings-panel{padding:23px}.settings-panel h3{font-size:14px;color:#2c4d38;margin:0 0 8px}.settings-panel p{font-size:12px;color:#849484;line-height:1.65}.setting-value{font-size:12px;font-weight:700;color:#476d42;background:#f0f5ed;padding:9px 11px;border-radius:8px;word-break:break-word}.setting-list{display:flex;flex-direction:column;gap:10px;margin:20px 0}.setting-item{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#5b7462;gap:8px}.workflow{background:linear-gradient(125deg,#1e4e38,#35664b);color:white;border-radius:18px;padding:27px;display:grid;grid-template-columns:1fr 200px;gap:18px;overflow:hidden;position:relative}.workflow h2{font-size:22px;margin:3px 0 12px;letter-spacing:-.035em}.workflow p{font-size:12px;line-height:1.8;color:#d2e5d6;max-width:500px}.workflow .step-icon{font-size:102px;opacity:.15;display:grid;place-items:center}.workflow .chip{margin-bottom:9px}.workflow-list{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-top:20px}.workflow-step{background:white;border:1px solid var(--border);padding:21px;border-radius:15px}.workflow-step .number{font-size:11px;color:#7da05c;font-weight:780}.workflow-step h3{font-size:13px;color:#2b4937}.workflow-step p{font-size:11px;color:#89978b;line-height:1.6}.mobile-menu{display:none}.mobile-nav{display:none}.desktop-hidden{display:none}.divider{height:1px;background:#e7eee6}.mini-alert{background:#f3f7ee;border:1px solid #e1ebd9;padding:12px;border-radius:10px;color:#5a705d;font-size:11px;line-height:1.6}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.detail-label{font-size:10px;color:#8fa093;font-weight:700;text-transform:uppercase;letter-spacing:.05em}.detail-value{font-size:12.5px;color:#2f503b;font-weight:640;margin-top:5px;white-space:pre-line;word-break:break-word}
#toast-region{position:fixed;bottom:26px;right:26px;z-index:999;display:flex;flex-direction:column;gap:8px}.toast{background:#1b402e;color:white;padding:13px 17px;border-radius:11px;box-shadow:0 11px 32px #0926182e;font-size:12px;font-weight:650;max-width:min(370px,90vw)}.toast.error{background:#93453e}.startup{height:100dvh;display:flex;align-items:center;justify-content:center;gap:14px;color:#4e7054;font-size:13px;font-weight:750}.spin{width:21px;height:21px;border:3px solid #c9dcc1;border-top-color:#285d3b;border-radius:50%;animation:spinning 1s linear infinite}@keyframes spinning{to{transform:rotate(360deg)}}
@media(max-width:1150px){.app-shell{grid-template-columns:220px minmax(0,1fr)}.sidebar{padding:25px 13px}.page{padding:27px 27px 40px}.topbar{padding:0 27px}.stat-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.brand-name{font-size:16px}}
@media(max-width:750px){.app-shell{display:block;padding-bottom:69px}.sidebar{display:none}.topbar{height:65px;padding:0 18px}.page{padding:22px 16px 35px}.mobile-menu{display:grid}.desktop-hidden{display:initial}.breadcrumbs{gap:8px}.breadcrumbs .crumb-first{display:none}.welcome{align-items:flex-start;gap:13px}.h1{font-size:26px}.welcome>.btn{padding:10px 12px;font-size:11px}.stat-grid{gap:10px}.stat-card{padding:16px;min-height:115px}.stat-number{font-size:25px;margin-top:10px}.stat-head{font-size:10.5px}.stat-hint{font-size:10px}.mobile-nav{display:flex;position:fixed;bottom:0;bottom:env(safe-area-inset-bottom,0);left:0;right:0;z-index:90;background:#fff;border-top:1px solid #dce7db;justify-content:space-around;padding:8px 7px 9px;box-shadow:0 -3px 20px #102c1d0d}.mobile-link{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:4px;color:#819186;padding:4px 6px;font-size:9.5px;font-weight:650;min-width:50px}.mobile-link.active{color:#396c3f}.mobile-link.active svg{background:#eaf5dd;border-radius:8px}.mobile-link svg{width:29px;height:26px;padding:4px}.dashboard-grid{gap:12px}.panel-head{padding:16px}.panel-pad{padding:16px}.data-table th,.data-table td{padding:11px 12px}.toolbar-left{width:100%;flex-wrap:nowrap}.searchbox{flex:1}.filter-select{max-width:139px}.settings-grid,.workflow-list{grid-template-columns:1fr}.workflow{grid-template-columns:1fr}.workflow .step-icon{display:none}.modal-body{padding:18px}.modal-head,.modal-foot{padding:16px 18px}.login-page{grid-template-columns:1fr}.login-art{display:none}.login-form-wrap{padding:20px}.login-form{padding:26px}.top-right{gap:7px}.status-pill{font-size:9.5px;padding:7px 8px}#toast-region{bottom:90px;right:12px;left:12px}.toast{max-width:none}.form-grid{gap:12px}}
@media(max-width:430px){.form-grid{grid-template-columns:1fr}.field.span-2,.form-section-title{grid-column:span 1}.stat-grid{grid-template-columns:1fr 1fr}.stat-icon{width:27px;height:27px}.stat-card{padding:14px}.welcome{flex-direction:column}.welcome>.btn{align-self:flex-start}.modal{max-height:94dvh}}
@media print{.sidebar,.topbar,.mobile-nav,.demo-banner,.welcome>.btn,.toolstrip,.modal,#toast-region{display:none!important}.app-shell{display:block}.page{padding:8px}.panel,.stat-card{box-shadow:none}.stat-grid{grid-template-columns:repeat(4,1fr)}}

@media(max-width:750px){.customers-table th:nth-child(3),.customers-table td:nth-child(3),.products-table th:nth-child(3),.products-table td:nth-child(3),.products-table th:nth-child(5),.products-table td:nth-child(5){display:none}}

/* v0.2: austauschbarer Firmenauftritt */
.brand-business{margin: -15px 5px 24px;padding:12px;background:#ffffff11;border:1px solid #ffffff17;border-radius:12px}
.brand-business-logo{min-height:56px;border-radius:8px;background:#fff;display:flex;align-items:center;justify-content:center;padding:12px;overflow:hidden}
.brand-business-logo img{display:block;max-width:100%;max-height:70px;object-fit:contain}
.brand-business-logo strong{color:#142c24;font-size:15px;letter-spacing:.015em;overflow-wrap:anywhere}
.brand-business-label{font-size:10px;color:#d3e8d1;margin-top:9px;text-transform:uppercase;letter-spacing:.03em;overflow-wrap:anywhere}
.brand-preview{min-height:115px;display:flex;align-items:center;justify-content:center;padding:17px;border:1px dashed #d1dfcd;border-radius:12px;background:#fff;margin:14px 0}
.brand-preview img{max-width:100%;max-height:105px;object-fit:contain}
.brand-preview strong{font-size:22px;color:#21462d;overflow-wrap:anywhere}
.brand-upload{margin:12px 0;display:inline-flex!important;width:fit-content;align-items:center;gap:6px}
.import-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:16px 0}
.import-stats div{border:1px solid #e1ecdd;border-radius:10px;padding:12px 7px;text-align:center;display:flex;flex-direction:column;gap:5px}
.import-stats strong{font-size:21px;color:#2d5a3b}.import-stats span{font-size:10px;color:#7e9282}
.import-note{font-size:11px;line-height:1.6;color:#637467}
@media(max-width:750px){.import-stats{grid-template-columns:repeat(2,1fr)}}

/* v0.3 helloCash API */
.hc-sync-status{margin:12px 0}.hc-warning{border-left:3px solid #a1c775;padding-left:10px}
/* v0.4: Produktbilder, Firmendaten, Rechtsvorlagen, Angebotseditor */
.product-thumb{display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;background:#f0f5ed;border:1px solid #dce8da;border-radius:9px;color:#52765b;overflow:hidden}
.product-thumb img{width:100%;height:100%;object-fit:cover}
.product-summary{margin-top:5px;font-size:10px;color:#829485;max-width:340px;line-height:1.5}
.modal-wide{width:min(990px,100%)}
.product-image-preview{display:flex;flex-wrap:wrap;gap:10px;min-height:95px;padding:11px;border:1px dashed #d8e7d7;border-radius:12px;background:#f9fbf8;margin:9px 0 11px;align-items:center}
.product-image-card{width:119px;height:97px;position:relative;border-radius:8px;overflow:hidden;border:1px solid #e0e9df}
.product-image-card img{width:100%;height:100%;object-fit:cover}
.image-remove{position:absolute;top:4px;right:4px;width:25px;height:25px;border:0;border-radius:50%;background:#fff;color:#b53939;cursor:pointer;font-size:20px;display:grid;place-items:center;box-shadow:0 1px 5px #0003}
.image-empty{font-size:12px;color:#8da090}
.image-picker{display:inline-flex;align-items:center;gap:8px;cursor:pointer;margin:6px 0 3px}
.full-span{grid-column:1/-1}
.company-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin-bottom:16px}
.company-form input{width:100%}
.legal-details{margin:10px 0;border:1px solid #dce8dc;border-radius:11px;overflow:hidden}
.legal-details summary{padding:12px 14px;background:#f7faf5;font-size:12px;font-weight:730;cursor:pointer;color:#2e5738}
.legal-details .field{padding:12px}
.legal-details textarea{width:100%;min-height:230px;line-height:1.5;white-space:pre-wrap}
.legal-warning{border-left:3px solid #c99c54;padding:11px;background:#fffaf0;color:#865d25!important}
.offer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:8px 0 18px}
.offer-toolbar>.mini-alert{flex:1;max-width:650px}
.offer-item-row{display:grid;grid-template-columns:minmax(210px,2.3fr) minmax(75px,.7fr) minmax(95px,1fr) minmax(70px,.7fr) auto;align-items:end;gap:9px;padding:15px 0;border-bottom:1px solid #e1ebdf}
.offer-item-row .field{min-width:0}
.offer-item-row input,.offer-item-row select{min-width:0;width:100%}
.offer-item-remover{padding-bottom:5px}
.offer-items{grid-column:span 2}
.offer-totals{display:flex;gap:20px;justify-content:flex-end;padding:10px 16px;background:#eaf3e5;border-radius:11px;font-size:13px}
.offer-totals strong{margin-left:6px}
.offer-checks{display:flex;flex-direction:column;gap:12px;background:#f7faf5;border:1px solid #e1ecd9;padding:14px;border-radius:12px}
.offer-checks label{font-size:12px;display:flex;gap:10px;align-items:flex-start;color:#385c43}
.offer-actions{white-space:nowrap;display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:850px){.offer-item-row{grid-template-columns:repeat(3,minmax(0,1fr))}.offer-product-select{grid-column:1/-1}.offer-item-remover{grid-column:3}.offer-toolbar{align-items:stretch;flex-direction:column}.company-form{grid-template-columns:1fr 1fr}}
@media(max-width:550px){.offer-item-row{grid-template-columns:repeat(2,minmax(0,1fr))}.offer-product-select{grid-column:1/-1}.offer-item-remover{grid-column:1/-1}.company-form{grid-template-columns:1fr}.offer-totals{flex-direction:column;gap:5px}.product-image-card{width:92px;height:82px}.offer-actions{min-width:150px}}

/* Version 0.5: iPad-Unterschriften */
.modal-signing{width:min(940px,calc(100vw - 28px));max-height:min(94dvh,940px)}
.modal-signing .modal-body{overflow-y:auto;overscroll-behavior:contain}
.sign-intro{background:#edf4eb;border:1px solid #d9e4d7;padding:15px 18px;border-radius:12px;margin-bottom:18px}
.sign-intro p{margin:8px 0 12px;line-height:1.55}
.sign-common{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 16px}
.sign-disclosure,.sign-early{background:#f3f5f1;border-radius:10px;padding:12px;display:flex;line-height:1.45}
.sign-disclosure label,.sign-early{display:flex;align-items:flex-start;gap:10px;cursor:pointer}
.sign-disclosure input,.sign-early input{width:20px;height:20px;flex:none;margin-top:2px;accent-color:#236143}
.sign-section{border:1px solid #d5ded5;border-radius:14px;padding:16px;margin:17px 0;page-break-inside:avoid}
.sign-section h3{margin:0 0 9px;color:#173c29;font-size:17px}
.sign-description{font-size:14px;line-height:1.5;white-space:pre-wrap;max-height:225px;overflow:auto;margin-bottom:14px}
.sig-canvas-wrap{position:relative;background:#fff;border:2px dashed #b0bfbb;border-radius:12px;overflow:hidden}
.sig-canvas{display:block;width:100%;height:175px;background:transparent;touch-action:none;cursor:crosshair;user-select:none;-webkit-user-select:none}
.sig-hint{position:absolute;bottom:8px;left:0;right:0;text-align:center;font-size:12px;color:#789186;pointer-events:none}
.sig-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:9px}
.sig-status{font-size:13px;color:#5e7568}.signed-locked{font-size:12px;display:inline-flex;align-items:center;gap:4px;color:#346148}
.sign-start{font-weight:800;color:#246a45}
@media(max-width:640px){.sign-common{grid-template-columns:1fr}.modal-signing{max-height:95dvh}.sign-section{padding:11px}.sig-canvas{height:175px}.sig-toolbar{flex-wrap:wrap}.sign-intro{padding:12px}.offer-actions{min-width:200px}}

/* v0.7 – Übergabeprotokolle, iPad-Erfassung und Bildnachweise */
.ho-advisory{margin:0 0 18px;max-width:100%}.ho-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 17px}.ho-form-grid .span-2{grid-column:1/-1}
.ho-form{display:flex;flex-direction:column;gap:18px}.ho-form .field input,.ho-form .field select,.ho-form .field textarea{width:100%}.ho-form textarea{resize:vertical;line-height:1.45}.ho-form .field label{font-weight:650}
.ho-panel{padding:15px;border:1px solid #d9e7d8;border-radius:14px;background:#fbfdfb}.ho-panel h3{font-size:15px;color:#244c36;margin:0 0 8px}.ho-panel>p{font-size:12px;color:#617669;margin:0 0 13px;line-height:1.6}
.ho-check-row{display:grid;grid-template-columns:minmax(0,1fr) 150px;align-items:center;gap:15px;padding:10px 8px;border-bottom:1px solid #e4eee5;font-size:13px}.ho-check-row:last-child{border:0}.ho-check-row label{line-height:1.45;color:#304938}.ho-check-row select{width:100%;padding:8px 9px;border:1px solid #bfccbf;border-radius:8px;background:#fff;color:#2c4936;font-size:12px}
.ho-photo-actions{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 14px}.ho-photo-actions label{cursor:pointer;display:inline-flex;align-items:center;gap:7px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ho-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ho-photo-card{position:relative;background:#fff;border:1px solid #d4e3d6;border-radius:12px;padding:9px;min-width:0}.ho-photo-card img{width:100%;height:140px;object-fit:cover;border-radius:8px;background:#f0f5ef}.ho-photo-card .field label{font-size:11px}.ho-photo-card .field input{font-size:12px;padding:9px}.ho-photo-card .image-remove{right:15px;top:15px}.ho-photo-placeholder{height:140px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;color:#789285;background:#f0f5ef;border-radius:8px;font-size:11px}.ho-hint{font-size:11px;color:#748876}.ho-legal-text{padding:12px 15px;max-height:330px;overflow:auto;font-size:12px;line-height:1.55}.ho-legal-text p{margin:0 0 10px}.ho-dialog{max-height:94dvh}.ho-dialog .modal-body{overflow-y:auto}.ho-dialog .modal-foot{position:sticky;bottom:0;background:#fff;z-index:1}
@media(max-width:760px){.ho-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ho-check-row{grid-template-columns:minmax(0,1fr) 125px;gap:7px}.ho-form-grid{grid-template-columns:1fr}.ho-form-grid .span-2{grid-column:1}.ho-dialog{width:min(100%,calc(100vw - 20px))}}
@media(max-width:420px){.ho-check-row{grid-template-columns:minmax(0,1fr) 115px;padding:9px 3px}.ho-check-row label{font-size:11.5px}.ho-check-row select{font-size:11px}.ho-photo-grid{grid-template-columns:1fr}.ho-photo-card img{height:180px}}
#ho-wireless-tech[hidden]{display:none!important}

/* v0.8: Lesbare App-Screenshots mit separater Beweiskategorie */
.ho-proof-grid .ho-screenshot-card img {object-fit:contain;background:#eef3ee;max-height:330px;}
.ho-screenshot-card {background:#f9fbf8;}
.ho-panel[hidden] {display:none !important;}
