/* WeserKiste – Fundament, Navigation, Feed & Anzeige. */

/* ------------------------------------------------------------- Tokens */

:root {
  --bg: #f3f6f3;
  --bg-glow: #e8f2ea;
  --surface: #ffffff;
  --surface-2: #f0f4f1;
  --surface-3: #e6ede8;
  --ink: #11231c;
  --ink-2: #4d6157;
  --ink-3: #7c8d83;
  --line: #e0e8e2;
  --line-strong: #cfdad3;
  --brand: #0e7a5f;
  --brand-strong: #0a5f49;
  --brand-text: #0b6b52;
  --brand-soft: #e0f3ec;
  --brand-soft-2: #cbeadf;
  --accent: #ff6b4a;
  --accent-soft: #ffe9e3;
  --amber: #e8a300;
  --amber-soft: #fdf1d2;
  --danger: #c23d35;
  --danger-soft: #fde8e6;
  --ring: rgba(14, 122, 95, .28);
  --shadow-sm: 0 1px 2px rgba(16, 40, 30, .04), 0 8px 24px -14px rgba(16, 40, 30, .18);
  --shadow-md: 0 16px 40px -18px rgba(16, 40, 30, .30);
  --shadow-lg: 0 30px 80px -30px rgba(8, 35, 25, .45);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --appbar-h: 74px;
  --tabbar-h: 66px;
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0c1410;
  --bg-glow: #10251b;
  --surface: #141f19;
  --surface-2: #1b2721;
  --surface-3: #22312a;
  --ink: #eaf3ee;
  --ink-2: #a9bbb1;
  --ink-3: #7e948a;
  --line: #26362e;
  --line-strong: #35493f;
  --brand: #179d79;
  --brand-strong: #0f8163;
  --brand-text: #6fe3bd;
  --brand-soft: #12372b;
  --brand-soft-2: #174535;
  --accent: #ff886c;
  --accent-soft: #3a2018;
  --amber: #f5b93a;
  --amber-soft: #33280e;
  --danger: #ff7d74;
  --danger-soft: #3a1d1b;
  --ring: rgba(111, 227, 189, .30);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .25), 0 12px 30px -18px rgba(0, 0, 0, .6);
  --shadow-md: 0 20px 50px -20px rgba(0, 0, 0, .7);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* --------------------------------------------------------------- Reset */

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body { overflow-x: hidden; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(1200px 640px at 75% -10%, var(--bg-glow), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 10px);
}
body.modal-open { overflow: hidden; }
body[data-route="auction"], body[data-route="chat"] {
  padding-bottom: 0;
}
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, dt { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { flex: none; }
::selection { background: var(--brand-soft-2); color: var(--ink); }

* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
*::-webkit-scrollbar-track { background: transparent; }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 8px;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------- Layout */

#view {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 18px 48px;
}
@media (min-width: 560px) and (max-width: 899px) {
  #view { padding-left: 26px; padding-right: 26px; }
}
@media (min-width: 900px) {
  #view { padding-left: 36px; padding-right: 36px; }
}
.page { animation: pageIn .32s ease both; }
@keyframes pageIn {
  /* Nur Deckkraft animieren – ein transform auf .page macht position:fixed
     der Stadt-/PLZ-Leiste relativ zur Seite statt zum Bildschirm. */
  from { opacity: 0; }
  to { opacity: 1; }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand-text);
}
.eyebrow svg { width: 15px; height: 15px; }

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 10px 2px 22px;
}
.page-head h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.1; letter-spacing: -.03em; margin: 6px 0 6px; }
.page-head p { color: var(--ink-2); font-size: 14px; max-width: 560px; }

.section { margin-top: 30px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 { font-size: 21px; letter-spacing: -.02em; line-height: 1.2; }
.section-head p { color: var(--ink-3); font-size: 13px; margin-top: 3px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 650;
  color: var(--brand-text);
  border-radius: 8px;
  transition: gap .18s ease, color .18s ease;
}
.text-link svg { width: 14px; height: 14px; }
.text-link:hover { gap: 8px; color: var(--brand-strong); }

/* ----------------------------------------------------------- Buttons */

/* hidden muss auch bei .btn wirklich gewinnen (Anmelden-Button nach
   wiederhergestellter Session) */
[data-guest-cta][hidden] { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform .16s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(14, 122, 95, .65);
}
.btn-primary:hover { background: var(--brand-strong); }
.btn-outline {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand-text); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-light { background: #fff; color: #0b3d2f; }
.btn-light:hover { background: #f0fbf6; }
.btn-dark { background: #0c2a20; color: #fff; }
.btn-dark:hover { background: #092018; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.06); }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: 12.5px; gap: 6px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { min-height: 50px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--ink-2);
  transition: background .18s ease, color .18s ease;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ------------------------------------------------------------- Chips */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.chip svg { width: 15px; height: 15px; }
.chip:hover { border-color: var(--brand); color: var(--brand-text); }
.chip.active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-text);
}
.chip.ghost {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
  backdrop-filter: blur(6px);
}
.chip.ghost:hover { background: rgba(255, 255, 255, .18); }
.chip.small { min-height: 29px; padding: 0 10px; font-size: 11.5px; }

/* ------------------------------------------------------------ Avatare */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--av, #0e7a5f), color-mix(in srgb, var(--av, #0e7a5f) 70%, #000));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  flex: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18);
}
.avatar.lg { width: 54px; height: 54px; font-size: 18px; }
.avatar.xl { width: 86px; height: 86px; font-size: 28px; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .25), 0 12px 30px -12px rgba(0, 0, 0, .35); }
.avatar.mini { width: 34px; height: 34px; font-size: 12px; }

/* -------------------------------------------------------------- Pills */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .02em;
  white-space: nowrap;
}
.pill svg { width: 12px; height: 12px; }
.pill.soft { background: var(--surface-2); color: var(--ink-2); }
.pill.reserved { background: var(--amber-soft); color: #7a5600; }
.pill.sold { background: var(--surface-3); color: var(--ink-2); }
.pill.free { background: var(--brand-soft); color: var(--brand-text); }
.pill.mine-pill { background: var(--brand-soft); color: var(--brand-text); }
.pill.verified-pill { background: var(--brand-soft); color: var(--brand-text); }

[data-theme="dark"] .pill.reserved { color: #f6c45c; }
[data-theme="dark"] .pill.free,
[data-theme="dark"] .pill.mine-pill,
[data-theme="dark"] .pill.verified-pill { color: var(--brand-text); }

/* -------------------------------------------------------------- Appbar */

.appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.appbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}
/* Verkäufer-Sterne: globale Feier direkt unter der oberen Leiste.
   Absolut positioniert -> kein Seiten-Sprung, kein Flackern. */
.star-announce {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  z-index: 60; max-width: min(680px, calc(100vw - 24px));
  margin-top: 6px; padding: 10px 18px; border-radius: 999px;
  background: linear-gradient(110deg, #7a5600, #c8950a 45%, #f6d365 75%, #c8950a);
  color: #1d1500; font-weight: 800; font-size: 14px; line-height: 1.35;
  text-align: center; box-shadow: 0 12px 32px -12px rgba(120, 80, 0, .75);
  border: 1px solid rgba(255, 236, 160, .85);
  animation: starPop .4s ease both;
}
.star-announce[hidden] { display: none; }
.star-announce b { color: #1d1500; }
@keyframes starPop {
  from { transform: translate(-50%, -10px) scale(.94); opacity: 0; }
  to { transform: translate(-50%, 0) scale(1); opacity: 1; }
}
/* Goldsterne vor dem Namen (Chat, Auktion, Profile, Feed) */
.verk-sterne { color: #d99b06; letter-spacing: 1px; margin-right: 4px; white-space: nowrap; }
[data-theme="dark"] .verk-sterne { color: #f6cf62; }
.verk-sterne small { font-size: .75em; opacity: .75; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; border-radius: 14px; }
.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 8px 20px -10px rgba(10, 107, 99, .65);
}
.brand-mark svg,
.brand-mark img { display: block; width: 100%; height: 100%; }
.brand-mark.big { width: 56px; height: 56px; border-radius: 16px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy b { font-size: 18px; letter-spacing: -.035em; }
.brand-copy small { font-size: 10px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); margin-top: 4px; }

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  padding: 0 6px 0 15px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.search-form:focus-within {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--ring);
}
.search-ico { display: flex; color: var(--ink-3); }
.search-ico svg { width: 19px; height: 19px; }
.search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}
.search-form input[type="search"]::placeholder { color: var(--ink-3); }
.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  transition: background .18s ease, transform .16s ease;
}
.search-submit:hover { background: var(--brand-strong); }
.search-submit:active { transform: scale(.96); }
.search-submit svg { width: 18px; height: 18px; }
.top-search { max-width: 520px; }
.mobile-search { display: none; }

/* Top Verkäufe: Hammer-Chip direkt neben der Suchleiste */
.top-sales-chip {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  height: 42px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(217, 155, 6, .45);
  background: linear-gradient(135deg, rgba(246, 211, 101, .20), rgba(217, 155, 6, .07));
  color: #7d5900; font-size: 12.5px; font-weight: 800; white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .16s ease;
}
.top-sales-chip:hover {
  background: linear-gradient(135deg, rgba(246, 211, 101, .34), rgba(217, 155, 6, .14));
  border-color: #d99b06;
}
.top-sales-chip:active { transform: scale(.96); }
.top-sales-chip svg { width: 18px; height: 18px; }
.top-sales-count {
  min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: #d99b06; color: #1d1500;
  font-size: 11px; font-weight: 900; line-height: 20px; text-align: center;
}
.top-sales-count[hidden] { display: none; }
[data-theme="dark"] .top-sales-chip {
  color: #f6cf62; border-color: rgba(246, 207, 98, .5);
  background: linear-gradient(135deg, rgba(246, 207, 98, .16), rgba(246, 207, 98, .04));
}
.mobile-top-sales { display: none; }

.top-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--ink-2);
  transition: background .18s ease, color .18s ease;
}
.icon-link svg { width: 21px; height: 21px; }
.icon-link:hover, .icon-link.active { background: var(--surface-2); color: var(--brand-text); }
.nav-badge {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--surface);
}
/* „Auktion starten“: Gold wie Top Verkäufe + langsamer, umlaufender
   Blinker-Lichtstreifen (Audi-Optik). Rein dekorativ, kein Javascript. */
