/* =========================================
   style.new-releasekalender.css — CI 2026 rev.2
   Selektoren auf echte HTML-Klassen korrigiert
   Scope: .theme-new
   ========================================= */

/* ════════════════════════════════════════
   HERO-SECTION (.release-hero)
   Echtes HTML: .release-hero (kein .card Suffix)
   ════════════════════════════════════════ */

.theme-new .release-hero {
  background: #0F0F23;
  border-radius: var(--skw-radius-xl);
  padding: 28px;
  position: relative;
  overflow: hidden;
  /* color: var(--skw-ink) = Bright dunkel, Dark hell.
     Inline-style im Template setzt einen leichten Farb-Gradient
     ueber den dunklen Brand-Background (Bright: hell-getoent;
     Dark: dunkel-getoent), Texte muessen entsprechend kontrastieren. */
  color: var(--skw-ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px;
}

/* Subtiler Glow — Farbe kommt via CSS custom property oder inline */
.theme-new .release-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 65%);
  pointer-events: none;
}

/* Logo - Groesse wie vor CI 2026 (alte style.css: 240x180, Mobile 130x100) */
.theme-new .release-hero .hero-logo {
  width: auto;
  max-height: 180px;
  max-width: 240px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}
@media (max-width: 575.98px) {
  .theme-new .release-hero .hero-logo { max-width: 130px; max-height: 100px; }
}

/* Padding-right gegen Datum-Ueberlauf - Datum-Eckchen ist position:absolute oben rechts */
.theme-new .release-hero > .d-flex.align-items-start {
  padding-right: 120px;
}
@media (max-width: 575.98px) {
  .theme-new .release-hero > .d-flex.align-items-start { padding-right: 95px; }
}

/* Titel (.hero-title statt .release-name) */
.theme-new .release-hero .hero-title {
  font-family: var(--skw-font);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
  color: var(--skw-ink);
  display: block;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

/* Meta-Reihe */
.theme-new .release-hero .release-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

/* Datum-Eckchen */
.theme-new .release-date-corner {
  position: absolute;
  top: 14px;
  right: 16px;
  text-align: right;
  z-index: 1;
}

.theme-new .date-main {
  font-family: var(--skw-font);
  font-size: var(--skw-fs-small);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  /* Farbe kommt via inline style="{{ r.farbe }}" */
}

.theme-new .date-sub {
  font-size: 10px;
  color: var(--skw-text-muted);
  font-weight: 600;
}
/* Im Hero ist Background dunkel -> weisser Text. */
.theme-new .release-hero .date-sub { color: var(--skw-text-muted); }

/* Affiliate-Buttons im Hero — scoped via .release-hero */
.theme-new .release-hero .affiliate-icon-btn {
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  border-radius: var(--skw-radius);
  padding: 7px 14px;
  font-family: var(--skw-font);
  font-size: var(--skw-fs-small);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--skw-dur-fast);
}
.theme-new .release-hero .affiliate-icon-btn:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
  text-decoration: none;
}


/* ════════════════════════════════════════
   COUNTDOWN
   ════════════════════════════════════════ */

.theme-new .release-countdown {
  display: flex;
  align-items: baseline;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.theme-new .countdown-number {
  font-family: var(--skw-font);
  font-size: 2.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
  /* Farbe via inline style="{{ r.farbe }}" */
}

.theme-new .countdown-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--skw-text-muted);
  margin-left: 2px;
}

/* HMS Countdown (Stunden:Minuten:Sekunden) */
.theme-new .countdown-hms {
  font-family: 'DM Mono', 'Courier New', ui-monospace, monospace;
  font-size: 1.0625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--skw-ink);
  position: relative;
  z-index: 1;
}


/* ════════════════════════════════════════
   RELEASE-LISTE CARDS (.release-card)
   Echtes HTML: .release-card + .card-body (Bootstrap)
   ════════════════════════════════════════ */

.theme-new .release-card {
  background: var(--skw-surface) !important;
  color: var(--skw-ink);
  border: 1px solid var(--skw-border) !important;
  border-radius: var(--skw-radius-lg) !important;
  padding: 0;
  position: relative;
  transition: box-shadow var(--skw-dur) var(--skw-ease);
  margin-bottom: 8px;
}
/* Explizit alle Texte in .release-card auf Ink-Farbe (Bright lesbar, Dark hell via Var-Override) */
.theme-new .release-card,
.theme-new .release-card *:not(.text-muted):not(.bi):not(svg) {
  color: var(--skw-ink);
}
.theme-new .release-card .text-muted {
  color: var(--skw-text-muted) !important;
}

