/* ==========================================================================
   MarketSystems — Bewegte Hero-Tafeln der Kursseiten (Stand 23.11.2026)
   Kampagnenidee aus den Shoptexten: „Es ist eine Frage der Reihenfolge.“
     Aktien-Navigator   Maschine → Kennzahl → Preis
     Fahrschule         Vertrag → Zahlen → Prämie
     Betriebssystem     Marktphase → Rolle → Risikofamilie → Größe → Ausführung → Review
   Jede Tafel spielt die Szene des Shoptexts einmal ab (rund 6 s) und bleibt im
   Endbild stehen. Die Grundwerte jeder Regel SIND das Endbild; die Keyframes
   beschreiben nur den Weg dorthin. Ohne Bewegung (prefers-reduced-motion)
   steht sofort das Endbild. Reines CSS + Inline-SVG, CSP style-src 'self'.
   Lädt nach base.css und landing.css.
   ========================================================================== */

.plate {
  --pl-bg: #12120f;
  --pl-bg-2: #1b1913;
  --pl-ink: #f3ead8;
  --pl-muted: #a89f8f;
  --pl-line: rgba(243, 234, 216, .14);
  --pl-hot: #e3b23f;          /* Seitenakzent auf Dunkel, je Kurs überschrieben */
  --pl-warn: #e8826a;         /* Verlust / Belastung */
  --pl-t: 6s;                 /* Dauer der Szene */
  position: relative;
  margin: 0;
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--pl-line) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, var(--pl-line) 1px, transparent 1px) 0 0 / 28px 100%,
    radial-gradient(120% 90% at 85% 0%, var(--pl-bg-2), var(--pl-bg) 62%);
  background-color: var(--pl-bg);
  color: var(--pl-ink);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(243, 234, 216, .08);
  overflow: hidden;
  isolation: isolate;
}
body.sub-an .plate { --pl-hot: #35d4ef; }   /* UI-Cyan der Bible, Kursreihe MarketLab */
body.sub-bos .plate { --pl-hot: #6fb0db; }

.plate-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  margin: 0 0 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--pl-muted);
}
.plate-head b { color: var(--pl-ink); font-weight: 600; }

.plate-stage { position: relative; }

/* Reihenfolge-Schiene: die Schritte des Kurses, sie leuchten der Reihe nach auf */
.plate-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px;
  margin: 14px 0 0; padding: 0; list-style: none; counter-reset: rail;
}
.plate-rail li {
  counter-increment: rail;
  padding: 9px 8px 8px; border-top: 2px solid var(--pl-hot);
  font-family: var(--mono); font-size: 12px; line-height: 1.25; color: var(--pl-ink);
  background: rgba(243, 234, 216, .05);
  animation: rail-on-1 var(--pl-t) ease both;
}
.plate-rail li::before {
  content: counter(rail); display: block; margin-bottom: 2px;
  font-size: 11px; color: var(--pl-hot);
}
.plate-rail li.is-key { background: rgba(243, 234, 216, .11); }

.plate-caption {
  margin: 12px 0 0; font-family: var(--serif); font-size: 1.02rem; line-height: 1.45;
  color: var(--pl-ink);
  animation: plate-fade-late var(--pl-t) ease both;
}
.plate-caption span { color: var(--pl-hot); }

/* Produktbox, die vom Tafelrand ins Bild ragt */
.plate-wrap { position: relative; }
.plate-box {
  position: absolute; z-index: 2; right: -18px; bottom: -34px; width: 34%; max-width: 190px;
  filter: drop-shadow(0 18px 26px rgba(34, 26, 12, .35));
  animation: plate-box-in .9s cubic-bezier(.2, .7, .2, 1) .2s both;
}

