/* Lernspiele – ergänzt ../styles/style.css */

/* Bereichsfarbe: Tannengrün (Startseiten-Kachel „Lernspiele“ in hellem Grün, Georg 12.11.2026) */
body.theme-spiele {
    background-color: #2f7d62;
    --shadow: 10, 40, 28;
}

/* Retro-Signatur über dem Titel */
.press-start {
    margin: 0 0 1rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #ffe08a;
}

.press-start .blink { animation: blinken 1.1s steps(1) infinite; }

@keyframes blinken { 50% { opacity: 0; } }

/* Bereiche (Farbe = Lernbereich) */
.sp-grammatik { --accent: #b0261b; --tint: #f8e1dc; }

/* Satz-Samurai: Satz in Satzglieder zerteilt */
.ill-samurai {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.ill-samurai .glied:nth-child(1) { --c: #b0261b; }
.ill-samurai .glied:nth-child(2) { --c: #2c3e50; }
.ill-samurai .glied:nth-child(3) { --c: #d4af37; }

/* Nebensatz-Ninja: Laternen in den Wortlücken, eine davon getroffen */
.ill-ninja {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.ninja-satz {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-end;
    gap: 0.2rem;
    white-space: nowrap;
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-size: 0.875rem;
    line-height: 1.2;
}

.ninja-satz .wort {
    padding: 0.4rem 0.4rem 0.35rem;
    background-color: var(--card);
    border-radius: 8px;
}

.laterne {
    position: relative;
    width: 0.7rem;
    height: 1rem;
    margin-bottom: 0.55rem;
    background-color: #e9c46a;
    border-radius: 3px;
    box-shadow: 0 0 0 2px #6b3a1e;
    opacity: 0.45;
}

.laterne.treffer {
    opacity: 1;
    box-shadow: 0 0 0 2px #6b3a1e, 0 0 12px 3px rgba(233, 196, 106, 0.9);
}

.laterne.treffer::after {
    content: ",";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 0.8;
    color: #b0261b;
}

.wurfstern {
    width: 1.6rem;
    height: 1.6rem;
    background-color: #2c3e50;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    transform: rotate(18deg);
}

/* Mission Jobsuche: Pixel-Porträt mit Sprechblase */
.sp-bewerben { --accent: #d9822b; --tint: #f6edd2; }

.ill-jobsuche {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
}

.ill-jobsuche img {
    width: 80px;
    height: 96px;
    image-rendering: pixelated;
    background-color: #efe2c2;
    border-radius: 6px;
}

.ill-jobsuche .sprechblase {
    position: relative;
    max-width: 9.5rem;
    padding: 0.55rem 0.7rem;
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.25;
    background-color: var(--card);
    border-radius: 10px;
}

.ill-jobsuche .sprechblase::before {
    content: "";
    position: absolute;
    left: -0.45rem;
    top: 50%;
    border: 0.45rem solid transparent;
    border-left: 0;
    border-right-color: var(--card);
    transform: translateY(-50%);
}

/* Drei Karten pro Reihe: breite Bildinhalte dürfen die Spalte nicht aufweiten */
.tools > li { min-width: 0; }

/* Kalligraphie-Schule: Pinselzeichen und Wort mit Lücke */
.sp-rechtschreibung { --accent: #2c3e50; --tint: #e2e8f0; }

.ill-kalligraphie {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.ill-kalligraphie img {
    width: 4.5rem;
    height: 4.5rem;
}

.ks-wort {
    padding: 0.55rem 0.8rem 0.5rem;
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-size: 1.25rem;
    line-height: 1.2;
    background-color: var(--card);
    border-radius: 10px;
    border-bottom: 4px solid #b0261b;
}

.ks-luecke {
    padding: 0;
    color: #b0261b;
    font-weight: 700;
    background: linear-gradient(transparent 60%, rgba(212, 175, 55, 0.45) 60%);
}

/* Platzhalter */
.bald {
    height: 100%;
    min-height: 14rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    border: 2px dashed rgba(255, 255, 255, 0.45);
    border-radius: 28px;
    text-align: center;
}

.bald strong {
    font-family: 'UniNeueRegular', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.2;
}

.bald span { font-size: 1rem; opacity: 0.9; }

@media (prefers-reduced-motion: reduce) {
    .press-start .blink { animation: none; }
}
