@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --grund: #f6f4ef; --flaeche: #ffffff; --text: #111111; --leise: #3d3d3d; --linie: #8a8a8a;
  --akzent: #0b4f8a; --akzent-text: #ffffff; --fokus: #c2410c; --hinweis: #fff4cc; --fehler: #9b1c1c;
  --schrift: 1.25rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-kontrast="hoch"]) {
    --grund: #121417; --flaeche: #1c2026; --text: #f2f2f2; --leise: #cfcfcf; --linie: #7a8088;
    --akzent: #7cc4ff; --akzent-text: #0b1520; --fokus: #ffb020; --hinweis: #2e2a14; --fehler: #ff9b9b;
  }
}
:root[data-kontrast="hoch"] {
  --grund: #000000; --flaeche: #000000; --text: #ffff00; --leise: #ffff00; --linie: #ffff00;
  --akzent: #ffff00; --akzent-text: #000000; --fokus: #00ffff; --hinweis: #000000; --fehler: #ffffff;
}
:root[data-schrift="gross"] { --schrift: 1.6rem; }

* { box-sizing: border-box; }
html { background: var(--grund); }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font-family: "Atkinson Hyperlegible", Verdana, Arial, sans-serif; font-size: var(--schrift); line-height: 1.55;
}
a { color: var(--akzent); text-underline-offset: 0.2em; }
:focus-visible { outline: 4px solid var(--fokus); outline-offset: 3px; }

.sprung { position: absolute; left: 1rem; top: -10rem; background: var(--akzent); color: var(--akzent-text); padding: 0.6rem 1rem; z-index: 10; }
.sprung:focus { top: 1rem; }

.kopf { border-bottom: 3px solid var(--linie); background: var(--flaeche); }
.kopf-innen, main, .fuss { max-width: 1240px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.kopf-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; padding-top: 0.8rem; padding-bottom: 0.8rem; }
.marke { margin: 0; font-weight: 700; font-size: 1.15em; }
.marke span { font-weight: 400; color: var(--leise); margin-left: 0.3em; }
.darstellung { display: flex; flex-wrap: wrap; gap: 0.5rem; }

button {
  font: inherit; font-size: 0.95em; min-height: 48px; padding: 0.45rem 1rem; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--text); background: var(--flaeche); color: var(--text);
}
button[aria-pressed="true"] { background: var(--text); color: var(--grund); }
button.haupt { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); font-weight: 700; font-size: 1.05em; padding: 0.7rem 1.8rem; min-height: 56px; }
button:disabled { opacity: 0.6; cursor: wait; }

main { padding-top: 1.5rem; padding-bottom: 2rem; }
main:focus { outline: none; }
h1 { font-size: 2em; line-height: 1.2; margin: 0.3em 0 0.5em; }
h2 { font-size: 1.35em; margin: 0 0 0.6em; }
h3 { font-size: 1.1em; margin: 1.2em 0 0.3em; }
.einleitung { max-width: 62em; }
.hinweis { background: var(--hinweis); border-left: 6px solid var(--akzent); padding: 0.7rem 1rem; max-width: 62em; }

.raster { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 1000px) { .raster { grid-template-columns: 1fr 1fr; } }
.karte { background: var(--flaeche); border: 2px solid var(--linie); border-radius: 12px; padding: 1.3rem 1.4rem; }

fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 0.4rem; }
.wahl { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.3rem 0; }
.wahl.reihe { display: inline-flex; margin-right: 1.4rem; }
.wahl input { width: 1.4em; height: 1.4em; margin: 0.12em 0 0; flex: none; accent-color: var(--akzent); }
.wahl label { cursor: pointer; }
.zusatz { color: var(--leise); }
.unteroptionen fieldset { border-top: 2px solid var(--linie); padding-top: 0.8rem; }

.feld { margin-top: 0.8rem; }
.feld label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.hilfe { color: var(--leise); margin: 0 0 0.5rem; font-size: 0.92em; }
input[type="file"] { font: inherit; font-size: 0.95em; max-width: 100%; }
textarea { width: 100%; font: inherit; padding: 0.6rem; border: 2px solid var(--linie); border-radius: 8px; background: var(--grund); color: var(--text); }
.beispiel-link { margin: 0.3rem 0 0; }

.absenden { margin-top: 1.5rem; }
.status { margin-top: 1rem; font-weight: 700; min-height: 1.6em; }
.fehler { margin-top: 0.5rem; color: var(--fehler); font-weight: 700; }

.ergebnis { margin-top: 2rem; background: var(--flaeche); border: 3px solid var(--akzent); border-radius: 12px; padding: 1.3rem 1.4rem; }
.ergebnis h2:focus { outline: none; }
.dateien { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.dateien li { border: 2px solid var(--linie); border-radius: 10px; padding: 0.9rem 1rem; }
.dateien h3 { margin-top: 0; }
.dateien audio { width: 100%; max-width: 720px; margin: 0.4rem 0; }
.aktionen { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 0.3rem; }
.braille { font-size: 1.6em; line-height: 1.35; background: var(--grund); border: 2px solid var(--linie); border-radius: 8px; padding: 0.8rem; overflow-x: auto; white-space: pre; }
.text-erkannt { margin-top: 1.2rem; }
.text-erkannt summary { cursor: pointer; font-weight: 700; }
.text-erkannt pre { white-space: pre-wrap; font-family: inherit; background: var(--grund); padding: 0.8rem; border-radius: 8px; border: 2px solid var(--linie); }

.fuss { border-top: 2px solid var(--linie); padding-top: 1rem; padding-bottom: 2rem; color: var(--leise); font-size: 0.9em; }
