/* frontend/assets/styles.css */
/* BORBEX — clean, modern, collector-first (no-emoji UI, icon-based) */

:root{
  --bgA:#f7fbff;
  --bgB:#fff7ee;

  --ink:#0b0f1f;
  --muted: rgba(11,15,31,.62);

  --panel: rgba(255,255,255,.78);
  --panel2: rgba(255,255,255,.92);

  --line: rgba(11,15,31,.12);

  --pink:#ff3ea5;
  --cyan:#00d2ff;
  --yellow:#ffd400;
  --purple:#6a5cff;
  --green:#12c97a;
  --red:#ff4d4d;

  --shadow: 0 18px 48px rgba(17, 31, 60, .16);
  --shadow2: 0 10px 24px rgba(17, 31, 60, .12);
  --radius: 18px;

  --cardRadius: 18px;
  --cardPad: 10px;

  --container: 1200px;
}

/* base */
*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--ink);
  background:
    radial-gradient(1100px 650px at 12% 12%, rgba(255,62,165,.16), transparent 60%),
    radial-gradient(1000px 620px at 78% 18%, rgba(0,210,255,.16), transparent 55%),
    radial-gradient(900px 560px at 65% 92%, rgba(255,212,0,.12), transparent 58%),
    linear-gradient(180deg, var(--bgA), var(--bgB));
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* subtle texture (professional, not noisy) */
body:before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 1px 1px, rgba(11,15,31,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity:.22;
  mask-image: radial-gradient(70% 70% at 35% 10%, #000 35%, transparent 80%);
}

/* links */
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:none; }

/* accessibility */
.skipLink{
  position:absolute;
  left:-999px; top:10px;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow2);
  z-index: 1000;
}
.skipLink:focus{ left:12px; }

/* icons (inline SVG) */
.iconSprite{ position:absolute; width:0; height:0; overflow:hidden; }
.icon{
  width: 18px;
  height: 18px;
  display:inline-block;
  vertical-align: -3px;
  color: currentColor;
  /* ensure SVG shapes inherit text color for fill/stroke */
  fill: currentColor;
  stroke: currentColor;
}
.inlineIcon{ display:inline-flex; align-items:center; justify-content:center; margin-right: 6px; opacity:.85; }

/* Make nav/button icons visually consistent and default to main ink color */
.nav .icon,
.btnIcon .icon{ color: var(--ink); fill: currentColor; stroke: currentColor; }

/* layout */
.container{ max-width: var(--container); margin:0 auto; padding: 18px; }
.grid{ display:grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: 16px; }

.card{
  grid-column: span 12;
  border:1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  backdrop-filter: blur(8px);
}
.cardHeader{ padding: 14px 16px; border-bottom:1px solid var(--line); background: rgba(255,255,255,.60); }
.cardBody{ padding: 14px 16px; }

.h1{ font-size: 26px; font-weight: 950; margin:0 0 6px 0; letter-spacing:.2px; }
.h2{ font-size: 18px; font-weight: 900; margin:0 0 10px 0; }
.muted{ color: var(--muted); }
.kbd{ font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

.row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.field{ display:flex; flex-direction:column; gap:6px; }
.label{ font-size: 13px; color: var(--muted); display:flex; align-items:center; }

.input, .select, textarea{
  width:100%;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.92);
  color: var(--ink);
  outline:none;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}
textarea{ min-height: 110px; resize: vertical; }

/* nav */
.nav{
  display:flex; justify-content:space-between; align-items:center;
  gap:12px;
  padding: 10px 12px;
  border-radius: 20px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow2);
  position: sticky; top: 12px; z-index: 20;
  backdrop-filter: blur(12px);
}
.brand{ display:flex; align-items:center; gap:10px; min-width: 180px; }
.brand .logoIcon{
  width: 34px; height: 34px;
  border-radius: 14px;
  border: 1px solid rgba(11,15,31,.14);
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 18px rgba(17,31,60,.10);
  display:none;
}
.brand .logoText{ height: 26px; display:block; opacity: .98; }
@media (max-width: 560px){
  .brand{ min-width: auto; }
  .brand .logoText{ display:none; }
  .brand .logoIcon{ display:block; }
}
.navRight{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
@media (max-width: 560px){
  .nav{ border-radius: 16px; }
  .navRight{ gap:8px; }
  .pill{ display:none; }
}

.pill{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.86);
  color: var(--muted);
  font-size: 13px;
}

/* buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11,15,31,.14);
  background: rgba(255,255,255,.90);
  cursor:pointer;
  font-weight: 900;
  color: var(--ink);
  box-shadow: 0 10px 18px rgba(17,31,60,.10);
  transition: transform .08s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 14px 26px rgba(17,31,60,.14); }
.btn:active{ transform: translateY(0); }

.btnPrimary{
  border-color: rgba(255,62,165,.38);
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.84)),
    linear-gradient(90deg, rgba(255,62,165,.22), rgba(0,210,255,.18));
}
.btnPrimary:hover{ filter: saturate(1.08); }

.btnGhost{ background: rgba(255,255,255,.78); }
.btnDanger{ border-color: rgba(255,77,77,.45); }
.btnSmall{ padding: 8px 10px; border-radius: 12px; font-size: 13px; font-weight: 900; }
.btnLg{ padding: 12px 14px; border-radius: 16px; font-size: 14px; }

hr.sep{ border:none; height:1px; background: var(--line); margin: 12px 0; }

/* tables */
.table{ width:100%; border-collapse: collapse; }
.table th,.table td{ border-bottom:1px solid var(--line); padding: 10px 6px; text-align:left; vertical-align: top; }
.table th{ font-size: 12px; letter-spacing:.4px; color: var(--muted); font-weight: 950; }

