/* style.css – gemeinsames Design für index.html und pruefung.html (keine externen Schriften) */
:root {
  --navy: #1f3a5f;
  --blau: #2a6fb0;
  --blau-hell: #e8f0f9;
  --hg: #eef2f6;
  --karte: #ffffff;
  --rand: #c9d3df;
  --text: #1c2430;
  --text-leise: #4a5667;
  --ok: #1d6b34;     --ok-hg: #e6f4ea;
  --fehler: #a4262c; --fehler-hg: #fdecea;
  --warn: #6b4300;   --warn-hg: #fff4dc;
  --info-hg: #e8f0f9;
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0; background: var(--hg); color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}
h1 { font-size: 1.8rem; margin: 0 0 .4rem; color: var(--navy); }
h2 { font-size: 1.3rem; margin: 0 0 .6rem; color: var(--navy); }
h3 { font-size: 1.1rem; margin: 0 0 .5rem; color: var(--navy); }
h1:focus, h2:focus { outline: none; }
p { margin: 0 0 .8rem; }
.lead { font-size: 1.1rem; color: var(--text-leise); margin-bottom: 1.2rem; }
.klein { font-size: .9rem; color: var(--text-leise); }

.kopf { background: var(--navy); color: #fff; }
.kopf-in { max-width: 980px; margin: 0 auto; padding: .7rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; }
.kopf-titel { display: flex; flex-direction: column; line-height: 1.25; }
.kopf-titel span { font-size: .9rem; opacity: .85; }
.schritte { list-style: none; display: flex; gap: .4rem; margin: 0; padding: 0; flex-wrap: wrap; }
.schritte li { padding: .25rem .7rem .25rem .3rem; border-radius: 999px; background: rgba(255,255,255,.12); font-size: .9rem; opacity: .8; display: flex; align-items: center; gap: .4rem; }
.schritte li.aktiv { background: #fff; color: var(--navy); opacity: 1; font-weight: 600; }
.schritte li.fertig { opacity: 1; }
.schritte .nr { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.25); font-size: .8rem; }
.schritte li.aktiv .nr { background: var(--navy); color: #fff; }
.schritte li.fertig .nr { background: #4caf6a; color: #fff; }

/* Feststehende Navigationsleiste (Folien und Quiz): "Weiter" immer an derselben Stelle */
.navleiste { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: #fff; border-top: 1px solid var(--rand); box-shadow: 0 -2px 8px rgba(0, 0, 0, .07); }
.navleiste-in { max-width: 980px; margin: 0 auto; padding: .6rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.nav-links, .nav-rechts { display: flex; gap: .6rem; }
.nav-rechts { margin-left: auto; }
.navleiste .btn { min-width: 8.5rem; }
body.mit-nav { padding-bottom: 5rem; }

/* Debug-Leiste */
.debug { background: #fff4dc; border-bottom: 3px dashed #b57a00; color: #5a3a00; padding: .5rem 1rem; display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; font-size: .9rem; }
.debug .btn.klein { min-height: 34px; padding: .2rem .7rem; font-size: .9rem; }
.debug .dbg-feld { display: inline-flex; align-items: center; gap: .35rem; font-weight: 400; margin: 0; }
.debug .dbg-feld input[type=date] { width: auto; padding: .2rem .4rem; font-size: .9rem; }
.debug .dbg-feld input[type=checkbox] { width: 1.05rem; height: 1.05rem; }

main { max-width: 980px; margin: 0 auto; padding: 1.2rem 1rem 2rem; }
.ansicht[hidden], [hidden] { display: none !important; }

.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.box { border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; border: 1px solid transparent; }
.box h2 { font-size: 1.05rem; margin-bottom: .3rem; }
.box ul { margin: .2rem 0 0; padding-left: 1.2rem; }
.box.info { background: var(--info-hg); border-color: #b9cde6; }
.box.neutral { background: #f7f9fb; border-color: var(--rand); }
.box.ok { background: var(--ok-hg); border-color: #a8d5b5; color: #12411f; }
.box.fehler { background: var(--fehler-hg); border-color: #e4a9ac; color: #6d1519; }
.box.warn { background: var(--warn-hg); border-color: #e8cd8f; color: var(--warn); }
.box.ok strong.gross, .box.fehler strong.gross { font-size: 1.25rem; display: block; margin-bottom: .2rem; }

.ablauf { padding-left: 1.3rem; margin: 0 0 .6rem; }
.ablauf li { margin-bottom: .4rem; }

/* Buttons */
.btn {
  display: inline-block; min-height: 44px; padding: .55rem 1.1rem; border-radius: 8px;
  border: 1px solid var(--navy); background: #fff; color: var(--navy);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center;
}
.btn:hover:not([disabled]) { background: var(--blau-hell); }
.btn.primaer { background: var(--navy); color: #fff; }
.btn.primaer:hover:not([disabled]) { background: #2b4d7c; }
.btn.gross { padding: .8rem 1.6rem; font-size: 1.1rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible, select:focus-visible {
  outline: 3px solid #ffbf47; outline-offset: 2px;
}
.leiste { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0; align-items: center; }

/* Folien */
.folien-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.zaehler { color: var(--text-leise); font-size: .95rem; white-space: nowrap; }
progress { width: 100%; height: .7rem; margin: .2rem 0 .8rem; accent-color: var(--blau); }
.folie { margin: 0 0 .8rem; background: #fff; border: 1px solid var(--rand); border-radius: 8px; overflow: hidden; }
.folie { display: flex; justify-content: center; }
.folie img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 17rem); min-height: 12rem; object-fit: contain; }
.textalt { margin-bottom: .6rem; }
.textalt summary { cursor: pointer; color: var(--navy); font-weight: 600; }
.textalt div { background: #fff; border: 1px solid var(--rand); border-radius: 8px; padding: .6rem 1rem; margin-top: .4rem; }
.textalt p { margin: 0 0 .3rem; }
.notiz-titel { font-weight: 600; margin-bottom: .2rem; display: block; }
.notiz-zeile { margin: 0; }

/* Quiz */
.frage { background: var(--karte); border: 1px solid var(--rand); border-radius: 10px; padding: 1rem 1.2rem; margin: 0 0 1rem; }
.frage-text { font-size: 1.25rem; font-weight: 600; line-height: 1.4; color: var(--navy); margin: 0 0 .9rem; padding-bottom: .9rem; border-bottom: 1px solid var(--rand); }
.option { font-weight: 400; display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .8rem; border: 1px solid var(--rand); border-radius: 8px; margin: .5rem 0; cursor: pointer; background: #fff; }
.option:hover { background: var(--blau-hell); }
.option input { margin-top: .3rem; width: 1.15rem; height: 1.15rem; flex: none; accent-color: var(--navy); }
.option.gewaehlt { border-color: var(--navy); background: var(--blau-hell); box-shadow: inset 0 0 0 1px var(--navy); }

/* Auswertung */
.auswertung { margin-top: 1rem; }
.auswertung summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.av { background: #fff; border: 1px solid var(--rand); border-radius: 8px; padding: .8rem 1rem; margin: .6rem 0; }
.av.richtig { border-left: 6px solid #3a9457; }
.av.falsch { border-left: 6px solid #c0383f; }
.av h4 { margin: 0 0 .4rem; font-size: 1rem; }
.av .marke { font-weight: 700; }
.av .marke.richtig { color: var(--ok); }
.av .marke.falsch { color: var(--fehler); }
.av p { margin: .2rem 0; }
.av .btn { min-height: 36px; padding: .25rem .8rem; font-size: .9rem; margin-top: .4rem; }

/* Formular */
.feld { margin-bottom: .8rem; }
label { display: block; font-weight: 600; margin-bottom: .25rem; }
input[type=text], input[type=password], textarea, select {
  width: 100%; padding: .6rem .7rem; font: inherit; border: 1px solid #8795a8; border-radius: 8px; background: #fff; color: var(--text);
}
input.code { font-family: Consolas, "Courier New", monospace; font-size: 1.15rem; font-weight: 700; letter-spacing: .03em; background: #f7f9fb; }
textarea { min-height: 7rem; font-family: Consolas, "Courier New", monospace; font-size: .95rem; }
.fehler { color: var(--fehler); font-weight: 600; margin: .3rem 0 0; }
.termine { padding-left: 1.2rem; }
.termine li { margin-bottom: .3rem; }

.fuss { max-width: 980px; margin: 0 auto; padding: 0 1rem 2rem; color: var(--text-leise); font-size: .85rem; }

/* Prüf-Tool: Ablagefläche für E-Mails */
.dropzone { border: 2px dashed #7d8ea6; border-radius: 12px; background: #f7f9fc; padding: 1.6rem 1rem; text-align: center; cursor: pointer; display: flex; flex-direction: column; gap: .25rem; color: var(--navy); margin-bottom: .6rem; }
.dropzone span { color: var(--text-leise); font-size: .95rem; }
.dropzone:hover, .dropzone.aktiv { background: var(--blau-hell); border-color: var(--navy); }
.dropzone.aktiv { border-style: solid; }

/* Prüf-Tool */
.status { display: inline-block; padding: .15rem .7rem; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.status.ok { background: var(--ok-hg); color: var(--ok); border: 1px solid #a8d5b5; }
.status.warn { background: var(--warn-hg); color: var(--warn); border: 1px solid #e8cd8f; }
.status.fehler { background: var(--fehler-hg); color: var(--fehler); border: 1px solid #e4a9ac; }
.tabwrap { overflow-x: auto; margin-bottom: .6rem; }
table.tab td .status { white-space: nowrap; }
table.tab { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--rand); font-size: .95rem; }
table.tab th, table.tab td { border-bottom: 1px solid var(--rand); padding: .45rem .6rem; text-align: left; vertical-align: top; }
table.tab th { background: #f1f5f9; }
dl.daten { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: .6rem 0 0; }
dl.daten dt { color: var(--text-leise); }
dl.daten dd { margin: 0; font-weight: 600; }

@media (max-width: 600px) {
  html { font-size: 16px; }
  .kopf-in { padding: .6rem .8rem; }
  .btn { width: 100%; }
  .leiste .btn { flex: 1 1 100%; }
  .navleiste .btn { width: auto; min-width: 0; flex: none; padding: .55rem .9rem; }
  .nav-links, .nav-rechts { gap: .4rem; }
  .navleiste-in { padding: .5rem .8rem; flex-wrap: nowrap; }
  .zaehler { white-space: normal; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .option { transition: background .15s, border-color .15s; }
}
@media print {
  .kopf, .leiste, .navleiste, .debug, .btn { display: none !important; }
  body { background: #fff; }
}

.rand { margin: 1rem; }
.fehlertext { color: var(--fehler); font-weight: 600; }

.schmal { max-width: 460px; }