.sell-cta {
  position: relative; isolation: isolate; overflow: hidden;
  margin-left: 6px; height: 42px; min-height: 42px;
  border: 1px solid rgba(217, 155, 6, .7);
  background: linear-gradient(135deg, #f6d365, #d99b06);
  color: #1d1500; font-weight: 850;
  box-shadow: 0 6px 18px -8px rgba(217, 155, 6, .75);
}
.sell-cta::before {
  content: ""; position: absolute; inset: -150%; z-index: -1;
  background: conic-gradient(from 0deg,
    transparent 0deg 250deg,
    rgba(255, 244, 205, .10) 265deg,
    rgba(255, 248, 220, .95) 286deg,
    rgba(255, 255, 255, .35) 294deg,
    transparent 310deg 360deg);
  animation: ah24Blinker 3.8s linear infinite;
}
.sell-cta:hover { filter: brightness(1.06); }
.sell-cta:active { transform: scale(.97); }
@keyframes ah24Blinker { to { transform: rotate(360deg); } }
[data-theme="dark"] .sell-cta { color: #1d1500; }
@media (prefers-reduced-motion: reduce) {
  .sell-cta::before { animation: none; opacity: .45; }
}
.avatar-link { display: inline-flex; margin-left: 4px; border-radius: 50%; }
.avatar-link:hover .avatar { box-shadow: inset 0 0 0 2px rgba(255,255,255,.18), 0 0 0 3px var(--ring); }

/* -------------------------------------------------------------- Tabbar */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-content: center;
  align-items: end;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom);
  box-sizing: border-box;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(20px) saturate(1.3);
  border-top: 1px solid var(--line);
  /* Chef: Auktion-Button muss KOMPLETT sichtbar sein (nicht clippen!) */
  overflow: visible;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: var(--tabbar-h);
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .01em;
  transition: color .18s ease;
}
.tab-ico { position: relative; display: grid; place-items: center; width: 26px; height: 26px; }
.tab-ico svg { width: 23px; height: 23px; }
.tab.active { color: var(--brand-text); }
.tab.active .tab-ico svg { stroke-width: 2.3; }
.tab-badge {
  position: absolute;
  top: -4px;
  right: -7px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--surface);
}
.tab-sell { justify-content: center; align-items: center; padding-bottom: 4px; gap: 2px; overflow: visible; }
.sell-bubble {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-top: -26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(14, 122, 95, .8), 0 0 0 5px var(--bg);
  transition: transform .18s ease, background .18s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 61;
}
.sell-bubble svg { width: 24px; height: 24px; }
.tab-sell:active .sell-bubble { transform: scale(.94); }
.tab-sell span:last-child { font-size: 10px; margin-top: 3px; }
body[data-route="auction"] .tabbar,
body[data-route="chat"] .tabbar { display: none; }

/* ------------------------------------------------------------ Auktions-Arena 3.0 */

.arena { margin-top: 20px; }
/* Champions = volle Breite, Live-Matches darunter (Chef 20.11.) */
.arena-grid { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: stretch; }

