/* Midgard WebClient fuer Blinde: schlicht, gross, kontrastreich. Gestaltet
   fuer Sehbehinderte und sehende Begleiter; der Screenreader braucht davon
   nichts. Farben folgen der Einstellung des Systems (hell oder dunkel). */

:root {
  color-scheme: dark light;
  --grund: #0b0f15;
  --text: #f2f2f2;
  --leise: #b8c0cc;
  --rand: #5a6575;
  --akzent: #ffd257;
  --feld: #151b24;
}

@media (prefers-color-scheme: light) {
  :root {
    --grund: #ffffff;
    --text: #111111;
    --leise: #444444;
    --rand: #777777;
    --akzent: #7a4f00;
    --feld: #f4f4f4;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 60rem;
  padding: 1rem;
  background: var(--grund);
  color: var(--text);
  font: 1.125rem/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

h1 { font-size: 1.5rem; margin: 0 0 .5rem; color: var(--akzent); }
h2 { font-size: 1.25rem; margin: 1.5rem 0 .5rem; color: var(--akzent); }
#kurzhilfe { margin: 0 0 1rem; color: var(--leise); }

a { color: var(--akzent); }
code { font-size: 1em; }

:focus-visible {
  outline: 3px solid var(--akzent);
  outline-offset: 2px;
}

/* Nur fuer Screenreader: unsichtbar, aber im Accessibility-Baum */
.nur-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

#verlauf {
  height: 60vh;
  min-height: 12rem;
  overflow-y: auto;
  padding: .5rem .75rem;
  border: 1px solid var(--rand);
  border-radius: 4px;
  background: var(--feld);
  overflow-wrap: anywhere;
}

#verlauf .meldung { margin: 0 0 .6rem; }
#verlauf p { margin: 0; }
#verlauf .absatz { margin-top: .6rem; }
#verlauf .eigen { color: var(--akzent); }
#verlauf .client { color: var(--leise); font-style: italic; }

#eingabe {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin-top: .75rem;
}

#eingabe label { font-weight: bold; }

#befehl {
  flex: 1 1 8rem;
  min-width: 0;
  padding: .5rem .6rem;
  font: inherit;
  color: var(--text);
  background: var(--feld);
  border: 2px solid var(--rand);
  border-radius: 4px;
}

#eingabe button {
  padding: .5rem 1rem;
  font: inherit;
  color: var(--grund);
  background: var(--akzent);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

footer { margin-top: 1rem; }
footer ul { padding-left: 1.25rem; }
footer li { margin: .25rem 0; }
