/* =====================================================================
   +++ Appermint Flohmarkt – Design System 2.1 (Styleguide 15.11.2026),
   gleiche Bausteine wie der Appermint Moving Scanner.
   Nur Palettenfarben: Mint #96F1CE/#4DE9AC/#42C792, Aqua #A5FFFF/#00FCFD/#00E8EC,
   Slate #949BA5/#717B87/#555C66, Schwarz #1E252B, Weiß, Rot #D7263D nur für Fehler.
   Keine Zwischentöne, keine transparenten Flächen (nur Schatten). App-Farbe Flohmarkt = Aqua.
   ===================================================================== */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/outfit-latin.woff2') format('woff2'); }
:root {
  --mint-l: #96F1CE; --mint: #4DE9AC; --mint-d: #42C792;
  --aqua-l: #A5FFFF; --aqua: #00FCFD; --aqua-d: #00E8EC;
  --slate-l: #949BA5; --slate: #717B87; --slate-d: #555C66;
  --black: #1E252B; --white: #FFFFFF; --error: #D7263D;
  --head: 'Outfit', 'Inter', system-ui, sans-serif;
  --r-s: 8px; --r-m: 12px; --r-l: 20px; --r-xl: 28px;
  --sh-sm: 0 1px 2px rgba(30,37,43,0.08), 0 1px 3px rgba(30,37,43,0.06);
  --sh-md: 0 4px 16px rgba(30,37,43,0.10);
  --sh-lg: 0 16px 40px rgba(30,37,43,0.14);
  --grad-line: linear-gradient(90deg, #00FCFD 0%, #4DE9AC 100%);
  --grad-app: linear-gradient(135deg, #A5FFFF 0%, #00E8EC 100%);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--black); font: 400 16px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body.no-scroll { overflow: hidden; }
a { color: var(--black); text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 3px; text-underline-offset: 4px; }
a:hover { color: var(--slate-d); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; color: var(--black); margin: 0; }
button, input, textarea, select { font-family: inherit; }
:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--black); }
[hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--slate-d); }
.pad { padding: 56px 16px; }

/* ---------- Bausteine ---------- */
.am-label { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--black); line-height: 1.3; }
.am-marker { display: inline-flex; gap: 5px; }
.am-marker i { display: block; width: 4px; height: 18px; border-radius: 2px; transform: skewX(-20deg); }
.am-marker i:nth-child(1) { background: var(--mint-d); }
.am-marker i:nth-child(2) { background: var(--mint); }
.am-marker i:nth-child(3) { background: var(--aqua); }
.am-divider { display: block; width: 48px; height: 4px; border-radius: 999px; background: var(--grad-line); margin-bottom: 16px; }
.am-h2 { font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; }
.am-lead { font-size: 19px; line-height: 1.55; color: var(--slate-d); margin: 0; }
.app-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-m); background: var(--grad-app); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font-size: 15px; font-weight: 600; height: 48px; padding: 0 24px; border-radius: 999px; text-decoration: none; white-space: nowrap; color: var(--black); transition: background 0.15s, box-shadow 0.15s, border-color 0.15s; }
.btn-s { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-l { height: 56px; padding: 0 32px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--mint); color: var(--black); }
.btn-primary:hover { background: var(--mint-d); color: var(--black); }
.btn-secondary { background: var(--black); color: var(--white); }
.btn-secondary:hover { background: var(--slate-d); color: var(--white); }
.btn-accent { background: linear-gradient(120deg, #00FCFD 0%, #4DE9AC 100%); }
.btn-outline { background: var(--white); border: 1.5px solid var(--slate); }
.btn-outline:hover { border-color: var(--black); color: var(--black); }
.btn-white { background: var(--white); box-shadow: var(--sh-sm); }
.btn-white:hover { box-shadow: inset 0 0 0 2px var(--black); color: var(--black); }
.btn.danger { color: var(--black); }
.btn:disabled, .btn[disabled] { background: var(--white); color: var(--slate); border: 1.5px dashed var(--slate-l); cursor: not-allowed; box-shadow: none; }
.spinner { width: 26px; height: 26px; border: 3px solid var(--mint-l); border-top-color: var(--black); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 12px; }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; display: inline-block; margin: 0 8px 0 0; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.am-hint { display: flex; gap: 14px; align-items: center; border-radius: var(--r-l); padding: 16px 20px; font-size: 15px; line-height: 1.5; background: var(--aqua-l); color: var(--black); }
.am-hint.ok { background: var(--mint-l); }
.am-hint.err { background: var(--error); color: var(--white); justify-content: space-between; flex-wrap: wrap; }
.am-card { background: var(--white); border-radius: var(--r-xl); box-shadow: var(--sh-md); padding: 40px; }
.sub-title { font-size: 15px; font-weight: 600; margin: 24px 0 10px; font-family: 'Inter', sans-serif; }
.section-hint { font-size: 15px; color: var(--slate-d); margin: 10px 0 0; line-height: 1.55; max-width: 760px; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 4px 12px; white-space: nowrap; background: var(--aqua-l); }
.pill-warn { background: var(--black); color: var(--white); }
.pill-grey { background: var(--slate-l); }
.chev { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--slate); align-items: center; justify-content: center; transition: transform 0.2s; flex-shrink: 0; }
.chev::before { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--black); border-bottom: 2px solid var(--black); transform: translateY(-2px) rotate(45deg); }