/* ---------- Aktien-Navigator: vierzig Werte, drei zählen ---------- */
.an-chips {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px;
  margin: 0; padding: 0; list-style: none;
}
.an-chips li {
  padding: 6px 4px; border: 1px solid rgba(243, 234, 216, .16); border-radius: 4px;
  font-family: var(--mono); font-size: 11px; line-height: 1.1; text-align: center; white-space: nowrap;
  color: var(--pl-ink); opacity: .2;
  animation: an-chip var(--pl-t) ease both;
}
.an-chips li:nth-child(5n+2) { animation-delay: .06s; }
.an-chips li:nth-child(5n+3) { animation-delay: .12s; }
.an-chips li:nth-child(5n+4) { animation-delay: .18s; }
.an-chips li:nth-child(5n)   { animation-delay: .24s; }
.an-chips li.is-key {
  opacity: 1; color: var(--pl-bg); background: var(--pl-hot); border-color: var(--pl-hot); font-weight: 600;
  animation-name: an-chip-key; animation-delay: 0s;
}
.an-chips li.is-price {
  opacity: 1; color: var(--pl-bg); background: #e3b23f; border-color: #e3b23f; font-weight: 600;
  animation-name: an-chip-price; animation-delay: 0s;
}
.an-question {
  position: absolute; inset: 18% 10% auto; padding: 18px 20px; border-radius: 10px;
  background: rgba(18, 18, 15, .94); box-shadow: 0 0 0 1px var(--pl-hot), 0 20px 40px rgba(0, 0, 0, .45);
  font-family: var(--serif); font-size: 1.12rem; line-height: 1.4; text-align: center;
  color: var(--pl-ink);
  opacity: 0; visibility: hidden;
  animation: an-question var(--pl-t) ease both;
}
.an-question small {
  display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--pl-hot);
}

