/* Solver 2027 – Statuskasten, Stufenleiter, Verlauf und Tagebuch */

:root {
    --gn-akzent: #2a6fb0;
    --gn-akzent-hell: #d6e4f2;
    --gn-linie: #dee2e6;
    --gn-text-leise: #6c757d;
    --gn-gut: #2e7d4f;
}

.gn-karte {
    background: #fff;
    border: 1px solid var(--gn-linie);
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
}

.gn-kennzahl {
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.gn-leise {
    color: var(--gn-text-leise);
    font-size: 0.875rem;
}

/* Fortschrittsbalken zur Aufstiegsschwelle */
.gn-balken {
    position: relative;
    height: 12px;
    background: #eef1f4;
    border-radius: 6px;
    margin: 0.5rem 0 0.25rem;
}

.gn-balken-fuellung {
    height: 100%;
    background: var(--gn-akzent);
    border-radius: 6px;
}

.gn-balken-ziel {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 2px;
    background: #212529;
}

/* Stufenleiter 1–8 */
.gn-leiter {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    margin-top: 0.75rem;
}

.gn-stufe {
    border-radius: 4px;
    padding: 0.4rem 0.3rem;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.2;
    background: #eef1f4;
    color: var(--gn-text-leise);
    min-height: 3.6rem;
}

.gn-stufe b {
    display: block;
    font-size: 0.95rem;
}

.gn-stufe.erreicht {
    background: var(--gn-akzent-hell);
    color: #1d3c5a;
}

.gn-stufe.aktuell {
    background: var(--gn-akzent);
    color: #fff;
}

@media (max-width: 575px) {
    .gn-leiter {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Letzte 200 Versuche als Punktreihe */
.gn-punkte {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 0.5rem;
}

.gn-punkt {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--gn-akzent);
}

.gn-punkt.fehl {
    background: #fff;
    box-shadow: inset 0 0 0 1.5px #adb5bd;
}

/* Säulendiagramme */
.gn-diagramm svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.gn-diagramm .achse {
    stroke: #adb5bd;
    stroke-width: 1;
}

.gn-diagramm .gitter {
    stroke: #eef1f4;
    stroke-width: 1;
}

.gn-diagramm .saeule {
    fill: var(--gn-akzent);
}

.gn-diagramm .saeule.vorher {
    fill: #adb5bd;
}

.gn-diagramm .ziel {
    stroke: #212529;
    stroke-width: 1.5;
    stroke-dasharray: 4 3;
}

.gn-diagramm text {
    font-size: 12px;
    fill: #495057;
}

.gn-diagramm .wert {
    font-weight: 600;
    fill: #212529;
}

.gn-diagramm .treffer {
    fill: transparent;
    cursor: default;
}

.gn-tooltip {
    position: absolute;
    pointer-events: none;
    background: #212529;
    color: #fff;
    font-size: 0.8rem;
    padding: 0.35rem 0.55rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.1s;
    z-index: 10;
}

/* Tagebuch */
.gn-eintrag {
    border-left: 3px solid var(--gn-linie);
    padding: 0 0 1.5rem 1.25rem;
    position: relative;
}

.gn-eintrag::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 0.35rem;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--gn-akzent);
}

.gn-eintrag.vorgeschichte::before {
    border-color: #adb5bd;
}

.gn-eintrag h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.gn-marke {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.1rem 0.45rem;
    border-radius: 0.25rem;
    background: #eef1f4;
    color: #495057;
    margin-right: 0.25rem;
}

.gn-marke.besser {
    background: #e3f1e8;
    color: var(--gn-gut);
}

.gn-marke.gemischt {
    background: #fdf1dc;
    color: #8a5a00;
}

.gn-tabelle {
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}

.gn-diagramm text.name {
    font-size: 10px;
    fill: #6c757d;
}

.gn-kennzahl {
    white-space: nowrap;
}

/* Scripts-Seite: Spannen-Diagramm der Skripte 2025 */
.gn-diagramm .spanne {
    fill: var(--gn-akzent-hell);
}

.gn-diagramm .median {
    fill: var(--gn-akzent);
    stroke: #fff;
    stroke-width: 2;
}

.gn-diagramm .mittel {
    stroke: #212529;
    stroke-width: 2;
}

.gn-diagramm text.klein {
    font-size: 11px;
    fill: #6c757d;
}

.gn-legende {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    font-size: 0.85rem;
    color: #495057;
}

.gn-legende span::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.4rem;
}

.gn-legende .l-spanne::before {
    width: 10px;
    height: 16px;
    border-radius: 3px;
    background: var(--gn-akzent-hell);
}

.gn-legende .l-median::before {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gn-akzent);
}

.gn-legende .l-mittel::before {
    width: 16px;
    height: 2px;
    background: #212529;
}

.gn-legende .l-ziel::before {
    width: 18px;
    border-top: 1.5px dashed #212529;
}

.gn-breit {
    overflow-x: auto;
    overflow-y: hidden;
}

.gn-breit svg {
    min-width: 560px;
}

/* Base-Seite: Mathematik des Würfels */
.gn-formel {
    background: #fff;
    border: 1px solid var(--gn-linie);
    border-left: 4px solid var(--gn-akzent);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
    overflow-x: auto;
    white-space: nowrap;
}

.gn-mathe li {
    margin-bottom: 0.35rem;
}