/* ---------- Formulare ---------- */
.field { display: block; font-size: 14px; font-weight: 600; margin-top: 24px; }
.field > span { font-weight: 400; color: var(--slate-d); }
.field-label { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], select, textarea {
  width: 100%; border: 1.5px solid var(--slate); border-radius: var(--r-m); padding: 11px 16px; font-size: 16px; line-height: 1.4; color: var(--black); background: var(--white); }
label > input { margin-top: 8px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 4px var(--mint); }
::placeholder { color: var(--slate); }
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1 L6 6 L11 1' fill='none' stroke='%231E252B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 18px; border: 1.5px solid var(--slate-l); border-radius: 999px; font-size: 15px; font-weight: 500; cursor: pointer; background: var(--white); }
.chip span:hover { border-color: var(--black); }
.chip input:checked + span { background: var(--aqua-l); border-color: var(--black); font-weight: 600; }
.chip input:focus-visible + span { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--black); }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; cursor: pointer; }
.chk input { margin: 0; width: 18px; height: 18px; accent-color: var(--black); }
.form-error { color: var(--error); min-height: 1.2em; margin: 12px 0 0; font-size: 14px; font-weight: 600; }

/* ---------- Navigation ---------- */
.am-nav { background: var(--white); border-bottom: 1px solid var(--slate-l); position: sticky; top: 0; z-index: 20; }
.am-nav .wrap { max-width: 1280px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.am-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.am-brand .logo { display: block; line-height: 0; text-decoration: none; }
.am-brand .logo img { height: 28px; width: auto; display: block; }
.am-brand .app { display: flex; align-items: center; gap: 10px; padding-left: 16px; border-left: 1px solid var(--slate-l); text-decoration: none; }
.am-brand .app > span:last-child { font-family: var(--head); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.tabs { display: flex; gap: 6px; }
.tab { background: var(--white); border: 1.5px solid var(--slate-l); color: var(--black); height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tab:hover { border-color: var(--black); }
.tab.is-active { background: var(--black); border-color: var(--black); color: var(--white); }

/* ---------- Hero (Frisch) ---------- */
.am-hero { background: linear-gradient(90deg, #A5FFFF 0%, #96F1CE 100%); padding: 64px 0 152px; overflow: hidden; }
.am-hero .wrap { display: flex; gap: 48px; align-items: center; }
.am-hero-text { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.am-hero h1 { font-size: 52px; line-height: 1.08; letter-spacing: -0.03em; }
.am-hero .am-lead { color: var(--black); }
.am-steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; font-weight: 500; }
.am-steps li { display: flex; align-items: center; gap: 10px; }
.am-steps b { font-family: var(--head); font-weight: 600; font-size: 14px; background: var(--white); border-radius: 999px; padding: 2px 10px; }
.am-hero-art { flex: 0 0 340px; height: 340px; border-radius: var(--r-xl); background: var(--aqua-d); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.am-hero-art > svg.pattern { position: absolute; inset: 0; }
.am-hero-art .disc { position: relative; width: 210px; height: 210px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-lg); }

/* Band (Unterseiten) */
.am-band { background: linear-gradient(90deg, #A5FFFF 0%, #96F1CE 100%); padding: 48px 0 56px; }
.am-band .wrap { display: flex; flex-direction: column; gap: 14px; }
.am-band h1 { font-size: 44px; line-height: 1.1; letter-spacing: -0.03em; }
.am-band .am-lead { color: var(--black); max-width: 760px; }
.am-band-fresh { padding-bottom: 120px; }

/* ---------- Upload-Karte ---------- */
.upload-card { max-width: 880px; margin: -104px auto 0; position: relative; }
.dropzone { border: 1.5px dashed var(--slate-l); border-radius: var(--r-l); padding: 40px 24px; text-align: center; transition: border-color 0.15s, background 0.15s; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dropzone.over { border: 2px solid var(--black); background: var(--aqua-l); padding: 39.5px 23.5px; }
.dz-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--grad-app); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.dropzone strong { font-family: var(--head); font-weight: 600; font-size: 21px; line-height: 1.25; }
.dropzone small { color: var(--slate-d); font-size: 14px; line-height: 1.45; max-width: 520px; }
.drop-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.cam-btn { display: none; }
@media (pointer: coarse) { .cam-btn { display: inline-flex; } }
.prep-status { margin-top: 16px; font-size: 14px; color: var(--slate-d); }
.thumbs { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.thumbs:empty { display: none; }
.thumb { margin: 0; position: relative; width: 84px; text-align: center; font-size: 11px; color: var(--slate-d); }
.thumb img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-m); border: 1px solid var(--slate-l); display: block; margin-bottom: 4px; }
.thumb figcaption { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb-x { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--black); color: var(--white); border: 2px solid var(--white); font-size: 13px; line-height: 18px; text-align: center; cursor: pointer; padding: 0; }
.thumb-x:hover { background: var(--slate-d); }
.upload-card > .field { margin-top: 28px; }
.go-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--slate-l); }
.count { font-size: 15px; font-weight: 600; }
.am-trust { max-width: 880px; margin: 40px auto 96px; padding: 0 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.am-trust div { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--slate-d); line-height: 1.5; }
.am-trust b { font-family: var(--head); font-weight: 600; font-size: 19px; color: var(--black); display: flex; align-items: center; gap: 10px; }

/* ---------- Fortschritt ---------- */
.processing { max-width: 880px; margin: -88px auto 96px; position: relative; }
.steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 40px auto 1fr; gap: 14px; align-items: center; color: var(--slate); font-weight: 500; }
.steps li b { font-weight: 600; }
.steps .dot { width: 40px; height: 40px; border-radius: var(--r-m); border: 1.5px solid var(--slate-l); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 600; font-size: 14px; }
.steps .step-info { text-align: right; font-size: 14px; color: var(--slate-d); }
.steps li.done { color: var(--black); }
.steps li.done .dot { background: var(--mint); border-color: var(--mint); }
.steps li.active { color: var(--black); }
.steps li.active .dot { background: var(--grad-app); border-color: var(--black); }
.progress-track { display: block; height: 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--slate-l); overflow: hidden; }
.progress-bar { display: block; height: 100%; background: var(--grad-line); border-radius: 999px; transition: width 0.35s ease; }
.proc-error { margin-top: 20px; }
.live-items { margin-top: 8px; }
.live-items ul { list-style: none; margin: 0; padding: 0; columns: 2 280px; column-gap: 28px; font-size: 15px; }
.live-items li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--slate-l); }
.live-items li span { font-size: 12px; font-weight: 600; color: var(--slate-d); }
.live-items li b { float: right; font-family: var(--head); font-weight: 600; }

