/* 55V – Originalprogramm im Emulator. Eigenes Aussehen: Ausbildungslabor 1993, AT-Rechner mit VGA-Monitor.
   Entwurf vom 2026-11-25. */
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../../assets/schrift/nunito-latin.woff2") format("woff2");
}
*, *::before, *::after { box-sizing: border-box; }
html { background: #1d2124; color: #d9d6cc; font: 17px/1.55 Nunito, system-ui, sans-serif; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: #f0c96a; }
kbd { font: 600 .8em/1 ui-monospace, Consolas, monospace; padding: .15em .4em; border: 1px solid #6d6a60; border-bottom-width: 2px; border-radius: 4px; background: #2b2f33; color: #e8e4d8; white-space: nowrap; }
code { font: .9em ui-monospace, Consolas, monospace; color: #e8e4d8; }

.leiste { display: flex; align-items: center; gap: .8rem; padding: .45rem 1rem; background: #141618; border-bottom: 1px solid #2c3034; min-height: 2.6rem; }
.leiste a { color: #f0c96a; text-decoration: none; white-space: nowrap; }
.leiste a:hover, .leiste a:focus-visible { text-decoration: underline; }
.leiste p { margin: 0; flex: 1; text-align: center; color: #a5a194; font-size: .9rem; }
.leiste button { font: inherit; font-size: .85rem; color: #f0c96a; background: transparent; border: 1px solid #5d584a; border-radius: 4px; padding: .2rem .7rem; cursor: pointer; }
.leiste button[aria-pressed="true"] { background: #f0c96a; color: #141618; }
@media (max-width: 640px) { .leiste p span { display: none; } }
html.eingebettet .leiste { display: none; }

.werkbank { flex: 1; display: grid; justify-items: center; gap: 1.4rem; padding: 1.4rem 1rem 3rem;
  background: radial-gradient(ellipse at 50% 0%, #2d3337 0%, #1d2124 60%); }

/* Monitor: beiges Gehäuse, gewölbter Schirm */
.monitor { width: min(100%, 1336px); max-width: calc((100vh - 9rem) * 4 / 3 + 3rem); padding: 1.4rem 1.4rem .6rem; border-radius: 18px;
  background: linear-gradient(#d8d1bd, #c4bca6); box-shadow: 0 2px 0 #eee7d4 inset, 0 -3px 0 #a79f88 inset, 0 18px 40px rgb(0 0 0 / .45); }
.schirm { position: relative; aspect-ratio: 4 / 3; background: #050607; border-radius: 10px / 12px; overflow: hidden;
  box-shadow: 0 0 0 6px #3a3934, 0 0 0 7px #8e8771, inset 0 0 40px rgb(0 0 0 / .8); }
#bild { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; touch-action: none; cursor: none; outline: none; }
#bild:focus-visible { box-shadow: inset 0 0 0 3px #f0c96a; }
.schirm::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(ellipse at 30% 20%, rgb(255 255 255 / .07), transparent 55%); }
.typenschild { display: flex; justify-content: space-between; align-items: center; padding: .5rem .4rem 0; color: #6e6754; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.led { width: .7rem; height: .7rem; border-radius: 50%; background: #3c4a33; box-shadow: inset 0 1px 2px rgb(0 0 0 / .5); }
.led.an { background: #7ef05a; box-shadow: 0 0 8px #7ef05a; }

.einschalten { position: absolute; inset: 0; display: grid; place-items: center; }
.einschalten img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; filter: grayscale(.5) brightness(.45); }
.einschalten.weg { display: none; }
#start { position: relative; display: grid; justify-items: center; gap: .3rem; font: 700 1.25rem Nunito, sans-serif; color: #141618;
  background: #f0c96a; border: 0; border-radius: 12px; padding: 1rem 1.6rem .9rem; cursor: pointer; box-shadow: 0 6px 0 #a8873a, 0 12px 30px rgb(0 0 0 / .5); }
#start:hover, #start:focus-visible { background: #f6d888; outline: 3px solid #fff3; outline-offset: 3px; }
#start:active { transform: translateY(3px); box-shadow: 0 3px 0 #a8873a; }
#start small { font-weight: 400; font-size: .75rem; color: #3b3220; }
.netz { width: 1.6rem; height: 1.6rem; border: 3px solid currentColor; border-radius: 50%; border-top-color: transparent; position: relative; }
.netz::before { content: ""; position: absolute; left: 50%; top: -.45rem; width: 3px; height: .9rem; margin-left: -1.5px; background: currentColor; border-radius: 2px; }
.lade { position: relative; margin: 0; color: #f0c96a; font-size: 1rem; text-shadow: 0 1px 2px #000; }
.lade:empty { display: none; }
.hinweis { position: relative; color: #eee; text-align: center; padding: 0 1rem; }

.tasten { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; width: min(100%, 1000px); }
.tasten button { font: inherit; font-size: .9rem; color: #e8e4d8; background: #2b2f33; border: 1px solid #454a4f; border-radius: 8px; padding: .4rem .7rem; cursor: pointer; display: inline-flex; gap: .45rem; align-items: center; }
.tasten button:hover, .tasten button:focus-visible { border-color: #f0c96a; }
.tasten button:active { transform: translateY(1px); }

.erklaerung { width: min(100%, 46rem); }
.erklaerung h1 { font-size: 1.6rem; line-height: 1.25; margin: .4rem 0 .6rem; color: #f2efe6; font-weight: 700; }
.erklaerung h2 { font-size: 1.1rem; margin: 1.4rem 0 .3rem; color: #f2efe6; }
.erklaerung ol { padding-left: 1.3rem; }
.erklaerung li { margin: .3rem 0; }
.klein { font-size: .9rem; color: #a5a194; }
details { margin-top: 1.2rem; border-top: 1px solid #343a3e; padding-top: .8rem; }
summary { cursor: pointer; color: #f0c96a; }

@media (max-width: 520px) {
  .monitor { padding: .7rem .7rem .4rem; border-radius: 12px; }
  .werkbank { padding: .8rem .5rem 2rem; }
}
@media print {
  .leiste, .tasten, #start { display: none; }
  html, .werkbank { background: #fff; color: #000; }
}
.leiste .andere { color: #cfc9b6; font-size: .85rem; }
@media (max-width: 640px) { .leiste .andere { display: none; } }
