/* =========================================
   style.new-sammlung.css — CI 2026 rev.3
   Basiert auf echtem sammlung.html Template
   Scope: .theme-new
   ========================================= */

/* ════════════════════════════════════════
   PORTFOLIO-DASHBOARD
   HTML: <div class="mb-5 skw-dashboard"> (nach Patch)
   Fallback ohne Patch: .row.g-3.mb-3 + .row.g-3.mb-4
   ════════════════════════════════════════ */

/* Container (nach HTML-Patch) */
.theme-new .skw-dashboard .card {
  border-radius: var(--skw-radius-lg);
  border: 1px solid var(--skw-border);
  box-shadow: var(--skw-shadow-sm);
  transition: box-shadow var(--skw-dur-fast);
}

/* Fallback ohne Patch */
.theme-new .row.g-3.mb-3 > .col-4 > .card.h-100,
.theme-new .row.g-3.mb-4 > .col-4 > .card.h-100 {
  border-radius: var(--skw-radius-lg);
  border: 1px solid var(--skw-border);
  box-shadow: var(--skw-shadow-sm);
}

/* Wert-Zahlen in den Boxen (div.fw-bold mit inline font-size) */
.theme-new .row.g-3.mb-3 > .col-4 > .card .fw-bold,
.theme-new .row.g-3.mb-4 > .col-4 > .card .fw-bold,
.theme-new .skw-dashboard .fw-bold {
  font-family: var(--skw-font);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Label-Text in Boxen (div.text-muted mit inline font-size) */
.theme-new .row.g-3.mb-3 .text-muted,
.theme-new .row.g-3.mb-4 .text-muted,
.theme-new .skw-dashboard .text-muted {
  font-family: var(--skw-font);
}

/* G/V Farben — Bootstrap-Klassen */
/* G/V-Positive: Cyan (Brand) statt Gruen */
.theme-new .skw-dashboard .text-success,
.theme-new .row.g-3 .text-success,
.theme-new .text-success { color: var(--skw-data) !important; }
.theme-new .skw-dashboard .text-danger,
.theme-new .row.g-3 .text-danger  { color: var(--skw-danger)  !important; }

/* ── Box-Buttons (.box-btn, .gv-btn) ── */
.theme-new .box-btn,
.theme-new .gv-btn {
  font-family: var(--skw-font);
  font-weight: 700;
  border-radius: 4px;
  transition: all var(--skw-dur-fast);
}

.theme-new .box-btn.btn-primary,
.theme-new .gv-btn.btn-primary {
  background: var(--skw-accent);
  border-color: var(--skw-accent);
  color: #fff;
}

.theme-new .box-btn.btn-outline-secondary,
.theme-new .gv-btn.btn-outline-secondary {
  border-color: var(--skw-border-strong);
  color: var(--skw-text-muted);
}

.theme-new .box-btn:hover,
.theme-new .gv-btn:hover {
  background: var(--skw-surface-2);
  color: var(--skw-ink);
  border-color: var(--skw-border-strong);
}

/* ── Donut Mode Toggle (.donut-mode-btn) ── */
.theme-new .donut-mode-btn {
  font-family: var(--skw-font);
  font-weight: 700;
  border-radius: 4px;
  transition: all var(--skw-dur-fast);
}
.theme-new .donut-mode-btn.btn-primary {
  background: var(--skw-accent);
  border-color: var(--skw-accent);
  color: #fff;
}
.theme-new .donut-mode-btn.btn-outline-secondary {
  border-color: var(--skw-border-strong);
  color: var(--skw-text-muted);
}

/* ── Dashboard Tabs (.dashboard-tab) ── */
.theme-new .dashboard-tab {
  font-family: var(--skw-font);
  font-weight: 700;
  border-radius: 5px;
  transition: all var(--skw-dur-fast);
  border: 1.5px solid transparent;
}
.theme-new .dashboard-tab.active {
  background: var(--skw-accent);
  border-color: var(--skw-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}
.theme-new .dashboard-tab:not(.active) {
  background: transparent;
  border-color: var(--skw-border);
  color: var(--skw-text-muted);
}
.theme-new .dashboard-tab:not(.active):hover {
  border-color: var(--skw-border-strong);
  color: var(--skw-ink);
}

/* ── Verlauf-Linien Toggle (.vl-toggle) ── */
.theme-new .vl-toggle {
  font-family: var(--skw-font);
  font-weight: 500;
  border-radius: 4px;
  transition: opacity var(--skw-dur-fast);
}
.theme-new .vl-toggle[style*="opacity:1"],
.theme-new .vl-toggle.active { opacity: 1 !important; }

/* ── Benchmark Toggle (.bm-toggle) ── */
.theme-new .bm-toggle {
  font-family: var(--skw-font);
  font-weight: 500;
  transition: opacity var(--skw-dur-fast);
}

/* ── Dark ── */
[data-bs-theme="dark"] .theme-new .row.g-3.mb-3 > .col-4 > .card,
[data-bs-theme="dark"] .theme-new .row.g-3.mb-4 > .col-4 > .card,
[data-bs-theme="dark"] .theme-new .skw-dashboard .card {
  background: var(--skw-surface);
  border-color: var(--skw-border);
}


/* ════════════════════════════════════════
   FILTER-CHIPS (echte Klassen)
   ════════════════════════════════════════ */

/* Basis-Chip: .filter-chip */
.theme-new .filter-chip {
  font-family: var(--skw-font);
  font-size: var(--skw-fs-label);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--skw-border-strong);
  background: var(--skw-surface);
  color: var(--skw-text-muted);
  cursor: pointer;
  transition: all var(--skw-dur-fast) var(--skw-ease);
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.theme-new .filter-chip:hover {
  background: var(--skw-surface-2);
  color: var(--skw-ink);
}
.theme-new .filter-chip.active {
  background: var(--skw-accent);
  border-color: var(--skw-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99,102,241,0.28);
}

/* Icon-Buttons: .filter-icon-btn (TCG-Logos) */
.theme-new .filter-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1.5px solid var(--skw-border);
  background: var(--skw-surface);
  cursor: pointer;
  transition: all var(--skw-dur-fast);
  -webkit-tap-highlight-color: transparent;
}
.theme-new .filter-icon-btn img {
  height: 20px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity var(--skw-dur-fast);
}
.theme-new .filter-icon-btn.active {
  border-color: var(--skw-accent);
  background: rgba(99,102,241,0.08);
  box-shadow: 0 2px 8px rgba(99,102,241,0.2);
}
.theme-new .filter-icon-btn.active img { opacity: 1; }

/* Flag-Buttons: .filter-flag-btn (Sprachen) */
.theme-new .filter-flag-btn {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1.5px solid var(--skw-border);
  background: var(--skw-surface);
  cursor: pointer;
  transition: all var(--skw-dur-fast);
  -webkit-tap-highlight-color: transparent;
}
.theme-new .filter-flag-btn img { height: 14px; }
.theme-new .filter-flag-btn.active {
  border-color: var(--skw-accent);
  background: rgba(99,102,241,0.08);
}

/* Typ-Filter: .typ-btn */
.theme-new .typ-btn {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ── Dark ── */
[data-bs-theme="dark"] .theme-new .filter-chip { background: var(--skw-surface); border-color: var(--skw-border); }
[data-bs-theme="dark"] .theme-new .filter-icon-btn,
[data-bs-theme="dark"] .theme-new .filter-flag-btn { background: var(--skw-surface); border-color: var(--skw-border); }


/* ════════════════════════════════════════
   LISTE/GRID-TOGGLE (.skw-view-toggle)
   Echtes HTML: buttons mit data-view + class="active"
   ════════════════════════════════════════ */

.theme-new .skw-view-toggle {
  display: inline-flex;
  background: var(--skw-surface-2);
  border-radius: var(--skw-radius-sm);
  padding: 3px;
  gap: 2px;
}

.theme-new .skw-view-toggle button {
  padding: 6px 10px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--skw-text-muted);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--skw-dur-fast);
  line-height: 1;
}

