.instructions {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
    text-align: justify;
    padding: 0 1rem;
  }

  .instructions ul {
    margin-left: 2em;
    padding-left: 1em;
    list-style-type: disc;
  }

  .instructions p {
    margin-bottom: 1em;
  }

  .jspsych-btn {
  background-color: #1abc9c;        /* Frisches Türkis-Grün */
  color: #ffffff;                   /* Weißer Text */
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.jspsych-btn:hover {
  background-color: #16a085;        /* Etwas dunkler für den Hover‐Effekt */
  transform: translateY(-1px);      /* Leichte „Hebe“-Animation */
}

.jspsych-btn:active {
  background-color: #117a65;        /* Noch dunkler beim Klicken */
  transform: translateY(0);         /* Rückkehr zum „Standard-Raster“ */
}

.jspsych-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.5); /* Dezenter Fokus-Ring */
}

@media (max-width: 600px) {
  /* Container-Padding für etwas Randabstand */
  .instructions {
    padding: 0 1rem;      /* 16px innen links/rechts */
    font-size: 16px;      /* statt 18px auf großen Bildschirmen */
    line-height: 1.6;
  }

  .jspsych-btn {
    display: block;            /* eigener Block */
    width: 80%;                /* 80% des Containers */
    max-width: 300px;          /* optional: nie breiter als X */
    margin: 0.5rem auto !important;     /* 0.5rem oben/unten, auto → zentriert */
    text-align: center;        /* Text mittig */
    
    padding: 10px 16px;
    font-size: 0.9rem;
    white-space: normal;
    word-break: break-word;
  }

  /* Dropdowns und Email-Input mobilfreundlich */
 /* Datum-/Zeit-Inputs auf 80% Breite, zentriert */
  .jspsych-survey-html-form input[type="date"],
  .jspsych-survey-html-form input[type="time"],
  .jspsych-survey-html-form input[type="datetime-local"],
  .jspsych-survey-html-form input[type="datetime"] {
    display: block;           /* eigener Block */
    width: 80% !important;    /* 80% des Containers */
    margin: 0.5rem auto;      /* zentriert mit vertikalem Abstand */
    font-size: 1rem;          /* anpassbare Schriftgröße */
  }

  /* Dropdowns und Email-Input ebenfalls auf 80% */
  .jspsych-survey-html-form select,
  .jspsych-survey-html-form input[type="email"] {
    display: block;
    width: 80% !important;
    margin: 0.5rem auto;
    font-size: 1rem;
  }

  /* Größere Checkbox-Touchfläche (Typo korrigiert!) */
  .jspsych-survey-html-form input[type="checkbox"] {
    transform: scale(1.3);
    margin-right: 12px;
  }
}
