/* MarketSystems · Einblick ins Kursmaterial (Stand 23.11.2026)
   Betriebssystem-Seite, Abschnitt #einblick. Drei Folien aus Modul 4 (Videos 4.2 und 4.3,
   Quelle LEGACY/G_ALT/BOS/Modul_04_Der_Abwehrchef/03_FOLIEN_UND_ASSETS 18, 21, 22) und die
   Übersicht des Kurswerkzeugs Trading-Mannschaft. Umschaltung über data-activate-group aus
   main.js; welches Bild auf der Bühne steht, entscheidet CSS per :has(). */

.ek-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: start;
}

/* ---------- Bühne ---------- */
.ek-stage {
  display: grid;
  padding: 12px;
  border: 1px solid rgba(227, 178, 63, .26);
  border-radius: var(--radius-lg, 18px);
  background: rgba(255, 255, 255, .045);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .22);
}
.ek-shot {
  grid-area: 1 / 1;
  display: grid;
  gap: 12px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
}
.ek-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #151d25;
  box-shadow: inset 0 0 0 1px rgba(243, 234, 216, .08);
}
.ek-shot figcaption { display: grid; gap: 4px; padding: 0 6px 4px; }
.ek-shot figcaption b {
  font: 600 13px/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-2, #e3b23f);
}
.ek-shot figcaption span { color: rgba(255, 253, 247, .82); font-size: 16px; line-height: 1.5; }

.ek-screen:has(.ek-pick:nth-child(1).is-active) .ek-s1,
.ek-screen:has(.ek-pick:nth-child(2).is-active) .ek-s2,
.ek-screen:has(.ek-pick:nth-child(3).is-active) .ek-s3,
.ek-screen:has(.ek-pick:nth-child(4).is-active) .ek-s4 { opacity: 1; visibility: visible; }

/* ---------- Auswahl ---------- */
.ek-picks { display: grid; gap: 10px; }
.ek-pick {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 8px;
  border: 1px solid rgba(243, 234, 216, .14);
  border-radius: 12px;
  background: rgba(12, 12, 10, .35);
  color: #f3ead8;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.ek-pick img {
  display: block;
  width: 96px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  opacity: .7;
  transition: opacity .2s ease;
}
.ek-pick span { display: grid; gap: 2px; }
.ek-pick b { font: 600 15px/1.3 var(--serif); }
.ek-pick small { color: #b9b2a4; font: 500 13px/1.35 var(--mono); }
.ek-pick:hover { border-color: rgba(227, 178, 63, .45); }
.ek-pick:hover img { opacity: 1; }
.ek-pick:focus-visible { outline: 2px solid var(--gold-2, #e3b23f); outline-offset: 2px; }
.ek-pick.is-active {
  border-color: rgba(227, 178, 63, .8);
  background: linear-gradient(90deg, rgba(227, 178, 63, .14), transparent 70%), rgba(12, 12, 10, .45);
}
.ek-pick.is-active img { opacity: 1; }
.ek-pick.is-active b { color: var(--gold-2, #e3b23f); }

/* Ohne Skript: alle Bilder untereinander, Auswahl entfällt */
html:not(.js) .ek-screen { grid-template-columns: 1fr; }
html:not(.js) .ek-stage { gap: 24px; }
html:not(.js) .ek-shot { grid-area: auto; opacity: 1; visibility: visible; }
html:not(.js) .ek-picks { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .ek-shot { transition: opacity .25s ease, visibility 0s linear .25s; }
  .ek-screen:has(.ek-pick:nth-child(1).is-active) .ek-s1,
  .ek-screen:has(.ek-pick:nth-child(2).is-active) .ek-s2,
  .ek-screen:has(.ek-pick:nth-child(3).is-active) .ek-s3,
  .ek-screen:has(.ek-pick:nth-child(4).is-active) .ek-s4 { transition: opacity .25s ease, visibility 0s; }
}

/* ---------- Mittlere und kleine Breiten ---------- */
@media (max-width: 960px) {
  .ek-screen { grid-template-columns: 1fr; }
  .ek-picks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ek-stage { padding: 8px; }
  .ek-pick { grid-template-columns: 1fr; gap: 8px; align-content: start; }
  .ek-pick img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}