.theme-new .skw-view-toggle button.active {
  background: var(--skw-surface);
  color: var(--skw-accent);
  box-shadow: var(--skw-shadow-xs);
}


/* ════════════════════════════════════════
   FLIP-TILES (.skw-tile)
   Korrekte Klassen aus echtem HTML
   ════════════════════════════════════════ */

/* Grid-Container: .skw-collection-grid (innerer Container) */
.theme-new .skw-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 576px) {
  .theme-new .skw-collection-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .theme-new .skw-collection-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px) {
  .theme-new .skw-collection-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Tile */
.theme-new .skw-tile {
  aspect-ratio: 3 / 4;
  perspective: 900px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.theme-new .skw-tile-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-new .skw-tile.flipped .skw-tile-inner {
  transform: rotateY(180deg);
}

.theme-new .skw-tile-front,
.theme-new .skw-tile-back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
}

/* Front */
.theme-new .skw-tile-front {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* .skw-tile-front-img ist ein DIV mit img drin */
.theme-new .skw-tile-front-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-new .skw-tile-front-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.theme-new .skw-tile-anzahl-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-family: var(--skw-font);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  backdrop-filter: blur(4px);
}

.theme-new .skw-tile-typ-badge {
  position: absolute !important;
  top: 5px !important;
  left: 5px !important;
  bottom: auto !important;
  right: auto !important;
  width: auto !important;
  height: auto !important;
  max-width: calc(100% - 10px) !important;
  display: inline-block !important;
  color: #fff !important;
  font-family: var(--skw-font) !important;
  font-size: 7px !important;
  font-weight: 700 !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  line-height: 1.3 !important;
  z-index: 2 !important;
  /* Badge ist Teil der Front -> beim Flip auf Rueckseite ausblenden,
     sonst wird es gespiegelt sichtbar */
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
}
/* Anzahl-Badge analog */
.theme-new .skw-tile-anzahl-badge {
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
}

/* Robustes Ausblenden der Front-Badges nach Flip:
   backface-visibility:hidden allein reicht nicht, weil die Badges in einem
   2D-Flex-Container (.skw-tile-front) sitzen und ihren eigenen Stacking-Context
   öffnen. Beim flipped-State werden sie sonst gespiegelt sichtbar. */
.theme-new .skw-tile.flipped .skw-tile-typ-badge,
.theme-new .skw-tile.flipped .skw-tile-anzahl-badge {
  display: none !important;
}

/* Back — Ink-Hintergrund */
.theme-new .skw-tile-back {
  transform: rotateY(180deg);
  background: var(--skw-surface);
  border: 1px solid var(--skw-border);
  padding: 11px 11px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.theme-new .skw-tile-back-name {
  font-family: var(--skw-font);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--skw-ink);
  line-height: 1.25;
  /* Schutzraum rechts: durchscheinendes Anzahl-Badge der Front (iOS Safari)
     soll den Namen nicht beschneiden */
  padding-right: 32px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Preis-Zeilen: echte Klassen .price-row > .label + .value */
.theme-new .skw-tile-back-prices {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 4px;
}

.theme-new .skw-tile-back .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  min-height: 18px;
}

.theme-new .skw-tile-back .price-row .label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.8rem;
  color: var(--skw-text-muted);
  font-weight: 600;
  flex-shrink: 0;
}