/* --- TCG Cards (shared across pages) --- */
.products{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  align-items: stretch;
}
.productsRoomy{
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.tcgCard{
  position:relative;
  border-radius: var(--cardRadius);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow2);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  height:100%;
  min-width: 0;
}
.tcgCard:before{
  content:"";
  position:absolute; inset:0;
  padding:1px;
  border-radius: inherit;
  background: conic-gradient(from 180deg,
    rgba(255,62,165,.72),
    rgba(0,210,255,.72),
    rgba(255,212,0,.64),
    rgba(106,92,255,.72),
    rgba(255,62,165,.72)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events:none;
  opacity:.55;
}
.tcgCard:hover{ transform: translateY(-2px); transition: transform .12s ease; }

.tcgCardLink{ cursor:pointer; }
.tcgCardLink:hover{ text-decoration:none; }

.tcgLink{ display:block; }

.tcgArt{
  width:100%;
  aspect-ratio: 5 / 7;
  background:
    radial-gradient(70% 55% at 50% 12%, rgba(0,210,255,.16), transparent 60%),
    radial-gradient(70% 55% at 50% 92%, rgba(255,62,165,.12), transparent 60%),
    rgba(11,15,31,.06);
  overflow:hidden;
}
.tcgArt img{
  width:100%; height:100%;
  object-fit: cover;
  display:block;
  filter: saturate(1.05) contrast(1.05);
}

.tcgBody{
  padding: var(--cardPad);
  display:flex;
  flex-direction:column;
  gap: 8px;
  flex:1;
  min-width:0;
}
.tcgTopline{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.tcgHeader{ display:flex; flex-direction:column; gap: 2px; min-width:0; }
.tcgName{
  font-weight: 950;
  line-height: 1.15;
  font-size: 14px;
  display:block;
  overflow:hidden;
  max-height: calc(1.15em * 2.4); /* ~2 Zeilen ohne Ellipsis */
  word-break: break-word;
  hyphens: auto;
}
.tcgSub{ font-size: 12px; color: var(--muted); overflow:hidden; text-overflow: ellipsis; white-space: nowrap; }
.price{ font-weight: 950; letter-spacing:.2px; white-space: nowrap; }

.tcgPriceRow{
  margin-top: auto;
  display:flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.tcgTags{ display:flex; gap:8px; }
.tcgTags{ flex-wrap: nowrap; overflow: hidden; min-height: 28px; }
.tag{
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(11,15,31,.14);
  background: rgba(255,255,255,.86);
  color: rgba(11,15,31,.72);
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.tag.ok{ border-color: rgba(18,201,122,.35); background: rgba(18,201,122,.10); color: rgba(10,70,45,.85); }
.tag.err{ border-color: rgba(255,77,77,.35); background: rgba(255,77,77,.10); color: rgba(90,15,15,.85); }
.tag.accent{ border-color: rgba(106,92,255,.40); background: rgba(106,92,255,.10); color: rgba(30,22,90,.82); }

.tagLink{
  border-color: rgba(11,15,31,.14);
  background: rgba(255,255,255,.82);
}

.tcgActions{ display:flex; gap:8px;   margin-top:auto;
}
.tcgActions .btn{ flex:1; }

/* disabled state */
.btn:disabled,
button:disabled{
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
}

/* focus */
.btn:focus-visible,
.input:focus-visible,
.select:focus-visible,
textarea:focus-visible,
a:focus-visible{
  outline: 3px solid rgba(0,210,255,.35);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; }
  .btn, .tcgCard{ transition:none !important; }
}

/* product layout */
.split{ display:grid; grid-template-columns: 380px 1fr; gap: 14px; }
@media (max-width: 920px){ .split{ grid-template-columns: 1fr; } }

/* cart items */
.cartList{ display:grid; gap:10px; }
.cartItem{
  display:flex; gap:12px; align-items:center; justify-content:space-between;
  padding: 10px 12px;
  border:1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
}
.cartLeft{ display:flex; gap:12px; align-items:center; }
.cartThumb{
  width:56px; height:78px;
  border-radius: 12px;
  border:1px solid rgba(11,15,31,.14);
  background: rgba(11,15,31,.06);
  object-fit: cover;
}
.cartMeta .name{ font-weight: 950; font-size: 14px; }
.cartMeta .sub{ font-size: 12px; color: var(--muted); }
.cartRight{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }

/* toast */
#toast{
  position:fixed; left:50%; bottom:18px; transform:translateX(-50%);
  background: rgba(255,255,255,.90);
  border:1px solid rgba(11,15,31,.14);
  border-radius: 16px;
  padding: 10px 12px;
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease;
  z-index: 50;
}
#toast.show{ opacity:1; }
#toast[data-type="ok"]{ border-color: rgba(18,201,122,.35); }
#toast[data-type="error"]{ border-color: rgba(255,77,77,.45); }

/* ---------- INDEX PAGE COMPONENTS ---------- */

/* ticker */
.ticker{
  width:100%;
  overflow:hidden;
  border-top:1px solid rgba(11,15,31,.10);
  border-bottom:1px solid rgba(11,15,31,.10);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
}
.tickerTrack{
  display:flex;
  gap: 18px;
  white-space: nowrap;
  padding: 10px 0;
  will-change: transform;
  animation: tickerMove 28s linear infinite;
}
.tickerTrack span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 13px;
  color: rgba(11,15,31,.80);
}
.tickerTrack strong{ font-weight: 950; }
.tickerTrack .icon{ width:16px; height:16px; opacity:.85; }
@keyframes tickerMove{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .tickerTrack{ animation: none; justify-content:center; flex-wrap:wrap; white-space: normal; }
}

/* hero */
.hero{
  margin-top: 16px;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
}

.heroCopy{
  border:1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
  padding: 18px;
  overflow:hidden;
  position: relative;
}
.heroCopy:before{
  content:"";
  position:absolute; inset:-1px;
  background: radial-gradient(900px 320px at 30% 0%, rgba(0,210,255,.20), transparent 60%),
              radial-gradient(900px 320px at 70% 10%, rgba(255,62,165,.16), transparent 60%);
  pointer-events:none;
}
.heroCopy > *{ position:relative; }

.heroBadgeRow{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom: 10px; }
.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11,15,31,.14);
  background: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 900;
}
.badgeSoft{ font-weight: 850; color: rgba(11,15,31,.78); }

