/* Schreibtischtests – Python-Fassungen: Programmausgabe und Pixelbilder (zu schreibtisch-python.js) */
.py-ausgabe {
    margin: 0.7rem 0 0;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    background: #0d1117;
    color: #e6edf3;
    border: 1px solid #30363d;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 0.84rem;
    white-space: pre-wrap;
    overflow-x: auto;
}

.py-ausgabe::before {
    content: 'Ausgabe';
    display: block;
    font-family: inherit;
    font-size: 0.7rem;
    color: #8b949e;
    margin-bottom: 0.3rem;
}

.py-ausgabe.fehler {
    border-color: #f87171;
    color: #fecaca;
}

.py-ausgabe[hidden] {
    display: none;
}

.py-bild {
    margin: 0.8rem 0;
}

.py-bild canvas {
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.py-bild canvas[width="1"] {
    display: none;
}

/* Sprachwahl Java/Python (schreibtisch.js) */
.sb-sprache {
    display: inline-flex;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    overflow: hidden;
}