.theme-new .skw-tile-back .price-row .label img {
  height: 18px;
  opacity: 0.9;
}

.theme-new .skw-tile-back .price-row .value {
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--skw-ink);
  letter-spacing: -0.01em;
  text-align: right;
  line-height: 1.2;
}

/* G/V Farben in den Tiles */
.theme-new .skw-tile-back .pnl {
  font-size: 0.74rem;
  font-weight: 700;
  margin-left: 4px;
}
.theme-new .skw-tile-back .pnl-pos { color: var(--skw-data); }
.theme-new .skw-tile-back .pnl-neg { color: var(--skw-danger); }

/* Actions */
.theme-new .skw-tile-back-actions {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.theme-new .skw-tile-back-actions .btn {
  font-size: 0.8rem;
  padding: 8px 0;
  flex: 1;
  border-radius: 7px;
  font-weight: 700;
}

.theme-new .skw-tile-back-actions .btn-primary {
  background: var(--skw-accent) !important;
  border-color: var(--skw-accent) !important;
  color: #fff !important;
}

/* Einheitlicher Details-Button (Karten + Sealed) — dezent (Outline-Style mit
   Indigo-Akzent), nicht so fett wie der allgemeine .btn-Stil oben.
   Vorher: Karten nutzte diese Klasse OHNE CSS-Definition (fiel auf btn-Default
   zurueck), Sealed nutzte btn-primary (skw-accent). Jetzt einheitlich. */
.theme-new .skw-tile-back-actions .skw-tile-back-details-btn {
  background: transparent;
  border: 1px solid var(--skw-accent, #4f46e5);
  color: var(--skw-accent, #4f46e5);
  font-weight: 500;
  font-size: 0.78rem;
  padding: 6px 0;
  transition: background 0.15s, color 0.15s;
}
.theme-new .skw-tile-back-actions .skw-tile-back-details-btn:hover {
  background: var(--skw-accent, #4f46e5);
  color: #fff;
}
[data-bs-theme="dark"] .theme-new .skw-tile-back-actions .skw-tile-back-details-btn {
  border-color: rgba(165,180,252,0.7);
  color: rgba(196,206,255,0.95);
}
[data-bs-theme="dark"] .theme-new .skw-tile-back-actions .skw-tile-back-details-btn:hover {
  background: rgba(165,180,252,0.18);
  color: #e9edff;
}

/* Rarity-Pille auf Karten-Tile-Back-Rueckseite (oben rechts). Norman wollte
   urspruenglich auch fuer Sealed eine Pille — Sealed haben keine Rarity,
   aber product_type ist schon auf der Vorderseite. Daher hier nur Karten. */
.theme-new .skw-tile-back-rarity {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(99,102,241,0.12);
  color: var(--skw-accent, #4f46e5);
  border: 1px solid rgba(99,102,241,0.3);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-bs-theme="dark"] .theme-new .skw-tile-back-rarity {
  background: rgba(165,180,252,0.15);
  color: #c4ceff;
  border-color: rgba(165,180,252,0.35);
}

/* Sub-Zeile (Set + Kartennummer) unter dem Namen auf Karten-Tile-Back */
.theme-new .skw-tile-back-meta {
  font-size: 0.68rem;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.85;
}

/* CM Logo Switch */
.theme-new .cm-logo-light { display: inline; }
.theme-new .cm-logo-dark  { display: none; }
[data-bs-theme="dark"] .theme-new .cm-logo-light { display: none; }
[data-bs-theme="dark"] .theme-new .cm-logo-dark  { display: inline; }


/* ════════════════════════════════════════
   SEALED-LISTE (.skw-list-wrapper)
   ════════════════════════════════════════ */

.theme-new .skw-list-wrapper .card.mb-2 {
  border-radius: var(--skw-radius-lg);
  border: 1px solid var(--skw-border);
  box-shadow: none;
  transition: box-shadow var(--skw-dur-fast);
}
.theme-new .skw-list-wrapper .card.mb-2:hover {
  box-shadow: var(--skw-shadow-sm);
}

/* Typ-Badges in der Liste */
.theme-new .skw-list-wrapper .badge {
  font-family: var(--skw-font);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 5px;
}

/* ── Dark ── */
[data-bs-theme="dark"] .theme-new .skw-list-wrapper .card.mb-2 { background: var(--skw-surface); border-color: var(--skw-border); }


/* ════════════════════════════════════════
   SEKTION-TOGGLE
   ════════════════════════════════════════ */

.theme-new .section-toggle {
  color: var(--skw-text-muted);
  font-family: var(--skw-font);
}
.theme-new .section-toggle:hover { color: var(--skw-ink); }
.theme-new .section-chevron { transition: transform var(--skw-dur) var(--skw-ease); }


/* ════════════════════════════════════════
   SEALED-KATALOG (.sealed-grid)
   ════════════════════════════════════════ */

.theme-new .sealed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
@media (min-width: 576px) {
  .theme-new .sealed-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 768px) {
  .theme-new .sealed-grid { grid-template-columns: repeat(7, 1fr); }
}
@media (min-width: 992px) {
  .theme-new .sealed-grid { grid-template-columns: repeat(8, 1fr); }
}

.theme-new .sealed-grid-item {
  border-radius: 6px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--skw-dur-fast), box-shadow var(--skw-dur-fast);
}
.theme-new .sealed-grid-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(15, 15, 35, 0.10) !important;
}

/* ── Dark ── */
[data-bs-theme="dark"] .theme-new .row.g-3.mb-3 > .col-4 > .card,
[data-bs-theme="dark"] .theme-new .row.g-3.mb-4 > .col-4 > .card { background: var(--skw-surface); }

/* ════════════════════════════════════════
   SETS / DEX (Era-Sections + Set-Cards)
   ════════════════════════════════════════ */
.theme-new .skw-era-section { width: 100%; }
.theme-new .skw-era-header {
  font-family: var(--skw-font);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--skw-text);
  margin: 0 0 16px 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.theme-new .skw-era-range {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--skw-text-muted);
  letter-spacing: 0.02em;
}
.theme-new .skw-era-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 992px) {
  .theme-new .skw-era-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
  .theme-new .skw-era-grid { grid-template-columns: 1fr; }
}

.theme-new .skw-set-card {
  display: flex;
  align-items: stretch;
  gap: 12px;
  background: var(--skw-surface);
  border: 1px solid var(--skw-border);
  border-radius: 10px;
  padding: 10px;
  transition: all var(--skw-dur-fast);
  cursor: pointer;
}
.theme-new .skw-set-card:hover {
  border-color: var(--skw-accent);
  box-shadow: var(--skw-shadow-md);
  transform: translateY(-1px);
}
.theme-new .skw-set-logo {
  flex: 0 0 90px;
  height: 90px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--skw-surface-2), rgba(99,102,241,0.10));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.theme-new .skw-set-logo img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}
