/* ------------------------------------- Seite /figuren-zusammensetzen (Ratgeber)
   Eigene Bausteine der Seite, Präfix fzs-: Anteil-Balken, Regel-Karten,
   Beispiel wie im Testheft mit Lösungsbild, Strategie-Karten, Figurenfamilien.
   Die Teile sind wie in der App hellblau mit dunkler Kante, auch im Dunkelmodus. */

/* Formen in den Skizzen */
.fzs-t { fill: #87cefa; stroke: #1f1f1f; stroke-width: 2.5; stroke-linejoin: round; }
.fzs-t2 { fill: #bfe4fc; stroke: #1f1f1f; stroke-width: 2.5; stroke-linejoin: round; }
.fzs-t3 { fill: #4fb0ee; stroke: #1f1f1f; stroke-width: 2.5; stroke-linejoin: round; }
.fzs-geist { fill: none; stroke: var(--r-leise); stroke-width: 2; stroke-dasharray: 5 5; stroke-linejoin: round; }
.fzs-pfeil { fill: none; stroke: var(--akzent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fzs-hl { fill: none; stroke: var(--akzent); stroke-width: 5; stroke-linecap: round; }
.fzs-nein { fill: none; stroke: var(--r-nein); stroke-width: 4; stroke-linecap: round; }

.fzs-bogen { fill: none; stroke: var(--akzent); stroke-width: 2; }

/* Anteil am Testwert */
.fzs-anteil { margin: 8px 0 28px; display: grid; gap: 18px; }
.fzs-zeile > span { display: block; margin-bottom: 7px; font: 700 13px/1.2 "Work Sans", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--r-kopf); }
.fzs-balken { display: flex; gap: 3px; height: 56px; }
.fzs-seg { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; overflow: hidden; border-radius: 10px; background: var(--r-hell); color: var(--r-leise); font: 400 12.5px/1.2 "Work Sans", sans-serif; white-space: nowrap; }
.fzs-seg b { font: 800 14px/1.1 "Manrope", sans-serif; color: var(--r-kopf); }
.fzs-seg.ist { background: var(--akzent); color: #fff; }
.fzs-seg.ist b { color: #fff; }
.fzs-legende { margin: -6px 0 26px !important; font-size: 14px !important; line-height: 1.6 !important; color: var(--r-leise) !important; }
@media (prefers-color-scheme: dark) {
  .fzs-seg.ist, .fzs-seg.ist b { color: #1b1815; }
}

/* Regeln: verschieben, drehen, nicht spiegeln */
.fzs-regeln { list-style: none; margin: 34px 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fzs-regeln li { margin: 0; padding: 18px 20px 20px; border-radius: 22px; background: var(--r-weiss); text-align: center; }
.fzs-regeln svg { display: block; width: 100%; max-width: 200px; height: auto; margin: 0 auto 6px; }
.fzs-regeln li > strong { display: block; font: 800 19px/1.3 "Manrope", sans-serif; }
.fzs-regeln em { display: inline-block; margin: 6px 0 8px; padding: 3px 10px; border-radius: 999px; font: 700 11.5px/1.2 "Work Sans", sans-serif; font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; background: var(--r-ok-hauch); color: var(--r-ok); }
.fzs-regeln .verboten em { background: var(--r-nein-hauch); color: var(--r-nein); }
.fzs-regeln p { margin: 0 !important; font-size: 15.5px !important; line-height: 1.55 !important; }

/* Beispiel wie im Testheft */
.fzs-blatt .tb-anw { text-align: left; }
.fzs-teile { display: block; width: 100%; height: auto; margin: 0 0 14px; }
.fzs-teile text { fill: #8a8178; font: 600 19px/1 "Work Sans", sans-serif; }
.fzs-opt { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.fzs-opt li { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; padding: 8px 4px 10px; border: 1px solid #d9d0c4; border-radius: 4px; }
.fzs-opt b { font: 700 13px/1 "Work Sans", sans-serif; color: #776c61 !important; }
.fzs-opt svg { display: block; width: 100%; max-width: 92px; height: auto; }
.fzs-opt .fzs-t { stroke-width: 3; }

/* Lösung: Bild links, Weg rechts */
.fzs-loesung { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 18px; padding: 24px; border-radius: 22px; background: var(--r-hell); }
.fzs-karte { margin: 0; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 1px 0 #e3dbd0; }
.fzs-karte svg { display: block; width: 100%; height: auto; }
.fzs-karte text { font: 800 15px/1 "Manrope", sans-serif; fill: #1d1916; }
.fzs-karte figcaption { margin-top: 8px; text-align: center; font: 400 13px/1.4 "Work Sans", sans-serif; color: #776c61; }

/* Strategien: 3 + 2 Karten */

/* Figurenfamilien */

@media (max-width: 640px) {
  .fzs-regeln { grid-template-columns: 1fr; gap: 12px; }
  .fzs-regeln li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 14px; align-items: center; text-align: left; padding: 14px 16px; }
  .fzs-regeln svg { grid-row: span 3; margin: 0; }
  .fzs-regeln em { justify-self: start; margin: 2px 0; }
  .fzs-loesung { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
  .fzs-karte { max-width: 300px; width: 100%; margin: 0 auto; }
  
  
  
  .fzs-opt { gap: 4px; }
  .fzs-opt li { padding: 6px 2px 8px; }
  .fzs-seg { font-size: 10.5px; border-radius: 8px; }
  .fzs-seg b { font-size: 12px; }
  .fzs-balken { height: 50px; gap: 2px; }
}