/* ---------- Ergebnis-Kopf (Primary) mit Fundstücken ---------- */
.am-result-hero { background: linear-gradient(135deg, #A5FFFF 0%, #96F1CE 55%, #4DE9AC 100%); padding: 48px 0 56px; position: relative; overflow: hidden; }
.am-result-hero > svg.bigmark { position: absolute; right: -80px; top: -60px; width: 440px; height: 440px; pointer-events: none; }
.am-result-hero .wrap { position: relative; display: flex; flex-direction: column; gap: 16px; }
.job-title { font-size: 48px; line-height: 1.08; letter-spacing: -0.03em; max-width: 820px; word-break: break-word; border-radius: var(--r-s); }
.job-title:hover { box-shadow: inset 0 -3px 0 var(--black); }
.job-title:empty::before { content: attr(data-ph); color: var(--slate-d); }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.finds { margin-top: 16px; }
.finds-title { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 14px; }
.highlights { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.hl-card { all: unset; box-sizing: border-box; cursor: pointer; background: var(--white); border-radius: var(--r-l); box-shadow: var(--sh-md); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.15s; }
.hl-card:hover { box-shadow: inset 0 0 0 2px var(--black), var(--sh-lg); }
.hl-card:focus-visible { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--black); }
.hl-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--black); }
.hl-name { font-size: 14px; font-weight: 500; line-height: 1.35; padding: 12px 14px 4px; overflow-wrap: anywhere; }
.hl-price { font-family: var(--head); font-weight: 600; font-size: 18px; padding: 0 14px 14px; margin-top: auto; }