.theme-new .skw-set-logo-placeholder {
  font-family: var(--skw-font);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--skw-text-soft);
}
.theme-new .skw-set-logo-fallback {
  opacity: 0.55;
  filter: grayscale(0.2);
}
.theme-new .skw-set-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 4px 4px 0;
}
.theme-new .skw-set-name {
  font-family: var(--skw-font);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--skw-text);
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.theme-new .skw-set-date {
  font-family: var(--skw-font);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--skw-text-muted);
  margin-top: 2px;
}
.theme-new .skw-set-progress-wrap {
  margin-top: auto;
  padding-top: 6px;
}
.theme-new .skw-set-progress-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--skw-surface-2);
  overflow: hidden;
  margin-bottom: 4px;
}
.theme-new .skw-set-progress-fill {
  height: 100%;
  background: var(--skw-accent);
  border-radius: 999px;
  transition: width var(--skw-dur);
}
.theme-new .skw-set-progress-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--skw-font);
  font-size: 0.72rem;
  color: var(--skw-text-muted);
  font-variant-numeric: tabular-nums;
}
.theme-new .skw-set-code-pill {
  font-family: var(--skw-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  background: var(--skw-surface-2);
  border-radius: 4px;
  color: var(--skw-text-muted);
  text-transform: uppercase;
}
.theme-new .skw-set-card-placeholder { opacity: 0.55; cursor: default; }
.theme-new .skw-set-card-placeholder:hover {
  border-color: var(--skw-border);
  box-shadow: none;
  transform: none;
}

.theme-new .skw-lang-toggle .btn { font-size: 0.72rem; padding: 3px 9px; }
.theme-new .skw-lang-toggle .btn-skw-indigo {
  background: var(--skw-accent);
  border-color: var(--skw-accent);
  color: white;
}
.theme-new .skw-lang-toggle .btn-skw-indigo:hover { background: var(--skw-accent); color: white; }

/* ── Set-Karten-Modal (lazy-loaded Karten-Grid) ── */
.theme-new #setKartenModal .modal-content {
  background: var(--skw-surface);
  border: 1px solid var(--skw-border);
  border-radius: 12px;
}
.theme-new #setKartenModal .modal-header {
  border-bottom: 1px solid var(--skw-border);
}
.theme-new #setKartenModal .modal-title {
  font-family: var(--skw-font);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.theme-new .skw-rarity-counter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
  background: var(--skw-surface-2);
  border-radius: 10px;
  border: 1px solid var(--skw-border);
}
/* Header-Reihe im Set-Modal: Rarity-Pills links (intern wrap), Suchfeld + Splitten-Toggle immer rechts daneben.
   Auf Mobile darf die rechte Spalte umbrechen, damit sie nicht zerquetscht wird. */