.theme-new .release-card:hover {
  box-shadow: var(--skw-shadow-md);
}

.theme-new .release-card .card-body {
  padding: 14px 16px;
  /* display:flex hier entfernt - es brach das Bootstrap .row-Layout
     im card-body (Pillen + Affiliate landeten in falscher Reihe). */
}

/* Set-Logo + Spalte: Groessen wie alte style.css (240x150, Mobile 80x48).
   Spalten-Breite kommt per Inline style="width:250px" aus dem Template. */
.theme-new .set-logo {
  max-width: 240px;
  max-height: 150px;
  object-fit: contain;
}
@media (max-width: 575.98px) {
  .theme-new .set-logo { max-width: 80px; max-height: 48px; }
}

/* Name in der Card (Bootstrap .fw-bold) - umbrechen statt abschneiden */
.theme-new .release-card .fw-bold {
  font-family: var(--skw-font);
  font-size: var(--skw-fs-body);
  font-weight: 700;
  color: var(--skw-ink);
  letter-spacing: -0.01em;
}


/* ════════════════════════════════════════
   PRODUKT-PILLEN (.produkt-pill)
   ════════════════════════════════════════ */

.theme-new .produkt-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--skw-font);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--skw-border);
  background: var(--skw-surface-2);
  color: var(--skw-text-muted);
  white-space: nowrap;
  transition: all var(--skw-dur-fast);
}

.theme-new .produkt-pill.available,
.theme-new .produkt-pill.in-stock {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.25);
  color: var(--skw-success);
}


/* ════════════════════════════════════════
   STATUS BADGES
   ════════════════════════════════════════ */

.theme-new .badge-bald {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(245,158,11,0.12);
  color: var(--skw-warning);
  border: 1px solid rgba(245,158,11,0.25);
}

.theme-new .badge-neu {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(99,102,241,0.12);
  color: var(--skw-accent);
  border: 1px solid rgba(99,102,241,0.25);
}

/* Affiliate-Buttons in Liste (.release-card) */
.theme-new .release-card .affiliate-icon-btn {
  background: transparent;
  border: 1.5px solid var(--skw-border-strong);
  border-radius: var(--skw-radius-sm);
  padding: 4px 8px;
  font-family: var(--skw-font);
  font-size: 11px;
  color: var(--skw-text-muted);
  cursor: pointer;
  transition: all var(--skw-dur-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.theme-new .release-card .affiliate-icon-btn:hover {
  background: var(--skw-surface-2);
  color: var(--skw-ink);
  text-decoration: none;
}


/* ════════════════════════════════════════
   ERA-TRENNER (.era-divider)
   ════════════════════════════════════════ */

.theme-new .era-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 16px;
}

.theme-new .era-line {
  flex: 1;
  height: 1px;
  background: var(--skw-border);
}

.theme-new .era-label,
.theme-new .era-me {
  font-family: var(--skw-font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--skw-text-muted);
  padding: 5px 14px;
  background: var(--skw-surface-2);
  border-radius: 999px;
  border: 1px solid var(--skw-border);
  white-space: nowrap;
}

.theme-new .released-section-header {
  font-size: var(--skw-fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--skw-text-soft);
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--skw-border);
}

/* Veröffentlichte Cards leicht gedimmt */
.theme-new .release-card.release-bald,
.theme-new .release-card.release-neu {
  /* Aktive States — keine Änderung */
}

.theme-new .release-card.release-released {
  opacity: 0.6;
}
.theme-new .release-card.release-released:hover { opacity: 1; }

/* ── Dark ── */
[data-bs-theme="dark"] .theme-new .release-card { background: var(--skw-surface); border-color: var(--skw-border) !important; }
[data-bs-theme="dark"] .theme-new .release-card .fw-bold { color: var(--skw-ink); }
[data-bs-theme="dark"] .theme-new .era-label { background: var(--skw-surface-2); border-color: var(--skw-border); }
