@charset "utf-8";
/* Neuroprofil. Baut auf typbestimmung/typstyle.css auf (Schriften, Farben, Kopf mit Schalter, grüner Textblock, Buttons,
   Auswahlkreise, Fortschrittsanzeige, Dunkelmodus) und ergänzt nur, was der Test selbst braucht.
   Reihenfolge im Head: typstyle.css, dann diese Datei. */

:root {
  --zebra: #f2f2f2;
}
html.dark-mode {
  --zebra: rgba(255, 255, 255, .06);
}

/* ---------- Seite ---------- */
main {
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 0 20px;
}
main p {
  padding: 6px 20px;
}
main ol.schritte {
  margin: 6px 20px 14px;
  padding-left: 22px;
}
/* typstyle.css setzt strong als Block mit Polster, hier soll es normaler Fettdruck sein */
main strong {
  display: inline;
  padding: 0;
  font-size: inherit;
  font-weight: 600;
}
main ol.schritte li {
  margin: 4px 0;
  font-size: 16px;
  font-weight: 600;
}

main h1,
main h2,
main h3,
main h4 {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: #009900;
  margin: 30px 20px 14px;
  padding: 0;
}
main h1 { font-size: clamp(30px, 6vw, 40px); margin-top: 24px; }
main h2 { font-size: 27px; }
main h3 { font-size: 21px; }
main h4 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  margin-top: 34px;
}
html.dark-mode main h1 { color: var(--heading); }

/* Grüner Balken über den drei Empfehlungen im Ergebnis */
main .balken {
  background: #009900;
  color: #fff;
  padding: 20px;
  margin: 60px 0 24px;
  border-radius: 6px;
  font-size: 27px;
  line-height: 1.2;
}
html.dark-mode main .balken { background: var(--slab); color: var(--heading); }

/* ---------- Aussagen ----------
   Eine Zeile je Aussage: links der Text, rechts „ja, stimmt“ und „stimmt nicht“. Die Farben der Zeilen (marin, sencha) und der
   Auswahlkreis kommen aus typstyle.css, auch im Dunkelmodus. */
main .checkliste {
  display: block;
  margin: 0;
  padding: 0;
  float: none;
  list-style: none;
}
main .checkliste > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  width: 100%;
  margin: 0 0 6px;
  padding: 8px 12px 8px 20px;
  border-radius: 6px;
  float: none;
}
main .checkliste .frage {
  display: block;
  flex: 1 1 280px;
  width: auto;
  max-width: 460px;
  min-height: 0;
  padding: 4px 0;
  line-height: 1.45;
}
main .checkliste .antwort {
  display: flex;
  flex: none;
  gap: 8px;
  float: none;
  width: auto;
}
main .checkliste .stimmt,
main .checkliste .falsch {
  display: block;
  float: none;
  width: auto;
  height: auto;
  margin: 0;
  line-height: 1.3;
  border-radius: 6px;
  background: rgba(0, 0, 0, .05);
}
html.dark-mode main .checkliste .stimmt,
html.dark-mode main .checkliste .falsch { background: rgba(255, 255, 255, .08); }

main .checkliste label {
  display: block;
  position: relative;
  min-height: 40px;
  margin: 0;
  padding: 9px 14px 9px 44px;
  line-height: 22px;
  white-space: nowrap;
  border-radius: 6px;
  cursor: pointer;
}
main .checkliste .checkradio {
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}
main .checkliste label:has(input:checked) {
  box-shadow: inset 0 0 0 2px #009900;
}
html.dark-mode main .checkliste label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--green); }

main p.clear { padding: 0; height: 12px; }

/* Links im Text: Farbe des Textes, unterstrichen (Buttons ausgenommen) */
main p a:not(.smallbtn),
main li a,
main article a {
  color: inherit;
  text-decoration: underline;
}
main p a:not(.smallbtn):hover,
main li a:hover,
main article a:hover { text-decoration: none; }

/* ---------- Fortschrittsanzeige mit drei Schritten (Teil 1, Teil 2, Ergebnis) ---------- */
.progressbar.drei li { width: 33.333%; }
@media (max-width: 450px) {
  .progressbar.drei li { font-size: 12px; }
  .progressbar.drei { height: 70px; }
}

/* ---------- Ergebnis ---------- */
main .chart {
  display: block;
  width: auto;
  margin: 6px 20px 10px;
}
main .chart tbody { display: block; }
main .chart tr {
  display: grid;
  grid-template-columns: 8.5rem 2.2rem minmax(0, 15rem);
  align-items: center;
  gap: 0 10px;
  padding: 4px 0;
  background: none;
}
main .chart td {
  width: auto;
  padding: 0;
}
main .chart td:nth-child(2) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
main .chart .bar {
  display: block;
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(0, 153, 0, .14);
}
main .chart .bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p, 0%);
  border-radius: 6px;
  background: #7fc67f;
}
main .chart tr:first-child .bar i { background: #009900; }
main .chart tr:first-child td:first-child { font-weight: 600; }
html.dark-mode main .chart .bar { background: rgba(255, 255, 255, .1); }
html.dark-mode main .chart .bar i { background: #4f7f3a; }
html.dark-mode main .chart tr:first-child .bar i { background: var(--green); }

.schaubild {
  display: block;
  width: calc(100% - 40px);
  max-width: 480px;
  height: auto;
  margin: 30px 20px;
  border-radius: 6px;
}

main table:not(.chart) {
  display: block;
  width: 100%;
  border-collapse: collapse;
}
main table:not(.chart) tr:nth-child(even) { background: var(--zebra); }
main table:not(.chart) td {
  padding: 6px 10px;
  text-align: left;
  vertical-align: top;
}

#quelle { padding-top: 24px; }

@media (max-width: 800px) {
  main .balken { border-radius: 0; font-size: 24px; }
  .schaubild { margin: 30px auto; }
  main table:not(.chart) { width: 96%; margin: 0 auto; }
}

@media (max-width: 600px) {
  main .checkliste > li {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 14px 12px;
  }
  main .checkliste .frage { flex: none; max-width: none; }
  main .checkliste .antwort { width: 100%; }
  main .checkliste .stimmt,
  main .checkliste .falsch { flex: 1; }
  main .checkliste label { white-space: normal; }
}

@media (max-width: 450px) {
  main .checkliste > li { border-radius: 0; }
  .schaubild { width: 100%; margin: 30px 0; border-radius: 0; }
  main .chart tr { grid-template-columns: 6.8rem 2rem minmax(0, 1fr); }
}