.theme-new .skw-set-modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: nowrap;
}
.theme-new .skw-set-modal-header-row > .skw-rarity-counter {
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 768px) {
  .theme-new .skw-set-modal-header-row {
    flex-wrap: wrap;
  }
}
/* Rechter Header-Block: gleiche Optik wie .skw-rarity-counter, damit beide Spalten
   in Hoehe + Stil zueinander passen. */
.theme-new .skw-set-modal-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--skw-surface-2);
  border-radius: 10px;
  border: 1px solid var(--skw-border);
  flex-shrink: 0;
}
/* Varianten-Toggle als einzelne Pill (gleiche Optik wie Rarity-Pills, active = Indigo) */
.theme-new .skw-variant-toggle-btn {
  font-family: var(--skw-font);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--skw-surface);
  border: 1px solid var(--skw-border);
  border-radius: 999px;
  color: var(--skw-text);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  margin: 2px 0;
}
.theme-new .skw-variant-toggle-btn:hover {
  background: var(--skw-surface-strong);
  border-color: var(--skw-accent);
}
.theme-new .skw-variant-toggle-btn.active {
  background: var(--skw-accent);
  border-color: var(--skw-accent);
  color: #fff;
}
/* Such-Input im CI-Stil (Pill, gleiche Hoehe wie Toggle/Pills) */
.theme-new .skw-set-search-input {
  font-family: var(--skw-font);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 4px 12px;
  background: var(--skw-surface);
  border: 1px solid var(--skw-border);
  border-radius: 999px;
  color: var(--skw-text);
  outline: none;
  width: 180px;
  line-height: 1.3;
  margin: 2px 0;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.theme-new .skw-set-search-input::placeholder {
  color: var(--skw-text-muted);
  opacity: 0.75;
}
.theme-new .skw-set-search-input:focus {
  border-color: var(--skw-accent);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.18);
}
@media (max-width: 768px) {
  .theme-new .skw-set-modal-controls {
    width: 100%;
    flex-wrap: wrap;
  }
  .theme-new .skw-set-search-input {
    flex: 1;
    min-width: 140px;
    width: auto;
  }
}
/* Floating-Pfeile fuer Detail-Modal (links/rechts neben modal-dialog) */
.skw-detail-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1056;  /* ueber Modal-Backdrop (1055) */
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(15, 15, 35, 0.7);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  user-select: none;
}
.skw-detail-arrow:hover:not(:disabled) {
  background: rgba(15, 15, 35, 0.95);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) scale(1.08);
}
.skw-detail-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}
.skw-detail-arrow-prev { left: 24px; }
.skw-detail-arrow-next { right: 24px; }
@media (max-width: 768px) {
  .skw-detail-arrow { width: 40px; height: 40px; font-size: 24px; }
  .skw-detail-arrow-prev { left: 8px; }
  .skw-detail-arrow-next { right: 8px; }
}
/* Im Light-Mode dunklere Pfeile (Standard nutzt dunkles BG mit weisser Schrift, passt fuer beide Modi) */
html[data-bs-theme="light"] .skw-detail-arrow {
  background: rgba(255, 255, 255, 0.92);
  color: #0F0F23;
  border-color: rgba(15, 15, 35, 0.25);
}
html[data-bs-theme="light"] .skw-detail-arrow:hover:not(:disabled) {
  background: #fff;
  border-color: var(--skw-accent, #6366f1);
}

.theme-new .skw-rarity-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--skw-font);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--skw-surface);
  border: 1px solid var(--skw-border);
  border-radius: 999px;
  color: var(--skw-text);
  font-variant-numeric: tabular-nums;
  margin: 2px 1px;
}
.theme-new .skw-rarity-pill-clickable {
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.theme-new .skw-rarity-pill-clickable:hover {
  background: var(--skw-surface-strong);
  border-color: var(--skw-accent);
}
.theme-new .skw-rarity-pill-clickable.active {
  background: var(--skw-accent);
  border-color: var(--skw-accent);
  color: #fff;
}
.theme-new .skw-rarity-pill-clickable.active .skw-rarity-tier {
  color: #fff;
}
.theme-new .skw-rarity-tier {
  font-family: var(--skw-mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--skw-accent);
}
.theme-new .skw-variant-pill {
  display: inline-block;
  font-family: var(--skw-font);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 8px;
  margin-right: 4px;
  background: var(--skw-surface-subtle, var(--skw-surface));
  border: 1px solid var(--skw-border);
  border-radius: 999px;
  color: var(--skw-text-soft, var(--skw-text));
  white-space: nowrap;
}

/* Tile-Variant-Pillen (compact mode): kleine kreisrunde Indikatoren mit erstem Buchstaben */
.theme-new .skw-tile-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 4px 6px 6px;
  justify-content: center;
}
.theme-new .skw-vpill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-family: var(--skw-mono);
  font-size: 0.62rem;
  font-weight: 700;
  background: transparent;
  border: 1.5px solid var(--skw-border);
  color: var(--skw-text-muted, var(--skw-text-soft));
  cursor: help;
}
.theme-new .skw-vpill-owned {
  background: var(--skw-accent);
  border-color: var(--skw-accent);
  color: #fff;
}

