/* spiel.css - das Aussehen der sechs Spielseiten.
 *
 * Stand bis zum 23.08.2026 sechsmal wortgleich in den Seiten selbst.
 * Jetzt einmal hier - das bleibt so.
 *
 * Seit dem 24.08.2026 tragen auch die Spielseiten das Papierthema.
 * Zwischenzeitlich waren sie ausgenommen; der Wunsch nach einem
 * einheitlichen Auftritt hat das ueberholt. Die dunklen Bildschirmfotos
 * stehen im Monitorrahmen und wirken dort als eingeschalteter Schirm.
 *
 * Wird die Datei geaendert, benennt _tools/pruefsummen.py sie um und
 * zieht die Verweise nach. Nicht von Hand umbenennen.
 */

/* Farben und Schriften wie auf der Startseite. Bewusst schlank: Die Startseite
   bringt 36 KB Stilangaben mit, davon braucht eine Unterseite fast nichts. */
:root {
    --grund: #EFEAD3;
    --grund-tief: #E7DFC6;
    --schirm: #FBFAE8;
    --band: #CBB88C;
    --rahmen: #031C42;
    --kante-aussen: #00082B;
    --kante-innen: #03173A;
    --haarlinie: rgba(3,28,66,0.22);
    --titel: #753917;
    --text: #2A354E;
    --text-matt: #5A6478;
    --linie: #A9894A;
    --gold: #7A6335;
    --erfolg: #137838;

    --bg-deep: var(--grund); --bg-mid: var(--grund-tief); --card-bg: var(--schirm);
    --card-border: var(--haarlinie);
    --copper: #874823; --sidebar-bg: var(--grund);
    --text-light: var(--rahmen); --text-muted: var(--text); --text-dim: var(--text-matt);

    /* Keine Farben, aber im selben :root-Block: Beim Umstellen der Palette
       sind sie einmal mit verschwunden, und margin-left: var(--leiste-breite)
       wurde ungueltig - der Inhalt lag dann unter der Seitenleiste. */
    --leiste-breite: 260px;
    --bahn: 900px;
    --lesebreite: min(560px, 55ch);
}
* { box-sizing: border-box; }
/* Grid- und Flex-Kinder duerfen schrumpfen. Ohne das gilt min-width: auto und
   ein Kind wird nie schmaler als sein laengstes Wort. */
main > *, .bahn > *, .raster > *, .knopfreihe > * { min-width: 0; }
html { scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg-deep); color: var(--text-muted);
    font-family: 'Inter', system-ui, sans-serif; line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
p { max-width: var(--lesebreite); }
a { color: var(--gold); }
.serif { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; }

/* ---------------- Seitenleiste ---------------- */
.leiste {
    position: fixed; top: 0; left: 0; width: var(--leiste-breite); height: 100vh;
    background: var(--sidebar-bg); border-right: 1px solid var(--card-border);
    padding: 1.5rem 1.25rem; overflow-y: auto; z-index: 100;
}
.leiste-marke {
    /* Grosses Logo wie auf allen anderen Seiten, kein Beitext. Die Leiste
       soll sich beim Wechsel zwischen Seiten nicht veraendern. */
    display: block; text-align: center;
    text-decoration: none; color: var(--text-light); font-size: 0.88rem;
    padding-bottom: 1.25rem; border-bottom: 1px solid var(--card-border);
}
.leiste-marke img { width: 180px; height: auto; }
.leiste-marke span { display: none; }
.leiste-marke b { color: var(--gold); }
.leiste-gruppe { margin-top: 1.4rem; }
.leiste-titel {
    display: block; margin-bottom: 0.5rem; font-size: 0.72rem;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper);
}
.leiste ul { list-style: none; margin: 0; padding: 0; }
.leiste li a {
    display: block; padding: 0.5rem 0.75rem; border-radius: 8px;
    color: var(--text-muted); text-decoration: none; font-size: 0.95rem;
}
.leiste li a:hover { background: rgba(212, 165, 116, 0.08); color: var(--gold); }
.leiste li a.aktiv { background: rgba(212, 165, 116, 0.14); color: var(--gold); }

