/* Spiegel Mo. Baut auf copy.css auf (Farben, Schrift, Login, Listen, Ergebniszeile).
   Leitidee: ein Spiegel. Beide Konten stehen sich an einer Mittelachse gegenüber, Mo links in Violett, Crucial rechts
   in Gold. Jede Zahl hat ihr Gegenüber auf gleicher Höhe, die Beschriftung sitzt auf der Achse. Die Achse leuchtet nur,
   solange wirklich gespiegelt wird. Alles darunter steht frei, ohne Kästen: das Glas ist das einzige Objekt. */
.mark { background-image: url(/mlp/icon.svg); }
main { max-width: 1040px; }

/* ------------------------------------------------ Das Glas */
.glass { --pane: #21163c; position: relative; overflow: hidden; margin-top: 24px; padding: 44px 40px 38px; border-radius: 30px;
  border: 1px solid var(--line); background: var(--pane); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 30px 80px rgba(8, 4, 20, .45); }
.glass::before, .glass::after { content: ''; position: absolute; top: 0; bottom: 0; width: 44%; pointer-events: none; }
.glass::before { left: 0; background: radial-gradient(110% 80% at 0% 62%, rgba(169, 123, 255, .2), rgba(169, 123, 255, 0) 72%); }
.glass::after { right: 0; background: radial-gradient(110% 80% at 100% 62%, rgba(233, 196, 106, .15), rgba(233, 196, 106, 0) 72%); }
.glass > * { position: relative; z-index: 1; }

.glass__state { text-align: center; }
.glass__state h1 { font: 400 40px/1.1 var(--serif); text-wrap: balance; }
.glass__state > p { color: var(--muted); max-width: 54ch; margin: 10px auto 0; font-size: 16px; text-wrap: pretty; }
.notes { display: grid; gap: 8px; justify-items: center; margin-top: 18px; }
.notes:empty { display: none; }
.notes li { padding: 9px 16px; border-radius: 12px; font-size: 14px; text-align: left; max-width: 620px; color: #ffe2a8;
  background: rgba(233, 196, 106, .1); border: 1px solid rgba(233, 196, 106, .35); }