@keyframes an-chip {
  0%   { opacity: 0; transform: translateY(6px); }
  12%  { opacity: 1; transform: none; }
  24%  { opacity: 1; }
  31%  { opacity: .2; }
  100% { opacity: .2; }
}
@keyframes an-chip-key {
  0%   { opacity: 0; transform: translateY(6px); color: var(--pl-ink); background: transparent; border-color: rgba(243, 234, 216, .16); }
  12%  { opacity: 1; transform: none; color: var(--pl-ink); background: transparent; border-color: rgba(243, 234, 216, .16); }
  24%  { opacity: 1; }
  31%  { opacity: .2; }
  63%  { opacity: .2; color: var(--pl-ink); background: transparent; border-color: rgba(243, 234, 216, .16); }
  69%  { opacity: 1; color: var(--pl-bg); background: var(--pl-hot); border-color: var(--pl-hot); transform: scale(1.08); }
  74%  { transform: none; }
  100% { opacity: 1; }
}
@keyframes an-chip-price {
  0%   { opacity: 0; transform: translateY(6px); color: var(--pl-ink); background: transparent; border-color: rgba(243, 234, 216, .16); }
  12%  { opacity: 1; transform: none; color: var(--pl-ink); background: transparent; border-color: rgba(243, 234, 216, .16); }
  24%  { opacity: 1; }
  31%  { opacity: .2; }
  80%  { opacity: .2; color: var(--pl-ink); background: transparent; border-color: rgba(243, 234, 216, .16); }
  86%  { opacity: 1; color: var(--pl-bg); background: #e3b23f; border-color: #e3b23f; transform: scale(1.08); }
  90%  { transform: none; }
  100% { opacity: 1; }
}
@keyframes an-question {
  0%, 26% { opacity: 0; visibility: visible; transform: translateY(10px); }
  32%     { opacity: 1; transform: none; }
  58%     { opacity: 1; transform: none; }
  63%     { opacity: 0; transform: translateY(-6px); visibility: visible; }
  100%    { opacity: 0; visibility: hidden; }
}

/* ---------- Schiene: Einschaltzeitpunkt je Schritt ---------- */
/* Die Schritte werden über eigene Keyframes je Position eingeschaltet. */
.plate-rail li { animation-name: rail-on-1; }
.plate-rail li:nth-child(2) { animation-name: rail-on-2; }
.plate-rail li:nth-child(3) { animation-name: rail-on-3; }
.plate-rail li:nth-child(4) { animation-name: rail-on-4; }
.plate-rail li:nth-child(5) { animation-name: rail-on-5; }
.plate-rail li:nth-child(6) { animation-name: rail-on-6; }
/* Drei Schritte (AN, FS): 27 % · 63 % · 80 %. Sechs Schritte (BSO): 56 % bis 86 %. */
@keyframes rail-on-1 { 0%, 26% { opacity: .28; border-top-color: rgba(243, 234, 216, .2); } 30%, 100% { opacity: 1; } }
@keyframes rail-on-2 { 0%, 62% { opacity: .28; border-top-color: rgba(243, 234, 216, .2); } 66%, 100% { opacity: 1; } }
@keyframes rail-on-3 { 0%, 79% { opacity: .28; border-top-color: rgba(243, 234, 216, .2); } 83%, 100% { opacity: 1; } }
.plate-bso .plate-rail li { animation-name: rail6-on-1; }
.plate-bso .plate-rail li:nth-child(2) { animation-name: rail6-on-2; }
.plate-bso .plate-rail li:nth-child(3) { animation-name: rail6-on-3; }
.plate-bso .plate-rail li:nth-child(4) { animation-name: rail6-on-4; }
.plate-bso .plate-rail li:nth-child(5) { animation-name: rail6-on-5; }
.plate-bso .plate-rail li:nth-child(6) { animation-name: rail6-on-6; }
@keyframes rail6-on-1 { 0%, 55% { opacity: .28; border-top-color: rgba(243, 234, 216, .2); } 59%, 100% { opacity: 1; } }
@keyframes rail6-on-2 { 0%, 61% { opacity: .28; border-top-color: rgba(243, 234, 216, .2); } 65%, 100% { opacity: 1; } }
@keyframes rail6-on-3 { 0%, 67% { opacity: .28; border-top-color: rgba(243, 234, 216, .2); } 71%, 100% { opacity: 1; } }
@keyframes rail6-on-4 { 0%, 73% { opacity: .28; border-top-color: rgba(243, 234, 216, .2); } 77%, 100% { opacity: 1; } }
@keyframes rail6-on-5 { 0%, 79% { opacity: .28; border-top-color: rgba(243, 234, 216, .2); } 83%, 100% { opacity: 1; } }
@keyframes rail6-on-6 { 0%, 85% { opacity: .28; border-top-color: rgba(243, 234, 216, .2); } 89%, 100% { opacity: 1; } }

@keyframes plate-fade-late { 0%, 88% { opacity: 0; transform: translateY(6px); } 96%, 100% { opacity: 1; transform: none; } }
@keyframes plate-box-in { from { opacity: 0; transform: translate(16px, 24px) rotate(4deg); } to { opacity: 1; transform: none; } }

/* ---------- Fahrschule: Prämie, Pflicht, Untergrenze ---------- */
.fs-chart { display: block; width: 100%; height: auto; }
.fs-chart text { font-family: var(--mono); font-size: 13px; fill: var(--pl-muted); }
.fs-chart .t-big { font-family: var(--serif); font-size: 30px; font-weight: 700; fill: var(--pl-hot); }
.fs-chart .t-warn { fill: var(--pl-warn); font-size: 14px; font-weight: 600; }
.fs-chart .t-hot { fill: var(--pl-hot); font-size: 14px; font-weight: 600; }
.fs-chart .t-ink { fill: var(--pl-ink); }
.fs-axis { stroke: rgba(243, 234, 216, .35); stroke-width: 1.5; fill: none; }
.fs-zero { stroke: rgba(243, 234, 216, .55); stroke-width: 1; stroke-dasharray: 4 5; fill: none; }
.fs-line { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.fs-premium { stroke: var(--pl-hot); animation: fs-draw-premium var(--pl-t) ease both; }
.fs-slope   { stroke: var(--pl-warn); animation: fs-draw-slope var(--pl-t) ease both; }
.fs-deep    { stroke: var(--pl-warn); opacity: .22; stroke-dasharray: 1; animation: fs-draw-deep var(--pl-t) ease both; }
.fs-floor   { stroke: var(--pl-hot); animation: fs-draw-floor var(--pl-t) ease both; }
.fs-area    { fill: var(--pl-warn); opacity: .06; animation: fs-area var(--pl-t) ease both; }
.fs-strike  { stroke: rgba(243, 234, 216, .3); stroke-width: 1; stroke-dasharray: 2 4; }
.fs-l-premium { animation: fs-l-premium var(--pl-t) ease both; }
.fs-l-duty    { opacity: .65; animation: fs-l-duty var(--pl-t) ease both; }
.fs-l-floor   { animation: fs-l-floor var(--pl-t) ease both; }

@keyframes fs-draw-premium { 0%, 8% { stroke-dashoffset: 1; } 20%, 100% { stroke-dashoffset: 0; } }
@keyframes fs-draw-slope   { 0%, 27% { stroke-dashoffset: 1; } 38%, 100% { stroke-dashoffset: 0; } }
@keyframes fs-draw-deep    { 0%, 36% { stroke-dashoffset: 1; opacity: 1; } 47% { stroke-dashoffset: 0; opacity: 1; } 60% { opacity: 1; } 72%, 100% { stroke-dashoffset: 0; opacity: .22; } }
@keyframes fs-draw-floor   { 0%, 58% { stroke-dashoffset: 1; } 72%, 100% { stroke-dashoffset: 0; } }
@keyframes fs-area         { 0%, 38% { opacity: 0; } 48% { opacity: .34; } 60% { opacity: .34; } 74%, 100% { opacity: .06; } }
@keyframes fs-l-premium    { 0%, 14% { opacity: 0; transform: translateY(8px); } 22%, 100% { opacity: 1; transform: none; } }
@keyframes fs-l-duty       { 0%, 42% { opacity: 0; } 49% { opacity: 1; } 62% { opacity: 1; } 74%, 100% { opacity: .65; } }
@keyframes fs-l-floor      { 0%, 66% { opacity: 0; transform: translateY(8px); } 74%, 100% { opacity: 1; transform: none; } }

/* ---------- Betriebssystem: drei gute Positionen, eine Bewegung ---------- */
.bso-board { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; position: relative; }
.bso-pos {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center;
  padding: 10px 12px; border-radius: 8px; background: rgba(243, 234, 216, .06);
  border-left: 3px solid var(--pl-warn);
  animation: bso-pos var(--pl-t) ease both;
}
.bso-pos:nth-child(2) { animation-delay: .12s; }
.bso-pos:nth-child(3) { animation-delay: .24s; }
.bso-pos b { font-family: var(--serif); font-size: 1rem; color: var(--pl-ink); }
.bso-checks { grid-column: 1; font-family: var(--mono); font-size: 11.5px; color: var(--pl-muted); }
.bso-pl {
  grid-row: 1 / span 2; grid-column: 2; min-width: 72px; padding: 6px 8px; border-radius: 5px; text-align: center;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--pl-bg); background: var(--pl-warn);
  display: grid;
  animation: bso-pl var(--pl-t) ease both;
}
.bso-pl span { grid-area: 1 / 1; }
.bso-pl .up { opacity: 0; animation: bso-up var(--pl-t) step-end both; }
.bso-pl .down { animation: bso-down var(--pl-t) step-end both; }
@keyframes bso-up { 0% { opacity: 1; } 33%, 100% { opacity: 0; } }
@keyframes bso-down { 0% { opacity: 0; } 33%, 100% { opacity: 1; } }
.bso-market {
  display: flex; justify-content: space-between; align-items: center; margin: 10px 0 0; padding: 8px 12px;
  border: 1px dashed rgba(232, 130, 106, .6); border-radius: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--pl-warn);
  animation: bso-market var(--pl-t) ease both;
}
.bso-market b { font-size: 15px; }
.bso-family {
  margin: 8px 0 0; font-family: var(--mono); font-size: 12px; color: var(--pl-ink);
  animation: bso-family var(--pl-t) ease both;
}
.bso-family::before { content: "↳ "; color: var(--pl-warn); }
.plate-bso .plate-rail { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }

@keyframes bso-pos {
  0%   { opacity: 0; transform: translateX(-12px); border-left-color: #74b88f; }
  10%  { opacity: 1; transform: none; border-left-color: #74b88f; }
  30%  { border-left-color: #74b88f; }
  35%, 100% { opacity: 1; border-left-color: var(--pl-warn); }
}
@keyframes bso-pl {
  0%, 30% { background: #74b88f; }
  35%, 100% { background: var(--pl-warn); }
}
@keyframes bso-market { 0%, 22% { opacity: 0; transform: translateY(-6px); } 28%, 100% { opacity: 1; transform: none; } }
@keyframes bso-family { 0%, 38% { opacity: 0; } 46%, 100% { opacity: 1; } }


/* ---------- Layout ---------- */
.l-hero-plate { margin: 0; min-width: 0; }
@media (max-width: 960px) {
  .l-hero-plate { max-width: 560px; }
}
@media (max-width: 640px) {
  .plate { padding: 14px 12px 12px; }
  .an-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .an-chips li { font-size: 11px; padding: 5px 2px; letter-spacing: 0; }
  .an-chips li.is-hide-s { display: none; }
  .an-question { inset: 12% 4% auto; font-size: 1rem; padding: 14px; }
  .plate-rail li { font-size: 11px; }
  .plate-box { width: 30%; right: -6px; bottom: -22px; }
  .fs-chart text { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .plate *, .plate *::before, .plate *::after, .plate-box { animation: none !important; }
}

/* ---------- 23.11.2026 Endprüfung (E-03): Chips in der schmalen Hero-Spalte ---------- */
@media (min-width: 961px) and (max-width: 1180px) {
  .an-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .an-chips li { padding: 5px 2px; letter-spacing: 0; }
  .an-chips li.is-hide-s { display: none; }
}
@media (min-width: 1181px) and (max-width: 1365px) {
  .an-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .an-chips li { padding: 6px 2px; letter-spacing: 0; }
}