/* Split-Mode: kleinere Tiles, Label unter Bild */
.theme-new .skw-tile-variant-label {
  font-size: 0.66rem;
  font-weight: 600;
  text-align: center;
  padding: 4px 4px 6px;
  color: var(--skw-text-soft, var(--skw-text));
  letter-spacing: 0.02em;
}
.theme-new .skw-cards-grid-split {
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
}

/* Split-Toggle-Button im Header */
.theme-new .skw-split-toggle {
  font-size: 0.78rem;
  white-space: nowrap;
}

/* Detail-Modal: pro-Variant Zeile */
.theme-new .skw-variant-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.theme-new .skw-variant-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--skw-surface-subtle, var(--skw-surface));
  border: 1px solid var(--skw-border);
  border-radius: 8px;
}
.theme-new .skw-variant-row-label {
  font-weight: 500;
  font-size: 0.85rem;
}
.theme-new .skw-variant-row-count {
  font-family: var(--skw-mono);
  font-size: 0.85rem;
  color: var(--skw-text-soft, var(--skw-text));
  min-width: 32px;
  text-align: right;
}
.theme-new .skw-variant-row-spacer {
  width: 32px;  /* Platz fuer Minus-Button wenn 0 */
}
/* Pattern-Variants: Variant-Zeile mit eigenem Thumbnail + Preis + CM-Link */
.theme-new .skw-variant-row.skw-variant-row-rich {
  grid-template-columns: 40px 1fr auto auto auto auto auto;
}
.theme-new .skw-variant-row-thumb {
  width: 40px;
  height: 56px;
  object-fit: contain;
  border-radius: 4px;
}
.theme-new .skw-variant-row-price {
  font-family: var(--skw-mono);
  font-size: 0.78rem;
  color: var(--skw-text-soft, var(--skw-text));
  white-space: nowrap;
}
.theme-new .skw-variant-row-cm {
  color: var(--skw-text-soft, var(--skw-text));
  font-size: 0.9rem;
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: none;
}
.theme-new .skw-variant-row-cm:hover {
  background: var(--skw-surface);
  color: var(--skw-text);
}

