/* Wrapper */
.form-wrapper {

  border: 2px solid #007bff;
  border-radius: 8px;   
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
  padding: 16px;
  background: #fff;             
  max-width: 800px;
  margin: 0 auto;
}

.form-messages {
    width: 100%;
    background-color: rgba(173, 216, 241, 0.453);
    text-align: center;
}

.form-wrapper form {
  display: grid;
  /*grid-template-columns: max-content 1fr;*/
  grid-template-columns: minmax(max-content, 20%) 1fr;
  gap: 8px 12px;  
  width: 100%;
  margin-top: 10px;
}



/* Jede Zeile: contents, damit Grid-Spalten übernommen werden */
.form-inputs {
  display: contents;
}


/* Label-Spalte (Linksbündig, Abstände, Textformat) */
.form-label-column {
  justify-self: start;   
  padding-right: 8px;
  white-space: nowrap;
  font-weight: bold;
  /*padding: 0 0 0 5%;*/
  padding-left: clamp(5px, 1vw, 10px);
  /* Vertikale Ausrichtung */
  display: flex;
  align-items: center; 
}

.form-label-text {
  color: black;
}


/* Input-Spalte */
.form-input-column {
  min-width: 0; 
  padding: 0 2% 0 0;
}

/* Submit-Zeile über beide Spalten */
.form-submit-row {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;     /* 🔥 entscheidend */
  align-items: center;        /* horizontal zentriert */
  padding-top: 15px;
}

.form-input-action-wrap {
  background-color: none;
}


.form-input-action-link {
    border: none;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    cursor: pointer;
    padding: 2px 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background-color: #039ee6;
}


.form-input-action-link:hover {
    background-color: #027ec0;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}




/* Dropdowns */
.form-input-select {
  min-width: 150px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 2px solid #007bff;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,123,255,0.5); 
  transition: all 0.3s ease-in-out;
  align-self: normal;
  text-align: center;
}

/* Textboxen */
.form-input-textbox {
  width: 100%;           /* volle Spalte */
  /*min-width: 150px;*/
  min-width: 0;
  box-sizing: border-box;
  padding: 10px;
  border: 2px solid #007bff;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,123,255,0.5); 
  transition: all 0.3s ease-in-out;
  align-self: stretch;   /* sorgt für volle Breite */
  text-align: center;
}

/* Textarea */
.test-answer-input-textarea {
  width: 100%;        
  /*min-width: 150px;*/
  min-width: 0;
  box-sizing: border-box;
  padding: 10px;
  border: 2px solid #007bff;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,123,255,0.5); 
  transition: all 0.3s ease-in-out;
  min-height: 100px;
  resize: vertical;
  align-self: stretch;  
  text-align: center; 
}

/* Textbox / textarea Fokus */
.test-answer-input-column input:focus,
.test-answer-input-column textarea:focus {
  border-color: #fff;
  box-shadow: 0px 4px 10px 0px #fff, 0px 0px 3px 0px #fff;
}