body {
  margin: 0;
  background: #f4f1ea;
  color: #1c1a17;
  font-family: system-ui, sans-serif;
  font-size: 100%;
  line-height: 1.45;
  padding:
    env(safe-area-inset-top)
    env(safe-area-inset-right)
    env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}

.jspsych-display-element {
  font-family: inherit;
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.125rem);
}

.jspsych-content-wrapper {
  width: 100%;
  min-width: 0;
}

.jspsych-content {
  width: min(42rem, 100%);
  max-width: 42rem;
  min-width: 0;
  text-align: left;
  box-sizing: border-box;
  padding: 0 clamp(0.75rem, 3vw, 1.25rem) 1.5rem;
}

.jspsych-content h1 {
  font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem);
  line-height: 1.2;
  margin: 0 0 0.8rem;
}

#jspsych-progressbar-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(42rem, 100%);
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0.7rem clamp(0.75rem, 3vw, 1.25rem) 0.15rem;
  gap: 0.4rem;
}

#jspsych-progressbar-container span {
  padding: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}

#jspsych-progressbar-outer {
  margin: 0;
  width: 100%;
  max-width: none;
  flex: none;
  height: 0.7rem;
  border-radius: 999px;
  overflow: hidden;
}

#jspsych-progressbar-inner {
  height: 100%;
  border-radius: inherit;
}

.motiv {
  margin: 0 0 0.35rem;
}

.motiv img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 28rem);
  object-fit: contain;
  object-position: center top;
  background: #e7e2d8;
}

.hinweis {
  margin: 0.4rem 0 0;
  font-weight: 650;
}

.jspsych-content.seite-foto .frage {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0.15rem 0 0.7rem;
}

.zeile {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
  min-width: 0;
}

.zeile legend,
.frage {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 650;
  line-height: 1.3;
}

.guete {
  width: min(100%, 36rem);
}

.guete .skala {
  max-width: none;
}

.skalen-titel {
  width: 100%;
  margin: 0 0 0.2rem;
  padding: 0;
  text-align: center;
}

.skala {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  max-width: 36rem;
}

.anker {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: clamp(0.75rem, 0.4vw + 0.7rem, 0.9rem);
  line-height: 1.25;
}

.anker span {
  max-width: 46%;
}

.anker span:last-child {
  text-align: right;
}

.punkte {
  display: flex;
  width: 100%;
}

.punkt {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.15rem 0;
  font-size: clamp(0.68rem, 1.6vw, 0.85rem);
  font-variant-numeric: tabular-nums;
  touch-action: manipulation;
}

.punkt input,
.wahl input {
  width: clamp(1.05rem, 2.4vw, 1.25rem);
  height: clamp(1.05rem, 2.4vw, 1.25rem);
  margin: 0;
  flex: 0 0 auto;
}

.wahl {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  margin: 0;
  touch-action: manipulation;
}

.fehler {
  color: #8a1f11;
}

.platzhalter {
  margin: 0;
  padding: 0.55rem 0.8rem;
  background: #8a1f11;
  color: #fff;
  text-align: center;
}

#datenschutz-lage {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: auto;
  background: #f4f1ea;
}

.schluss {
  width: min(38rem, 100%);
  margin: 2rem auto;
  padding: 0 clamp(0.75rem, 3vw, 1.25rem);
  box-sizing: border-box;
}

input[type="text"],
input:not([type="radio"]) {
  font: inherit;
  font-size: 1rem;
  padding: 0.55rem 0.6rem;
  width: min(12rem, 100%);
  max-width: 100%;
  box-sizing: border-box;
}

form.tor {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 20rem;
}

form.tor input,
form.tor .jspsych-btn {
  width: 100%;
  max-width: none;
}

textarea.vermutung {
  font: inherit;
  font-size: 1rem;
  width: 100%;
  min-height: 7rem;
  padding: 0.55rem 0.6rem;
  box-sizing: border-box;
  resize: vertical;
}

#jspsych-survey-html-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#jspsych-survey-html-form > .jspsych-btn {
  align-self: flex-start;
  width: min(20rem, 100%);
  max-width: none;
}

.jspsych-content.seite-alter {
  text-align: center;
}

.jspsych-content.seite-alter #jspsych-survey-html-form {
  align-items: center;
}

.jspsych-content.seite-alter #jspsych-survey-html-form > .jspsych-btn,
.jspsych-content.seite-alter .frage {
  align-self: center;
  text-align: center;
}

.jspsych-content.seite-foto #jspsych-survey-html-form > .jspsych-btn {
  align-self: center;
  margin-top: 1.4rem;
}

#jspsych-survey-html-form input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]) {
  width: min(20rem, 100%);
}

.jspsych-btn {
  font: inherit;
  display: block;
  margin: 0.8rem 0 0;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  width: 100%;
  max-width: 20rem;
  touch-action: manipulation;
}

.seite-aufklaerung .jspsych-btn {
  background: #2f5d50;
  color: #fff;
  border: 0;
  font-weight: 650;
}

.knoepfe {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.knoepfe .jspsych-btn {
  width: min(20rem, 100%);
}

.knoepfe .jspsych-btn.zweit {
  width: auto;
  min-width: 8rem;
  background: transparent;
}