/* --- Champions (links) --- */
.arena-champions { padding: 20px; }
.arena-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; padding: 14px 0 10px; }
.arena-podium-slot { display: flex; justify-content: center; }
.arena-podium-slot.p1 { padding-bottom: 8px; }
.arena-podium-card {
  display: grid; justify-items: center; gap: 3px; text-decoration: none; color: var(--ink);
  padding: 12px 8px 10px; border-radius: 14px; border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s;
  position: relative; min-width: 80px;
}
.arena-podium-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(0,0,0,.18); }
.arena-podium-card.rank1 { border-color: #d4a017; background: linear-gradient(180deg, rgba(212,160,23,.08), transparent); }
.arena-podium-card.rank2 { border-color: #9ca3af; }
.arena-podium-card.rank3 { border-color: #cd7f32; }
.arena-podium-card b { font-size: 12.5px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arena-podium-card small { color: var(--ink-3); font-size: 10.5px; }
.arena-title { font-size: 10px; font-weight: 800; color: #d4a017; letter-spacing: .05em; text-transform: uppercase; }
.arena-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 2.5px solid var(--line); background: var(--brand-soft);
  font-size: 20px; font-weight: 800; color: var(--brand-text);
}
.arena-podium-card.rank1 .arena-avatar { width: 58px; height: 58px; font-size: 24px; border-width: 3px; }
.arena-avatar.gold { border-color: #d4a017; }
.arena-crown {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 22px; filter: drop-shadow(0 2px 6px rgba(212,160,23,.5));
  animation: crownFloat 5s ease-in-out infinite;
}
@keyframes crownFloat { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } }
.arena-medal { font-size: 16px; position: absolute; top: -8px; right: 4px; }

/* --- Rangliste 4-20 --- */
.arena-ranking {
  max-height: 220px; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-top: 10px;
  scrollbar-width: thin;
}
.arena-ranking::-webkit-scrollbar { width: 4px; }
.arena-ranking::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.arena-rank-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  border-radius: 8px; text-decoration: none; color: var(--ink);
  transition: background .12s;
}
.arena-rank-row:hover { background: var(--bg); }
.arena-rank-row > span:first-child { font-weight: 800; color: var(--ink-3); font-size: 12px; width: 22px; text-align: right; }
.arena-rank-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft);
  font-size: 12px; font-weight: 700; color: var(--brand-text); flex: none;
}
.arena-rank-row b { font-size: 12.5px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arena-rank-row small { color: var(--ink-3); font-size: 10.5px; }
.arena-all-btn { width: 100%; margin-top: 8px; justify-content: center; display: flex; }

/* --- Live-Matches (rechts) --- */
.arena-matches { padding: 20px; }
.arena-match {
  border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  margin-bottom: 10px; transition: box-shadow .2s;
}
.arena-match:hover { box-shadow: 0 6px 18px -8px rgba(0,0,0,.15); }
.arena-match.crown { border-color: #d4a017; background: linear-gradient(180deg, rgba(212,160,23,.05), transparent); }
.arena-match-sides { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.arena-match-side { flex: 1; text-align: center; }
.arena-match-side b { display: block; font-size: 13px; max-width: 100px; margin: 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arena-match-side span { font-size: 22px; font-weight: 800; color: var(--brand-text); }
.arena-match-vs { font-size: 18px; font-weight: 900; color: var(--ink-3); letter-spacing: .05em; flex: none; }
.arena-match-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 10px 0 8px; }
.arena-match-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #d4a017); transition: width .4s ease; border-radius: 99px; }
.arena-match-meta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.arena-match-meta small { color: var(--ink-3); font-size: 11px; }
.arena-match-actions { display: flex; gap: 8px; justify-content: center; margin-top: 6px; }
.arena-empty { text-align: center; padding: 24px 12px; }
.arena-empty span { font-size: 36px; display: block; margin-bottom: 8px; }
.arena-empty b { font-size: 14px; }
.arena-empty p { color: var(--ink-3); font-size: 12.5px; margin: 4px 0 10px; }

/* --- Kampf um die Krone --- */
.arena-crown-fight {
  margin-top: 14px; padding: 18px 20px; border-radius: 16px;
  border: 1px solid rgba(212,160,23,.3);
  background: linear-gradient(135deg, rgba(212,160,23,.06) 0%, transparent 60%);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.arena-crown-info { display: flex; gap: 12px; align-items: center; flex: 1; min-width: 220px; }
.arena-crown-icon { font-size: 32px; animation: crownFloat 5s ease-in-out infinite; filter: drop-shadow(0 3px 8px rgba(212,160,23,.4)); }
.arena-crown-info h3 { font-size: 15px; letter-spacing: .02em; margin: 0 0 2px; }
.arena-crown-info p { font-size: 12.5px; color: var(--ink-3); margin: 0; }
.arena-crown-champion { display: flex; gap: 10px; align-items: center; }
.arena-crown-champion a { display: flex; gap: 8px; align-items: center; text-decoration: none; color: var(--ink); }
.arena-crown-champion b { font-size: 13.5px; display: block; }
.arena-crown-champion small { color: var(--ink-3); font-size: 11px; }

/* --- Responsive --- */
@media (max-width: 899px) {
  .arena-grid { grid-template-columns: 1fr; }
  .arena-podium { grid-template-columns: 1fr 1.15fr 1fr; gap: 6px; }
  .arena-podium-card { min-width: 60px; padding: 10px 4px 8px; }
  .arena-podium-card.rank1 .arena-avatar { width: 48px; height: 48px; font-size: 20px; }
  .arena-avatar { width: 38px; height: 38px; font-size: 16px; }
  .arena-crown-fight { flex-direction: column; text-align: center; }
  .arena-crown-info { justify-content: center; }
  .arena-match-side b { max-width: 80px; font-size: 12px; }
}
@media (max-width: 559px) {
  .arena-podium-card b { font-size: 11px; max-width: 64px; }
  .arena-podium-card small { font-size: 9.5px; }
  .arena-ranking { max-height: 160px; }
  .arena-match-side span { font-size: 18px; }
  .arena-match-vs { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .arena-crown, .arena-crown-icon { animation: none !important; }
  .arena-match-bar i { transition: none; }
}

/* ---------------------------------------------------------------- Hero Luxury (Premium v3) */

.hero.hero-luxury {
  position: relative;
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(165deg, #0a1f18 0%, #0d2e22 40%, #0a2419 100%);
  box-shadow: 0 24px 60px -30px rgba(0, 20, 12, .6);
  min-height: 460px;
  padding: 0;
}
.hero-luxury::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 500px 300px at 85% 20%, rgba(21, 155, 119, .08), transparent 70%),
    radial-gradient(ellipse 400px 250px at 10% 80%, rgba(212, 160, 23, .04), transparent 70%);
}
.hero-luxury-inner {
  display: grid; grid-template-columns: 1fr; gap: 0;
  width: 100%; position: relative; z-index: 1;
}
/* Linke Seite: Text */
.hero-luxury-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 40px 40px 48px; gap: 0;
}
.hero-eyebrow-lux {
  font-size: clamp(11px, 1.5vw, 13px); font-weight: 600;
  letter-spacing: .35em; text-transform: uppercase;
  color: #7ecab0; margin: 0 0 16px;
}
.hero-luxury-title {
  font-size: clamp(32px, 5.5vw, 52px); line-height: 1.02;
  letter-spacing: -.04em; font-weight: 700; margin: 0 0 14px;
  color: #ffffff;
}
.hero-luxury-sub {
  font-size: clamp(13px, 1.8vw, 15.5px); line-height: 1.55;
  color: rgba(255, 255, 255, .72); margin: 0 0 28px; max-width: 480px;
}
.hero-luxury-search {
  display: flex; align-items: center; gap: 0;
  width: 100%; max-width: 480px; height: 54px;
  border-radius: 14px; overflow: hidden;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .35);
  transition: box-shadow .25s, transform .25s;
}
.hero-luxury-search:focus-within {
  box-shadow: 0 16px 40px -12px rgba(14, 122, 95, .4);
  transform: translateY(-1px);
}
.hero-luxury-search input {
  flex: 1; height: 100%; border: 0; outline: 0;
  background: transparent; font-size: 14.5px; padding: 0 16px; color: #1a1a1a;
}
.hero-luxury-search input::placeholder { color: #999; }
.hero-luxury-search button {
  height: 100%; padding: 0 24px; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 700;
  transition: background .15s;
}
.hero-luxury-search button:hover { background: #0d6b52; }
.hero-luxury-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero-luxury-actions .btn { min-height: 46px; padding: 0 20px; font-size: 13.5px; font-weight: 700; border-radius: 12px; }
.hero-luxury-actions .btn-primary { background: var(--brand); color: #fff; }
.hero-luxury-actions .btn-outline-light { background: transparent; color: rgba(255,255,255,.85); border: 1.5px solid rgba(255,255,255,.25); }
.hero-luxury-actions .btn-outline-light:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.4); }
.hero-luxury-stats {
  display: flex; align-items: center; gap: 12px;
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px; color: rgba(255, 255, 255, .6);
}
.hero-luxury-stats b { color: #fff; font-weight: 700; }
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.2); }

/* Rechte Seite: Echte Auktions-Karten */
.hero-luxury-cards {
  display: flex; flex-direction: column; gap: 12px; justify-content: center;
  padding: 32px 28px; position: relative;
}
.luxury-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
  transition: transform .3s ease, background .3s ease;
  animation: luxuryBreathe 8s ease-in-out infinite;
}
.luxury-card:nth-child(2) { animation-delay: -2.5s; }
.luxury-card:nth-child(3) { animation-delay: -5s; }
@keyframes luxuryBreathe { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.luxury-card:hover { background: rgba(255, 255, 255, .12); }
.luxury-card.lc1 { animation-delay: 0s; }
.luxury-card.lc2 { animation-delay: -2.5s; }
.luxury-card.lc3 { animation-delay: -5s; }
.luxury-card-visual {
  flex: none; width: 56px; height: 56px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .06); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .06);
}
.luxury-card-visual svg { width: 100%; height: 100%; object-fit: cover; }
.luxury-card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.luxury-card-info b { font-size: 13px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.luxury-card-price { font-size: 16px; font-weight: 800; color: #d4a017; }
.luxury-card-meta { font-size: 11px; color: rgba(255, 255, 255, .5); }

/* Leerzustand wenn keine Live-Auktionen */
.luxury-no-cards {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 8px; padding: 40px 20px; text-align: center; height: 100%;
}
.luxury-no-cards b { font-size: 16px; color: rgba(255,255,255,.85); }
.luxury-no-cards p { font-size: 12.5px; color: rgba(255,255,255,.5); margin: 0; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-luxury-inner { grid-template-columns: 1fr 320px; }
  .hero-luxury-copy { padding: 40px 32px 32px 40px; }
}
@media (max-width: 899px) {
  .hero.hero-luxury { min-height: auto; }
  .hero-luxury-inner { grid-template-columns: 1fr; }
  .hero-luxury-cards { display: none; } /* Keine Karten auf Mobile - sauber */
  .hero-luxury-copy { padding: 36px 24px 28px; }
  .hero-luxury-actions { flex-direction: column; }
  .hero-luxury-actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .luxury-card { animation: none !important; }
  .hero-luxury-search { transition: none; }
}

/* ---------------------------------------------------------------- Hero (Premium v2) */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  padding: 30px 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 150% at 100% -20%, rgba(120, 255, 214, .34), transparent 52%),
    radial-gradient(90% 120% at -10% 120%, rgba(255, 214, 120, .18), transparent 55%),
    linear-gradient(132deg, #0a5542 0%, #0e7a5f 52%, #159b77 100%);
  box-shadow: 0 28px 60px -34px rgba(8, 80, 62, .75);
}

/* Premium-Variante: dunkler, edler, mit Gold */
.hero.hero-premium {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: auto;
  padding: 48px 24px 40px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(212, 160, 23, .12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(21, 155, 119, .15), transparent 60%),
    linear-gradient(168deg, #051f18 0%, #0a3d2e 45%, #06281e 100%);
}
.hero-shine {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(ellipse 300px 200px at 30% 20%, rgba(255, 223, 128, .06), transparent 70%),
    radial-gradient(ellipse 250px 180px at 70% 60%, rgba(120, 255, 214, .05), transparent 70%);
  animation: heroShine 12s ease-in-out infinite alternate;
}
@keyframes heroShine {
  0% { opacity: .6; transform: translateX(-15px); }
  50% { opacity: 1; transform: translateX(10px); }
  100% { opacity: .7; transform: translateX(-5px); }
}

/* Schwebende Produkte */
.hero-floaters { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hf {
  position: absolute;
  font-size: clamp(28px, 5vw, 52px);
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
  opacity: .5;
  animation: hfFloat 8s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s);
  will-change: transform;
  transition: opacity .3s;
}
.hf:hover { opacity: .8; }
.hf-ps5 { top: 12%; left: 6%; animation-name: hfFloat, hfRotate; animation-duration: 8s, 14s; }
.hf-bike { top: 8%; right: 7%; animation-name: hfFloat, hfRotateRev; animation-duration: 9s, 16s; }
.hf-car { bottom: 14%; right: 5%; animation-name: hfFloatSlow, hfRotate; animation-duration: 11s, 18s; }
.hf-keyboard { bottom: 18%; left: 5%; animation-name: hfFloatSlow, hfRotateRev; animation-duration: 10s, 15s; }
.hf-phone { top: 40%; right: 14%; font-size: clamp(22px, 3.5vw, 36px); opacity: .3; }
.hf-headphones { top: 50%; left: 12%; font-size: clamp(22px, 3.5vw, 36px); opacity: .3; }

@keyframes hfFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-22px); }
}
@keyframes hfFloatSlow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-16px); }
}
@keyframes hfRotate {
  0% { rotate: -4deg; }
  100% { rotate: 3deg; }
}
@keyframes hfRotateRev {
  0% { rotate: 3deg; }
  100% { rotate: -4deg; }
}