.notes li.is-bad { color: #ffd0d4; background: rgba(255, 122, 133, .1); border-color: rgba(255, 122, 133, .4); }

/* ------------------------------------------------ Zwei Hälften an der Achse */
.duo { --mid: 190px; --axis: repeating-linear-gradient(180deg, #4b3d74 0 5px, transparent 5px 11px); position: relative; margin-top: 40px; }
.duo.is-live { --axis: rgba(255, 255, 255, .85); }

.duo__row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--mid) minmax(0, 1fr); align-items: center; }
.duo__row > :first-child { text-align: right; }
.duo__row > :last-child { text-align: left; }

/* Die Achse besteht aus Teilstücken je Zeile: Strich, Beschriftung, Strich. So setzt sie an jeder Beschriftung aus. */
.duo__mid { align-self: stretch; display: flex; flex-direction: column; align-items: center; }
.duo__mid::before, .duo__mid::after { content: ''; flex: 1; min-height: 7px; width: 2px; border-radius: 2px; background: var(--axis); }
.duo.is-live .duo__mid::before, .duo.is-live .duo__mid::after { box-shadow: -7px 0 20px rgba(169, 123, 255, .6), 7px 0 20px rgba(233, 196, 106, .5); animation: breathe 4.5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.duo__row--head .duo__mid::before { display: none; }
.duo__row--fact:last-child .duo__mid::after { background: none; box-shadow: none; }
.duo__lab { margin: 5px 0; padding: 0 6px; color: var(--muted); font-size: 13px; line-height: 1.3; text-align: center; }

.duo__row--head { align-items: start; }
.duo__row--head .half { padding-bottom: 26px; }
.half__name { font: 400 30px/1.1 var(--serif); }
.half--src .half__name { color: #d9c6ff; }
.half--dst .half__name { color: #f6dc98; }
.half__meta { color: var(--muted); font-size: 14px; margin-top: 6px; }
.half__live { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #5a4c80; flex: none; }
.dot.is-on { background: var(--gain); box-shadow: 0 0 0 4px rgba(111, 224, 166, .14), 0 0 12px rgba(111, 224, 166, .6); }
.dot.is-warn { background: var(--gold); box-shadow: 0 0 0 4px rgba(233, 196, 106, .14); }

/* Knoten auf der Achse: gleich, ungleich, aus, noch nichts */
.knot { flex: none; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 50%; display: grid; place-items: center; background: var(--well); border: 1px solid var(--line); color: #7d6ea6;
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s; }
.knot svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.knot[data-s="sync"] { color: var(--plum); border-color: transparent; background: linear-gradient(90deg, #c9b0ff, #fff 50%, #f3d488);
  box-shadow: -8px 0 26px rgba(169, 123, 255, .5), 8px 0 26px rgba(233, 196, 106, .45); }
.knot[data-s="diff"] { color: var(--gold); border-color: rgba(233, 196, 106, .7); box-shadow: 0 0 0 6px rgba(233, 196, 106, .1); }

.duo .figure { font-size: clamp(27px, 7.4vw, 66px); margin: 0; padding: 4px 0 14px; white-space: nowrap; }
.duo__row--fact [role="cell"] { padding: 9px 0; font-size: 19px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* einmal beim ersten Bild: beide Hälften kommen von außen an die Achse */
.duo.is-in .duo__row > :first-child { animation: from-left .8s cubic-bezier(.2, .8, .2, 1) both; }
.duo.is-in .duo__row > :last-child { animation: from-right .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes from-left { from { opacity: 0; transform: translateX(-22px); } }
@keyframes from-right { from { opacity: 0; transform: translateX(22px); } }

/* ------------------------------------------------ Abschnitte darunter: frei, ohne Kasten */
.sec { margin-top: 56px; }
.sec__head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; }
.sec h2 { font: 400 29px/1.15 var(--serif); }
.sec__sub { color: var(--muted); font-size: 14px; margin-top: 4px; max-width: 76ch; }
.sec__sub:empty { display: none; }
.sec .results { margin-top: 14px; }
.sec .rows { margin-top: 6px; }
.sec .rows li { padding: 14px 0; }
.sec .rows .none { padding: 14px 0 2px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 60px; align-items: start; }
.sec--src h2 { color: #d9c6ff; }
.sec--dst h2 { color: #f6dc98; }
.compare { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hair); color: var(--muted); font-size: 14px; }
.compare:empty { display: none; }
.compare strong { color: var(--text); font-weight: 600; }
.compare.is-off strong { color: var(--gold); }

.legend { display: flex; gap: 6px 20px; flex-wrap: wrap; font-size: 14px; font-variant-numeric: tabular-nums; }
.legend span { white-space: nowrap; }
.legend .quiet { font-size: 14px; }
.key { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.key--src { background: var(--violet); }
.key--dst { background: var(--gold); }
.chart--duo { height: 250px; margin-top: 10px; }
.chart--duo:has(.chart__empty) { height: 132px; }
.chart--duo .line--src { stroke: var(--violet); }
.chart--duo .line--dst { stroke: var(--gold); }
.chart--duo .gap { fill: rgba(244, 239, 253, .07); }
.chart--duo .zero { stroke: rgba(169, 157, 198, .5); stroke-width: 1; }
.chart--duo .end--src, .chart--duo .pick--src { fill: var(--violet); }
.chart--duo .end--dst, .chart--duo .pick--dst { fill: var(--gold); }
.chart--duo .pick--src, .chart--duo .pick--dst { stroke: var(--plum); stroke-width: 2; }

.foot { margin-top: 56px; line-height: 1.7; }

/* ------------------------------------------------ schmal: der Spiegel bleibt ein Spiegel, nur enger */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .duo { --mid: 150px; }
}
@media (max-width: 640px) {
  .glass { padding: 30px 14px 26px; border-radius: 26px; }
  .glass__state h1 { font-size: 30px; }
  .glass__state > p { font-size: 15px; }
  .duo { --mid: 88px; margin-top: 30px; }
  .duo__row--head { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); }
  .knot { width: 42px; height: 42px; margin-bottom: 5px; }
  .knot svg { width: 18px; height: 18px; }
  .half__name { font-size: 23px; }
  .half__meta, .half__live { font-size: 12.5px; }
  .half__live { gap: 6px; }
  /* Equity: Beschriftung über die Achse, die zwei Zahlen teilen sich die volle Breite, die Achse läuft zwischen ihnen durch */
  .duo__row--eq { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; }
  .duo__row--eq .duo__mid { grid-column: 1 / -1; grid-row: 1; }
  .duo__row--eq .duo__mid::before, .duo__row--eq .duo__mid::after { min-height: 4px; }
  .duo__row--eq::after { content: ''; position: absolute; left: 50%; margin-left: -1px; top: 32px; bottom: 0; width: 2px; border-radius: 2px; background: var(--axis); }
  .duo.is-live .duo__row--eq::after { box-shadow: -7px 0 20px rgba(169, 123, 255, .6), 7px 0 20px rgba(233, 196, 106, .5); animation: breathe 4.5s ease-in-out infinite; }
  .duo .figure { padding: 0 0 10px; }
  .duo__row--head .half { padding-bottom: 18px; }
  .duo__lab { font-size: 12px; padding: 0 4px; }
  .glass::before, .glass::after { width: 62%; opacity: .7; }
  .duo__row--fact [role="cell"] { font-size: 15.5px; padding: 8px 0; }
  .sec { margin-top: 44px; }
  .sec h2 { font-size: 26px; }
  .chart--duo { height: 210px; }
}