.brandChips{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  margin: 6px 0 10px 0;
}
.brandChip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11,15,31,.14);
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 18px rgba(17,31,60,.08);
  max-width: 100%;
}
.brandChip img{
  height: 18px;
  width: auto;
  max-width: 110px;
  display:block;
}
.brandChipFallback{ display:none; font-weight: 950; font-size: 12px; color: rgba(11,15,31,.78); }

.heroTitle{
  margin: 6px 0 10px 0;
  font-size: 38px;
  line-height: 1.06;
  letter-spacing: -.4px;
  font-weight: 1000;
}
@media (max-width: 560px){ .heroTitle{ font-size: 30px; } }

.heroLead{ margin: 0 0 14px 0; color: rgba(11,15,31,.78); font-size: 15px; line-height: 1.55; }
.accentText{
  background: linear-gradient(90deg, rgba(255,62,165,.9), rgba(0,210,255,.9));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.heroCtas{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin: 12px 0 16px 0; }

.quickPick{
  border-top:1px solid rgba(11,15,31,.10);
  margin-top: 14px;
  padding-top: 14px;
}
.quickPickTitle{ font-weight: 950; margin-bottom: 10px; letter-spacing:.2px; }

.categoryGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 720px){
  .categoryGrid{ grid-template-columns: 1fr; }
}

.categoryCard{
  border:1px solid rgba(11,15,31,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 26px rgba(17,31,60,.10);
  padding: 12px 12px;
  display:flex;
  align-items:center;
  gap: 10px;
  transition: transform .10s ease, box-shadow .18s ease, filter .18s ease;
}
.categoryCard:hover{ transform: translateY(-1px); box-shadow: 0 16px 32px rgba(17,31,60,.14); }

.catIcon{
  width: 42px; height: 42px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 14px;
  border: 1px solid rgba(11,15,31,.14);
  background: rgba(255,255,255,.92);
  overflow:hidden;
  padding: 7px;
}
.catLogo{ width: 100%; height: 100%; object-fit: contain; display:block; }
.catLogoFallback{ display:none; font-weight: 950; font-size: 11px; color: rgba(11,15,31,.72); text-align:center; line-height:1.1; }

.catText{ display:flex; flex-direction:column; gap:2px; min-width: 0; }
.catTitle{ font-weight: 950; }
.catSub{ font-size: 12px; color: rgba(11,15,31,.68); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.catArrow{
  margin-left:auto;
  color: rgba(11,15,31,.55);
  display:flex;
  align-items:center;
  justify-content:center;
}
.catArrow .icon{ width: 18px; height: 18px; }

/* themed accents */
.catPokemon{ position:relative; }
.catPokemon:hover{ filter: saturate(1.05); }
.catPokemon .catIcon{ background: rgba(255,212,0,.12); border-color: rgba(255,212,0,.35); }

.catOnePiece{ position:relative; }
.catOnePiece:hover{ filter: saturate(1.05); }
.catOnePiece .catIcon{ background: rgba(255,62,165,.10); border-color: rgba(255,62,165,.32); }

.catLoL{ position:relative; }
.catLoL:hover{ filter: saturate(1.05); }
.catLoL .catIcon{ background: rgba(0,210,255,.10); border-color: rgba(0,210,255,.32); }

.heroVisual{
  border-radius: 22px;
  overflow:hidden;
  position:relative;
  min-height: 320px;
  border:1px solid rgba(11,15,31,.12);
  box-shadow: var(--shadow);
}
.heroImage{
  position:absolute; inset:0;
  background-image:
    linear-gradient(180deg, rgba(11,15,31,.25), rgba(11,15,31,.55)),
    var(--img);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.03);
}
.heroStats{
  position:absolute; left: 14px; right: 14px; bottom: 14px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 560px){
  .heroStats{ grid-template-columns: 1fr; }
}

.statCard{
  display:flex; gap:10px; align-items:center;
  padding: 10px 10px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.92);
}
.statIcon{
  width: 34px; height: 34px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 14px;
  background: rgba(255,255,255,.14);
}
.statIcon .icon{ width: 18px; height: 18px; }
.statTitle{ font-weight: 950; font-size: 13px; }
.statSub{ font-size: 12px; color: rgba(255,255,255,.78); }