/* ---------- Werte ---------- */
.am-block { padding: 64px 0 0; }
.am-block-head { display: flex; flex-direction: column; margin-bottom: 24px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kpi { background: var(--white); border-radius: var(--r-l); box-shadow: var(--sh-md); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.kpi-hl { background: var(--black); }
.kpi-hl .kpi-label, .kpi-hl .kpi-value, .kpi-hl .kpi-note { color: var(--white); }
.kpi-hl .kpi-value { color: var(--aqua); }
.kpi-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-d); }
.kpi-value { font-family: var(--head); font-weight: 600; font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; }
.kpi-note { font-size: 14px; color: var(--slate-d); line-height: 1.45; }
.ledger-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.ledger-foot .cost { margin-left: auto; font-size: 13px; color: var(--slate-d); }

/* ---------- Gutachten (Akkordeon) ---------- */
.verdict { margin-top: 32px; background: var(--white); border-radius: var(--r-l); box-shadow: var(--sh-md); overflow: hidden; position: relative; }
.verdict[open]::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad-line); }
.verdict > summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; gap: 16px; }
.verdict > summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .verdict > summary:hover { box-shadow: inset 0 0 0 2px var(--black); border-radius: var(--r-l); } .verdict[open] > summary:hover { border-radius: var(--r-l) var(--r-l) 0 0; } }
.verdict[open] > summary { border-bottom: 1px solid var(--slate-l); }
.verdict[open] .chev { transform: rotate(180deg); }
.verdict-head { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.verdict-title { font-family: var(--head); font-weight: 600; font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; }
.verdict-body { padding: 8px 28px 28px; }
.verdict-text { font-size: 17px; line-height: 1.6; max-width: 900px; margin: 16px 0; }
.verdict .bid { margin: 8px 0 8px; }
.verdict-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.num-list { margin: 0; padding: 0; list-style: none; counter-reset: n; }
.num-list li { position: relative; padding-left: 40px; margin-bottom: 12px; line-height: 1.55; counter-increment: n; }
.num-list li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--head); font-weight: 600; font-size: 13px; background: var(--mint); border-radius: 999px; padding: 1px 7px; }
.warns { margin: 0; padding: 0; list-style: none; }
.warns li { position: relative; padding: 12px 16px 12px 44px; margin-bottom: 10px; background: var(--aqua-l); border-radius: var(--r-m); line-height: 1.5; font-size: 15px; }
.warns li::before { content: '!'; position: absolute; left: 14px; top: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--black); color: var(--white); font-weight: 700; font-size: 13px; line-height: 20px; text-align: center; }

