/* packages/public-site/public/css/hero-showcase.css — Werbetafel rechts im Hero (Plan hero-showcase, HS-1)
 *
 * Gespiegelt zum Discord-Statistik-Panel (hero-discord-stats.css): gleiche Breiten, Abstände, Glas, Eckwinkel,
 * Kopfzeile und Einblenden. Alle übrigen Werte stammen aus der Seiten-CSS der Startseite (Fundstelle je Block),
 * Variablen mit Fallback auf den dortigen Wert. Eigenes Präfix crs-show-, keine fremden Klassen verändert.
 *
 * Modi:
 *  - ohne Lage-Klasse (> 780 px): flache Leiste im Fluss unter dem Statistik-Panel, ohne Bild (sichere Grundform)
 *  - .crs-show--side / --side-wide (vom Lage-Helfer gesetzt): Glas-Panel rechts neben dem mittigen Block
 *    (position:absolute in .hero-content, left:calc(100% + Abstand)); 256 px / 40 px bzw. 272 px / 56 px
 *  - bis 780 px: eine Zeile ohne Bild (Kicker · Titel · Vor/Weiter)
 */

/* ── Glas-Panel wie .crs-dstats (= .hero .system-check-box + .system-check-box V8.3.5) ── */
.crs-show{
  position:relative;
  overflow:hidden;
  box-sizing:border-box;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  align-self:center;
  width:100%;
  max-width:572px;
  margin-top:28px;
  padding:12px 16px;
  border:1px solid rgba(201,154,75,.18);
  background:linear-gradient(180deg,rgba(8,12,18,.9),rgba(6,8,12,.86));
  box-shadow:0 18px 36px rgba(0,0,0,.26), inset 0 0 0 1px rgba(255,255,255,.02);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  text-align:left;
  color:var(--text,#e9e6dc);
}

/* Im Fluss direkt unter dem Statistik-Panel: engerer Abstand (beide Leisten als Gruppe) */
.crs-dstats + .crs-show{margin-top:12px}

/* Eckwinkel 16×16 wie .system-check-box::before/::after (gespiegelt: oben rechts / unten links) */
.crs-show::before,
.crs-show::after{
  content:"";
  position:absolute;
  width:16px;
  height:16px;
  pointer-events:none;
  z-index:2;
}

.crs-show::before{top:5px;right:5px;border-top:1px solid rgba(240,201,120,.58);border-right:1px solid rgba(240,201,120,.58)}

.crs-show::after{left:5px;bottom:5px;border-left:1px solid rgba(240,201,120,.36);border-bottom:1px solid rgba(240,201,120,.36)}

/* Kopfzeile wie .crs-dstats-head (= .hero-system-line) */
.crs-show-head{
  grid-column:1 / -1;
  justify-self:center;
  margin:0 0 12px;
  font:500 10px Oswald,sans-serif;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:rgba(228,190,112,.76);
  padding:8px 12px;
  border:1px solid rgba(201,154,75,.18);
  background:linear-gradient(180deg,rgba(13,18,26,.68),rgba(9,12,18,.54));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.02);
  -webkit-backdrop-filter:blur(3px);
  backdrop-filter:blur(3px);
  white-space:nowrap;
}

/* ── Bühne: alle Einträge im selben Rasterfeld → Höhe fest, Überblendung 0,5 s ── */
.crs-show-stage{
  display:grid;
  min-width:0;
}

.crs-show-slide{
  grid-area:1 / 1;
  min-width:0;
  opacity:0;
  visibility:hidden;
  transition:opacity .5s ease, visibility 0s linear .5s;
}

.crs-show-slide--active{
  opacity:1;
  visibility:visible;
  transition:opacity .5s ease, visibility 0s linear 0s;
}

.crs-show-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
  color:inherit;
  text-decoration:none;
}