/* Zentrierter Text */
.hero-centered { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 720px; margin: 0 auto; }
.hero-eyebrow-premium {
  font-size: clamp(11px, 2vw, 13px);
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #d4a017;
  margin: 0 0 12px;
  text-shadow: 0 0 24px rgba(212, 160, 23, .3);
}
.hero-title-premium {
  font-size: clamp(30px, 7vw, 56px);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 30%, #d4e8e0 50%, #ffffff 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}
.hero-title-sub {
  font-size: clamp(22px, 4.5vw, 38px);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 800;
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .95);
}
.hero-gold-line {
  width: clamp(60px, 12vw, 120px);
  height: 3px;
  margin: 18px auto 16px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #d4a017, transparent);
  animation: goldPulse 4s ease-in-out infinite;
}
@keyframes goldPulse {
  0%, 100% { opacity: .5; width: clamp(50px, 10vw, 100px); }
  50% { opacity: 1; width: clamp(70px, 14vw, 140px); }
}
.hero .hero-sub {
  color: rgba(255, 255, 255, .75);
  font-size: clamp(13px, 2.2vw, 15px);
  max-width: 520px;
  margin: 0 auto;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* Suche */
.hero .hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 560px;
  height: 56px;
  margin: 24px auto 0;
  padding: 0 6px 0 17px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .55), 0 0 0 1px rgba(212, 160, 23, .15);
}
.hero-search .search-ico { color: var(--ink-3); }
.hero-search .search-ico svg { width: 20px; height: 20px; }
.hero-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14.5px;
}
.hero-search input::placeholder { color: var(--ink-3); }
.hero-search .btn { min-height: 44px; padding: 0 20px; }

/* Aktions-Buttons */
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}
.hero-actions .btn {
  min-height: 48px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 14px;
}
.btn-gold {
  background: linear-gradient(135deg, #d4a017, #f0c445);
  color: #051f18;
  border: none;
  box-shadow: 0 6px 20px -4px rgba(212, 160, 23, .4);
  transition: transform .15s, box-shadow .15s;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -6px rgba(212, 160, 23, .5); }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .3);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }

/* Statistik-Karten */
.hero-stats-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
  font-size: 13px;
}
.hero-stat b { font-size: 16px; color: #fff; }
.hero-stat span { color: rgba(255, 255, 255, .65); font-size: 12px; }
.hero-stat .live-dot { margin: 0; }

/* Alte Hero-Orbits behalten */
.hero-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  pointer-events: none;
}
.hero-orbit.o1 { width: 380px; height: 380px; right: -90px; top: -170px; }
.hero-orbit.o2 { width: 240px; height: 240px; right: 60px; bottom: -150px; background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%); }

/* Kategorie-Scroller */
.category-scroller {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 2px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.category-scroller::-webkit-scrollbar { height: 4px; }
.category-scroller::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s;
}
.cat-chip:hover { border-color: var(--brand); color: var(--brand-text); }
.cat-chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.cat-chip .cat-emoji { font-size: 16px; line-height: 1; }

/* Mobile Anpassungen */
@media (max-width: 768px) {
  .hero.hero-premium { padding: 36px 16px 28px; }
  .hf { display: none; } /* Keine Floaters auf Mobile - Performance + Platz */
  .hero-floaters { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats-bar { gap: 6px; }
  .hero-stat { padding: 6px 12px; font-size: 12px; }
  .hero-stat b { font-size: 14px; }
  .hero-search { height: 50px; margin-top: 18px; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-shine, .hf, .hero-gold-line { animation: none !important; }
  .hero-shine { opacity: .5; }
  .hf { opacity: .3; }
}

/* ---------------------------------------------------------------- Hero Legacy (non-premium) */
.hero-card b { font-size: 13px; }
.hero-card small { font-size: 10.5px; color: #5b7066; }
.hero-card.hc1 { top: 6px; right: 30px; transform: rotate(3deg); }
.hero-card.hc2 { top: 100px; right: 150px; transform: rotate(-4deg); }
.hero-card.hc3 { top: 170px; right: 14px; transform: rotate(2deg); }

/* ------------------------------------------------ Hero-Karten in Bewegung */
/* Sanftes Schweben: jede Karte hüpft leicht versetzt auf und ab. */
@keyframes heroFloat1 {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(3.6deg) translateY(-11px); }
}
@keyframes heroFloat2 {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-3.2deg) translateY(-9px); }
}
@keyframes heroFloat3 {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(1.4deg) translateY(-12px); }
}
.hero-card.hc1 { animation: heroFloat1 5.2s ease-in-out infinite; }
.hero-card.hc2 { animation: heroFloat2 6.4s ease-in-out infinite .6s; }
.hero-card.hc3 { animation: heroFloat3 5.8s ease-in-out infinite 1.1s; }
.hero-card:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .hero-card.hc1, .hero-card.hc2, .hero-card.hc3 { animation: none; }
}

/* ------------------------------------------------------- Kategorien */

.category-scroller {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding: 3px 2px 5px;
  overflow-x: auto;
  align-items: center;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-scroller::-webkit-scrollbar { display: none; }
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}
.cat-chip:hover { border-color: var(--brand); color: var(--brand-text); transform: translateY(-1px); }
.cat-chip.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-text); }
.cat-emoji {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 15px;
}
.cat-chip.active .cat-emoji { background: var(--surface); }

/* ------------------------------------------------------------ Toolbar */

.feed-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.toolbar-count { font-size: 12.5px; color: var(--ink-3); }
.toolbar-count b { color: var(--ink); font-size: 17px; letter-spacing: -.02em; }
.toolbar-count em { color: var(--ink); font-style: normal; font-weight: 650; }
.toolbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.toolbar-chip { display: none; }
.sort-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
}
.sort-select select {
  appearance: none;
  height: 100%;
  padding: 0 32px 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 12.5px;
  font-weight: 650;
  outline: none;
  cursor: pointer;
}
.sort-select svg { position: absolute; right: 11px; width: 13px; height: 13px; transform: rotate(90deg); pointer-events: none; color: var(--ink-3); }
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.filter-btn svg { width: 16px; height: 16px; }
.filter-btn:hover, .filter-btn.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-text); }
.filter-btn i {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-style: normal;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 0 4px;
  font-size: 11.5px;
  color: var(--ink-3);
}

/* ---------------------------------------------------------- Inserate */

.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, opacity .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.card.removing { opacity: 0; transform: scale(.96); }
.card.is-sold .card-art, .card.is-sold .photo { filter: grayscale(.7) brightness(.9); }
.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}
.card-media .photo, .card-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-media .photo { object-fit: cover; }
.media-shade {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(to top, rgba(12, 35, 26, .16), transparent);
  pointer-events: none;
}
.card .pill { position: absolute; top: 9px; left: 9px; z-index: 2; box-shadow: 0 3px 10px rgba(0, 0, 0, .12); }
.sold-veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(16, 30, 24, .34);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.fav-btn {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .84);
  color: #43534b;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.fav-btn svg { width: 18px; height: 18px; }
.fav-btn:hover { background: #fff; color: var(--accent); transform: scale(1.06); }
.fav-btn.active { color: var(--accent); }
.fav-btn.active svg { fill: currentColor; }
.fav-btn.pop { animation: heartPop .4s ease; }
@keyframes heartPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.22); }
  70% { transform: scale(.94); }
  100% { transform: scale(1); }
}
.card-body { display: block; padding: 11px 13px 13px; }
.card-price { font-size: 16px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.card-price.free { color: var(--brand-text); font-size: 14.5px; }
.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 3px;
  min-height: 2.6em;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.005em;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
}
.card-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); flex: none; }
.card-meta span { overflow: hidden; text-overflow: ellipsis; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--ink-3);
}
.mini-tag {
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-text);
  font-size: 9.5px;
  font-weight: 700;
}

/* ------------------------------------------------------------- Kunst */

