.honeypot {
  position: absolute;
  left: -9999px;
}

form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 90%;
  column-gap: 10px;
  margin-inline: auto;
  margin-top: 5px;
}

.btn-container-form {
  margin-block: 20px;
}

.kategorie {
  width: 100%;
  display: flex;
  justify-content: center;
}

.field {
  font-family: "Rand-Bold";
  font-size: 14px;
  width: 100%;
  min-width: 253px;
  justify-self: center;
  max-width: 253px;
}

.field:has(textarea) {
  max-width: 700px;
  max-height: auto;
}

.field textarea {
  width: 100%;
  /* height: 35px; */
  min-height: 35px; /* Start-Höhe */

  /* Der Zauber-Code: */
  field-sizing: content;
}

.checkbox-field {
  width: 100%;
  min-width: 253px;
  justify-self: center;
  align-items: center;
  max-width: 100%;
  padding-block: 25px 15px;
}

.submit-field {
  margin-inline: 100%;
  margin-top: 20px;
}

#checkbox-group {
  display: flex;
  flex-wrap: wrap;
  /* flex-direction: column; */
  align-items: center;
  justify-content: center;
  row-gap: 5px;
}

.option-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-left: 20px;
  opacity: 0.3;
  transition: all 0.3s ease;
  &:hover {
    opacity: 1;
  }
}

.round-checkbox {
  appearance: none;
  width: 15px;
  height: 15px;
  border: var(--border-mobile) solid #000;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  vertical-align: text-top;
  margin-right: 5px;
}

label {
  padding-left: 0px;

  width: fit-content;
}

.option-container:has(.round-checkbox:checked) {
  opacity: 1;
}

.round-checkbox:checked {
  background-color: #000;
}
.checkbox-label {
  display: flex;
  align-items: center;
}

.form-btn {
  cursor: pointer;
}

.form-container {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-container.show {
  display: block;
  opacity: 1;
}

.field {
  align-items: baseline;
}

.klassenprojekt {
  display: block; /* Standardmäßig sichtbar */
}

.einzelprojekt {
  display: none; /* Standardmäßig ausgeblendet */
}

#form-btn-klassenprojekt {
  opacity: 1; /* Standardmäßig aktiver Button */
}

#form-btn-einzelprojekt {
  opacity: 0.3; /* Standardmäßig inaktiver Button */
}
.form-btn {
  transition: opacity 0.3s ease;
}

.form-btn:hover {
  opacity: 1 !important;
}

textarea {
  background: none;
  -webkit-transition: 0.5s;
  transition: 0.5s;
  outline: none;
  border: var(--border-mobile) solid rgba(0, 0, 0, 1) !important;
  transition: all 0.3s ease;
}

.field:has(textarea) label {
  opacity: 0.3;
  padding-top: 10px;
}
.field textarea:hover + label {
  opacity: 1;
}

input[type="text"],
input[type="email"] {
  background: none;
  -webkit-transition: 0.5s;
  transition: 0.5s;
  outline: none;
  border: var(--border-mobile) solid rgb(0, 0, 0) !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border: var(--border-mobile) solid rgb(0, 0, 0) !important;
}

input[type="text"]:valid,
input[type="email"]:valid,
textarea:valid {
  background: rgb(239, 239, 239);
  border: var(--border-mobile) solid rgb(0, 0, 0) !important;
}

input[type="text"]:hover,
input[type="email"]:hover,
textarea:hover {
  background: rgb(239, 239, 239);
  border: var(--border-mobile) solid rgb(0, 0, 0) !important;
  color: black !important;
}

input:hover::placeholder,
input:focus::placeholder,
textarea:hover::placeholder,
textarea:focus::placeholder {
  color: black;
}

input[type="submit"] {
  background-color: rgba(239, 239, 239, 0);
  color: black;
  font-weight: normal;
  text-decoration: none;
  border: var(--border-mobile) solid black !important;
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="submit"]:hover {
  background-color: rgb(0, 0, 0);
  color: white;
}

input[type="email"]:-webkit-autofill {
  background-color: transparent; /* oder eine andere Farbe */
  /* Andere Stile hier */
}

input[type="email"]:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px rgb(239, 239, 239) inset;
  /* So überschreibst du die Autofill-Hintergrundfarbe komplett */
}

@media (max-width: 900px) {
  form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 90%;
    gap: 0px;
    margin-inline: auto;
    margin-top: 5px;
  }

  .option-container {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    max-width: 253px;
  }

  .field .btn-link {
    width: 100%;
    min-width: 100%;
    justify-self: center;
    max-width: 100%;
  }

  #checkbox-group {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 20px;
    text-align: center;
    line-height: 20px;
    padding-block: 20px;
  }
}

.form-section-title {
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-family: "Rand-Bold";
  /* line-height: 14px; */
  letter-spacing: 0.01em;
  margin-top: 30px;
  margin-bottom: 0px;
}

.field-message {
  max-width: 520px;
  flex-basis: 100%;
}

/* Modal for form alerts */
.ym-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 239, 239, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Respect the HTML hidden attribute */
.ym-modal-overlay[hidden] {
  display: none !important;
}

.ym-modal {
  text-align: center;
  width: min(520px, calc(100% - 40px));
  border: var(--border-mobile) solid rgb(0, 0, 0);
  background: rgb(239, 239, 239);
  padding: 18px;
  font-family: "Rand-Bold";
  display: flex;
  flex-direction: column;
}

.ym-modal-title {
  text-align: center;
  margin-bottom: 10px;
}

.ym-modal-body {
  font-family: "Rand-Medium";
  font-size: 14px;
  line-height: 1.35;
}

.ym-modal-body p {
  margin: 8px 0;
}

.ym-modal-close {
  float: right;
  border: var(--border-mobile) solid rgb(0, 0, 0) !important;
  background: rgba(239, 239, 239, 0);
  border-radius: 50px;
  min-width: 253px;
  max-width: fit-content;
  padding-inline: 20px;
  padding-block: 8px;
  margin-top: 16px;
  text-align: center;
  cursor: pointer;
  margin-inline: auto;
}
