/* Katalog (Verkaufen, Spiel, Set, Suche, Gesucht, Karte, Bulk, Sammlung, Liste einfügen, Ankaufsliste) – E5-Fassung.
   .sellbar/.cartpanel/.rrow/.tile bleiben in app.css; hier nur Seitenteile. */

/* == Überschriften: Unterzeile statt Eyebrow */
.cat-head{margin:0 0 18px}
.cat-head h2{margin:0;font-size:clamp(21px,2vw,26px)}
.h-sub{margin:6px 0 0;color:var(--ink-2);font-size:14.5px;font-weight:650}
.cat-wrap{padding-top:26px;padding-bottom:20px}
.cat-wrap-b{padding-bottom:24px}
.cat-empty{margin-top:24px}

/* == Verkaufen: Suche, Spiele, drei Wege für viele Karten (ein Beleg mit Perforation statt drei Karten) */
.sell-search{max-width:760px;margin-bottom:30px}
.sell-games{margin-bottom:48px}
.routes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-radius:var(--r-l);background:#fff;box-shadow:var(--sh-1),inset 0 0 0 1px var(--line)}
.route{position:relative;display:flex;align-items:center;gap:14px;min-height:96px;padding:20px 22px;color:var(--ink);text-decoration:none;transition:background-color .18s ease}
.route:first-child{border-radius:var(--r-l) 0 0 var(--r-l)}
.route:last-child{border-radius:0 var(--r-l) var(--r-l) 0}
.route+.route::before{content:"";position:absolute;left:0;top:18px;bottom:18px;border-left:1.5px dashed var(--line-2)}
.route-ico{display:grid;flex:none;place-items:center;width:46px;height:46px;border-radius:14px;background:var(--sakura);color:var(--sakura-ink)}
.route-t{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
.route-t b{font:800 17px/1.2 var(--round);letter-spacing:-.01em}
.route-t span{color:var(--ink-2);font-size:14px;line-height:1.4}
.route>svg:last-child{flex:none;color:var(--ichigo-hover);transition:transform .2s var(--ease-out)}
.route:active{background:var(--bg)}
.route:focus-visible{outline-offset:-3px}

/* == Spiel: Kopf-Hinweise, Set-Auswahl im Leerlauf */
.ph-notice{margin-top:14px}
.idle-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:8px 20px;margin:8px 0 16px}
.idle-tip{max-width:40ch;margin:0;color:var(--ink-2)}
.sets-more{margin-top:14px}
.sets-more>summary{list-style:none;display:inline-flex}
.sets-more>summary::-webkit-details-marker{display:none}
.sets-more[open]>summary{margin-bottom:14px}
.set-card{position:relative}
.set-card small{font-family:var(--round);font-weight:800;color:var(--ink-2)}
.more-row{margin-top:22px}

/* == Gesucht: Butter = Hervorhebung */
.hot-hero{--c:var(--butter-2)}
.hot-hero .hk{font-size:15px}
.hot-hero h1{margin-bottom:4px}
.hot-sub{display:flex;align-items:center;gap:6px;margin:0 0 12px;color:var(--butter-ink)}