/* sections */
.section{ margin-top: 16px; }
.sectionHeader{ display:flex; align-items:flex-end; justify-content:space-between; gap:10px; margin: 0 0 10px 0; }
.sectionKicker{ font-size: 12px; letter-spacing: .5px; color: rgba(11,15,31,.62); font-weight: 950; text-transform: uppercase; }
.sectionTitle{ margin: 2px 0 4px 0; font-size: 22px; font-weight: 1000; }
.sectionSub{ margin: 0; }

/* news */
.newsGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 980px){
  .newsGrid{ grid-template-columns: 1fr; }
}

.newsCard{
  border:1px solid rgba(11,15,31,.12);
  border-radius: 22px;
  overflow:hidden;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow2);
  display:flex;
  flex-direction:column;
}
.newsMedia{
  position:relative;
  height: 190px;
  background: rgba(11,15,31,.06);
}
.newsMedia img{ width:100%; height:100%; object-fit: cover; display:block; filter: saturate(1.05) contrast(1.03); }
.newsBody{ padding: 12px 12px; display:flex; flex-direction:column; gap: 8px; flex:1; }
.newsTitle{ margin:0; font-size: 16px; font-weight: 950; letter-spacing: .1px; }
.newsText{ margin:0; color: rgba(11,15,31,.74); line-height: 1.5; font-size: 13px; }
.newsMeta{ display:flex; gap:8px; flex-wrap:wrap; margin-top: auto; }