.art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 82% 0%, var(--c2), transparent 62%),
    linear-gradient(142deg, var(--c1), var(--c2));
}
.art-blob { position: absolute; border-radius: 50%; }
.art-blob.a { width: 58%; height: 58%; left: -14%; bottom: -20%; background: var(--c2); opacity: .75; }
.art-blob.b { width: 42%; height: 42%; right: -10%; top: -12%; background: #fff; opacity: .38; }
.art-emoji {
  position: relative;
  z-index: 1;
  font-size: clamp(44px, 9vw, 68px);
  line-height: 1;
  transform: rotate(-4deg);
  filter: drop-shadow(0 10px 18px rgba(24, 50, 40, .18));
  transition: transform .35s cubic-bezier(.2, .8, .3, 1);
}
.card:hover .art-emoji { transform: rotate(0) scale(1.07); }
.art-demo {
  position: absolute;
  z-index: 2;
  bottom: 7px;
  left: 7px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .66);
  color: #46584e;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
[data-theme="dark"] .art-blob.b { opacity: .18; }
[data-theme="dark"] .art-demo { background: rgba(0, 0, 0, .38); color: #e8f4ee; }

/* --------------------------------------------------------------- Rail */

.rail {
  display: flex;
  gap: 13px;
  padding: 4px 2px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail .card { flex: 0 0 240px; scroll-snap-align: start; }

/* ------------------------------------------------------------- Promo */

.promo-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding: 20px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(255, 214, 110, .45), transparent 55%),
    linear-gradient(130deg, #fdf4e2, #f9e8cd);
  border: 1px solid #f0dcb6;
  color: #4a3510;
}
.promo-emoji {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .66);
  font-size: 32px;
  box-shadow: 0 10px 20px -12px rgba(110, 75, 10, .4);
}
.promo-copy h2 { font-size: 18px; letter-spacing: -.02em; }
.promo-copy p { margin-top: 3px; font-size: 12.5px; color: #6f5527; max-width: 620px; }
.promo-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
[data-theme="dark"] .promo-banner {
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(151, 108, 15, .25), transparent 55%),
    linear-gradient(130deg, #2a2312, #201b0d);
  border-color: #493b1b;
  color: #f7edda;
}
[data-theme="dark"] .promo-copy p { color: #cbb58c; }
[data-theme="dark"] .promo-emoji { background: rgba(255, 255, 255, .08); }

.load-more { display: flex; justify-content: center; padding: 26px 0 8px; }
.load-more .btn span { font-weight: 500; color: var(--ink-3); }
.end-note { font-size: 12.5px; color: var(--ink-3); }

/* ---------------------------------------------------------- Empty */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 54px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.empty-art {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 10px;
  border-radius: 24px;
  background: var(--brand-soft);
  font-size: 38px;
  transform: rotate(-3deg);
}
.empty h2 { font-size: 21px; letter-spacing: -.02em; }
.empty p { max-width: 420px; color: var(--ink-2); font-size: 13.5px; margin-bottom: 10px; }

/* ----------------------------------------------------------- Detail */

.detail-page { padding-bottom: 90px; }
.detail-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.back-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.back-btn svg { width: 20px; height: 20px; }
.back-btn:hover { border-color: var(--brand); color: var(--brand-text); transform: translateX(-2px); }
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-3);
}
.detail-topbar .icon-btn { margin-left: auto; background: var(--surface); border: 1px solid var(--line); }

.detail-layout { display: grid; gap: 22px; }
.detail-main { min-width: 0; }

.gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.gallery-frame { position: relative; }
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
  max-height: 560px;
  overflow: hidden;
  background: var(--surface-2);
}
.gallery-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.gallery-art.photo { object-fit: cover; }
.gallery-slide .art-emoji { font-size: clamp(96px, 22vw, 168px); }
.gallery-slide .art-demo { bottom: 14px; left: 14px; font-size: 9.5px; padding: 3px 8px; }
.gallery-count {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 25, 20, .55);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.gallery-fav { top: 14px; right: 14px; width: 40px; height: 40px; }
.gallery .pill { top: 14px; left: 14px; }
.gal-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .86);
  color: #22352d;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  backdrop-filter: blur(6px);
  transition: background .16s ease, transform .16s ease;
}
.gal-btn svg { width: 18px; height: 18px; }
.gal-btn:hover { background: #fff; transform: scale(1.05); }
.gal-btn.prev { left: 12px; }
.gal-btn.next { right: 12px; }
.gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
  position: relative;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: .72;
  transition: opacity .16s ease, border-color .16s ease;
}
.gallery-thumb .art-emoji { font-size: 28px; }
.gallery-thumb .photo { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { border-color: var(--brand); opacity: 1; }
.gallery-thumb .art-demo { display: none; }

.detail-heading {
  padding: 20px 2px 2px;
}
.detail-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.detail-tags .pill { position: static; }
.detail-heading h1 {
  margin: 10px 0 8px;
  font-size: clamp(23px, 4.2vw, 32px);
  line-height: 1.16;
  letter-spacing: -.03em;
}
.detail-price {
  font-size: clamp(27px, 5vw, 34px);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.1;
}
.detail-price.free { color: var(--brand-text); }
.detail-price .vb { font-size: .55em; font-weight: 700; color: var(--ink-3); vertical-align: .18em; }
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 12px;
}
.detail-meta span { display: inline-flex; align-items: center; gap: 4px; }
.detail-meta svg { width: 14px; height: 14px; }

.detail-section {
  margin-top: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.detail-section h2 { display: flex; align-items: center; gap: 7px; font-size: 17px; letter-spacing: -.015em; margin-bottom: 12px; }
.detail-section h2 svg { width: 19px; height: 19px; color: var(--brand-text); }
.prewrap { white-space: pre-wrap; color: var(--ink-2); font-size: 14px; line-height: 1.65; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.fact { padding: 9px 11px; border-radius: 12px; background: var(--surface-2); }
.fact dt { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.fact dd { margin-top: 2px; font-size: 13px; font-weight: 600; }

.map {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: #e9f0ea;
}
.map svg { width: 100%; height: auto; display: block; }
.map-note {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #3d5349;
  font-size: 10.5px;
  font-weight: 650;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .1);
  backdrop-filter: blur(4px);
}
.location-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.location-line svg { width: 16px; height: 16px; color: var(--brand-text); }

/* Verkäuferkarte */

.detail-side { display: flex; flex-direction: column; gap: 14px; }
.seller-card { padding: 18px; }
.seller-top { display: flex; gap: 12px; align-items: center; }
.seller-id { min-width: 0; }
.seller-id h2 { font-size: 17px; letter-spacing: -.02em; }
.seller-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.stars { display: inline-flex; align-items: center; gap: 3px; color: var(--amber); font-size: 11px; }
.stars svg { width: 13px; height: 13px; }
.stars b { color: var(--ink-2); font-weight: 700; }
.seller-since { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; font-size: 10.5px; color: var(--ink-3); }
.verified {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-text);
  font-size: 9px;
  font-weight: 750;
}
.verified svg { width: 10px; height: 10px; }
.seller-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 14px 0 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 11px;
}
.seller-note svg { width: 14px; height: 14px; color: var(--brand-text); }
.seller-card .btn { margin-top: 8px; }
.fav-wide { gap: 6px; }
.fav-wide.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.seller-mine p { color: var(--ink-2); font-size: 12px; margin: 8px 0 12px; }

.safety-card { padding: 18px; }
.safety-card h3 { display: flex; align-items: center; gap: 7px; font-size: 14px; letter-spacing: -.01em; }
.safety-card h3 svg { width: 17px; height: 17px; color: var(--brand-text); }
.check-list { display: flex; flex-direction: column; gap: 6px; margin-top: 9px; }
.check-list li {
  position: relative;
  padding-left: 18px;
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}
.safety-card .text-link { margin-top: 10px; font-size: 11.5px; }
.side-note { padding: 16px 18px; background: var(--surface-2); border-style: dashed; box-shadow: none; }
.side-note p:last-child { margin-top: 5px; font-size: 11.5px; color: var(--ink-2); }

.safety-inline .safety-grid {
  display: grid;
  gap: 10px;
}
.safety-item {
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-2);
}
.safety-item > span { font-size: 22px; }
.safety-item h3 { margin: 6px 0 3px; font-size: 13px; }
.safety-item p { font-size: 11.5px; color: var(--ink-2); line-height: 1.45; }

/* Mobile Kaufleiste */