.leiste-knopf {
    display: none; position: fixed; top: 0.9rem; left: 0.9rem; z-index: 200;
    width: 46px; height: 46px; border-radius: 10px; cursor: pointer;
    background: var(--sidebar-bg); color: var(--gold);
    border: 1px solid var(--card-border); font-size: 1.3rem; line-height: 1;
}

.inhalt { margin-left: var(--leiste-breite); padding: clamp(2rem, 5vw, 4rem) 0; }
.bahn { max-width: var(--bahn); margin: 0 auto; padding: 0 1.5rem; }

@media (max-width: 900px) {
    .leiste { transform: translateX(-100%); transition: transform 0.25s; }
    .leiste.offen { transform: none; }
    .leiste-knopf { display: block; }
    .inhalt { margin-left: 0; padding-top: 4.5rem; }
}

/* ---------------- Inhalt ---------------- */
.kopf { display: flex; flex-wrap: wrap; gap: 1.75rem; align-items: flex-start; }
.kopf-icon {
    width: 104px; height: 104px; border-radius: 22px; flex: none;
    border: 1px solid var(--card-border); background: var(--card-bg);
}
.kopf h1 { margin: 0 0 0.35rem; font-size: clamp(1.7rem, 4vw, 2.5rem); color: var(--text-light); }
.unterzeile { margin: 0 0 0.9rem; color: var(--gold); font-size: 1.05rem; }
.abzeichen {
    display: inline-block; margin-bottom: 1rem; padding: 0.25rem 0.8rem;
    /* Druckton statt Leuchtton: Das helle Mint stammt aus dem alten
       dunklen Thema und erreicht auf Papier nur 1,4 Kontrast. Dieses
       Gruen kommt auf 5,5 und bleibt trotzdem als "laeuft" lesbar. */
    border: 1px solid rgba(19, 120, 56, 0.42); border-radius: 999px;
    background: rgba(19, 120, 56, 0.14); color: #0F5F2C;
    font-weight: 600;
    font-size: 0.82rem; letter-spacing: 0.04em;
}
.knopfreihe { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.knopf {
    display: inline-block; padding: 0.65rem 1.25rem; border-radius: 10px;
    text-decoration: none; font-weight: 600; font-size: 0.93rem;
    border: 1px solid var(--card-border); color: var(--text-light);
    background: var(--card-bg); transition: border-color 0.25s, transform 0.25s;
}
.knopf:hover { border-color: var(--gold); transform: translateY(-2px); }
.knopf.wichtig { background: var(--copper); border-color: var(--copper); }

.abschnitt { margin-top: clamp(2.5rem, 6vw, 3.5rem); }
.abschnitt h2 { font-size: clamp(1.25rem, 3vw, 1.7rem); color: var(--gold); margin: 0 0 1.3rem; }
.raster { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.karte { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; padding: 1.3rem; }
.karte .zeichen { font-size: 1.5rem; line-height: 1; }
.karte h3 { margin: 0.6rem 0 0.35rem; font-size: 1rem; color: var(--text-light); }
.karte p { margin: 0; font-size: 0.92rem; color: var(--text-dim); max-width: none; }
.zahlenreihe { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); }
.zahl { border-left: 2px solid rgba(212, 165, 116, 0.4); padding-left: 1rem; }
.zahl b { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; color: var(--gold); }
.zahl span { font-size: 0.9rem; color: var(--text-dim); }
.bilder { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.bilder figure { margin: 0; }
.bilder img {
    width: 100%; height: auto; border-radius: 12px; display: block;
    border: 1px solid var(--card-border);
}
.bilder figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: var(--text-dim); }

.fuss {
    margin-top: clamp(3rem, 7vw, 4.5rem); border-top: 1px solid var(--card-border);
    padding: 1.75rem 0; font-size: 0.9rem; color: var(--text-dim);
}
.fuss .bahn { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; }
.fuss a { margin-right: 1.2rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.hinweis-vorreg {
    margin-top: 0.9rem; font-size: 0.86rem; color: var(--text-dim);
    max-width: 46ch;
}


/* Die drei Angaben, die einen Fehlerbericht brauchbar machen. Etwas
   ruhiger als der Fliesstext: ein Hinweis, keine zweite Aussage. */
.melden-tipp {
    margin-top: 0.8rem; font-size: 0.9rem; color: var(--text-dim);
    padding-left: 0.85rem; border-left: 2px solid var(--linie);
    max-width: 60ch;
}