/* ---------- Filter + Liste ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters input[type=search] { flex: 1 1 240px; width: auto; }
.filters select { width: auto; flex: 0 1 220px; }
.items { display: grid; gap: 16px; }
.item { display: grid; grid-template-columns: 120px 1fr 200px; gap: 20px; align-items: start; background: var(--white); border-radius: var(--r-l); box-shadow: var(--sh-md); padding: 16px; position: relative; }
.item.is-excluded { box-shadow: none; border: 1.5px dashed var(--slate-l); }
.item.is-excluded h3, .item.is-excluded .tag-price { color: var(--slate); text-decoration: line-through; }
.item.flash { box-shadow: inset 0 0 0 3px var(--black), var(--sh-lg); }
.item-photo { position: relative; }
.item-photo img { width: 120px; height: 120px; object-fit: cover; display: block; border-radius: var(--r-m); cursor: zoom-in; background: var(--black); }
.nophoto { width: 120px; height: 120px; border-radius: var(--r-m); background: var(--aqua-l); }
.pcount { position: absolute; right: 6px; bottom: 6px; background: var(--black); color: var(--white); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.item-body { min-width: 0; overflow-wrap: anywhere; }
.item-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.nr { flex: 0 0 auto; min-width: 32px; height: 26px; padding: 0 8px; border-radius: var(--r-s); background: var(--grad-app); font-family: var(--head); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.cat { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-d); }
.badge { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.badge-warn { background: var(--black); color: var(--white); }
.badge-gold { background: var(--mint); color: var(--black); }
.badge-grey { background: var(--slate-l); color: var(--black); }
.item h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 4px; hyphens: auto; }
.qty { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px; color: var(--slate-d); }
.meta { margin: 0; color: var(--slate-d); font-size: 14px; }
.check { margin: 10px 0 0; font-size: 14px; background: var(--aqua-l); padding: 8px 12px; border-radius: var(--r-m); line-height: 1.45; }
.item details { margin-top: 10px; }
.item summary { cursor: pointer; font-size: 14px; font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.item summary::-webkit-details-marker { display: none; }
.item summary::after { content: '+'; font-weight: 700; }
.item details[open] summary::after { content: '–'; }
.det { font-size: 15px; padding-top: 10px; line-height: 1.55; }
.det p { margin: 0 0 10px; }
.sources { margin: 4px 0 10px; }
.sources ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.sources li { font-size: 14px; line-height: 1.45; }
.sources a { word-break: break-word; }
.sources .muted { font-size: 12px; margin-left: 4px; }
.src-kind { display: inline-block; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 999px; margin-right: 6px; vertical-align: 1px; }
.k-sold { background: var(--mint); }
.k-guide { background: var(--aqua-l); }
.k-offer { background: var(--slate-l); }
.src-amt { font-family: var(--head); font-weight: 600; font-size: 14px; margin-left: 4px; white-space: nowrap; }
.edit-row { display: grid; grid-template-columns: 110px 170px auto 1fr; gap: 12px; align-items: end; padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--slate-l); }
.edit-row label { font-size: 13px; font-weight: 600; }
.edit-row input[type=text], .edit-row input[type=number] { padding: 8px 12px; font-size: 15px; }
.edit-row .chk { padding-bottom: 10px; }

/* Preis-Panel */
.tag { background: var(--aqua-l); border-radius: var(--r-l); padding: 16px 18px; display: grid; gap: 2px; align-content: start; }
.tag-lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-d); }
.tag-price { font-family: var(--head); font-weight: 600; font-size: 24px; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 8px; }
.tag-sub { font-family: var(--head); font-weight: 600; font-size: 17px; }
.tag-each { font-size: 12px; color: var(--slate-d); margin-top: 6px; }
.tag-conf { justify-self: start; margin-top: 10px; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--white); }
.tag-conf.conf-ok { background: var(--mint); }
.tag-conf.conf-low { background: var(--black); color: var(--white); }
.tag.unverified { background: var(--white); border: 1.5px dashed var(--slate-l); }
.tag.unverified .tag-price, .tag.unverified .tag-sub { color: var(--slate); text-decoration: line-through; }
.disclaimer { font-size: 13px; color: var(--slate-d); margin: 40px auto 0; text-align: center; max-width: 760px; }