.theme-new .skw-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.theme-new .skw-card-tile {
  background: var(--skw-surface-2);
  border: 1.5px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  transition: all var(--skw-dur-fast);
  cursor: pointer;
}
.theme-new .skw-card-tile.owned {
  border-color: var(--skw-accent);
  box-shadow: 0 0 0 1px var(--skw-accent);
}
.theme-new .skw-card-tile.not-owned { opacity: 0.55; }
.theme-new .skw-card-tile:hover { opacity: 1; transform: translateY(-2px); }
.theme-new .skw-card-tile-img {
  position: relative;
  aspect-ratio: 245 / 342;
  background: var(--skw-surface);
  overflow: hidden;
}
.theme-new .skw-card-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.theme-new .skw-card-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--skw-font);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--skw-text-soft);
}
/* Plus / Minus-Buttons direkt im Karten-Bild (oben rechts/links) */
.theme-new .skw-card-plus,
.theme-new .skw-card-minus {
  position: absolute;
  top: 6px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: none;
  font-family: var(--skw-font);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  opacity: 0.78;
  transition: all var(--skw-dur-fast);
  z-index: 2;
}
.theme-new .skw-card-plus {
  right: 6px;
  background: var(--skw-accent);
  color: white;
}
.theme-new .skw-card-minus {
  left: 6px;
  background: rgba(220, 38, 38, 0.92);
  color: white;
}
.theme-new .skw-card-plus:hover,
.theme-new .skw-card-minus:hover { opacity: 1; transform: scale(1.08); }
.theme-new .skw-card-plus:disabled,
.theme-new .skw-card-minus:disabled { opacity: 0.4; cursor: wait; }

