/* KIOSK V1.0 – Nachbau der Diplomarbeit von 1994.
   Alle Maße in Bildpunkten eines Bildschirms von 1024 × 768; die Bühne skaliert ihn als Ganzes.
   Farben aus den Formulardateien (VB speichert &H00BBGGRR, hier als RGB umgerechnet). */

@font-face { font-family: "Patrick Hand"; src: url("schrift/patrick-hand-latin.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "Nunito"; src: url("../../assets/schrift/nunito-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0b0b0d; color: #d9d4c7; }
body { display: flex; flex-direction: column; font: 15px/1.4 Nunito, system-ui, sans-serif; overflow: hidden; }

.leiste { display: flex; align-items: center; gap: 1rem; padding: .45rem 1rem; background: #17171b; border-bottom: 1px solid #2a2a30; min-height: 2.6rem; }
.leiste a { color: #e9d9a8; 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: #a9a397; font-size: .9rem; }
.leiste button { font: inherit; font-size: .85rem; color: #e9d9a8; background: transparent; border: 1px solid #5a5446; border-radius: 4px; padding: .2rem .7rem; cursor: pointer; }
@media (max-width: 640px) { .leiste p span { display: none; } }
html.eingebettet .leiste { display: none; }

.buehne { position: relative; flex: 1; overflow: hidden; }
.schirm {
  position: absolute; left: 0; top: 0; width: 1024px; height: 768px;
  transform: scale(var(--s, 1)); transform-origin: 0 0;
  background: #000; overflow: hidden; cursor: default;
  user-select: none; -webkit-user-select: none; touch-action: none; -webkit-tap-highlight-color: transparent;
  font-family: "Patrick Hand", "Segoe Print", cursive; color: #000;
}
.schirm *, .schirm *::before, .schirm *::after { box-sizing: border-box; }
.ohne-skript { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 1rem; color: #ddd; font: 22px Nunito, sans-serif; text-align: center; }
.ohne-skript img { width: 900px; height: auto; }

/* Systemschrift von Windows 3.1 und ihre Stellvertreter */
.ms { font-family: "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Arial, sans-serif; }

/* Grundbaustein: absolut gesetztes Objekt; Knöpfe ohne Browser-Aussehen */
.o { position: absolute; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: center; }
button.o { cursor: default; -webkit-appearance: none; appearance: none; }
button.o:focus { outline: none; }
button.o:focus-visible { outline: 3px dotted #fff; outline-offset: 2px; }
.versteckt { display: none !important; }

/* ---------- Kiosk (frmUser) ---------- */
.kiosk { position: absolute; inset: 0; background: #804040 url("bilder/marmor.png") 0 0 repeat; }

/* Sheridan SSPanel: äußere Kante, Rand in Flächenfarbe, innere Kante */
.erhaben { border: 1px solid; border-color: #fff #808080 #808080 #fff; }
.vertieft { border: 1px solid; border-color: #808080 #fff #fff #808080; }

/* Steuerknöpfe: BevelOuter/BevelInner erhaben, BorderWidth 4, Farbe &H0000C0C0 */
.steuer { background: rgb(192,192,0); padding: 4px; font-size: var(--fs, 23px); }
.steuer > span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; white-space: nowrap; overflow: hidden; }
.steuer.unten, .steuer.unten > span { border-color: #808080 #fff #fff #808080; }

/* Themenknöpfe (CreateTouch): PictureBox mit schwarzem Rand, Linien in c0…c3 */
.thema { background: var(--c1); border: 1px solid #000; overflow: hidden; color: var(--tf, #000); }
.thema .titel { position: absolute; left: 0; right: 0; top: 0; border-top: 2px solid var(--c0); border-left: 2px solid var(--c0); border-right: 2px solid var(--c2); display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; line-height: 1; padding-top: 1px; }
.thema .unten { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid #000; }
.thema .unten::before { content: ""; position: absolute; inset: 0; border: 1px solid; border-color: var(--c0) var(--c2) var(--c2) var(--c0); }
.thema .mulde { position: absolute; left: 5px; right: 5px; top: 5px; bottom: 5px; border: 2px solid; border-color: var(--c2) var(--c0) var(--c0) var(--c2); background: var(--c3); padding: 0; display: flex; align-items: center; justify-content: center; }
.thema .mulde img { max-width: calc(100% - 2px); max-height: calc(100% - 2px); display: block; }
.thema.nurtext { border: 1px solid #000; }
.thema.nurtext::before { content: ""; position: absolute; inset: 1px 0 0 0; border: 2px solid; border-color: var(--c0) var(--c2) var(--c2) var(--c0); }
.thema.nurtext .titel { position: absolute; inset: 0; border: 0; white-space: normal; }

/* Rahmen um Bild und Film (frameAusgabe): BevelWidth 2, innen vertieft */
.rahmen { background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; }
.rahmen::after { content: ""; position: absolute; inset: 4px; border: 2px solid; border-color: #808080 #fff #fff #808080; }
.bild { background: #c0c0c0; overflow: hidden; }
.bild img, .bild canvas { display: block; width: 100%; height: 100%; }

/* Textfeld (txtAusgabe): hellgelb &H00E0FFFF, schwarzer Rand */
.textfeld { background: rgb(255,255,224); border: 1px solid #000; overflow: hidden; z-index: 2; }
.textfeld .rolle { position: absolute; left: 0; top: 0; width: 100%; padding: 6px 10px 10px; font-size: 16px; line-height: 1.32; text-align: left; will-change: transform; }
.rolle p { margin: 0 0 .55em; }
.rolle b { font-weight: 700; }
.rolle .tab { display: grid; grid-template-columns: 11em 1fr; }
.rolle pre { margin: 0 0 .55em; font: 15px/1.3 "Courier New", Courier, monospace; }
.rolle ul { margin: 0 0 .55em; padding-left: 1.2em; }
.rolle li { margin: 0 0 .15em; }
.rolle .gross { font-size: 19px; }

.leiste-scroll { background: rgb(64,64,0); z-index: 2; }
.pfeil { z-index: 3; }
.pfeil img { display: block; width: 40px; height: 40px; }
.pfeil.unten img, .taste.unten > *, .hand.unten > * { transform: translate(1px, 1px); }

/* Infozeile: SSPanel, innen vertieft */
.info { background: #eeeeec; border: 1px solid; border-color: #fff #808080 #808080 #fff; padding: 1px; }
.info > span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border: 1px solid; border-color: #808080 #fff #fff #808080; white-space: nowrap; overflow: hidden; }

/* Händerknöpfe (SSCommand mit Bild) */
.hand { background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; box-shadow: inset -1px -1px 0 #a0a0a0; color: rgb(128,64,64); }
.hand.unten { border-color: #808080 #fff #fff #808080; box-shadow: inset 1px 1px 0 #a0a0a0; }
.hand img { position: absolute; left: 50%; top: 9px; margin-left: -33px; width: 67px; height: 98px; }
.hand span { position: absolute; left: 0; right: 0; bottom: 9px; font: 700 18px/1 "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Arial, sans-serif; }
.d3-schwer { text-shadow: -1px -1px 0 #606060, 1px 1px 0 #fff, 2px 2px 0 rgba(255,255,255,.6); }
.d3-leicht { text-shadow: 1px 1px 0 rgba(255,255,255,.95); }

/* ---------- Fenster ohne Titelleiste ---------- */
.sperre { position: absolute; inset: 0; }
.fenster { position: absolute; border: 1px solid #000; }

/* Rückfrage (frmRequest): Rahmen doppelt, Marmor, Titel auf dem dunklen Rand */
.anfrage { border: 3px double #000; background: rgb(255,192,128) url("bilder/dialog-marmor.png") 0 0 no-repeat; font-family: "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Arial, sans-serif; }
.anfrage .a-titel { left: 0; top: 1px; height: 17px; font: 700 13px/17px "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Arial, sans-serif; color: rgb(255,255,224); white-space: nowrap; overflow: hidden; }
.anfrage .a-icon { width: 32px; height: 32px; }
.anfrage .a-text { background: rgb(255,255,224); color: rgb(128,0,0); font: 700 16px/20px "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Arial, sans-serif; white-space: pre-line; text-align: center; padding: 0 2px; }
.knopf { background: #c0c0c0; border: 2px solid; border-color: #fff #808080 #808080 #fff; box-shadow: inset -1px -1px 0 #a0a0a0; color: rgb(128,64,64); font: 700 24px/1 "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Arial, sans-serif; white-space: nowrap; }
.knopf > span { display: block; }
.knopf.unten { border-color: #808080 #fff #fff #808080; box-shadow: inset 1px 1px 0 #a0a0a0; }
.knopf.unten > span { transform: translate(1px, 1px); }

/* Startbild (frmStartup) */
.start { background: rgb(224,224,224) url("bilder/startbild.png") 0 0 no-repeat; }
.start .lese { left: 24px; top: 104px; color: rgb(192,255,192); font: 13px "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Arial, sans-serif; text-align: left; }

/* ---------- Tastatur (frmKeyboard) ---------- */
.tastatur { background: rgb(190,191,162); }
.anzeige { left: 0; top: 0; height: 36px; background: #404040; border: 1px solid #000; color: rgb(128,255,128); font: 32px/34px "Courier New", Courier, monospace; text-align: left; white-space: pre; overflow: hidden; padding-left: 1px; }
.taste { width: 42px; height: 43px; }
.taste img { position: absolute; left: 1px; top: 1px; }
.taste span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 18px/1 "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Arial, sans-serif; color: #000; }
.taste-gross img { left: 2px; top: 2px; }

/* ---------- Suche (frmIndex) ---------- */
.index { background: rgb(190,191,162); font-family: "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Arial, sans-serif; }
.index .feld { font: 13px/16px "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Arial, sans-serif; text-align: left; }
.liste { background: #fff; border: 1px solid #000; overflow: hidden; font: 700 16px/20px "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Arial, sans-serif; text-align: left; }
.liste.kursiv { font-style: italic; }
.liste div { height: 20px; padding: 0 3px; white-space: nowrap; overflow: hidden; }
.liste div.an { background: #000080; color: #fff; }
.index .gruen { background: rgb(0,128,0); }
.gehezu { background: rgb(192,192,0); padding: 4px; font: 13px/16px "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Arial, sans-serif; }
.gehezu > span { display: grid; grid-template-columns: 1fr 1fr; align-content: center; justify-items: center; width: 100%; height: 100%; }
.gehezu.unten, .gehezu.unten > span { border-color: #808080 #fff #fff #808080; }

/* ---------- Programmende ---------- */
.ende { position: absolute; inset: 0; display: grid; place-content: center; gap: 22px; color: #aaa; font: 20px "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Arial, sans-serif; text-align: center; }
.ende .knopf { position: relative; padding: 14px 26px; font-size: 20px; justify-self: center; }