/* ---------- Archiv ---------- */
.archive-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.archive-head input { max-width: 320px; }
.archive-list { display: grid; gap: 14px; margin: 40px 0 0; }
.arch { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; align-items: center; padding: 14px; background: var(--white); border-radius: var(--r-l); box-shadow: var(--sh-md); }
.arch:hover { box-shadow: inset 0 0 0 2px var(--black), var(--sh-md); }
.arch:focus-visible { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--black); }
.arch-img, .arch-img img { width: 84px; height: 84px; object-fit: cover; display: block; border-radius: var(--r-m); background: var(--aqua-l); }
.arch-body { display: grid; gap: 3px; min-width: 0; }
.arch-body .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate-d); }
.arch-body b { font-family: var(--head); font-weight: 600; font-size: 20px; line-height: 1.3; }
.arch-body .muted { font-size: 14px; }
.arch-body .badge { justify-self: start; }
.arch-val { font-family: var(--head); font-weight: 600; font-size: 22px; text-align: right; white-space: nowrap; }
.arch-val small { display: block; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; color: var(--slate-d); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Login ---------- */
.login { padding: 64px 0 96px; }
.login-card { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.login-card form { margin-top: 8px; }
.login-card .btn { margin-top: 24px; }

/* ---------- Footer (Secondary) ---------- */
.am-footer { margin-top: 96px; background: linear-gradient(160deg, #555C66 0%, #1E252B 100%); color: var(--white); padding: 40px 0; font-size: 14px; }
.am-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.am-footer b { font-family: var(--head); font-weight: 600; font-size: 18px; }
.am-footer a { color: var(--white); text-decoration-color: var(--mint); }
.am-footer a:hover { color: var(--mint-l); }

/* ---------- Modal / Toast ---------- */
.modal { position: fixed; inset: 0; background: rgba(30,37,43,0.82); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal-box { background: var(--white); border-radius: var(--r-xl); max-width: 640px; width: 100%; max-height: 92vh; overflow: auto; padding: 24px; position: relative; box-shadow: var(--sh-lg); }
.modal-wide .modal-box { max-width: 1100px; padding: 12px; background: var(--black); }
.modal-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--white); color: var(--black); font-size: 22px; line-height: 1; cursor: pointer; z-index: 2; box-shadow: var(--sh-md); }
.lightbox { margin: 0; text-align: center; }
.lightbox img { max-width: 100%; max-height: 76vh; display: block; margin: 0 auto; border-radius: var(--r-m); }
.lightbox figcaption { color: var(--white); font-size: 13px; padding: 10px; }
.lb-nav { display: flex; justify-content: center; gap: 10px; padding-bottom: 6px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%); background: var(--black); color: var(--white); padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: transform 0.25s; z-index: 60; max-width: calc(100vw - 32px); box-shadow: var(--sh-lg); }
.toast.show { transform: translate(-50%, 0); }

/* ---------- Responsiv ---------- */
@media (max-width: 960px) {
  .am-hero-art { display: none; }
  .item { grid-template-columns: 96px 1fr; }
  .item-photo img, .nophoto { width: 96px; height: 96px; }
  .tag { grid-column: 1 / -1; grid-template-columns: auto 1fr auto 1fr; align-items: baseline; column-gap: 10px; }
  .tag-price { margin-bottom: 0; font-size: 21px; }
  .tag-each, .tag-conf { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .am-nav .wrap { flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; min-height: 0; }
  .tabs { width: 100%; }
  .tab { flex: 1; }
  .am-hero { padding: 40px 0 120px; }
  .am-hero h1, .job-title { font-size: 34px; line-height: 1.12; }
  .am-band h1 { font-size: 32px; }
  .am-lead { font-size: 17px; }
  .am-card { padding: 24px 20px; border-radius: var(--r-l); }
  .upload-card { margin-top: -88px; }
  .field-row, .verdict-cols { grid-template-columns: 1fr; gap: 0; }
  .verdict-cols { gap: 8px; }
  .go-row .btn { width: 100%; }
  .am-trust { grid-template-columns: 1fr; margin: 32px auto 64px; padding: 0 16px; }
  .am-result-hero { padding: 36px 0 40px; }
  .am-result-hero > svg.bigmark { width: 280px; height: 280px; right: -110px; top: -40px; }
  .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hl-name { padding: 10px 12px 2px; font-size: 13px; }
  .hl-price { padding: 0 12px 12px; font-size: 16px; }
  .kpis { grid-template-columns: 1fr; }
  .kpi-value { font-size: 30px; }
  .am-block { padding-top: 48px; }
  .am-h2 { font-size: 26px; }
  .verdict > summary { padding: 16px; gap: 12px; }
  .verdict-icon { display: none; }
  .verdict-title { font-size: 18px; }
  .verdict-body { padding: 4px 16px 20px; }
  .ledger-foot .cost { margin-left: 0; width: 100%; }
  .item { grid-template-columns: 76px 1fr; gap: 12px; padding: 14px; }
  .item-photo img, .nophoto { width: 76px; height: 76px; }
  .item h3 { font-size: 18px; }
  .edit-row { grid-template-columns: 1fr 1fr; }
  .edit-row .note { grid-column: 1 / -1; }
  .arch { grid-template-columns: 64px 1fr; }
  .arch-img, .arch-img img { width: 64px; height: 64px; }
  .arch-val { grid-column: 2; text-align: left; }
  .processing { margin-top: -88px; }
  .steps li { grid-template-columns: 40px 1fr; }
  .steps .step-info { grid-column: 2; text-align: left; margin-top: -10px; }
}
@media (max-width: 480px) {
  .am-brand .logo img { height: 24px; }
  .am-brand .app { padding-left: 12px; gap: 8px; }
  .app-icon { width: 34px; height: 34px; border-radius: 10px; }
  .tag { grid-template-columns: auto 1fr; }
}

/* ---------- Druck ---------- */
@media print {
  .am-nav, .am-footer, .no-print, .filters, .toast, .modal, .item summary, .chev { display: none !important; }
  body { font-size: 11pt; display: block; }
  .am-result-hero { background: var(--white); padding: 0 0 16px; border-bottom: 3px solid var(--black); }
  .am-result-hero > svg.bigmark { display: none; }
  .hl-card, .kpi, .verdict, .item { box-shadow: none; border: 1px solid var(--slate-l); }
  .kpi-hl { background: var(--white); }
  .kpi-hl .kpi-label, .kpi-hl .kpi-note, .kpi-hl .kpi-value { color: var(--black); }
  .item { break-inside: avoid; grid-template-columns: 70px 1fr 150px; padding: 10px; gap: 12px; }
  .item-photo img { width: 70px; height: 70px; }
  .item details > * { display: block; }
  .highlights, .kpis, .verdict { break-inside: avoid; }
  .am-block { padding-top: 24px; }
  a { text-decoration: none; }
}
