:root{--ankauf-accent:#7660d5;--ankauf-bg:rgba(255,255,255,.97);--ankauf-border:#ddd9e9;--ankauf-text:#282634;--ankauf-muted:#777282;--app-height:100dvh}*{box-sizing:border-box}html,body{height:100%;margin:0;overflow:hidden}body{display:grid;place-items:center;font-family:inherit;color:var(--ankauf-text)}.ankauf-shell{position:relative;z-index:1;display:flex;flex-direction:column;width:min(100% - 32px,500px);height:min(var(--app-height) - 40px,770px);max-height:var(--app-height);padding:24px 30px 16px;border:1px solid var(--ankauf-border);border-radius:28px;background:var(--ankauf-bg);box-shadow:0 20px 80px #25203214;min-height:0}.ankauf-brand{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;margin-bottom:8px}.ankauf-brand img{width:76px;height:42px;object-fit:contain}.ankauf-brand span{font-size:12px;color:var(--ankauf-muted)}h1{font-size:clamp(27px,4.5dvh,36px);font-weight:750;line-height:1.15;letter-spacing:-.035em;margin:8px 0 16px}h2{font-size:21px;line-height:1.2;margin:16px 0 6px}p{font-size:15px;line-height:1.5;color:var(--ankauf-muted);margin:8px 0 16px}.small{font-size:12px;line-height:1.45}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.13em;color:var(--ankauf-accent);margin:0 0 8px}.welcome,.finish{display:flex;flex:1;min-height:0;flex-direction:column;justify-content:center;text-align:center}.welcome-icon{color:var(--ankauf-accent);font-size:44px;line-height:1;margin-bottom:14px}.intro-facts{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:8px 0 18px;font-size:12px;color:var(--ankauf-text)}.intro-facts span{background:#7860d90c;border-radius:8px;padding:7px 8px}#begin{width:100%;margin-top:8px}#purchase-form{display:flex;flex:1;min-height:0;flex-direction:column}.progress-track{height:3px;background:var(--ankauf-border);border-radius:10px;margin:8px 0 20px;flex-shrink:0}#progress-fill{height:3px;border-radius:10px;background:var(--ankauf-accent);width:5%}.ankauf-step{display:flex;flex:1;min-height:0;flex-direction:column;justify-content:center;text-align:center}.ankauf-step>p{flex-shrink:0}.ankauf-step label{text-align:left}label{display:block;font-size:13px;font-weight:600;line-height:1.4;margin:10px 0 6px}input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select{display:block;min-width:0;width:100%;height:48px;border:1px solid var(--ankauf-border);border-radius:12px;background:var(--ankauf-bg);color:var(--ankauf-text);padding:10px 13px;font:inherit;font-size:16px;margin-top:6px}input.amount-input{height:68px!important;font-size:30px!important;text-align:center;font-weight:700;letter-spacing:-.02em}button,.button{min-height:46px;border-radius:12px;padding:11px 16px;border:1px solid transparent;font:inherit;font-size:14px;font-weight:650;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--ankauf-accent);color:#fff;flex-shrink:0}.primary{background:var(--ankauf-accent);color:white}.primary:hover{filter:brightness(1.08)}.secondary{background:transparent;color:var(--ankauf-text);border-color:var(--ankauf-border)}.back-button,.text-button,.icon-button{background:transparent;color:var(--ankauf-muted);padding:8px}.text-button{min-height:36px;font-size:12px;text-decoration:underline;text-underline-offset:4px}.icon-button{width:40px;min-height:36px;padding:6px;border:1px solid var(--ankauf-border)}button:disabled{opacity:.35;cursor:default}.check{display:flex;gap:10px;align-items:flex-start;line-height:1.45;font-weight:400;text-align:left;font-size:13px}.check input{flex-shrink:0;width:19px;height:19px;margin:1px 0 0;accent-color:var(--ankauf-accent)}.field-pair{display:grid;grid-template-columns:1fr 1.7fr;gap:12px}.category-options{display:grid;gap:12px;margin:10px 0}.category-options label{display:flex;gap:12px;align-items:center;margin:0;padding:20px 14px;border:1px solid var(--ankauf-border);border-radius:16px;cursor:pointer;background:#7860d907}.category-options label:has(:checked){border-color:var(--ankauf-accent);box-shadow:0 0 0 1px var(--ankauf-accent);background:#7860d918}.category-options input{width:19px;height:19px;margin:0;accent-color:var(--ankauf-accent)}.category-options label>span:first-of-type{flex:1}.category-options strong{display:block;font-size:15px}.category-options small{display:block;font-size:11px;font-weight:400;color:var(--ankauf-muted);margin-top:5px}.item-row{display:grid;grid-template-columns:1fr 85px;gap:10px}.item-row>button{grid-column:1 / -1;min-height:32px;font-size:12px;background:transparent;color:var(--ankauf-muted)}.item-navigation,.photo-controls{display:flex;align-items:center;justify-content:center;gap:16px;margin:10px 0;font-size:12px;color:var(--ankauf-muted)}.photo-view{flex:1;min-height:80px;max-height:220px;background:#7860d90a;border:1px dashed var(--ankauf-border);border-radius:16px;display:grid;place-items:center;margin:0}.photo-view figure{position:relative;display:flex;width:100%;height:100%;min-height:0;margin:0;justify-content:center}.photo-view img{max-width:100%;max-height:100%;object-fit:contain;border-radius:14px}.photo-view button{position:absolute;right:5px;top:5px;width:32px;min-height:32px;padding:0;background:#292332bb;color:white}.upload-label{display:flex;align-items:center;justify-content:center;min-height:46px;position:relative;border:1px solid var(--ankauf-border);border-radius:12px;font-size:13px;cursor:pointer}.upload-label input{position:absolute;inset:0;opacity:0;width:100%;height:100%!important;margin:0!important;cursor:pointer}.payment-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.payment-options label{padding:14px 3px;border:1px solid var(--ankauf-border);border-radius:12px;font-size:12px;text-align:center;margin:0;cursor:pointer}.payment-options input{position:absolute;opacity:0}.payment-options label:has(:checked){border-color:var(--ankauf-accent);background:#7860d914;color:var(--ankauf-accent)}.signature{width:100%;height:clamp(85px,21dvh,160px);display:block;flex-shrink:1;min-height:70px;background:#fff;border:1px dashed #8c84a9;border-radius:14px;touch-action:none;margin:4px 0}.review-card{border:1px solid var(--ankauf-border);background:#7860d907;border-radius:15px;padding:16px;text-align:left}.review-card p{margin:5px 0;font-size:13px;overflow-wrap:anywhere}.review-card strong{color:var(--ankauf-accent);font-size:24px}.terms-text{font-size:16px;line-height:1.6;padding:10px 0;min-height:140px;display:flex;align-items:center;justify-content:center}.step-buttons{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-top:14px;margin-top:12px;flex-shrink:0}#step-number{font-size:10px;color:var(--ankauf-muted);white-space:nowrap}#flow-error{background:#fff0ef;border:1px solid #e59c94;color:#942e24;padding:9px;border-radius:10px;margin:5px 0;font-size:12px;line-height:1.35;flex-shrink:0}#flow-status{font-size:10px;line-height:16px;min-height:16px;text-align:right;color:var(--ankauf-muted);flex-shrink:0}#amount-note{font-size:12px;color:#ac6046}.ankauf-footer{display:flex;justify-content:space-between;gap:12px;font-size:10px;padding-top:14px;flex-shrink:0;color:var(--ankauf-muted)}a{color:var(--ankauf-accent)}[hidden]{display:none!important}:focus-visible{outline:3px solid #b6a5eb;outline-offset:3px}.category-options:has(input:focus-visible),.payment-options label:has(input:focus-visible),.upload-label:focus-within{outline:3px solid #b6a5eb;outline-offset:3px}.finish #verify-email{max-width:310px;align-self:center;width:100%}.finish #verify-email p{margin-bottom:10px}.finish #verify-email label{text-align:left}.finish #verify-email button{width:100%}.finish>p{font-size:13px}.finish h1{margin-bottom:8px}.finish .button{margin:6px 0}.finish #verify-email h2{font-size:18px}.finish #mail-state:empty{display:none}@media(max-width:540px){.ankauf-shell{width:100%;height:var(--app-height);border:0;border-radius:0;padding:14px 22px 12px;background:var(--ankauf-bg);box-shadow:none}.ankauf-brand img{width:66px;height:36px}.progress-track{margin-bottom:14px}.ankauf-footer{padding-top:10px}}@media(max-height:620px){.ankauf-shell{height:var(--app-height);padding-top:8px;padding-bottom:8px}.ankauf-brand img{height:28px;width:54px}.ankauf-brand span{font-size:10px}h1{font-size:25px;margin:5px 0 10px}p{font-size:13px;margin:6px 0 10px}.welcome-icon{font-size:28px;margin-bottom:6px}.intro-facts{margin:2px 0 8px}.category-options label{padding:14px}.progress-track{margin:4px 0 10px}.step-buttons{padding-top:8px;margin-top:6px}.ankauf-footer{padding-top:8px}.terms-text{min-height:100px;font-size:14px}.photo-view{max-height:150px}.finish #verify-email h2{margin:6px 0}.finish #verify-email p{display:none}}@media(max-height:430px){.ankauf-brand,.ankauf-footer,#flow-status{display:none}.ankauf-shell{padding:10px 20px}.ankauf-step>.eyebrow{display:none}h1{font-size:22px}h1 br{display:none}.ankauf-step>p.small{display:none}.welcome-icon,.welcome>.small,.intro-facts{display:none}.step-buttons{margin-top:4px;padding-top:4px}.category-options label{padding:10px}.terms-text{min-height:80px}.photo-view{max-height:110px}label{margin-top:5px}.signature{min-height:70px;height:80px}.finish #verify-email h2{font-size:16px}}@media(prefers-color-scheme:dark){:root{--ankauf-bg:rgba(34,32,44,.97);--ankauf-border:#4b455b;--ankauf-text:#f1edf8;--ankauf-muted:#b6afc4}body{background:#17151e}#flow-error{background:#442c30;color:#ffd1cb;border-color:#754950}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.ankauf-brand{justify-content:center;margin-bottom:12px}.ankauf-brand img{width:210px;height:64px;object-fit:contain}.wordmark-dark{display:none}.ankauf-footer{justify-content:center}.review-card{max-width:100%;overflow-wrap:anywhere}.welcome .primary{margin:18px 0}.photo-view{overflow:hidden}.photo-view figure{position:absolute;inset:0}.photo-view{position:relative}.photo-view>span{font-size:13px;color:var(--ankauf-muted)}
@media(prefers-color-scheme:dark){.wordmark-light{display:none}.wordmark-dark{display:block}.ankauf-brand{background:#000;border-radius:10px}}
@media(max-height:620px){.ankauf-brand img{height:42px;width:170px}.ankauf-brand{margin-bottom:4px}.review-card{padding:10px}.review-card p{font-size:12px;margin:3px 0}.terms-text{font-size:14px}}
/* Complete logo, no full-width logo bar. */
.ankauf-brand{background:transparent!important;margin:0 auto 8px}.ankauf-brand img{width:110px;height:76px;padding:3px;object-fit:contain;border-radius:16px;background:#fff}.ankauf-shell:has(#introduction:not([hidden])) .ankauf-brand img{width:200px;height:145px}.ankauf-shell:has(#introduction:not([hidden])) .ankauf-brand{margin-top:12px}.welcome h1{margin-top:0}.welcome{justify-content:center}.scan-frame{position:relative;display:grid;place-items:center;flex:1;min-height:65px;max-height:155px;border:1px dashed var(--ankauf-border);border-radius:12px;overflow:hidden}.scan-frame video,.scan-frame canvas{max-width:100%;max-height:100%;object-fit:contain}.scan-frame span{font-size:12px;padding:10px;color:var(--ankauf-muted)}[data-step="11"] h1,[data-step="12"] h1,[data-step="13"] h1,[data-step="14"] h1{font-size:27px;margin:6px 0 10px}[data-step="11"] label{margin:4px 0}[data-step="11"] select{height:40px;padding:5px 10px;margin-top:3px}[data-step="11"]>p{font-size:12px;margin:3px 0 8px}#scan-side{font-weight:bold;color:var(--ankauf-text)}#scan-camera,#scan-capture{margin-top:8px}#scan-manual{font-size:11px;min-height:32px}#id-comparison strong{font-size:16px}.staff-action{max-width:205px;font-size:12px;line-height:1.25}.review-card p{overflow-wrap:anywhere}.review-card{min-height:100px}#receipt-preview{display:flex;flex:1;min-height:0;flex-direction:column;width:100%}#receipt-stage{display:grid;place-items:center;flex:1;min-height:65px;overflow:hidden}#receipt-canvas{max-width:100%;max-height:100%;object-fit:contain}#receipt-preview .item-navigation{margin:8px 0}.finish{justify-content:flex-start}.finish h1{font-size:25px}.finish #reference{margin:3px}.finish>p{margin:4px 0 8px}.finish #operator-note:empty{display:none}.finish #download{order:2}.finish #mail-state{order:3}.finish #new-purchase{order:4}.finish #receipt-error:empty{display:none}.legal .review-card{display:flex;flex:1;min-height:0;flex-direction:column;justify-content:center}.legal .review-card p{font-size:15px;line-height:1.6}.legal h1{font-size:26px}.legal{text-align:center}.legal .legal-nav{display:flex;justify-content:space-between;align-items:center;margin-top:12px}.legal .legal-page[hidden]{display:none}.legal .legal-page{margin:auto 0}#review{max-height:240px}.scan-frame video{width:100%;height:100%;position:absolute;inset:0}
@media(max-height:700px){.ankauf-brand img{height:49px;width:72px}.ankauf-shell:has(#introduction:not([hidden])) .ankauf-brand img{height:95px;width:140px}[data-step="11"] h1{font-size:23px}[data-step="11"] h1 br{display:none}.scan-frame{max-height:100px}[data-step="11"]>p{font-size:11px}[data-step="11"] .upload-label{min-height:38px}[data-step="11"] button{min-height:36px;padding:7px}.legal .review-card p{font-size:13px}.finish h1{font-size:22px}.finish .small{font-size:10px}}
@media(max-height:510px){.ankauf-brand{display:none}.ankauf-shell{padding:10px 18px}.progress-track{margin:2px 0 7px}[data-step="11"]{display:grid;grid-template-columns:1fr 1fr;gap:4px}[data-step="11"] h1,[data-step="11"]>p,[data-step="11"] .scan-frame,#scan-manual{grid-column:1/-1}[data-step="11"]>p:first-of-type{display:none}[data-step="11"] label{font-size:11px}.scan-frame{min-height:45px}.staff-action{max-width:190px}.legal .review-card{padding:8px}.legal .review-card p{font-size:12px}}

html.legal-no-js,html.legal-no-js body{height:auto;overflow:auto}html.legal-no-js .ankauf-shell{height:auto;max-height:none}html.legal-no-js .review-card{display:block}

[data-step="15"] h1{font-size:27px}[data-step="13"]>p,[data-step="15"]>p{font-size:13px}
@media(max-height:620px){.ankauf-shell:has([data-step="11"]:not([hidden])) .ankauf-brand{display:none}[data-step="11"] .scan-frame{max-height:75px}[data-step="12"] h1,[data-step="13"] h1,[data-step="14"] h1,[data-step="15"] h1{font-size:24px}}
@media(max-height:620px){[data-step="11"] .scan-frame{max-height:55px;min-height:45px}[data-step="11"] h1{font-size:21px;margin:3px 0 5px}[data-step="11"] label{font-size:11px}[data-step="11"] select{height:35px}[data-step="11"] .upload-label{margin:5px 0}}

#history-open{position:absolute;right:16px;top:12px}#history-list{display:grid;gap:10px;margin:10px 0}.history-entry{display:flex;flex-direction:column;align-items:flex-start;text-align:left}.history-entry span{font-size:12px;color:var(--ankauf-muted)}#history h1{font-size:27px}

/* Dedicated camera surface: the card guide is also the exact OCR crop. */
.camera-view{position:fixed;inset:0;z-index:1000;width:100%;height:var(--app-height,100dvh);background:#101016;overflow:hidden;color:#fff;isolation:isolate}
.camera-view #scan-video{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:100%;max-width:none;max-height:none;object-fit:cover}
.camera-guide{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:90%;aspect-ratio:85.6/53.98;border:1px solid #ffffffa6;border-radius:15px;box-shadow:0 0 0 200vmax #090910aa;pointer-events:none}
.camera-corner{position:absolute;width:29px;height:29px;border:4px solid #c5f5df}.camera-corner.tl{left:-2px;top:-2px;border-right:0;border-bottom:0;border-radius:15px 0 0 0}.camera-corner.tr{right:-2px;top:-2px;border-left:0;border-bottom:0;border-radius:0 15px 0 0}.camera-corner.bl{left:-2px;bottom:-2px;border-top:0;border-right:0;border-radius:0 0 0 15px}.camera-corner.br{right:-2px;bottom:-2px;border-top:0;border-left:0;border-radius:0 0 15px 0}
.camera-top{position:absolute;inset:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:calc(20px + env(safe-area-inset-top)) 22px 14px;text-align:left;background:linear-gradient(#08080eaa,transparent)}
.camera-top h2{color:white;font-size:25px;line-height:1.2;margin:0 0 10px}.camera-top p{color:#fff;font-size:14px;line-height:1.45;max-width:360px;margin:0}.camera-close{min-width:44px;min-height:44px;width:44px;height:44px;border-radius:50%;padding:0;background:#ffffff24;border:1px solid #ffffff50;color:white;font-size:20px}
.camera-bottom{position:absolute;inset:auto 0 0;display:flex;flex-direction:column;align-items:center;gap:10px;padding:16px 22px calc(20px + env(safe-area-inset-bottom));background:linear-gradient(transparent,#08080ecc)}
.camera-bottom p{color:white;font-size:13px;margin:0 0 5px}.camera-bottom .camera-shutter{min-height:74px;width:74px;height:74px;padding:5px;border:3px solid white;border-radius:50%;background:transparent}.camera-shutter span{display:block;width:100%;height:100%;background:#fff;border-radius:50%}.camera-shutter:active span{background:#c5f5df}.camera-capture-label{font-size:13px;font-weight:600}.camera-view :focus-visible{outline:3px solid #c5f5df;outline-offset:4px}
@media(max-height:510px){.camera-top{padding:12px 18px}.camera-top h2{font-size:19px;margin:0 0 5px}.camera-top p{font-size:12px;max-width:400px}.camera-bottom{padding:8px 18px;gap:5px}.camera-bottom p{display:none}.camera-bottom .camera-shutter{width:54px;height:54px;min-height:54px}.camera-capture-label{font-size:11px}}

.agreement-card{text-align:left;background:#7860d909;border:1px solid var(--ankauf-border);border-radius:16px;padding:14px 16px}.agreement-card p{font-size:13px;line-height:1.5;color:var(--ankauf-text);margin:0;padding:9px 0}.agreement-card p+p{border-top:1px solid var(--ankauf-border)}#pokemon-price #price-fields>p{font-size:12px}#pokemon-price .amount-input{height:55px!important;font-size:25px!important}#pokemon-price label{margin-top:10px}
@media(max-height:650px){[data-step="8"] h1{font-size:24px;margin:4px 0 9px}.agreement-card{padding:8px 12px}.agreement-card p{font-size:12px;padding:6px 0;line-height:1.4}[data-step="8"]>.small{font-size:10px}[data-step="1"] #price-fields>p{display:none}}
