/* Inter – lokal gehostet (latin + latin-ext), kein Google-Server mehr.
   Vermeidet die Übertragung der Besucher-IP an Google (DSGVO). */
@font-face{
  font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;
  src:url(../fonts/inter-400-latin-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;
  src:url(../fonts/inter-400-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;
  src:url(../fonts/inter-500-latin-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;
  src:url(../fonts/inter-500-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;
  src:url(../fonts/inter-600-latin-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;
  src:url(../fonts/inter-600-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;
  src:url(../fonts/inter-700-latin-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;
  src:url(../fonts/inter-700-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'Inter';font-style:normal;font-weight:800;font-display:swap;
  src:url(../fonts/inter-800-latin-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family:'Inter';font-style:normal;font-weight:800;font-display:swap;
  src:url(../fonts/inter-800-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'Inter';font-style:normal;font-weight:900;font-display:swap;
  src:url(../fonts/inter-900-latin-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family:'Inter';font-style:normal;font-weight:900;font-display:swap;
  src:url(../fonts/inter-900-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   Tradeplay – Designsystem
   Modern, schlicht, aber wertig. Light + Dark.
   ============================================================ */

:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #f2f2f7;
  --border: #e6e6ef;
  --text: #14141c;
  --text-dim: #61616e;
  --text-faint: #9a9aa8;

  --brand: #5b4fe9;
  --brand-ink: #4438c9;
  --brand-soft: #ece9ff;
  --accent: #12c78f;

  --priv: #5b4fe9;      /* privat */
  --biz: #0e7c66;       /* gewerblich */

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 40, 0.06), 0 1px 3px rgba(20, 20, 40, 0.05);
  --shadow-md: 0 8px 24px rgba(20, 20, 50, 0.10);
  --shadow-lg: 0 20px 50px rgba(20, 20, 50, 0.16);

  --header-h: 68px;
  --maxw: 1200px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Dark-Theme nur, wenn ausdrücklich data-theme="dark" gesetzt ist.
   Standard ist White Mode – unabhängig vom System-Setting. */
:root[data-theme="dark"] {
  --bg: #0e0e14;
  --surface: #17171f;
  --surface-2: #1e1e28;
  --border: #2a2a36;
  --text: #f2f2f7;
  --text-dim: #a6a6b4;
  --text-faint: #6f6f7e;
  --brand: #8a7cff;
  --brand-ink: #a99bff;
  --brand-soft: #23213a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 11px 20px; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-soft { background: var(--brand-soft); color: var(--brand-ink); }
.btn-soft:hover { filter: brightness(0.97); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 16px; }

/* ---------------- Header ---------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand-logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #8a7cff);
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 17px;
  box-shadow: var(--shadow-sm);
}
.brand span b { color: var(--brand); }

.search {
  flex: 1; max-width: 620px; display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 4px 4px 16px; box-shadow: var(--shadow-sm);
}
.search svg { color: var(--text-faint); flex: none; }
.search input {
  flex: 1; border: none; outline: none; background: transparent; color: var(--text);
  font-size: 15px; padding: 9px 10px; min-width: 40px;
}
.search select {
  border: none; background: var(--surface-2); color: var(--text-dim);
  border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 600; cursor: pointer; outline: none;
}
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* ---------------- Category bar ---------------- */
.catbar { border-bottom: 1px solid var(--border); background: var(--surface); }
.catbar-inner { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.catbar-inner::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-dim);
  border-radius: 999px; padding: 8px 15px; font-size: 14px; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: all .15s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------------- Hero ---------------- */
.hero { padding: 44px 0 20px; }
.hero-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(1200px 400px at 15% -20%, rgba(138,124,255,.35), transparent 60%),
    radial-gradient(900px 500px at 100% 120%, rgba(18,199,143,.25), transparent 55%),
    linear-gradient(135deg, #201b4d, #14142a);
  color: #fff; padding: 46px 40px;
}
.hero-card h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.03em; line-height: 1.08; }
.hero-card p { margin: 0 0 24px; font-size: 17px; color: rgba(255,255,255,.82); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero-card .btn-ghost:hover { background: rgba(255,255,255,.12); }
.hero-stats { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats div b { display: block; font-size: 22px; font-weight: 800; }
.hero-stats div span { font-size: 13px; color: rgba(255,255,255,.7); }

/* ---------------- Section ---------------- */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.section-head h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.section-head a { color: var(--brand); font-weight: 600; font-size: 14px; }

/* Filter toolbar */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.toolbar .count { color: var(--text-dim); font-size: 14px; margin-right: auto; }
.select-pill {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 9px 14px; font-size: 14px; font-weight: 600; cursor: pointer; outline: none;
}

/* ---------------- Grid + Cards ---------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; } }

/* Shop-Layout mit Kategorie-Sidebar */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.shop-main { min-width: 0; }
@media (max-width: 860px) { .shop-layout { grid-template-columns: 1fr; } }

.sidebar {
  position: sticky; top: calc(var(--header-h) + 16px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px; box-shadow: var(--shadow-sm); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto;
}
@media (max-width: 860px) { .sidebar { position: static; max-height: none; } }
.cat-reset, .cat-head, .cat-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: none; background: transparent; cursor: pointer; border-radius: 10px; font-family: inherit;
}
.cat-reset { padding: 11px 12px; font-size: 14.5px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.cat-reset:hover { background: var(--surface-2); }
.cat-head { padding: 11px 12px; font-size: 14.5px; font-weight: 700; color: var(--text); }
.cat-head:hover { background: var(--surface-2); }
.cat-dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.cat-name { flex: 1; }
.cat-chev { display: grid; place-items: center; color: var(--text-faint); transition: transform .2s ease; }
.cat-group.open .cat-chev { transform: rotate(90deg); }
.cat-count { font-size: 11px; font-weight: 700; color: var(--text-faint); background: var(--surface-2); border-radius: 6px; padding: 2px 7px; }
.cat-children { display: none; flex-direction: column; gap: 1px; padding: 2px 4px 8px 26px; }
.cat-group.open .cat-children { display: flex; }
.cat-item { padding: 8px 10px; font-size: 13.5px; font-weight: 500; color: var(--text-dim); }
.cat-item:hover { background: var(--surface-2); color: var(--text); }
.cat-item .cat-count { margin-left: auto; }
.cat-item.active, .cat-reset.active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.cat-item.active .cat-count, .cat-reset.active .cat-count { background: rgba(255,255,255,.5); color: var(--brand-ink); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.cover {
  position: relative; aspect-ratio: 4 / 3; display: flex; flex-direction: column;
  color: #fff; overflow: hidden;
}
.cover::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 30% 5%, rgba(255,255,255,.20), transparent 55%);
}
/* Box-Art-Struktur (wirkt wie eine echte Spielhülle) */
.box-banner {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  padding: 6px 11px; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.25);
}
.box-mid { position: relative; z-index: 1; flex: 1; display: grid; place-items: center; text-align: center; padding: 14px; }
.box-foot {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 11px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,.9); background: rgba(0,0,0,.30); backdrop-filter: blur(2px);
}
.foot-right { display: flex; align-items: center; gap: 6px; }
.usk { width: 21px; height: 21px; border-radius: 5px; display: grid; place-items: center; font-weight: 900; font-size: 11px; color: #fff; flex: none; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.usk-0 { background: #1f9d55; }
.usk-6 { background: #e6b800; color: #1a1a1a; }
.usk-12 { background: #2f6fb0; }
.usk-16 { background: #e8791e; }
.usk-18 { background: #d1262b; }
.cover-title { position: relative; z-index: 1; font-weight: 800; font-size: 15px; letter-spacing: -0.01em; text-shadow: 0 2px 14px rgba(0,0,0,.45); line-height: 1.2; }
.fav {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; display: grid; place-items: center; cursor: pointer;
  color: #14141c; transition: transform .15s;
}
.fav:hover { transform: scale(1.1); }
.fav.on { color: #e0245e; }
.badge-plat {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 5px 9px; border-radius: 8px;
  background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(4px);
}

.card-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-title { font-size: 14.5px; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card-price { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.card-price .vb { font-size: 12px; font-weight: 600; color: var(--text-faint); margin-left: 4px; }
.card-meta { display: flex; align-items: center; gap: 8px; color: var(--text-faint); font-size: 12.5px; margin-top: auto; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700;
  padding: 4px 9px; border-radius: 7px;
}
.tag-priv { background: var(--brand-soft); color: var(--brand-ink); }
.tag-biz  { background: rgba(14,124,102,.12); color: var(--biz); }
:root[data-theme="dark"] .tag-biz { background: rgba(18,199,143,.14); color: #3fd6a6; }
.tag-cond { background: var(--surface-2); color: var(--text-dim); }

/* ---------------- Value props ---------------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 720px) { .values { grid-template-columns: 1fr; } }
.value {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.value .vi { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.value h3 { margin: 0 0 6px; font-size: 16px; }
.value p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* ---------------- Detail page ---------------- */
.detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; padding: 30px 0 60px; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.gallery-main { border-radius: var(--radius); aspect-ratio: 16/10; display: flex; flex-direction: column; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-md); }
.gallery-main .cover-title { font-size: 24px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb { width: 74px; height: 60px; border-radius: 10px; border: 2px solid transparent; overflow: hidden; cursor: pointer; }
.thumb.active { border-color: var(--brand); }

.detail-side { display: flex; flex-direction: column; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.detail-price { font-size: 32px; font-weight: 850; letter-spacing: -0.02em; }
.detail-title { font-size: 21px; font-weight: 700; margin: 4px 0 14px; line-height: 1.3; }
.spec-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.spec-row:last-child { border-bottom: none; }
.spec-row span:first-child { color: var(--text-dim); }
.spec-row span:last-child { font-weight: 600; }

.seller { display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #8a7cff); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.seller-name { font-weight: 700; display: flex; align-items: center; gap: 7px; }
.seller-meta { font-size: 13px; color: var(--text-dim); }
.stars { color: #f5a623; font-size: 13px; }

.notice { display: flex; gap: 10px; font-size: 13px; color: var(--text-dim); background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; }
.notice svg { flex: none; color: var(--brand); }

/* ---------------- Sell form ---------------- */
.form-wrap { max-width: 760px; margin: 0 auto; padding: 30px 0 70px; }
.form-wrap > h1 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 6px; }
.form-wrap > .lead { color: var(--text-dim); margin: 0 0 26px; }
.field { margin-bottom: 20px; }
.field > label { display: block; font-weight: 650; font-size: 14px; margin-bottom: 8px; }
.field .hint { font-weight: 500; color: var(--text-faint); font-size: 12.5px; margin-left: 6px; }
.input, .textarea, .selectbox {
  width: 100%; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; font-family: inherit; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, .selectbox:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.textarea { min-height: 120px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .row2 { grid-template-columns: 1fr; } }

/* display:block ist Pflicht, nicht Kosmetik: .uploader ist ein <label> und
   damit von Haus aus inline – ohne das zerfällt der gestrichelte Rahmen in
   Fragmente, sobald das Feld nicht in einem .field mit block-Label sitzt. */
.uploader {
  display: block;
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 34px; text-align: center;
  color: var(--text-dim); cursor: pointer; transition: border-color .15s, background .15s;
}
.uploader:hover { border-color: var(--brand); background: var(--brand-soft); }
.uploader .ui-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto 10px; }

.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { border: none; background: transparent; color: var(--text-dim); font-weight: 650; font-size: 14px; padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.check { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 6px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

.biz-note { background: rgba(14,124,102,.08); border: 1px solid rgba(14,124,102,.2); color: var(--biz); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; display: none; }
:root[data-theme="dark"] .biz-note { color: #4fd6a8; }

.price-wrap { position: relative; }
.price-wrap .eur { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-weight: 600; }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding: 44px 0 30px; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin: 0 0 14px; }
.footer a { display: block; color: var(--text-dim); font-size: 14px; padding: 5px 0; }
.footer a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; color: var(--text-faint); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Registrierung */
.req { color: #d1262b; font-weight: 800; }
.fieldset-title { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; margin: 6px 0 4px; }
.fieldset-sub { color: var(--text-dim); font-size: 13.5px; margin: 0 0 16px; }
.divider { height: 1px; background: var(--border); margin: 28px 0 24px; }
.auth-switch { text-align: center; color: var(--text-dim); font-size: 14px; margin-top: 18px; }
.auth-switch a { color: var(--brand); font-weight: 600; }
.input:disabled { background: var(--surface-2); cursor: not-allowed; }

@media (max-width: 640px) { .hide-sm { display: none !important; } }

/* utility */
.breadcrumb { color: var(--text-dim); font-size: 13px; padding: 18px 0 0; }
.breadcrumb a:hover { color: var(--brand); }
.empty { text-align: center; color: var(--text-dim); padding: 60px 0; grid-column: 1/-1; }
.hide { display: none !important; }

/* ---------------- Profilbild ---------------- */
.tp-avatar {
  border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center;
  flex: none; background: var(--surface-2); vertical-align: middle;
}
.tp-avatar-fallback {
  background: var(--brand-soft); color: var(--brand-ink);
  font-weight: 800; letter-spacing: -0.01em; user-select: none;
}
.header-user {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 4px 12px 4px 4px; border-radius: 999px;
  font-weight: 650; font-size: 14px; color: var(--text);
  transition: background .15s;
}
.header-user:hover { background: var(--surface-2); }

/* Fehlermeldung über Formularen (Registrierung, Anmeldung) */
.reg-error {
  background: #fde2e2; color: #9b1c1c; border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 14px; font-weight: 600; margin-bottom: 18px;
}
:root[data-theme="dark"] .reg-error { background: #3a1618; color: #fca5a5; }

/* Hinweis auf der Verkaufsseite, wenn niemand angemeldet ist */
.sell-gate {
  display: flex; gap: 14px; align-items: flex-start;
  border-color: var(--brand); margin-bottom: 24px;
}
.sell-gate-icon {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
.sell-gate p { margin: 4px 0 0; color: var(--text-dim); font-size: 14px; }
.sell-gate-cta { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* ---------------- Kopfzeile auf schmalen Geräten ----------------
   Ohne diese Regeln laufen Marke, Suche und Aktionen aus dem
   Viewport heraus: .search hat kein min-width: 0 und weigert sich
   deshalb, unter ihre Inhaltsbreite zu schrumpfen. */
@media (max-width: 640px) {
  .header-inner { gap: 10px; }
  .brand { font-size: 17px; }
  .brand span:not(.brand-logo) { display: none; }   /* nur noch das Logo */
  .search { min-width: 0; padding-left: 12px; }
  .search select { display: none; }                 /* Plattformwahl steckt in den Filtern */
  .header-actions { gap: 6px; }
  .icon-btn { width: 38px; height: 38px; }
  .header-actions .btn { padding: 9px 14px; font-size: 14px; }
}

/* ---------------- Produktbilder ---------------- */
/* "contain" statt "cover": die Produktfotos sind überwiegend hochkant, die
   Kachel ist quer. Mit "cover" bliebe nur ein Streifen aus der Bildmitte
   übrig – bei einer Konsole samt Controller schneidet das den halben
   Artikel weg. Lieber Rand als fehlender Inhalt. */
.cover-img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  background: var(--surface-2);
}
/* Produktfotos statt gezeichneter Hülle.
   Kein place-items:center hier: das nimmt dem Bild die Streckung, height:100%
   greift dann nicht und das Bild ragt aus dem Rahmen (wurde abgeschnitten).
   4:3 statt 16:10, weil Handyfotos meist hochkant sind – so bleibt ein
   Hochformat groß genug, ohne dass Querformate winzig werden. */
.gallery-main.is-photo {
  display: block;
  aspect-ratio: 4 / 3;
  max-height: 560px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.gallery-main.is-photo img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
}

/* Miniaturen quadratisch und vollständig – bei "cover" schneidet ein
   Hochformat oben und unten ab, und man erkennt nicht, was drauf ist. */
.thumb-img {
  width: 64px; height: 64px;
  padding: 0; overflow: hidden;
  background: var(--surface-2);
}
.thumb-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-thumbs { flex-wrap: wrap; }

.card .cover { background: var(--surface-2); }

/* ---------------- Seitenzahl ---------------- */
.pager {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 34px; flex-wrap: wrap;
}
.pg {
  min-width: 40px; height: 40px; padding: 0 13px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 10px; font-size: 14px; font-weight: 650; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.pg:hover:not(:disabled):not(.active) { background: var(--surface-2); border-color: var(--brand); color: var(--brand); }
.pg.active { background: var(--brand); border-color: var(--brand); color: #fff; cursor: default; }
.pg:disabled { opacity: .4; cursor: not-allowed; }
.pg-gap { color: var(--text-faint); padding: 0 2px; }

.grid[aria-busy="true"] { opacity: .5; transition: opacity .15s; }

@media (max-width: 620px) {
  .pager { gap: 4px; }
  .pg { min-width: 36px; height: 36px; padding: 0 9px; font-size: 13px; }
}

/* Fußzeile der Spielhülle: nie umbrechen, sonst überlappt sie das Cover */
.box-foot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.box-foot .foot-right { flex: none; }

/* ---------------- Kontaktformular auf der Detailseite ---------------- */
.contact-form .textarea { min-height: 76px; }

/* Nachrichten-Glocke im Kopf – auf jeder Seite geladen, nicht nur messages.html */
/* ── Kopf: Glocke mit Zähler ── */
.msg-bell { position: relative; }
.msg-badge {
  position: absolute; top: -3px; right: -3px;
  background: #e5484d; color: #fff; font-size: 10.5px; font-weight: 800;
  min-width: 16px; height: 16px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 3px;
}


/* ---------------- Rechtstexte (Impressum, Datenschutz, AGB, …) ---------------- */
.legal { max-width: 760px; margin: 0 auto; padding: 26px 0 70px; }
.legal h1 { font-size: 27px; letter-spacing: -0.02em; margin: 0 0 8px; }
.legal .legal-stand { color: var(--text-faint); font-size: 13px; margin: 0 0 32px; }
.legal h2 { font-size: 18px; margin: 34px 0 10px; letter-spacing: -0.01em; }
.legal h3 { font-size: 15px; margin: 20px 0 6px; }
.legal p { color: var(--text-dim); line-height: 1.7; margin: 0 0 12px; }
.legal ul, .legal ol { color: var(--text-dim); line-height: 1.7; margin: 0 0 12px; padding-left: 22px; }
.legal li { margin-bottom: 4px; }
.legal a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--text); }
.legal .legal-box {
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 14px 16px; margin: 14px 0; font-size: 14px; color: var(--text-dim);
}


/* ---------------- Melden (DSA Art. 16) ---------------- */
.report-link {
  display: inline-block; margin-top: 12px;
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--text-faint); font-size: 13px; text-decoration: underline;
  text-underline-offset: 2px; font-family: inherit;
}
.report-link:hover { color: #e5484d; }

.tp-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 20, 40, 0.45);
  display: grid; place-items: center; padding: 20px;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.tp-modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 440px; padding: 26px; max-height: 90vh; overflow-y: auto;
}
.tp-modal h2 { margin: 0 0 6px; font-size: 19px; }
.tp-modal-sub { color: var(--text-dim); font-size: 14px; margin: 0 0 18px; line-height: 1.5; }
.tp-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.tp-modal-done { text-align: center; padding: 8px 0; }