a.crs-show-card:hover .crs-show-title{color:var(--gold-bright,#e6bd73)}

a.crs-show-card:focus-visible{outline:1px solid var(--gold-bright,#e6bd73);outline-offset:3px}

/* Bildfläche 16:9, immer reserviert; Ersatzfläche wie .behring-stage (Rand, Verlauf) mit Typ-Schriftzug */
.crs-show-media{
  position:relative;
  display:none;
  aspect-ratio:16 / 9;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg,rgba(7,9,13,.4),rgba(7,9,13,.82));
}

.crs-show-media::before{
  content:"";
  position:absolute;
  inset:8px;
  border:1px solid rgba(201,154,75,.08);
  pointer-events:none;
}

.crs-show-media-type{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font:600 18px Oswald,sans-serif;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:rgba(201,154,75,.5);
}

.crs-show-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity .5s ease;
}

.crs-show-media--loaded .crs-show-img{opacity:1}

/* Text */
.crs-show-body{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}

.crs-show-meta{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  height:22px;
}

/* Kicker-Label wie .ticker-label (Pille, Goldrand, Oswald 600, .17em) */
.crs-show-kicker{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  height:20px;
  padding:0 9px;
  border:1px solid rgba(201,154,75,.34);
  border-radius:999px;
  background:rgba(201,154,75,.08);
  color:var(--gold-bright,#e6bd73);
  font:600 9px Oswald,sans-serif;
  letter-spacing:.17em;
  text-transform:uppercase;
  white-space:nowrap;
}

/* Kennzeichnung bezahlter Einträge wie .behring-ad-kicker */
.crs-show-tag{
  flex:0 0 auto;
  font:600 9px Oswald,sans-serif;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:rgba(201,154,75,.74);
  white-space:nowrap;
}

/* Datum wie .behring-progress-count */
.crs-show-date{
  margin-left:auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  font:500 9px/1 Oswald,sans-serif;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:rgba(232,237,242,.6);
  white-space:nowrap;
}

/* Titel wie .behring-name (Oswald 700, .04em, Großbuchstaben), eine Zeile in der Leiste */
.crs-show-title{
  font:700 14px/1.15 Oswald,sans-serif;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#f2f5f8;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  transition:color .2s ease;
}

/* Beschreibung wie .behring-desc */
.crs-show-text{
  display:none;
  margin:0;
  font-size:11.5px;
  line-height:1.45;
  color:rgba(216,221,226,.76);
}

/* Fuß: Sponsor (wie .behring-ad-kicker) und Link-Hinweis (wie .hero-system-line-Farbe) */
.crs-show-foot{
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:16px;
}

.crs-show-sponsor{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-width:0;
  font:600 9px Oswald,sans-serif;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:rgba(201,154,75,.74);
  white-space:nowrap;
}

.crs-show-sponsor-logo{display:block;height:14px;width:auto;max-width:56px;object-fit:contain}

.crs-show-sponsor-name{overflow:hidden;text-overflow:ellipsis}

.crs-show-more{
  margin-left:auto;
  flex:0 0 auto;
  font:500 10px Oswald,sans-serif;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:rgba(228,190,112,.76);
  white-space:nowrap;
}

.crs-show-more-arrow{margin-left:6px}

.crs-show-sr{
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
}

/* ── Bedienung: Vor/Zurück wie .crs-dstats-head-Rahmen, Punkte wie .rail-uplink-dot ── */
.crs-show-controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding-left:16px;
}

.crs-show-prev,
.crs-show-next{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:24px;
  height:24px;
  margin:0;
  padding:0;
  border:1px solid rgba(201,154,75,.18);
  background:linear-gradient(180deg,rgba(13,18,26,.68),rgba(9,12,18,.54));
  color:rgba(228,190,112,.76);
  font:500 14px/1 Oswald,sans-serif;
  cursor:pointer;
  transition:border-color .2s ease, color .2s ease;
}

.crs-show-prev:hover,
.crs-show-next:hover{border-color:rgba(201,154,75,.34);color:var(--gold-bright,#e6bd73)}

.crs-show-prev:focus-visible,
.crs-show-next:focus-visible,
.crs-show-dot:focus-visible{outline:1px solid var(--gold-bright,#e6bd73);outline-offset:2px}

.crs-show-prev-glyph,
.crs-show-next-glyph{display:block;margin-top:-2px}

.crs-show-dots{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
}

.crs-show-dot{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 1 20px;
  min-width:14px;
  height:24px;
  margin:0;
  padding:0;
  border:0;
  background:none;
  cursor:pointer;
}

.crs-show-dot-mark{
  display:block;
  width:5px;
  height:5px;
  border-radius:50%;
  background:rgba(201,154,75,.3);
  transition:background-color .2s ease, box-shadow .2s ease;
}

.crs-show-dot:hover .crs-show-dot-mark{background:rgba(201,154,75,.6)}

.crs-show-dot[aria-current="true"] .crs-show-dot-mark{background:rgba(201,154,75,.74);box-shadow:0 0 7px rgba(201,154,75,.24)}

/* Nur ein Eintrag: keine Bedienung */
.crs-show--single .crs-show-controls{display:none}

/* Leiste (Grundform > 780 px): Punkte ausgeblendet, Vor/Weiter bleiben */
.crs-show .crs-show-dots{display:none}

/* ── Einblenden: wie .crs-dstats (Hero-Staffel opacity/translateY 16px, .7s ease, 1,36 s) ── */
.crs-show{transition:opacity .7s ease, transform .7s ease}

body:not(.hero-ready) .crs-show{opacity:0;transform:translateY(16px)}

body.hero-ready .crs-show{opacity:1;transform:none;transition-delay:1.36s}

body.hero-ready .crs-show.crs-show--late{transition-delay:0s;animation:crsShowIn .7s ease both}

@keyframes crsShowIn{from{opacity:0;transform:translateY(16px)}
to{opacity:1;transform:none}
}

@keyframes crsShowInAbs{from{opacity:0;transform:translateY(calc(-50% + 16px))}
to{opacity:1;transform:translateY(-50%)}
}

/* ── Handy (bis 780 px): eine Zeile ohne Bild ── */
@media (max-width:780px){
  .crs-show{
    grid-template-columns:minmax(0,1fr) auto;
    max-width:340px;
    margin-top:24px;
    padding:10px 12px;
  }

  .crs-dstats + .crs-show{margin-top:12px}

  .crs-show-head{display:none}

  .crs-show-meta{height:auto}

  .crs-show-body{flex-direction:row;align-items:center;gap:8px}

  .crs-show-tag,
  .crs-show-date{display:none}

  .crs-show-title{font-size:12px}

  .crs-show-controls{gap:4px;padding-left:10px}
}

/* ── Seitlich (Klassen vom Lage-Helfer, nur > 780 px): Glas-Panel rechts neben dem mittigen Block ──
 * position:absolute in .hero-content → verschiebt nichts. Hier wird die Leistenform auf die Panel-Form
 * zurückgesetzt; Maße wie .crs-dstats--side / --side-wide (gespiegelt). */
@media (min-width:781px){
  .crs-show.crs-show--side{
    position:absolute;
    top:50%;
    left:calc(100% + 40px);
    width:256px;
    max-width:none;
    margin-top:0;
    padding:14px;
    grid-template-columns:minmax(0,1fr);
    align-items:normal;
    align-self:auto;
    transform:translateY(-50%);
  }

  .crs-show.crs-show--side-wide.crs-show--side{left:calc(100% + 56px);width:272px;padding:14px 16px}

  .crs-show.crs-show--side .crs-show-head{margin-bottom:14px}

  .crs-show.crs-show--side .crs-show-media{display:block}

  .crs-show.crs-show--side .crs-show-title{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    line-clamp:2;
    height:calc(2em * 1.15);
    white-space:normal;
  }

  .crs-show.crs-show--side .crs-show-text{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    line-clamp:3;
    overflow:hidden;
    height:calc(3em * 1.45);
  }

  .crs-show.crs-show--side .crs-show-foot{display:flex}

  .crs-show.crs-show--side .crs-show-controls{
    margin-top:12px;
    padding:12px 0 0;
    border-top:1px solid var(--line,rgba(201,154,75,.24));
  }

  .crs-show.crs-show--side .crs-show-dots{display:flex}

  /* Einblenden seitlich: translateY(-50%) bleibt Teil der Lage */
  body:not(.hero-ready) .crs-show.crs-show--side{transform:translateY(calc(-50% + 16px))}

  body.hero-ready .crs-show.crs-show--side{transform:translateY(-50%)}

  body.hero-ready .crs-show.crs-show--side.crs-show--late{animation-name:crsShowInAbs}
}

/* Während der Helfer die Lage wechselt und misst: kein Übergang */
.crs-show.crs-show--measure{transition:none}

@media (prefers-reduced-motion:reduce){
  .crs-show-slide,
  .crs-show-slide--active,
  .crs-show-img{transition:none}

  body.hero-ready .crs-show.crs-show--late{animation:none}
}