/* seal badge */
.newsSeal{
  position:absolute;
  right: 12px;
  top: 12px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(10px);
  display:flex;
  align-items:center;
  justify-content:center;
}
.sealRing{
  width: 78px;
  height: 78px;
  border-radius: 999px;
  border: 1px dashed rgba(255,255,255,.55);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  color: rgba(255,255,255,.92);
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.sealTop{ font-size: 10px; font-weight: 1000; letter-spacing: .8px; }
.sealMid{ font-size: 12px; font-weight: 1000; letter-spacing: .4px; }
.sealBot{ font-size: 10px; font-weight: 950; opacity:.9; }

/* skeleton loading */
.isSkeleton{ pointer-events:none; }
.isSkeleton:before{ opacity: .0; }
.isSkeleton .tcgArt{ background: rgba(11,15,31,.06); }
.skLine, .skPill, .skBtn{
  background: linear-gradient(90deg, rgba(11,15,31,.06), rgba(11,15,31,.10), rgba(11,15,31,.06));
  background-size: 200% 100%;
  animation: sk 1.1s ease-in-out infinite;
  border-radius: 10px;
}
.skLine{ height: 12px; }
.skLine.w80{ width: 80%; }
.skLine.w60{ width: 60%; }
.skRow{ display:flex; gap:8px; align-items:center; }
.skPill{ width: 54px; height: 22px; border-radius: 999px; }
.skBtn{ flex:1; height: 34px; border-radius: 12px; }
@keyframes sk{
  0%{ background-position: 0% 0%; }
  100%{ background-position: -200% 0%; }
}

/* footer */
.footer{
  margin: 18px 0 24px 0;
  padding: 14px 14px;
  border: 1px solid rgba(11,15,31,.10);
  border-radius: 22px;
  background: rgba(255,255,255,.70);
  box-shadow: var(--shadow2);
}
.footerGrid{ display:flex; align-items:flex-start; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.footerBrand{ font-weight: 1000; letter-spacing: .3px; }
.footerLinks{ display:flex; gap:12px; flex-wrap:wrap; }
.footerLinks a{ color: rgba(11,15,31,.75); font-weight: 900; }
.footerLinks a:hover{ text-decoration: underline; }

/* ---------- INSERAT PAGE COMPONENTS ---------- */

.pageHeader{
  margin-top: 16px;
  border:1px solid rgba(11,15,31,.12);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
  padding: 16px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.pageTitle{
  margin: 4px 0 6px 0;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -.3px;
  font-weight: 1000;
}
.pageSub{ margin: 0; }

.toolbar{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.toolbarField{
  min-width: 220px;
  flex: 1 1 260px;
}
.toolbarActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}
@media (max-width: 560px){
  .toolbarField{ flex: 1 1 100%; min-width: 0; }
  .toolbarActions{ width:100%; justify-content:stretch; }
  .toolbarActions .btn{ flex:1; }
}


/* ---------- SHOP: Kategorien + Self-made Dropdowns ---------- */

.srOnly{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip: rect(0,0,0,0);
  white-space: nowrap;
  border:0;
}

.shopTopRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.shopRight{ display:flex; align-items:center; justify-content:flex-end; }

.catTabs{
  display:flex;
  gap: 8px;
  align-items:center;
  flex: 1 1 auto;
  overflow-x: auto;
  padding: 4px 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.catTabs::-webkit-scrollbar{ display:none; }

.catTab{
  flex: 0 0 auto;
  scroll-snap-align: start;
  border: 1px solid rgba(11,15,31,.14);
  background: rgba(255,255,255,.86);
  color: rgba(11,15,31,.78);
  font-weight: 950;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 999px;
  cursor:pointer;
  box-shadow: 0 10px 18px rgba(17,31,60,.08);
  transition: transform .08s ease, box-shadow .18s ease, filter .18s ease;
  display:inline-flex;
  align-items:center;
  gap: 8px;
}
.catTab:hover{ transform: translateY(-1px); box-shadow: 0 14px 24px rgba(17,31,60,.12); }
.catTab.active{
  color: var(--ink);
  border-color: rgba(106,92,255,.45);
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.86)),
    linear-gradient(90deg, rgba(255,62,165,.20), rgba(0,210,255,.16));
}
.catTabMore{ padding-right: 10px; }

.shopSearchRow{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
}
.searchField{
  position:relative;
  flex: 1 1 320px;
  min-width: 220px;
}
.searchField .input{
  padding-right: 44px;
}
.searchClear{
  position:absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(11,15,31,.12);
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 18px rgba(17,31,60,.08);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity: 0;
  transition: opacity .12s ease, transform .08s ease, box-shadow .18s ease;
}
.searchClear:hover{ transform: translateY(-50%) translateY(-1px); box-shadow: 0 14px 24px rgba(17,31,60,.12); }

/* Self-made dropdown */
.dd{ position:relative; }
.ddBtn{
  white-space: nowrap;
}
.ddInline{ display:inline-flex; align-items:center; }

.ddMenu{
  position:absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  border-radius: 16px;
  border: 1px solid rgba(11,15,31,.14);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  padding: 8px;
  display:none;
  z-index: 40;
  backdrop-filter: blur(12px);
}
.dd.open .ddMenu{ display:block; }

.ddItem{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  padding: 10px 10px;
  cursor:pointer;
  font-weight: 950;
  color: rgba(11,15,31,.82);
}
.ddItem:hover{
  background: rgba(11,15,31,.05);
  border-color: rgba(11,15,31,.10);
}
.ddItem .ddMark{ opacity: 0; }
.ddItem.selected{
  background: rgba(106,92,255,.10);
  border-color: rgba(106,92,255,.22);
}
.ddItem.selected .ddMark{ opacity: .9; }

@media (max-width: 560px){
  .shopTopRow{ flex-wrap: wrap; }
  .shopRight{ width: 100%; justify-content: flex-start; }
  .ddMenu{ left: 0; right: auto; min-width: 240px; }
}



/* ===== TCG Logos integration ===== */
.tabInner{ display:inline-flex; align-items:center; gap:8px; min-width:0; }
.tabIcon{
  height:16px; width:auto; max-width:24px;
  object-fit:contain;
  display:block;
}
.ddLeft{ display:flex; align-items:center; gap:10px; min-width:0; }
.ddIcon{
  width:18px; height:18px;
  object-fit:contain;
  flex: 0 0 auto;
  border-radius: 4px;
}

.productSplit{
  display:grid;
  grid-template-columns: minmax(300px, 520px) minmax(0, 1fr);
  gap: 18px;
  align-items:start;
}
@media (max-width: 980px){
  .productSplit{ grid-template-columns: 1fr; }
}
.productPreview{ max-width:520px; margin:0; }
.productPanel{ box-shadow:none; background: var(--panel2); }
.productMetaLine{
  margin-top:6px;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.brandPill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11,15,31,.14);
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 18px rgba(17,31,60,.08);
}
.brandPill img{
  height:16px;
  width:auto;
  max-width: 110px;
  object-fit:contain;
  display:block;
}



/* --- Mobile Hamburger Header --- */
.navToggle{
  display:none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(11,15,31,.14);
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 18px rgba(17,31,60,.10);
  cursor:pointer;
  align-items:center;
  justify-content:center;
}
.navToggle .bars{
  width: 18px;
  height: 12px;
  position: relative;
}
.navToggle .bars span{
  position:absolute;
  left:0; right:0;
  height:2px;
  background: rgba(11,15,31,.75);
  border-radius: 99px;
}
.navToggle .bars span:nth-child(1){ top:0; }
.navToggle .bars span:nth-child(2){ top:5px; opacity:.9; }
.navToggle .bars span:nth-child(3){ bottom:0; }

.navMenu{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}

@media (max-width: 720px){
  .pill{ display:none; }
  .navRight{ display:none; }
  .navToggle{ display:inline-flex; }

  .navMenu{
    display:none;
    position:absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    margin: 0 12px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(11,15,31,.14);
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    z-index: 40;
  }
  .navMenu.open{ display:flex; }
  .navMenu .btn{ flex: 1 1 auto; justify-content:center; }
  .nav{ position: sticky; }
}


/* ===== Header v2 (fix): hamburger toggles SAME navRight (no duplicated IDs) ===== */
.nav{ overflow: visible; }

@media (max-width: 720px){
  /* show hamburger */
  .navToggle{ display:inline-flex; }

  /* hide desktop row; show as dropdown when open */
  .navRight{
    display:none;
    position:absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 10px);
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(11,15,31,.14);
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    z-index: 60;
  }
  .navRight.open{ display:flex; }
  .navRight .pill{ display:block; }
  .navRight .btn{ width:100%; justify-content:center; }

  /* old mobile menu not used anymore */
  .navMenu{ display:none !important; }
}