.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -20px rgba(0, 0, 0, .3);
}
.action-price { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.action-price b { font-size: 18px; letter-spacing: -.02em; }
.action-price b.free { color: var(--brand-text); font-size: 15px; }
.action-price small { color: var(--ink-3); font-size: 10px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.action-bar .btn { margin-left: auto; flex: none; }

@media (min-width: 560px) {
  #view { padding: 26px 22px 52px; }
  .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
  .promo-banner { grid-template-columns: auto 1fr auto; }
  .promo-actions { grid-column: auto; }
  .safety-inline .safety-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  #view { padding: 32px 28px 64px; }
  .tabbar { display: none; }
  .mobile-search { display: none; }
  .hero { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); padding: 38px 40px; align-items: center; }
  .hero-side { display: block; }
  .appbar-inner { padding: 15px 24px; }
  .toolbar-chip { display: inline-flex; }
  .listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 336px; gap: 26px; align-items: start; }
  .detail-side { position: sticky; top: calc(var(--appbar-h) + 18px); z-index: 1; background: var(--bg); padding-bottom: 16px; }
  .detail-section { padding: 24px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-page { padding-bottom: 0; }
  .action-bar { display: none; }
  .rail .card { flex-basis: 260px; }
  .gallery-slide { aspect-ratio: 16 / 11; }
  .safety-inline .safety-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .top-search { display: none; }
  .sell-cta { display: none; }
  .icon-link[data-nav-key="watchlist"] { display: none; }
  .mobile-search {
    display: flex;
    height: 44px;
    margin: 0 16px 12px;
    width: auto;
    max-width: none;
  }
  .appbar-inner { padding: 10px 16px 8px; }
  .brand-copy small { display: none; }
  .detail-side { order: 2; }
  .detail-main { order: 1; }
  .detail-topbar { margin-top: 2px; }
}

@media (max-width: 559px) {
  .toolbar-chip { display: inline-flex; }
  .toolbar-count span { display: none; }
  .toolbar-actions { width: 100%; margin-left: 0; }
  .toolbar-actions .sort-select { flex: 1; }
  .toolbar-actions .sort-select select { width: 100%; }
  .feed-toolbar { padding: 10px 11px; }
  .brand-copy b { font-size: 17px; }
  .hero { padding: 24px 18px; border-radius: 22px; }
  .hero h1 { font-size: 28px; }
  .hero-search { height: 52px; padding-left: 14px; }
  .hero-search .btn { min-height: 40px; padding: 0 15px; font-size: 13px; }
  .page-head h1 { font-size: 28px; }
  .gallery { border-radius: 20px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-heading { padding-top: 16px; }
  .promo-banner { padding: 16px; }
  .promo-emoji { width: 52px; height: 52px; font-size: 26px; border-radius: 15px; }
  .promo-copy h2 { font-size: 16px; }
  .promo-actions .btn { flex: 1; }
}

@media (max-width: 374px) {
  .brand-copy { display: none; }
  .avatar-link { margin-left: 0; }
  .hero-chips .chip:last-child { display: none; }
  .toolbar-chip { display: none; }
  .listing-grid { gap: 10px; }
  .card-body { padding: 9px 10px 11px; }
  .card-price { font-size: 15px; }
}

/* ------------------------------------------------- Fix: Scroll-Verhalten */
/* Nur vertikal scrollen (oben nach unten) - kein horizontales Scrollen.
   WICHTIG: 'clip' statt 'hidden' - 'hidden' wuerde body zum eigenen
   Scroll-Container machen und das Mausrad-Scrollen BRECHEN! */
html, body {
  overflow-x: clip;
  overscroll-behavior-y: auto;
  touch-action: manipulation; /* kein Doppeltipp-Zoom – festes App-Verhalten */
}
.page { overflow-x: clip; }

/* Feste Leisten und Bedienelemente duerfen nicht mit den Fingern
   verschoben oder geoeffnet werden (wie eine native App). */
.appbar, #operator-bar, .loc-topbar, .tabbar, #ai-root, #public-chat-root {
  touch-action: pan-y;
}

/* ============================================================
   BETREIBER-LEISTE (unter der Suchleiste, nur Betreiber/Admin)
   🔔 Besucherton / ✅ Registrierungston – grün aktiv, grau aus
   ============================================================ */
#operator-bar {
  position: sticky; top: var(--appbar-h, 74px); z-index: 49;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 8px 22px;
  background: color-mix(in srgb, var(--brand) 5%, var(--surface));
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 16%, var(--line));
  font-size: 12px;
}
.op-bar-label {
  font-weight: 800; color: var(--brand-text);
  text-transform: uppercase; letter-spacing: .05em; font-size: 10.5px;
}
.op-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; user-select: none;
  color: var(--ink-2); font-weight: 650;
}
.op-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.op-switch {
  position: relative; flex: none;
  width: 38px; height: 22px;
  border-radius: 999px;
  background: var(--line);
  transition: background .16s ease;
}
.op-switch i {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25);
  transition: transform .16s ease;
}
.op-toggle input:checked + .op-switch { background: var(--brand); }
.op-toggle input:checked + .op-switch i { transform: translateX(16px); }
.op-toggle input:focus-visible + .op-switch { box-shadow: 0 0 0 4px var(--ring); }
.op-copy { white-space: nowrap; }

@media (max-width: 559px) {
  #operator-bar { padding: 7px 16px; gap: 12px; }
}

