/* Design des Portals "Hobbyraum 1986" (Entwurf A2, portal/entwurf-a2-hobbyraum.html).
   Der obere Teil ist eins zu eins aus dem Entwurf übernommen; unten stehen die Ergänzungen
   für die echten Seiten (Meldungen, Formulare auf dem Endlospapier, Kopfzeile).
   Schriften liegen auf dem eigenen Server (static/fonts), nicht bei Google. */
@font-face { font-family: "Righteous"; src: url("fonts/righteous.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url("fonts/permanent-marker.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "VT323"; src: url("fonts/vt323.woff2") format("woff2"); font-display: swap; }
/* Bildschirmschrift des C64, aus dem Zeichen-ROM erzeugt (portal/c64schrift.py, seit 0.19.4) */
@font-face { font-family: "8bit C64"; src: url("fonts/c64.woff") format("woff"); font-display: block; }
/* Entwurf A2: der Hobbyraum 1986. Holzvertäfelung, Teppich in Orangebraun, auf dem
   Schreibtisch ein Röhrenmonitor mit C64-Blau, davor Brotkasten, Floppy und Joystick.
   Im Wandregal echte 5¼-Zoll-Diskettenboxen: Unterteil aus beigem Kunststoff mit
   Schloss, darauf der getönte Klappdeckel, durch den man die Disketten sieht. Die
   Etiketten sind mit Filzstift beschriftet. */
:root {
  --holz: #6b4423;  --holz-fuge: #4f3018;  --holz-hell: #87592f;
  --teppich: #8c4a1f;
  --senf: #e0a526;  --orange: #e2702a;  --braun: #3a2414;
  --beige: #d9ceb4; --beige-dunkel: #b9ac8f; --beige-schatten: #9a8d72;
  --c64-rahmen: #6c5eb5; --c64-schirm: #352879; --c64-text: #a59bea;
  --papier: #f4efe1; --tinte: #1f2a44;
  --text: #f6ecd8;  --leise: #d8c3a0;
  --kopf: "Righteous", "Archivo", sans-serif;
  --grund: "Archivo", "Segoe UI", sans-serif;
  --stift: "Permanent Marker", "Comic Sans MS", cursive;
  --schirmschrift: "VT323", "Consolas", monospace;
}
* { box-sizing: border-box; }
html { background: #6e3818; }       /* Farbe des Teppichs, falls man über das Ende scrollt */
body { margin: 0; min-height: 100vh; color: var(--text); font: 17px/1.55 var(--grund);
  /* Holzvertäfelung: senkrechte Bretter mit Fugen und etwas Maserung */
  background:
    radial-gradient(ellipse 55% 40% at 50% 0%, #ffd58a30, transparent 70%),
    repeating-linear-gradient(90deg, #0000 0 118px, var(--holz-fuge) 118px 122px),
    repeating-linear-gradient(91deg, #ffffff06 0 3px, #0000 3px 9px, #00000010 9px 11px, #0000 11px 23px),
    linear-gradient(90deg, var(--holz), var(--holz-hell) 50%, var(--holz)) 0 0 / 122px 100%;
}
a { color: var(--senf); }
:focus-visible { outline: 3px solid var(--senf); outline-offset: 3px; }

/* Kopf: ein Streifen in den Farben der Achtziger */
header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 14px clamp(16px, 4vw, 44px);
         background: var(--braun); border-bottom: 6px solid; border-image: linear-gradient(90deg,
           var(--senf) 0 33%, var(--orange) 33% 66%, #b8401f 66%) 1; }
.marke { font: 400 26px/1 var(--kopf); color: var(--text); text-decoration: none; margin-right: auto; }
header nav { display: flex; gap: 4px; flex-wrap: wrap; }
header nav button { font: 600 15px var(--grund); color: var(--leise); background: none; border: 0;
                    padding: 8px 12px; border-radius: 4px; cursor: pointer; }
header nav button[aria-selected="true"] { background: var(--senf); color: var(--braun); }

main { max-width: 1120px; width: 100%; box-sizing: border-box; margin: 0 auto; padding: 18px clamp(16px, 4vw, 44px) 0;
       flex: 1 0 auto; }
.ansicht { display: none; } .ansicht.an { display: block; }
h1 { font: 400 clamp(30px, 4.4vw, 44px)/1.05 var(--kopf); margin: 14px 0 6px; color: var(--text);
     text-shadow: 3px 3px 0 var(--braun); }
.unter { color: var(--leise); margin: 0 0 24px; max-width: 62ch; }

/* ---------- Schreibtisch mit Monitor, Brotkasten, Floppy, Joystick ---------- */
.tisch { display: grid; justify-items: center; padding-top: 10px; }
/* Monitor nach dem Vorbild des Commodore 1702: fast quadratisches, hellgraues Gehäuse,
   oben die Lüftungsschlitze, ein dicker dunkelbrauner Rahmen in zwei Stufen um die gewölbte
   Röhre, darunter die Leiste mit Typenschild, Netzschalter und den beiden Buchsen.
   Markenzeichen und Regenbogenstreifen bleiben weg, auf der Plakette steht 8bit.network. */
.monitor { width: min(640px, 100%); position: relative; padding: 30px 24px 0; border-radius: 7px 7px 4px 4px;
  background: linear-gradient(#ddd5c8, #c9bfae 70%, #b9ae9b);
  box-shadow: 0 30px 40px #0008, inset 0 2px 0 #fff9, inset 0 -4px 0 #0002; }
.monitor .luefter { position: absolute; left: 12%; right: 12%; top: 9px; height: 13px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, #a1968466 0 3px, #0000 3px 6px), #b8ad9a55;
  box-shadow: inset 0 1px 2px #0003; }
.monitor .rahmen { padding: 26px 30px; border-radius: 3px;
  background: linear-gradient(#3a2c22, #2b2019);
  box-shadow: inset 0 0 0 3px #1c1510, inset 0 0 0 16px #33271e, inset 0 0 0 18px #1a130e; }
.monitor .leiste { position: relative; height: 78px; display: flex; align-items: center; padding: 0 8px; }
.monitor .plakette { margin: 0 auto; display: flex; align-items: center; gap: 8px; height: 22px; padding: 0 12px;
  background: linear-gradient(#4a4a4c, #2f2f31); color: #dedad2; font: 700 12px var(--grund); letter-spacing: .3px;
  border-radius: 2px; box-shadow: inset 0 0 0 1px #6a6a6c, 0 1px 0 #fff6; }
.monitor .plakette::after { content: ""; width: 16px; height: 12px; border-radius: 1px; background: linear-gradient(#151515, #2a2a2a);
  box-shadow: inset 0 0 0 1px #555; }
.monitor .typ { position: absolute; right: 52px; top: 50%; transform: translateY(-50%); font: 700 8.5px/1.25 var(--grund); color: #5d5449; letter-spacing: .3px;
  border: 1px solid #9a8f7f; padding: 3px 6px; }
.monitor .power { position: absolute; right: 16px; top: 50%; margin-top: -8px; width: 22px; height: 16px; border-radius: 2px;
  background: linear-gradient(#a3725a, #7b513f); box-shadow: inset 0 1px 0 #fff4, 0 1px 1px #0005;
  border: 0; padding: 0; cursor: pointer; }
.monitor .power:hover { filter: brightness(1.12); }
.monitor .power:active { transform: translateY(1px); box-shadow: inset 0 1px 2px #0006; }
.monitor .power:focus-visible { outline: 2px solid #ffd45a; outline-offset: 3px; }
.monitor .buchsen { position: absolute; right: 16px; bottom: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle, #222 0 2px, #ededed 2.5px 4px, #9a9a9a 4.5px);
  box-shadow: -22px 0 0 0 #e8c32a; }
.monitor .fuss { position: absolute; bottom: -8px; width: 34px; height: 8px; border-radius: 0 0 3px 3px; background: #8f8574; }
.monitor .fuss.l { left: 34px; } .monitor .fuss.r { right: 34px; }
.schirm { background: var(--c64-rahmen); border-radius: 34px / 26px; padding: 24px;
          box-shadow: inset 0 0 40px #0009, inset 0 0 0 6px #2d2650; position: relative; overflow: hidden; }
.schirm::before { /* Zeilen und Glanz der Röhre */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: repeating-linear-gradient(#0000 0 2px, #0000001f 2px 3px),
              radial-gradient(ellipse 70% 50% at 30% 20%, #ffffff22, #0000 60%); }
.innen { background: var(--c64-schirm); padding: 18px 20px 20px; font: 24px/1.15 var(--schirmschrift); color: var(--c64-text); }
.innen h2 { font: 30px/1 var(--schirmschrift); color: #fff; margin: 0 0 12px; font-weight: 400; }
.innen label { display: block; margin-top: 10px; }
.innen input { width: 100%; font: 26px/1 var(--schirmschrift); color: #fff; background: #4b3f9a; border: 0;
               padding: 6px 8px 4px; caret-color: #fff; }
.innen input:focus, .innen input:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }  /* Rahmen direkt am Feld */
.innen button { margin-top: 16px; font: 26px/1 var(--schirmschrift); color: var(--c64-schirm); background: var(--c64-text);
                border: 0; padding: 6px 16px 4px; cursor: pointer; }
.innen button:hover { background: #fff; }
.innen .klein { font-size: 20px; margin: 14px 0 0; }
.innen a { color: #fff; }
.platte { width: 100%; max-width: 980px; height: 26px; margin-top: -2px; border-radius: 3px;
          background: linear-gradient(#a8743f, #7b5129); box-shadow: 0 16px 30px #0009; }
.geraete { width: 100%; max-width: 900px; display: flex; justify-content: center; align-items: flex-end;
           gap: 40px; margin-top: -34px; position: relative; padding: 0 10px; pointer-events: none; }
/* Der Brotkasten als ein Körper: Die Oberseite (mit den Tasten darauf) liegt in einer
   echten Perspektive nach hinten, darunter die senkrechte Vorderkante in genau derselben
   Breite. Beide teilen die Unterkante der Oberseite, deshalb schließen sie bündig ab. */
.brotkasten { width: 400px; height: 124px; position: relative; perspective: 520px; perspective-origin: 50% -60px; }
.brotkasten .oben { position: absolute; left: 0; right: 0; bottom: 36px; height: 168px; transform-origin: 50% 100%;
  transform: rotateX(66deg); border-radius: 46px 46px 6px 6px / 70px 70px 6px 6px;
  background: linear-gradient(#a39274, #b5a587 30%, #a8987a); box-shadow: inset 0 -4px 0 #0002, inset 0 6px 0 #fff3; }
.brotkasten .tasten { position: absolute; left: 34px; right: 34px; top: 34px; height: 116px;
  background:
    repeating-linear-gradient(90deg, #3a2e22 0 20px, #0000 20px 24px) 0 0 / 80% 21px,
    repeating-linear-gradient(90deg, #3a2e22 0 20px, #0000 20px 24px) 11px 25px / 80% 21px,
    repeating-linear-gradient(90deg, #3a2e22 0 20px, #0000 20px 24px) 6px 50px / 80% 21px,
    repeating-linear-gradient(90deg, #3a2e22 0 20px, #0000 20px 24px) 17px 75px / 78% 21px,
    linear-gradient(#3a2e22 0 0) 24% 100px / 44% 16px,
    repeating-linear-gradient(#d4c7a8 0 21px, #0000 21px 25px) 100% 0 / 30px 96px;
  background-repeat: no-repeat; }
.brotkasten .kante { position: absolute; left: 0; right: 0; bottom: 0; height: 36px; border-radius: 0 0 10px 10px;
  background: linear-gradient(#8f7f62, #6f6049); box-shadow: 0 14px 20px #0008, inset 0 2px 0 #fff2, inset 0 -4px 0 #0003; }
.brotkasten .oben::after { /* Betriebsleuchte oben auf dem Gehäuse, über den Funktionstasten */
  content: ""; position: absolute; right: 42px; top: 16px; width: 12px; height: 7px; border-radius: 2px;
  background: #ff4a30; box-shadow: 0 0 8px 2px #ff4a30aa; }
/* Die 1541-II: flaches beiges Gehäuse, Schacht mit Riegel zum Herunterklappen, zwei Lämpchen */
.floppy { width: 196px; height: 78px; position: relative; border-radius: 5px;
  background: linear-gradient(var(--beige), var(--beige-dunkel)); box-shadow: 0 12px 18px #0008, inset 0 2px 0 #fff7, inset 0 -5px 0 #0002; }
.floppy .schacht { position: absolute; left: 22px; right: 22px; top: 22px; height: 12px; border-radius: 3px;
  background: linear-gradient(#141210, #3a342b); box-shadow: 0 1px 0 #fff6; }
.floppy .riegel { position: absolute; left: 25%; top: 14px; width: 18px; height: 34px; margin-left: -9px; border-radius: 4px;
  background: linear-gradient(90deg, #8d8471, #c4b89c 45%, #8d8471); box-shadow: 0 3px 4px #0006, inset 0 1px 0 #fff6; }
.floppy .riegel::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 5px; height: 3px; background: #0003; border-radius: 2px; }
.floppy .lampen { position: absolute; right: 26px; bottom: 14px; width: 9px; height: 5px; border-radius: 1px;
  background: #47b04a; box-shadow: 0 0 7px #47b04a; }
/* Rote Laufwerkslampe als eigenes Stück: Steht auf der Seite eine Fehlermeldung, blinkt sie wie
   bei einem Ladefehler der 1541 (seit 0.15.0, Wunsch von Andreas). Nur Zierde, der Text der
   Meldung bleibt. Ohne Bewegung (prefers-reduced-motion) leuchtet sie einfach weiter. */
.floppy .lampen::after { content: ""; position: absolute; left: 18px; top: 0; width: 9px; height: 5px;
  border-radius: 1px; background: #e8452c; box-shadow: 0 0 8px #e8452c; }
body:has(.err, .zettel.fehler, .meldung:not(.gut)) .floppy .lampen::after {
  animation: ladefehler .5s steps(1) infinite; }
@keyframes ladefehler { 50% { background: #5a2a20; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { body .floppy .lampen::after { animation: none; } }
.floppy .rillen { position: absolute; left: 22px; bottom: 12px; width: 60px; height: 10px;
  background: repeating-linear-gradient(90deg, #0000 0 5px, #0002 5px 7px); }

/* ---------- Dein Konto: Ausdruck auf Endlospapier ---------- */
.handbuch { display: grid; grid-template-columns: 230px 1fr; max-width: 920px; position: relative; padding-bottom: 60px; }
.kapitel { display: flex; flex-direction: column; gap: 6px; padding-top: 30px; position: relative; z-index: 1; }
.kapitel button { text-align: right; font: 600 16px var(--grund); color: var(--braun); background: var(--senf);
                  border: 0; padding: 9px 16px; border-radius: 8px 0 0 8px; cursor: pointer; margin-right: -2px;
                  box-shadow: inset -6px 0 8px -6px #0005; }
.kapitel button:nth-child(2n) { background: var(--orange); }
.kapitel button:nth-child(3n) { background: #c9b98f; }
.kapitel button[aria-selected="true"] { background: var(--papier); box-shadow: none; }
/* Endlospapier vom Nadeldrucker: links und rechts der Lochrand für den Traktor, abgetrennt
   durch eine Perforation; dazwischen das Blatt mit hellgrünen Streifen (Tabellierpapier),
   oben und unten die Falz der Leporello-Faltung. */
.seiten { --rand: 34px; color: var(--tinte); padding: 34px calc(var(--rand) + 34px) 34px calc(var(--rand) + 30px);
  min-height: 420px; position: relative; box-shadow: 0 20px 34px #0008;
  background:
    radial-gradient(circle at 17px 50%, #3a2414 0 6.5px, #0000 7px) 0 0 / var(--rand) 24px repeat-y,
    radial-gradient(circle at calc(100% - 17px) 50%, #3a2414 0 6.5px, #0000 7px) 100% 0 / var(--rand) 24px repeat-y,
    repeating-linear-gradient(#0000 0 3px, #f6f3e8 3px 6px) var(--rand) 0 / 1.5px 100% repeat-y,
    repeating-linear-gradient(#0000 0 3px, #f6f3e8 3px 6px) calc(100% - var(--rand)) 0 / 1.5px 100% repeat-y,
    repeating-linear-gradient(#f6f3e8 0 26px, #dcebd5 26px 52px) var(--rand) 0 / calc(100% - 2 * var(--rand)) 100% no-repeat,
    #f6f3e8; }
.seiten::before { /* Falz der Leporello-Faltung und leichte Riffelung durch den Traktor */
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none;
  background:
    linear-gradient(#0000 calc(100% - 2px), #00000022 calc(100% - 2px)) 0 0 / 100% 312px,
    linear-gradient(90deg, #0000 0 2px, #00000010 2px 3px, #0000 3px) 0 0 / var(--rand) 100% no-repeat,
    linear-gradient(90deg, #0000 0 2px, #00000010 2px 3px, #0000 3px) 100% 0 / var(--rand) 100% no-repeat; }
.seiten > * { position: relative; }
.seiten { font-family: var(--grund); }
.seiten h2 { font: 400 32px/1.1 var(--schirmschrift); margin: 0 0 4px; color: var(--tinte); letter-spacing: .5px; }
.seiten .kap { font: 20px var(--schirmschrift); color: #4b6b44; margin: 0 0 18px; }
.seiten dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.seiten dt { color: #6f6250; } .seiten dd { margin: 0; font-weight: 600; }
.seiten label { display: block; margin-top: 12px; font-size: 15px; font-weight: 600; }
.seiten input { width: 100%; max-width: 360px; font: 17px var(--grund); padding: 8px 10px; border: 2px solid #b9a988;
                background: #fffdf6; border-radius: 3px; }
.seiten input:focus { outline: none; border-color: var(--orange); }
.seiten p { max-width: 58ch; }
.knopf { margin-top: 18px; font: 800 16px var(--grund); color: var(--braun); background: var(--senf); border: 0;
         padding: 10px 22px; border-radius: 4px; cursor: pointer; box-shadow: 0 4px 0 #9c6d12; }
.knopf:active { transform: translateY(3px); box-shadow: 0 1px 0 #9c6d12; }
.knopf.rot { background: #c84a2a; color: #fff; box-shadow: 0 4px 0 #7e2a15; }
.seite { display: none; } .seite.an { display: block; }

/* ---------- Dein Regal: Wandregal mit 5¼-Zoll-Diskettenboxen ---------- */
.raum { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 34px; align-items: start; padding-bottom: 60px; }
.brett { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px 26px; padding: 0 18px 24px;
         min-height: 250px; }
.brett::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24px;
                background: linear-gradient(#b17c45, #7b5129); border-radius: 2px; box-shadow: 0 14px 22px #0008; }
/* Die Box ist ein kleiner 3D-Raum, von vorn und leicht von oben gesehen. z = 0 ist die
   Vorderkante, die Rückwand liegt bei z = -100px. Der Deckel ist EIN Teil aus fünf Flächen
   und dreht sich um das Scharnier hinten oben am Unterteil. Wer vorn liegt, entscheidet
   allein die Tiefe (z), deshalb gibt es beim Aufklappen keinen Sprung. */
.box { position: relative; width: 176px; height: 196px; border: 0; padding: 0; background: none; cursor: pointer;
       z-index: 1; perspective: 2400px; perspective-origin: 50% -300px; }
.box span { display: block; }
.box .szene { position: absolute; inset: 0; transform-style: preserve-3d; }
.box:hover .unten, .box:focus-visible .unten { filter: brightness(1.06); }
/* Rückwand des Unterteils von innen */
.box .rueck { position: absolute; left: 6px; right: 6px; bottom: 0; height: 66px; transform: translateZ(-100px);
  background: linear-gradient(var(--korpus2, var(--beige-schatten)), #0006), var(--korpus2, var(--beige-schatten)); }
/* Disketten: hinten die Oberkanten der stehenden Disketten mit Trennreitern, vorn die erste mit Etikett */
.box .disks { position: absolute; left: 20px; right: 20px; bottom: 50px; height: 86px; transform-style: preserve-3d; }
.box .disks::after { /* die vorderste Diskette: Hülle, Etikett, Nabe, Indexloch, Lesefenster, Kerbe */
  content: ""; position: absolute; left: 6px; right: 6px; bottom: -24px; height: 124px; border-radius: 2px;
  transform: translateZ(-30px);
  clip-path: polygon(0 0, 100% 0, 100% 12%, 96% 12%, 96% 19%, 100% 19%, 100% 100%, 0 100%);
  background:
    linear-gradient(var(--etikettfarbe, #2f6db5) 0 0) 10px 8px / 58% 6px no-repeat,
    linear-gradient(#b9b2a0 0 0) 10px 20px / 44% 2px no-repeat,
    linear-gradient(#b9b2a0 0 0) 10px 26px / 36% 2px no-repeat,
    linear-gradient(#f3efe4 0 0) 6px 4px / 74% 28px no-repeat,
    radial-gradient(circle at 50% 50%, #1d1712 0 13px, #3b3b3d 13.5px 18px, #0000 18.5px),
    radial-gradient(circle at 68% 50%, #3b3b3d 0 3px, #0000 3.5px),
    radial-gradient(ellipse 6px 16px at 50% 84%, #3b3b3d 0 5.5px, #0000 6px),
    linear-gradient(#151515, #0d0d0d);
  box-shadow: 0 -1px 0 #ffffff14; }
/* Der Deckel: Nullpunkt ist die Scharnierlinie (Oberkante Unterteil, ganz hinten).
   Alle Flächen hängen an diesem einen Element, gedreht wird nur hier. */
.box .deckel { position: absolute; left: 6px; right: 6px; bottom: 66px; height: 0; transform-style: preserve-3d;
  transform-origin: 50% 0; transform: translateZ(-100px) rotateX(0deg);
  transition: transform .55s cubic-bezier(.45, .05, .3, 1); }
.box .deckel > span { position: absolute; left: 0; right: 0; top: -86px; height: 86px;
  box-shadow: inset 0 0 0 2px #2a1a0c99; }
/* Rückseite: steht über dem Scharnier, liegt geöffnet flach nach hinten */
.box .deckel .hinten { background: #3b2a1c66; }
/* Oberseite: 100px tief von hinten nach vorn; geöffnet das hohe Paneel hinter den Disketten */
.box .deckel .oben { height: 100px; transform-origin: 50% 0; transform: rotateX(90deg); border-radius: 0 0 5px 5px;
  background: linear-gradient(100deg, #ffffff30 0 12%, #0000 13%), linear-gradient(#ffffff1c, #ffffff1c), linear-gradient(#3b2a1cd0, #54402fc4); }
/* Seitenwangen links und rechts */
.box .deckel .wange { right: auto; width: 100px; transform-origin: 0 0; transform: rotateY(-90deg);
  background: #4a3626b0; }
.box .deckel .wange.r { left: 100%; }
/* Vorderseite: Rauchglas mit Glanzkante oben und Schloss rechts */
.box .deckel .vorne { transform: translateZ(100px); border-radius: 0 0 2px 2px;
  background: linear-gradient(100deg, #ffffff3a 0 12%, #0000 13%), linear-gradient(#5a432fb8, #3a2817d0);
  box-shadow: inset 0 0 0 2px #2a1a0caa, inset 0 6px 8px #ffffff1c; }
.box .deckel .vorne::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: #ffffff26; border-bottom: 1px solid #2a1a0c66; }
/* Schloss: rund, mittig unten knapp über der Kante zum Unterteil, mit Schlitz als Schlüsselloch */
.box .deckel .vorne::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 17px; height: 17px;
  margin-left: -8.5px; border-radius: 50%;
  background: linear-gradient(#2a2a2a 0 0) 50% 50% / 2px 9px no-repeat,
              radial-gradient(circle at 50% 50%, #9a9a9a 0 4.5px, #0000 5px),
              radial-gradient(circle at 38% 32%, #f4f4f4, #b4b4b4 55%, #7a7a7a);
  box-shadow: 0 1px 2px #0007, inset 0 0 0 1px #00000040; }
/* Unterteil: beiger Kunststoff, vorn schräg nach unten zulaufend, oben eine Lippe */
.box .unten { position: absolute; left: 0; right: 0; bottom: 0; height: 66px; transform: translateZ(1px);
  clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
  background: linear-gradient(var(--korpus, var(--beige)) 0 12px, #0000 12px 14px, var(--korpus, var(--beige)) 14px, var(--korpus2, var(--beige-dunkel)));
  box-shadow: inset 0 -6px 0 #0002; }
.box .unten::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: #0003; }
.box .etikett { position: absolute; left: 24px; right: 24px; bottom: 14px; height: 28px; background: var(--papier);
  font: 16px/28px var(--stift); color: var(--tinte); padding: 0 8px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; transform: translateZ(2px) rotate(-1.5deg); box-shadow: 0 1px 2px #0004; text-align: left; }
.box .zahl { position: absolute; left: 0; right: 0; bottom: -20px; line-height: 16px; font: 600 13px/16px var(--grund);
  color: var(--leise); }   /* mittig auf dem Brett (24 px hoch) */
/* Aufklappen: der ganze Deckel schwenkt um 90 Grad nach hinten */
.box[aria-pressed="true"] .deckel { transform: translateZ(-100px) rotateX(90deg); }
.box[aria-pressed="true"] .etikett { background: var(--senf); }
@media (prefers-reduced-motion: reduce) { .box .deckel { transition: none; } }

/* Inhalt der geöffneten Box: Disketten als Liste */
.inhalt { background: var(--papier); color: var(--tinte); border-radius: 4px; padding: 20px 22px; position: sticky; top: 18px;
          box-shadow: 0 18px 30px #0008; }
.inhalt h2 { font: 26px/1.1 var(--stift); margin: 0 0 12px; color: var(--braun); }
.inhalt ul { list-style: none; margin: 0; padding: 0; }
.inhalt li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #e1d6bd; }
/* eine 5¼-Zoll-Diskette: schwarze Hülle, Loch, Schreibschutzkerbe, Etikett */
.disk { flex: none; width: 40px; height: 40px; background: #161616; border-radius: 2px; position: relative;
        clip-path: polygon(0 0, 100% 0, 100% 28%, 92% 28%, 92% 40%, 100% 40%, 100% 100%, 0 100%); }
.disk::before { content: ""; position: absolute; left: 13px; top: 13px; width: 14px; height: 14px; border-radius: 50%;
                background: radial-gradient(circle, var(--papier) 0 4px, #3b3b3d 4.5px); }   /* Mittelloch hell (Papier dahinter), Scheibe grau */
.disk::after { content: ""; position: absolute; left: 4px; right: 8px; top: 3px; height: 8px; background: var(--papier);
               border-top: 3px solid var(--farbe, #2f6db5); }
.inhalt .wer { flex: 1; min-width: 0; }
.inhalt .wer b { display: block; font: 17px/1.2 var(--stift); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inhalt .wer span { font-size: 13px; color: #7a6c55; }
.laden { font: 700 13px var(--grund); color: var(--braun); background: var(--senf); border: 0; padding: 6px 10px;
         border-radius: 3px; cursor: pointer; white-space: nowrap; box-shadow: 0 3px 0 #9c6d12; }
.leer { color: #7a6c55; font-style: italic; }
/* Blättern (Entwurf): Suchfeld, Leiste A bis Z, zehn Disketten je Seite */
.inhalt .suche { width: 100%; font: 17px var(--stift); color: var(--tinte); background: #fffdf6; border: 2px solid #cbbd9b;
  border-radius: 3px; padding: 6px 10px; margin: 0 0 8px; }
.inhalt .suche:focus { outline: none; border-color: var(--orange); }
.abc { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 10px; }
.abc button { font: 700 11px var(--grund); width: 19px; height: 21px; padding: 0; border: 0; border-radius: 2px 2px 0 0;
  background: var(--senf); color: var(--braun); cursor: pointer; }
.abc button:nth-child(3n+1) { background: var(--orange); } .abc button:nth-child(3n+2) { background: #c9b98f; }
.abc[hidden] { display: none; }
.abc button.breit { width: auto; padding: 0 5px; }   /* !? und 0–9 (seit 0.19.10) */
.abc button:disabled { background: #e8e0cc; color: #c4b79a; cursor: default; }
.blatt { min-height: 416px; transform-origin: 50% 0; }
.blatt.neu { animation: blattfallen .32s ease-out; }
@keyframes blattfallen { from { transform: perspective(900px) rotateX(78deg); opacity: .2; } to { transform: none; opacity: 1; } }
.blaettern { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.blaettern span { font: 18px var(--stift); color: #7a6c55; }
.blaettern.oben { margin: 0 0 10px; }
.blaettern button { font: 700 14px var(--grund); color: var(--braun); background: var(--senf); border: 0; padding: 6px 12px;
  border-radius: 3px; cursor: pointer; box-shadow: 0 3px 0 #9c6d12; }
.blaettern button:disabled { background: #e8e0cc; color: #b9ad92; box-shadow: none; cursor: default; }
/* die vorderste Diskette kippt beim Weiterblättern nach vorn weg, beim Zurückblättern kommt sie wieder */
/* Die vorgelehnte Diskette beim Blättern: gleiche Größe wie die vordere, kippt um ihre
   Unterkante nach vorn. Bewegt wird sie per Skript (weiter/zurueck), Schritt für Schritt. */
.box .disks .kipp { position: absolute; left: 6px; right: 6px; bottom: -24px; height: 124px; border-radius: 2px;
  transform-origin: 50% 100%; transform: translateZ(-26px) rotateX(0); pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 100% 12%, 96% 12%, 96% 19%, 100% 19%, 100% 100%, 0 100%);
  background:
    linear-gradient(var(--kippfarbe, #2f6db5) 0 0) 10px 8px / 58% 6px no-repeat,
    linear-gradient(#b9b2a0 0 0) 10px 20px / 44% 2px no-repeat,
    linear-gradient(#b9b2a0 0 0) 10px 26px / 36% 2px no-repeat,
    linear-gradient(#f3efe4 0 0) 6px 4px / 74% 28px no-repeat,
    radial-gradient(circle at 50% 50%, #1d1712 0 13px, #3b3b3d 13.5px 18px, #0000 18.5px),
    radial-gradient(circle at 68% 50%, #3b3b3d 0 3px, #0000 3.5px),
    radial-gradient(ellipse 6px 16px at 50% 84%, #3b3b3d 0 5.5px, #0000 6px),
    linear-gradient(#151515, #0d0d0d); }
@media (prefers-reduced-motion: reduce) { .blatt.neu { animation: none !important; } }


/* Teppich unten */
.teppich { height: 70px; margin-top: 20px;
  background: repeating-linear-gradient(45deg, #0000 0 6px, #00000014 6px 7px), linear-gradient(#7a3f19, var(--teppich)); }

@media (max-width: 820px) {
  .raum, .handbuch { grid-template-columns: 1fr; }
  .kapitel { flex-direction: row; flex-wrap: wrap; padding: 0; }
  .kapitel button { border-radius: 8px 8px 0 0; text-align: left; margin: 0; }
  .inhalt { position: static; }
  .geraete { margin-top: 10px; }
  .brotkasten { width: 280px; }
}
@media (max-width: 520px) { .geraete { display: none; } .monitor { padding: 22px 10px 0; } .monitor .rahmen { padding: 14px; }
  .monitor .typ { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===================== Ergänzungen für die echten Seiten ===================== */
/* Kopfzeile: Links statt Knöpfe, rechts wer angemeldet ist, Abmelden, Ansicht (Admins) */
header nav a { font: 600 15px var(--grund); color: var(--leise); text-decoration: none; padding: 8px 12px; border-radius: 4px; }
header nav a.on { background: var(--senf); color: var(--braun); }
header nav a:hover { color: var(--text); }
header .wer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 600 14px var(--grund); color: var(--leise); }
header form { margin: 0; display: inline-flex; gap: 0; align-items: center; }
header button { font: 600 14px var(--grund); color: var(--braun); background: var(--beige); border: 0; padding: 6px 12px;
  border-radius: 4px; cursor: pointer; }
header form.ansicht-schalter button { background: #5a3a22; color: var(--leise); border-radius: 0; }
header form.ansicht-schalter button:first-of-type { border-radius: 4px 0 0 4px; }
header form.ansicht-schalter button:last-of-type { border-radius: 0 4px 4px 0; }
header form.ansicht-schalter button.on { background: var(--senf); color: var(--braun); }
.inst { padding: 3px 8px; font: 700 12px var(--grund); border-radius: 3px; }
.inst-test { background: var(--senf); color: var(--braun); } .inst-live { background: #c84a2a; color: #fff; }

/* Meldungen nach einer Aktion: ein Zettel oben */
.zettel { max-width: 920px; margin: 10px 0 16px; padding: 10px 16px; border-radius: 3px; font: 600 16px var(--grund);
  background: var(--papier); color: var(--tinte); border-left: 8px solid #3a8a3a; box-shadow: 0 6px 14px #0006; }
.zettel.fehler { border-left-color: #c84a2a; }

/* Register der Kontoseite sind Links */
.kapitel a { display: block; text-align: right; font: 600 16px var(--grund); color: var(--braun); background: var(--senf);
  text-decoration: none; padding: 9px 16px; border-radius: 8px 0 0 8px; margin-right: -2px; box-shadow: inset -6px 0 8px -6px #0005; }
.kapitel a:nth-child(2n) { background: var(--orange); }
.kapitel a:nth-child(3n) { background: #c9b98f; }
.kapitel a.on { background: #f6f3e8; box-shadow: none; }

/* Formulare auf dem Endlospapier: Beschriftung und Feld sauber untereinander */
.seiten form { margin: 0; }
.seiten .feld { display: grid; gap: 4px; max-width: 420px; margin-top: 14px; }
.seiten .feld label { margin: 0; }
.seiten .hinweis { font-size: 14px; color: #6f6250; max-width: 58ch; }
.seiten .wahl { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-weight: 600; }
.seiten .wahl input { width: auto; }
.seiten pre { white-space: pre-wrap; }
.seiten a { color: #8a4a12; }
.seiten .qr { background: #fff; padding: 14px; display: inline-block; margin: 8px 0; }

/* Anmeldung auf dem Monitor: Meldung im Bildschirm */
.innen .meldung { margin: 6px 0 2px; color: #fff; background: #a3423a; padding: 4px 8px; font-size: 22px; }
.innen .meldung.gut { background: #3f7f43; }

/* Öffentliche Seiten (Registrierung, Melden, Datenschutz): ein Blatt Endlospapier */
.blattseite { max-width: 760px; margin: 16px auto 50px; }
.blattseite .seiten { min-height: 0; }
.blattseite h1 { text-shadow: none; }
.blattseite .seiten h1 { font: 400 34px/1.1 var(--schirmschrift); color: var(--tinte); margin: 0 0 12px; }
.blattseite .seiten h2 { font: 400 26px/1.1 var(--schirmschrift); margin: 22px 0 6px; }
.blattseite .seiten label { display: block; margin-top: 14px; font-weight: 600; }
.blattseite .seiten input:not([type=checkbox]) { display: block; width: 100%; max-width: 420px; }
.blattseite .seiten small { display: block; color: #6f6250; font-size: 13px; margin-top: 4px; max-width: 58ch; }
.blattseite .seiten .ok, .blattseite .seiten .err { padding: 8px 12px; border-left: 6px solid #3a8a3a; background: #ffffff88; }
.blattseite .seiten .err { border-left-color: #c84a2a; }
.fuss { text-align: center; padding: 6px 0 22px; font: 14px var(--grund); color: var(--leise); }
.fuss a { color: var(--leise); }

/* Regal: Hinweis, wenn eine Box leer ist; Name der Diskette als Link zum Herunterladen */
.inhalt a.laden { text-decoration: none; display: inline-block; }
.brett + .brett { margin-top: 46px; }
a.knopf { display: inline-block; text-decoration: none; }
.seiten .knopf { margin-top: 18px; }
.blattseite .seiten button { margin-top: 18px; font: 800 16px var(--grund); color: var(--braun); background: var(--senf);
  border: 0; padding: 10px 22px; border-radius: 4px; cursor: pointer; box-shadow: 0 4px 0 #9c6d12; }
.blattseite .seiten button:active { transform: translateY(3px); box-shadow: 0 1px 0 #9c6d12; }
.blattseite .seiten input[type=checkbox] { width: auto; display: inline; margin-right: 6px; }
.unter + .zettel { margin-top: -8px; margin-bottom: 22px; }   /* Meldung direkt unter dem Einleitungstext */

/* Boden: Sockelleiste aus Holz unten an der Wand, darunter der Teppich mit den Links.
   body ist eine Spalte, damit der Boden auch bei kurzen Seiten unten steht. */
body { display: flex; flex-direction: column; }
.boden { margin-top: 40px; }
.boden .sockel { height: 26px; background:
    linear-gradient(#0000 0 4px, #0003 4px 5px, #0000 5px),
    linear-gradient(#b47c45, #8a5a2b 55%, #5e3b1c); box-shadow: 0 -2px 6px #0005; }
.bodenlinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; padding: 22px 16px 34px;
  background: repeating-linear-gradient(45deg, #0000 0 6px, #00000014 6px 7px),
              repeating-linear-gradient(-45deg, #0000 0 9px, #ffffff08 9px 10px),
              linear-gradient(#7a3f19, #6e3818);
  font: 600 14px var(--grund); }
.bodenlinks a { color: #f0d9b5; text-decoration: none; padding: 4px 2px; border-bottom: 1px dashed #f0d9b566; }
.bodenlinks a:hover { color: #fff; border-bottom-color: #fff; }

/* ---------- Startdiskette: große 5¼-Zoll-Diskette als Download-Knopf (seit 0.19.2) ---------- */
.startdisk { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none;
  width: 220px; transition: transform .15s; }
.startdisk:hover, .startdisk:focus-visible { transform: translateY(-6px) rotate(-1deg); }
.startdisk .huelle { display: block; width: 220px; height: 220px; filter: drop-shadow(0 14px 14px #0009); }
.startdisk .aufkleber { font: 800 18px var(--grund); white-space: nowrap; color: var(--braun); background: var(--senf); padding: 10px 20px;
  border-radius: 4px; box-shadow: 0 4px 0 #9c6d12; }
/* auf der Anmeldeseite: neben dem Monitor auf dem Tisch, leicht schräg angelehnt */
.tisch { position: relative; }
.startdisk.auf-tisch { position: absolute; z-index: 2; left: calc(50% + 340px); bottom: 116px; width: 230px; transform: rotate(4deg); }
.startdisk.auf-tisch .huelle { width: 230px; height: 230px; }
.startdisk.auf-tisch:hover, .startdisk.auf-tisch:focus-visible { transform: rotate(2deg) translateY(-6px); }
@media (max-width: 1200px) {
  .startdisk.auf-tisch { position: static; transform: none; order: 9; margin-top: 26px; }
}
/* Seite Startdiskette */
.startseite { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; max-width: 980px; }
.startseite .startdisk { margin-top: 12px; }
.anleitung { min-height: 0; }
.anleitung h2 { font: 400 26px/1.1 var(--schirmschrift); margin: 20px 0 6px; color: var(--tinte); }
.anleitung h2:first-child { margin-top: 0; }
.anleitung ul { margin: 6px 0; padding-left: 22px; }
.schirmzeilen { display: inline-block; margin: 6px 0 8px; padding: 12px 18px; background: var(--c64-schirm);
  color: var(--c64-text); font: 26px/1.25 var(--schirmschrift); border: 6px solid var(--c64-rahmen); border-radius: 6px; }
/* Startprogramm zum Abtippen (seit 0.15.0): vom Nadeldrucker aufs Endlospapier gedruckt, in der
   C64-Schrift, 40 Zeichen breit wie am Bildschirm, eine Zeile je Streifen des Tabellierpapiers */
.abtippliste { margin: 10px 0 4px; padding: 0; background: none; border: 0; width: 40ch; max-width: 100%;
  font: 13px/26px "8bit C64", var(--schirmschrift); color: #2c2b35; opacity: .88;
  white-space: pre-wrap; word-break: break-all; text-shadow: .3px .2px 0 #2c2b3555; }
@media (max-width: 760px) { .startseite { grid-template-columns: 1fr; justify-items: center; } }

/* ---------- Regal: Suche über alle Boxen und Inhalt auf dem Monitor (seit 0.19.3) ---------- */
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Während einer Suche: Boxen ohne Treffer treten zurück, die mit Treffern hüpfen kurz */
.box.ohne { opacity: .42; filter: saturate(.5); transition: opacity .25s, filter .25s; }
.box.treffer .zahl { color: var(--senf); font-weight: 800; }
.box.treffer .szene { animation: huepfen .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes huepfen { 40% { transform: translateY(-10px); } }
/* Knöpfe unter dem Namen, damit lange Namen ganz zu lesen sind (seit 0.19.7) */
.inhalt li { flex-wrap: wrap; }
.inhalt .tun { flex: 1 0 100%; display: flex; gap: 8px; padding-left: 50px; }
.inhalt .tun .laden { text-align: center; }
.zeige { font: 700 13px var(--grund); color: var(--papier); background: var(--c64-schirm); border: 0; padding: 6px 10px;
  border-radius: 3px; cursor: pointer; box-shadow: 0 3px 0 #1d1650; }
.zeige:hover { background: #4b3f9a; }
.zeige:active, .laden:active { transform: translateY(2px); box-shadow: 0 1px 0 #1d1650; }
.inhalt .wer .datei { display: block; font: 17px/1.05 var(--schirmschrift); color: var(--c64-schirm);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inhalt .wer .datei i { font-style: normal; color: #7a6c55; }

/* Der Monitor als Dialog über dem abgedunkelten Raum */
.vorfuehrung { border: 0; padding: 0; background: none; overflow: visible; max-width: none; max-height: none;
  width: min(820px, calc(100vw - 32px), calc((100vh - 200px) * 1.3)); color: var(--text); }
.vorfuehrung::backdrop { background: radial-gradient(ellipse at 50% 45%, #1a0f08aa, #0b0603ee); animation: dunkel .35s ease-out; }
@keyframes dunkel { from { opacity: 0; } }
.vorfuehrung .monitor { width: 100%; transform-origin: 50% 50%; }
.vorfuehrung .rahmen { padding: clamp(10px, 2.6vw, 26px) clamp(12px, 3vw, 30px); }
.vorfuehrung .roehre { border-radius: 34px / 26px; background: radial-gradient(ellipse at 40% 30%, #3a3d3a, #161816 70%);
  box-shadow: inset 0 0 30px #000c; overflow: hidden; }
/* Bild wie am C64: 320 x 200 Punkte, rundherum der Rahmen (zusammen etwa 384 x 272) */
.vorfuehrung .schirm { padding: 8.5% 8.3%; transform-origin: 50% 50%; }
.vorfuehrung:not(.strom) .schirm { opacity: 0; }
.c64-bild { width: 100%; aspect-ratio: 320 / 200; container-type: inline-size; overflow: hidden; background: var(--c64-schirm); }
/* 40 Zeichen x 25 Zeilen in quadratischen Zellen wie das 8x8-Raster des C64, in der Schrift
   aus dem Zeichen-ROM. Lange Verzeichnisse scrollen im Bild; der Text ist normaler Text und
   lässt sich markieren und kopieren. */
.c64 { margin: 0; width: 100%; height: 100%; font: calc(100cqw / 40)/1 "8bit C64", var(--schirmschrift);
  overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--c64-text) var(--c64-schirm);
  color: var(--c64-text); white-space: pre; text-shadow: 0 0 .3em #a59bea55; cursor: text;
  -webkit-font-smoothing: none; }
.c64::selection, .c64 *::selection { background: var(--c64-text); color: var(--c64-schirm); }
.c64 .revers::selection { background: var(--c64-schirm); color: var(--c64-text); }
.c64:focus, .c64:focus-visible { outline: none; }
.c64 .revers { background: var(--c64-text); color: var(--c64-schirm); text-shadow: none; }
.c64 .cursor { background: var(--c64-text); animation: blinken .8s steps(1) infinite; }
.c64 .hinweis { white-space: pre-wrap; color: #fff; }
@keyframes blinken { 50% { background: none; } }
/* Kontrolllampe neben dem Netzschalter: leuchtet, solange der Monitor an ist */
.monitor .led { position: absolute; right: 46px; top: 50%; margin-top: -3px; width: 7px; height: 7px; border-radius: 50%;
  background: #5a1b12; box-shadow: inset 0 1px 1px #0008; }
.vorfuehrung .monitor .typ { right: 64px; }
.vorfuehrung.strom .led { background: #ff4a2a; box-shadow: 0 0 6px 2px #ff4a2a99, inset 0 -1px 1px #0004; }
.vf-knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-top: 22px; }
.vf-knoepfe .laden, .vf-knoepfe .aus { font-size: 15px; padding: 9px 16px; text-decoration: none; }
.aus { font: 700 15px var(--grund); color: var(--braun); background: var(--beige); border: 0; border-radius: 3px;
  cursor: pointer; box-shadow: 0 3px 0 var(--beige-schatten); }
.aus:hover { background: #e8dfc9; }
@media (prefers-reduced-motion: reduce) {
  .box.treffer .szene, .c64 .cursor, .vorfuehrung::backdrop { animation: none; }
}

/* ---------- Ausdruck einer Box: Nadeldrucker mit Endlospapier (seit 0.19.5) ---------- */
.inhalt .drucken { display: block; width: 100%; margin-top: 14px; font: 700 14px var(--grund); color: var(--braun);
  background: var(--beige); border: 0; border-radius: 3px; padding: 8px 12px; cursor: pointer;
  box-shadow: 0 3px 0 var(--beige-schatten); }
.inhalt .drucken:hover { background: #e8dfc9; }
.inhalt .drucken[hidden] { display: none; }
.ausdruck { border: 0; padding: 0; background: none; overflow: visible; max-width: none; max-height: none;
  width: min(720px, calc(100vw - 32px)); }
.ausdruck::backdrop { background: radial-gradient(ellipse at 50% 30%, #1a0f08aa, #0b0603ee); animation: dunkel .25s ease-out; }
/* Nadeldrucker von vorn: beiges Gehäuse, oben der dunkle Deckel, unten der Schlitz, aus dem
   das Papier kommt; der Druckkopf fährt hin und her, solange gedruckt wird */
.drucker { position: relative; z-index: 2; height: 86px; border-radius: 10px 10px 4px 4px;
  background: linear-gradient(#e4dccb, #cfc5b0 65%, #b9ae98); box-shadow: 0 14px 22px #0009, inset 0 2px 0 #fff8; }
.drucker .deckel { position: absolute; left: 8%; right: 8%; top: 8px; height: 26px; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(#5a4c3e, #3d3229); box-shadow: inset 0 2px 0 #ffffff22; }
.drucker .schlitz { position: absolute; left: 6%; right: 6%; bottom: 10px; height: 12px; border-radius: 2px;
  background: #1a1410; box-shadow: inset 0 3px 4px #000; overflow: hidden; }
.drucker .kopf { position: absolute; top: 1px; left: 0; width: 26px; height: 10px; border-radius: 2px;
  background: linear-gradient(#9a9a9a, #5e5e5e); }
.ausdruck.druckt .drucker .kopf { animation: druckkopf .22s ease-in-out infinite alternate; }
@keyframes druckkopf { from { left: 0; } to { left: calc(100% - 26px); } }
.drucker .lampe { position: absolute; right: 9%; top: 46px; width: 8px; height: 8px; border-radius: 50%;
  background: #3fae3f; box-shadow: 0 0 6px 2px #3fae3f88; }
.ausdruck.druckt .drucker .lampe { animation: blinken .3s steps(1) infinite; }
.drucker .typ { position: absolute; left: 9%; top: 44px; font: 700 10px var(--grund); color: #6d6252; letter-spacing: .5px; }
/* Das Papier kommt unter dem Schlitz heraus und läuft nach unten; lange Ausdrucke scrollen */
.papierbahn { position: relative; margin: -14px 8% 0; max-height: calc(100vh - 210px); overflow-y: auto; overflow-x: auto;
  scrollbar-width: thin; scrollbar-color: #b9ae98 #0000; box-shadow: inset 0 14px 12px -10px #0008; }
.papierbahn .seiten { min-height: 100%; padding-top: 26px; box-shadow: none; }
.papier pre { margin: 0; font: clamp(8px, calc((100vw - 190px) / 29), 16px)/1.08 "8bit C64", var(--schirmschrift);
  color: #26262e; white-space: pre; text-shadow: 0 0 .5px #26262e99; opacity: .9; cursor: text; }
.papier pre:focus, .papier pre:focus-visible { outline: none; }
.papier .revers { background: #26262e; color: #f6f3e8; }
/* Name der Diskette über ihrem Verzeichnis, gedruckt wie der Rest, unterstrichen */
.papier .notiz { display: inline-block; padding-bottom: .1em; margin-bottom: .2em; border-bottom: .125em solid #26262e; }
.papier ::selection { background: #e0a52699; }
@media (max-width: 600px) { .papierbahn { margin: -14px 4% 0; } .papierbahn .seiten { --rand: 22px; padding-left: 34px; padding-right: 30px; } }
@media (prefers-reduced-motion: reduce) { .ausdruck.druckt .drucker .kopf, .ausdruck.druckt .drucker .lampe { animation: none; } }
/* Eintrag, zu dem die Sprungleiste gescrollt hat, leuchtet kurz auf (seit 0.19.11) */
.inhalt li.gefunden { animation: gefunden 1.4s ease-out; }
@keyframes gefunden { from { background: #e0a52666; } to { background: #0000; } }
@media (prefers-reduced-motion: reduce) { .inhalt li.gefunden { animation: none; background: #e0a52633; } }

