/* Kontaktformular-Styles */

.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: 2px solid #0055a5;
  outline-offset: 1px;
  border-color: #0055a5;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

/* Fehler-Zustand */
.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: #c0392b;
}

.field-error {
  color: #c0392b;
  font-size: 0.85rem;
  min-height: 1.2em;
}

/* Alerts */
.form-alert {
  padding: 0.85rem 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.form-alert--success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-alert--error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Consent */
.form-group--consent {
  margin-top: 0.5rem;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: normal;
  cursor: pointer;
  line-height: 1.5;
}

.consent-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-required-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

/* Submit-Button */
.btn-submit {
  display: inline-block;
  padding: 0.7rem 2rem;
  background: #0055a5;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.15s;
}

.btn-submit:hover,
.btn-submit:focus {
  background: #003d7a;
}

.btn-submit:disabled {
  background: #888;
  cursor: not-allowed;
}

/* TrustSig Widget */
.trustsig-widget {
  min-height: 60px;
}

/* Responsive */
@media (max-width: 640px) {
  .contact-form {
    padding: 0 0.5rem;
  }

  .btn-submit {
    width: 100%;
  }
.visually-hidden {
  display: none;
}
}
