/* Goldfisch: Verteilungen aus einigen tausend Probepartien */

/* auto-fit statt fester Zweispalter: bei nur einer Kachel (Deck ohne fertige
   Combo) blieb sonst die halbe Zeile leer. Die Obergrenze haelt die Kachel
   auf demselben Mass wie die Diagramme darunter. */
.mza-goldfisch-kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 30rem));
  gap: .9rem;
  margin: 0 0 1.2rem;
}

.mza-goldfisch-kachel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: .9rem;
}

.mza-goldfisch-zahl {
  margin: 0;
  font-family: var(--f-display), serif;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--gold);
}

.mza-goldfisch-label {
  margin: .1rem 0 .4rem;
  font-size: .9rem;
  font-weight: 600;
}

.mza-goldfisch-satz {
  margin: .4rem 0 0;
  font-size: .84rem;
  color: #C2C2C2;
}

.mza-goldfisch-h3 {
  margin: 1.3rem 0 .5rem;
  font-family: var(--f-display), serif;
  font-size: 1rem;
  font-weight: 400;
}

/* Die viewBox ist 360 breit. Ohne Deckel streckt sich das SVG auf ueber
   900px und die 11px-Schrift darin rendert als 28px. Deshalb begrenzen:
   so bleibt der Massstab zwischen etwa 0,95 und 1,3. */
.mza-goldfisch-svg {
  width: 100%;
  max-width: 30rem;
  height: auto;
  display: block;
  margin: .5rem 0 0;
}

.mza-goldfisch-balken { fill: var(--gold); }
.mza-goldfisch-flaeche { fill: var(--gold); fill-opacity: .18; stroke: var(--gold); stroke-width: 2; }
.mza-goldfisch-linie { fill: none; stroke: var(--accent-hot); stroke-width: 2; }
.mza-goldfisch-gitter { stroke: var(--line); stroke-width: 1; }

.mza-goldfisch-achse { fill: #8B959B; font-size: 11px; }
.mza-goldfisch-wert  { fill: var(--text); font-size: 11px; font-weight: 700; }
.mza-goldfisch-legende { fill: var(--gold); font-size: 11px; }
.mza-goldfisch-legende-rest { fill: var(--accent-hot); }

.mza-goldfisch-werte {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}

.mza-goldfisch-werte li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: .7rem .6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.mza-goldfisch-wzahl {
  font-family: var(--f-display), serif;
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--gold);
}
.mza-goldfisch-wwas  { font-size: .82rem; font-weight: 600; color: var(--text); }
.mza-goldfisch-wwann { font-size: .74rem; color: #8B959B; }

.mza-goldfisch-balken.ist-median { fill: var(--accent-hot); }
.mza-goldfisch-achse.ist-median  { fill: var(--accent-hot); font-weight: 700; }

.mza-goldfisch-fuss {
  margin: 1rem 0 0;
  font-size: .8rem;
  color: #C2C2C2;
}



/* Mulligan-Tabelle */
.mza-goldfisch-tabelle {
  width: 100%;
  border-collapse: collapse;
  margin: .5rem 0 .3rem;
  font-size: .86rem;
}
.mza-goldfisch-tabelle th {
  text-align: left;
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8B959B;
  padding: .3rem .4rem;
  border-bottom: 1px solid var(--line);
}
.mza-goldfisch-tabelle td {
  padding: .4rem;
  border-bottom: 1px solid var(--line);
}
.mza-goldfisch-tabelle tr.ist-gut td:last-child { color: #7DB87D; }
.mza-goldfisch-tabelle tr.ist-schlecht td:last-child { color: var(--accent-hot); }
.mza-goldfisch-mini {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: var(--gold);
  margin-bottom: .2rem;
  max-width: 100%;
}

/* Konsistenz: die vier ueblichen Fehlschlaege */
.mza-goldfisch-muster {
  list-style: none;
  margin: .6rem 0 0;
  padding: 0;
  display: grid;
  gap: .8rem;
}

.mza-goldfisch-mtitel {
  margin: 0 0 .3rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .6rem;
  font-size: .9rem;
  font-weight: 600;
}
.mza-goldfisch-mtitel span {
  font-family: var(--f-display), serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: #7DB87D;
}
.ist-heikel .mza-goldfisch-mtitel span { color: var(--accent-hot); }

.mza-goldfisch-mbalken {
  position: relative;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--ground-deep);
  overflow: visible;
}
.mza-goldfisch-mbalken i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #7DB87D;
}
.ist-heikel .mza-goldfisch-mbalken i { background: var(--accent); }
.mza-goldfisch-mbalken b {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 14px;
  background: #C2C2C2;
  border-radius: 1px;
}

.mza-goldfisch-msatz {
  margin: .3rem 0 0;
  font-size: .82rem;
  color: #C2C2C2;
}

@media (min-width: 48rem) {
  .mza-goldfisch-muster { grid-template-columns: 1fr 1fr; gap: .8rem 1.4rem; }
}

/* Die SVG-Schrift skaliert mit der Grafik. Auf schmalen Schirmen schrumpft
   das Diagramm auf etwa das 0,76-fache, 11px wuerden dort als 8,3px landen.
   Deshalb dort groesser setzen, gerendert kommen wieder rund 11px heraus. */
@media (max-width: 34rem) {
  .mza-goldfisch-achse,
  .mza-goldfisch-wert,
  .mza-goldfisch-legende { font-size: 15px; }
}