/* ---------- Card footer: actions left, price bottom-right ---------- */
.tcgBody{
  display:flex;
  flex-direction:column;
}
.tcgFooter{
  margin-top:auto;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.tcgFooter .priceCorner{
  margin-left:auto;
  flex: 0 0 auto;
  text-align:right;
}
.tcgFooter .tcgActions{
  margin-top:0 !important;
  flex: 1 1 auto;
}


/* ---------- Cards: title 2 lines, clean tags ---------- */
.tcgName{
  line-height: 1.2;
  font-size: 14px;
  max-height: calc(1.2em * 2); /* 2 Zeilen */
  overflow:hidden; /* kein ... */
}

.tcgTags{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items:center;
  margin-top: 8px;
}

.tag{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
}

.tagTiny{
  font-size: 11px;
  padding: 5px 9px;
}

.tagBrand{
  padding: 5px 8px;
  display:inline-flex;
  align-items:center;
  gap: 8px;
}

.tagBrand img{
  width: 22px;
  height: 14px;
  object-fit: contain;
  display:block;
  filter: saturate(1.05);
}

.stockPill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
}
.stockDot{
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(11,15,31,.35);
}
.tag.ok .stockDot{ background: rgba(33, 177, 92, .9); }
.tag.err .stockDot{ background: rgba(235, 77, 75, .95); }

.btnIcon{
  display:inline-flex;
  align-items:center;
  gap: 8px;
}
.btnIcon .icon{ width: 18px; height: 18px; }