/* ------------------------------------------------- Abo & Plaene */
.plan-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 660px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }
.plan-card {
  border: 2px solid var(--line); border-radius: 16px; padding: 14px;
  display: flex; flex-direction: column; gap: 10px; background: var(--surface);
}
.plan-card.active { border-color: var(--pc, #0e7a5f); box-shadow: 0 0 0 3px rgba(14, 122, 95, .15); }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--pc, #0e7a5f); }
.plan-head b { font-size: 17px; letter-spacing: -.01em; }
.plan-head span { font-weight: 800; font-size: 12.5px; white-space: nowrap; }
.plan-list { list-style: none; margin: 0; padding: 0; font-size: 12.3px; color: var(--ink-2); display: grid; gap: 6px; flex: 1; }
.plan-list li { padding-left: 20px; position: relative; line-height: 1.4; }
.plan-list li::before { content: "\221A"; position: absolute; left: 0; top: 0; color: var(--pc, #0e7a5f); font-weight: 800; }
.plan-badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  background: rgba(14, 122, 95, .1); color: var(--pc, #0e7a5f);
  font-size: 11px; font-weight: 800; margin-left: 6px; vertical-align: 2px;
}

/* ------------------------------------------------- Top-Platzierung Zahlung */
.pay-hero {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 14px;
}
.pay-star { font-size: 28px; flex: none; }
.pay-hero p { margin: 2px 0 0; font-size: 12px; color: var(--ink-2); }
.pay-price { margin-left: auto; font-size: 17px; color: var(--brand-text); white-space: nowrap; }
.pay-method small { display: block; color: var(--ink-3); font-size: 10.5px; }

/* ------------------------------------------------- Share-Zentrale */
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 14px; }
.share-target {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 13px 6px; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--surface); text-decoration: none; color: var(--ink);
  transition: transform .15s ease, border-color .15s ease;
}
.share-target:hover { transform: translateY(-2px); border-color: var(--brand); }
.share-brand { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; }
.share-brand svg { width: 32px; height: 32px; display: block; }
.share-emoji { font-size: 25px; line-height: 1; }
.share-target b { font-size: 11.5px; }
.share-link-row { display: flex; gap: 8px; }
.share-link-row input {
  flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); font-size: 12.5px; color: var(--ink-2); min-width: 0;
}

/* ------------------------------------------------- 2FA / QR + Abstand-Fix */
.qr-wrap { display: flex; justify-content: center; align-items: center; min-height: 208px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; }
.qr-wrap svg, .qr-wrap canvas, .qr-wrap img { display: block; width: 180px; height: 180px; max-width: 100%; }
.mfa-loading { font-size: 12px; color: #5b7066; }
.mfa-secret { display: block; font-size: 11px; word-break: break-all; padding: 10px 12px; background: var(--surface); border-radius: 10px; margin-top: 8px; }
.mfa-steps { margin-bottom: 6px; }

/* ABSTANDS-FIX: Nichts klebt mehr am Rand (Zahlungs-Liste & Chooses) */
.payment-list { display: grid; gap: 8px; padding: 14px !important; }
.payment-pick { display: flex; align-items: center; gap: 12px !important; padding: 12px 16px !important; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; position: relative; }
.payment-pick .payment-emoji { font-size: 20px; flex: none; line-height: 1; }
.payment-pick b { font-size: 13.5px; }
.payment-pick small { display: block; font-size: 10.5px; color: var(--ink-3); line-height: 1.35; margin-top: 2px; }
.payment-pick.disabled { opacity: .45; cursor: not-allowed; }
.choice { padding: 10px 14px !important; }
.choice .choice-emoji { margin-right: 2px; }

/* ------------------------------------------------- FIX: NUR VERTIKAL */
/* Die App ist FIX: kein seitliches Schieben/Wischen mehr - nur noch
   nach oben und unten. */
html, body {
  overflow-x: clip;
  max-width: 100vw;
  overscroll-behavior-x: none;
}
/* Touch-Geraete: nur vertikales Ziehen erlaubt (plus Zoom fuer Barrierefreiheit) */
html, body { touch-action: pan-y pinch-zoom; }

/* Kategorie-Leiste: bricht jetzt in Zeilen um statt seitlich zu scrollen */
.category-scroller {
  overflow-x: visible !important;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.cat-chip { flex: 0 1 auto; }

/* Weitere horizontale Scroller -> brechen um (nur vertikal!) */
.rail {
  overflow-x: visible !important;
  flex-wrap: wrap;
  scroll-snap-type: none !important;
}
.chat-quick {
  overflow-x: visible !important;
  flex-wrap: wrap;
}

/* ---------------------------------------- Bild-Positionierung (Drag & Drop) */
.imgpos-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.imgpos-frame { position: relative; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.imgpos-frame:active { cursor: grabbing; }
.imgpos-frame.round { width: 220px; height: 220px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.imgpos-frame.wide { width: 100%; max-width: 480px; aspect-ratio: 16 / 5; border-radius: 14px; border: 3px solid #fff; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.imgpos-frame img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.imgpos-hint { font-size: 13px; color: var(--muted, #64748b); text-align: center; max-width: 360px; }
.imgpos-hint svg { width: 14px; height: 14px; vertical-align: -2px; }

/* Avatar-Bild-Position aus Profil (Drag gespeichert) */
.avatar.has-photo img { object-fit: cover; }
.profile-cover-img { object-fit: cover; }

/* ---------------------------------------- Werbung & Extras (Promotions) */
.auction-card.is-highlight {
  background: linear-gradient(160deg, rgba(255, 214, 102, .16), rgba(255, 255, 255, 1) 45%);
  box-shadow: 0 0 0 2px #f59e0b, 0 10px 26px -12px rgba(245, 158, 11, .55);
}
.meta-highlight {
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 800;
  padding: 2px 8px; border-radius: 999px;
  background: #fef3c7; color: #92400e;
}
.auction-card.is-liveboost { box-shadow: 0 0 0 2px #ef4444, 0 10px 26px -12px rgba(239, 68, 68, .6); }
.meta-liveboost {
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 900; letter-spacing: .5px;
  padding: 2px 8px; border-radius: 999px;
  background: #fee2e2; color: #b91c1c;
  animation: liveboostPulse 1.6s ease-in-out infinite;
}
@keyframes liveboostPulse {
  0%, 100% { box-shadow: 0 0 3px rgba(239,68,68,.4); }
  50% { box-shadow: 0 0 9px rgba(239,68,68,.8); }
}

/* Startseiten-Galerie */
.promo-gallery {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.gallery-tile {
  position: relative; display: flex; flex-direction: column;
  border-radius: 16px; overflow: hidden;
  background: #0f172a; color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 28px -14px rgba(0,0,0,.5);
  transition: transform .18s ease, box-shadow .18s ease;
}
.gallery-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -14px rgba(0,0,0,.55); }
.gallery-art { display: block; aspect-ratio: 16/10; position: relative; }
.gallery-art img, .gallery-art .emoji-fallback { width: 100%; height: 100%; object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 44px; }
.gallery-info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.gallery-info b { font-size: 14.5px; line-height: 1.25; }
.gallery-info small { color: #cbd5e1; font-size: 12px; }
.gallery-ad {
  position: absolute; top: 10px; right: 10px;
  font-style: normal; font-size: 10px; font-weight: 800;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(15,23,42,.72); color: #fff;
  backdrop-filter: blur(4px);
}

/* Promo-Modal */
.promo-item.selected { box-shadow: inset 0 0 0 2px var(--brand, #0e7a5f); }
.promo-item .promo-price { margin-left: auto; flex: none; font-size: 14px; }
.promo-item small { display: block; }

/* ---------------------------------------- Kategorien: waagerecht wischbar */
.category-scroller {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  gap: 8px;
  padding: 4px 16px 10px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x; /* hebt das globale pan-y lokal auf: Wischen moeglich */
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
}
.category-scroller::-webkit-scrollbar { display: none; }
.category-scroller .chip, .category-scroller .cat-chip { flex: none; scroll-snap-align: start; }

/* Einheitlicher Auktionshammer in Icon-Plätzen (statt 🔨-Emoji) */
.menu-ico svg, .success-art svg, .empty-art svg,
.safety-item > span svg, .inline-empty > span svg,
.fr-auction-emoji svg {
  display: block; width: 1.3em; height: 1.3em; margin: 0 auto;
  color: var(--brand-text, var(--brand));
}

/* ---------------------------------------- Top Verkäufe: Hammer + Popup */
@media (max-width: 899px) {
  .appbar-inner > .top-sales-chip { display: none; }
  .mobile-search-row { display: flex; align-items: center; gap: 8px; }
  .mobile-search-row .mobile-search {
    flex: 1; width: auto; max-width: none; margin: 0 0 12px 16px;
  }
  .mobile-top-sales {
    display: inline-flex; height: 44px; padding: 0 11px;
    margin: 0 16px 12px 0;
  }
  .mobile-top-sales .top-sales-label { display: none; }
}
.ts-hero {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(246, 211, 101, .18), rgba(14, 122, 95, .10));
  border: 1px solid rgba(217, 155, 6, .35);
}
.ts-hero .ts-gavel { display: inline-flex; color: #d99b06; flex: none; }
.ts-hero .ts-gavel svg { width: 34px; height: 34px; }
[data-theme="dark"] .ts-hero .ts-gavel { color: #f6cf62; }
.ts-hero .ts-zahl { display: block; font-size: 30px; line-height: 1; }
.ts-hero small { color: var(--ink-3); font-size: 12px; }
.ts-sterne { margin-top: 14px; font-size: 22px; letter-spacing: 2px; }
.ts-next { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.ts-bar {
  height: 8px; margin-top: 10px; border-radius: 999px;
  background: var(--surface-2); overflow: hidden;
}
.ts-bar > i { display: block; height: 100%; background: linear-gradient(90deg, #d99b06, #f6d365); }