/* == Ergebnis-Kopf: Zähler + Preisbasis links, Sortierung + Ansicht rechts, Stand darunter (bricht nicht mehr um) */
@media (min-width:521px){
  .sellinfo{display:grid;grid-template-columns:auto minmax(0,auto) 1fr auto auto;grid-template-areas:"count for gap sort view" "stamp stamp stamp stamp stamp";align-items:center;gap:6px 12px}
  .sellinfo .count{grid-area:count}
  .sellinfo .for{grid-area:for;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  .sellinfo .spacer{grid-area:gap}
  .sellinfo .stamp{grid-area:stamp}
  .sellinfo .sort-sel{grid-area:sort}
  .sellinfo .viewtoggle{grid-area:view}
}
@media (max-width:520px){
  .sellinfo{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"count sort" "stamp sort";align-items:center;gap:2px 10px}
  .sellinfo .count{grid-area:count}
  .sellinfo .stamp{grid-area:stamp}
  .sellinfo .sort-sel{grid-area:sort}
  .sellinfo .spacer{display:none}
  .sort-sel select{height:40px;max-width:min(60vw,236px);padding-right:30px;text-overflow:ellipsis}
}
.sellinfo .stamp{color:var(--ink-3)}
@media (max-width:420px){.sellinfo{grid-template-areas:"count count" "stamp sort";gap:6px 10px}}
@media (max-width:900px){.sb-opts>.sb-sel:last-child:not(.hl){grid-column:1/-1}}
/* Set-Kopf mit Logo: Text darf umbrechen statt aus dem Bild zu laufen */
.ph-row>div{min-width:0}
@media (max-width:520px){.ph-row{flex-wrap:wrap;gap:10px}.ph-row img.set-logo{height:44px;max-width:160px}}

/* == Kartenseite */
.kp-page{padding-top:22px;padding-bottom:40px}
.kp-card{overflow:hidden}
.kp-card .cm-grid{grid-template-columns:360px minmax(0,1fr)}
.kp-card .cm-img{justify-content:flex-start;padding-top:44px}
.kp-card .cm-img img{height:auto}
.kp-title .flag-hot{margin-bottom:10px}
.kp-title h1{margin:0;font-size:clamp(26px,2.6vw,34px)}
.kp-title .cm-meta{margin-top:10px}
.kp-card .cm-body>.btn-lg{align-self:flex-start}
.kp-note{margin:0}
.kp-others{margin-top:44px}
@media (max-width:820px){
  .kp-card .cm-grid{grid-template-columns:minmax(0,1fr)}
  .kp-card .cm-body>.btn-lg{align-self:stretch;height:auto;min-height:56px;padding:10px 20px;white-space:normal;text-align:center}
}

/* == Bulk: jede Sorte eine Zeile, der Preis rechts groß */
.bulk-game{margin-bottom:18px}
.bulk-rows{padding:4px 24px 8px}
.bulk-row{display:grid;grid-template-columns:minmax(0,1fr) auto 150px auto;align-items:center;gap:12px 22px;padding:16px 0;border-bottom:1.5px dashed var(--line)}
.bulk-row:last-child{border-bottom:0}
.bulk-name b{color:var(--ink);font-size:16px;font-weight:750}
.bulk-name .small{margin-top:2px;color:var(--ink-2)}
.bulk-qty{display:flex;align-items:center;gap:8px;color:var(--ink-2);font-size:13px;font-weight:700}
.bulk-qty .input{width:112px;font-family:var(--round);font-weight:800;font-size:16px;font-variant-numeric:tabular-nums}
.bulk-price{text-align:right}
.bulk-lbl{display:block;color:var(--ink-2);font-size:12px;font-weight:700}
.bulk-price b{display:block;color:var(--ink);font:800 23px/1.15 var(--round);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.bulk-cred{color:var(--money);font-size:12.5px;font-weight:700}
@media (max-width:760px){
  .bulk-rows{padding:0 18px 4px}
  .bulk-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name name" "qty price" "add add";gap:12px}
  .bulk-name{grid-area:name}.bulk-qty{grid-area:qty}.bulk-price{grid-area:price}
  .bulk-row .btn{grid-area:add;width:100%;height:44px}
  .bulk-qty .input{height:44px;width:120px}
}

/* == Sammlung */
.coll{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:start;gap:24px}
.coll-form input[type=file].input{padding:10px}
.coll-legal{margin:12px 0 0}
.coll-side{position:sticky;top:calc(var(--stick) + 16px);padding:6px 24px}
.coll-sec{padding:18px 0}
.coll-sec+.coll-sec{border-top:1.5px dashed var(--line-2)}
.coll-sec h2{font-size:19px;letter-spacing:-.01em;display:flex;align-items:center;gap:8px;margin-bottom:10px}
.coll-sec h2 svg{color:var(--sakura-ink)}
.coll-sec p{margin:0;color:var(--ink-2)}
.coll-steps{margin:0;padding:0;list-style:none;counter-reset:st}
.coll-steps li{position:relative;padding:0 0 10px 36px;color:var(--ink-2);font-size:14.5px;line-height:1.5;counter-increment:st}
.coll-steps li::before{content:counter(st);position:absolute;left:0;top:-1px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--ink);color:#fff;font:800 12.5px/1 var(--round)}
@media (max-width:860px){.coll{grid-template-columns:minmax(0,1fr)}.coll-side{position:static}}

/* == Liste einfügen */
.imp-form{margin-bottom:20px}
.imp-top{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-bottom:12px}
.imp-game{display:inline-flex;align-items:center;gap:8px;font-size:14px}
.imp-game .input{width:auto}
.imp-fmt{color:var(--ink-2);line-height:1.8}
.imp-text{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:15px}
.imp-go{margin-top:12px}
.imp-raw{max-width:220px}
.imp-card .input{min-width:260px}
.imp-q .input{width:74px}
.imp-c .input,.imp-l .input{width:auto}
.imp-warn{margin-top:4px;color:var(--amber);font-weight:700}
.imp-table tr.imp-open td{background:var(--butter)}
.imp-p b{font:800 16px var(--round);font-variant-numeric:tabular-nums}
.imp-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px 14px;border-top:1.5px dashed var(--line-2)}
@media (max-width:760px){
  .imp-result .table-wrap{overflow:visible}
  .imp-table thead{display:none}
  .imp-table,.imp-table tbody{display:block}
  .imp-table tr{display:grid;grid-template-columns:64px minmax(0,1fr) minmax(0,1.25fr) auto;grid-template-areas:"raw raw raw raw" "card card card card" "q c l p";align-items:center;gap:8px;padding:14px 16px;border-bottom:1.5px dashed var(--line)}
  .imp-table td{display:block;padding:0;border:0}
  .imp-table tr.imp-open{background:var(--butter)}
  .imp-table tr.imp-open td{background:none}
  .imp-raw{grid-area:raw;max-width:none}.imp-card{grid-area:card}.imp-q{grid-area:q}.imp-c{grid-area:c}.imp-l{grid-area:l}.imp-p{grid-area:p}
  .imp-card .input{min-width:0;width:100%}
  .imp-q .input,.imp-c .input,.imp-l .input{width:100%;height:44px;font-size:16px}
  .imp-c .input,.imp-l .input{padding:0 26px 0 12px;background-position:right 10px center}
  .imp-foot .btn{width:100%}
}

/* == Ankaufsliste (Seite): Liste links, Beleg rechts */
.list-page{padding-top:22px;padding-bottom:40px}
.co-steps{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:4px 0 18px}
.co-steps .cs{display:inline-flex;align-items:center;gap:8px;color:var(--ink-2);font-size:14px;font-weight:700}
.co-steps .cs i{display:grid;flex:none;place-items:center;width:28px;height:28px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line-2);color:var(--ink-2);font:800 13px/1 var(--round);font-style:normal}
.co-steps .cs.now{color:var(--ink)}
.co-steps .cs.now i{background:var(--ichigo);color:#fff;box-shadow:0 0 0 4px var(--sakura)}
.co-steps .cs-line{width:34px;height:0;border-top:2px dashed var(--line-2)}
.list-page .checkout{display:grid;grid-template-columns:minmax(0,1fr) 380px;align-items:start;gap:28px}
.list-page .co-summary{position:sticky;top:calc(var(--stick) + 16px)}
.list-lines .card-body{padding-top:6px;padding-bottom:6px}
.list-skel{height:96px;margin:12px 0}
.list-receipt{padding-top:24px}
.list-receipt:empty{display:none}
.list-receipt [data-cart-clear]{margin-top:6px;color:var(--ink-2)}
.list-more{margin:14px 4px 0}
@media (max-width:1000px){.list-page .checkout{grid-template-columns:minmax(0,1fr)}.list-page .co-summary{position:static}}
@media (max-width:640px){
  /* Handy: wie die Kasse (.co-page) – nur der aktuelle Schritt trägt Text, die anderen zeigen ihre Marke (Text bleibt für Screenreader); alle drei Schritte in einer Zeile */
  .co-steps{flex-wrap:nowrap;gap:6px}
  .co-steps .cs:not(.now) .cs-t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .co-steps .cs:not(.now){gap:0}
  .co-steps .cs.now{min-width:0;font-size:13.5px;line-height:1.25}
  .co-steps .cs-line{flex:none;width:18px}
}
@media (max-width:520px){.list-lines .card-body{padding-left:16px;padding-right:16px}}

/* Versions-Hinweis in der Trefferzeile: Butter-Markierung ohne eigenen Rahmen (keine Karte in der Karte) */
.rrow .vhint{box-shadow:none}

/* == Touch + Handy: Auswahlfelder in 16px (kein iOS-Zoom), Tippflächen mindestens 40px */
@media (max-width:760px),(pointer:coarse){
  .sb-sel select,.sort-sel select,.imp-game .input,.imp-text{font-size:16px}
  .sort-sel select{height:40px}
  .vchip{min-height:40px}
  .rrow-name button{margin:-10px 0;padding:10px 0}
  .coll-form input[type=file].input{min-height:48px;padding:12px}
}
/* Kartenseite: das Bild wandert beim Lesen mit, statt eine leere Spalte zu hinterlassen */
@media (min-width:821px){.kp-card .cm-img img{position:sticky;top:calc(var(--stick) + 28px)}}

/* == Hover nur mit Maus */
@media (hover:hover) and (pointer:fine){
  .route:hover{background:var(--bg)}
  .route:hover>svg:last-child{transform:translateX(3px)}
  .route:hover .route-ico{background:var(--sakura-2)}
}
@media (max-width:860px){
  .routes{grid-template-columns:minmax(0,1fr)}
  .route{min-height:84px;padding:16px 18px}
  .route:first-child{border-radius:var(--r-l) var(--r-l) 0 0}
  .route:last-child{border-radius:0 0 var(--r-l) var(--r-l)}
  .route+.route::before{left:18px;right:18px;top:0;bottom:auto;border-left:0;border-top:1.5px dashed var(--line-2)}
}