/* Detail-Modal: grosses Karten-Bild links */
.theme-new .skw-detail-card-img {
  background: var(--skw-surface-2);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.theme-new .skw-detail-card-img img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

/* Anzahl-Badge mittig unten am Bild wenn owned_count >= 1 */
.theme-new .skw-card-owned-count {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--skw-accent);
  color: white;
  font-family: var(--skw-font);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 2px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  letter-spacing: 0.02em;
  z-index: 2;
}

/* ════════════════════════════════════════
   SAMMLUNGS-HEADER TABS (Meine Sammlung | Sets)
   visuell angeglichen an die Action-Buttons rechts
   (Verkaufsuebersicht / Export / Count-Pills)
   ════════════════════════════════════════ */
.theme-new .skw-sammlung-tabs {
  font-family: var(--skw-font);
}
.theme-new .skw-tab {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-family: var(--skw-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--skw-text-muted);
  text-decoration: none;
  border-radius: var(--skw-radius);
  border: 1.5px solid var(--skw-border-strong);
  background: transparent;
  transition: all var(--skw-dur-fast);
  text-transform: uppercase;
}
.theme-new .skw-tab:hover {
  border-color: var(--skw-accent);
  color: var(--skw-accent);
  background: rgba(99,102,241,0.05);
}
.theme-new .skw-tab.skw-tab-active {
  color: var(--skw-text);
  background: var(--skw-surface);
  border-color: var(--skw-border-strong);
  box-shadow: var(--skw-shadow-sm);
}
.theme-new .skw-tab.skw-tab-active:hover {
  color: var(--skw-text);
  background: var(--skw-surface);
}

/* ════════════════════════════════════════
   SAMMLUNGS-HEADER ACTIONS (Verkaufsübersicht / Export / Count-Pills)
   ════════════════════════════════════════ */
.theme-new .skw-sammlung-actions .btn-outline-secondary {
  font-family: var(--skw-font);
  font-weight: 600;
  border: 1.5px solid var(--skw-border-strong);
  background: transparent;
  color: var(--skw-text-muted);
  border-radius: var(--skw-radius);
  padding: 6px 12px;
  transition: all var(--skw-dur-fast);
}
.theme-new .skw-sammlung-actions .btn-outline-secondary:hover {
  border-color: var(--skw-accent);
  color: var(--skw-accent);
  background: rgba(99,102,241,0.05);
}

.theme-new .skw-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--skw-font);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  background: var(--skw-surface-2);
  border: 1px solid var(--skw-border);
  color: var(--skw-text-muted);
  border-radius: var(--skw-radius);
  font-variant-numeric: tabular-nums;
}
.theme-new .skw-count-pill i {
  color: var(--skw-accent);
  font-size: 0.78rem;
}

/* ── Detail-Modal: großes Produktbild links + Preisverlauf-Chart unten ── */
.detail-modal-image {
  position: sticky;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4px;
}
.detail-modal-image img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 8px;
}
.detail-modal-chart canvas {
  max-width: 100%;
}
@media (max-width: 768px) {
  .detail-modal-image {
    position: static;
    max-width: 280px;
    margin: 0 auto;
  }
  .detail-modal-image img {
    max-height: 320px;
  }
}
