/**
 * Format-Anweisungen die in der Datei kontakt/nachricht.php gebraucht werden.
*/  

.contact-form {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}

.contact-form fieldset {
  border: 1px solid #d8d8d8;
  border-radius: 16px;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.contact-form legend {
  padding: 0 .6rem;
  font-size: 1.7rem;
  font-weight: 700;
  color: #333;
}

.form-note {
  margin: 0 0 1.5rem;
  padding: .75rem 1rem;
  background: #fafafa;
  border-left: 4px solid #DC143C;
  border-radius: 8px;
}

.form-row {
  display: grid;
  gap: .45rem;
  margin-bottom: 1rem;
}

@media (min-width: 760px) {
  .form-row {
    grid-template-columns: 240px 1fr;
    align-items: center;
    gap: 1.25rem;
  }

  .form-row-top {
    align-items: start;
  }
}

.contact-form label,
.form-label {
  font-weight: 600;
  color: #333;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="file"],
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: .8rem .9rem;
  border: 1px solid #cfcfcf;
  border-radius: 9px;
  font: inherit;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #DC143C;
  box-shadow: 0 0 0 3px rgba(220,20,60,.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
}

.radio-group label {
  font-weight: 400;
}

.radio-group input {
  accent-color: #DC143C;
}

.form-actions {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}

@media (min-width: 600px) {
  .form-actions {
    grid-template-columns: 1fr 1fr;
  }
}

.reset,
.submit {
  max-width: 100%;
  padding: .95rem 1rem;
  border: 0;
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
}

.reset {
  background: #e9e9e9;
  color: #333;
}

.submit {
  background: #DC143C;
  color: #fff;
}

.reset:hover {
  background: #dcdcdc;
}

.submit:hover {
  background: #b91535;
}

.pflichtfeld {
  color: #DC143C;
  font-weight: 700;
}