/* Source Sans Pro - lokal gehostet */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-sans-pro-v21-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/source-sans-pro-v21-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/source-sans-pro-v21-latin-700.woff2') format('woff2');
}

/* Reset & Basis */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: #212121;
  background: transparent;
}

.form-wrap {
  max-width: 100%;
  padding: 16px;
}

/* Überschrift */
.form-wrap h2 {
  font-size: 24px;
  font-weight: 600;
  color: #0f2e5c;
  margin-bottom: 20px;
}

/* Formular-Gruppen */
.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #212121;
  margin-bottom: 4px;
}

.field label .req {
  color: #c00;
}

/* Eingabefelder */
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  display: block;
  width: 100%;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #212121;
  background-color: #f0f6ff;
  border: 1px solid #d0d5d2;
  border-radius: 4px;
  padding: 10px 12px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23212121' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #0f2e5c;
}

/* Validierung */
.field input:invalid:not(:placeholder-shown),
.field select:invalid:not([data-pristine="true"]) {
  border-color: #c00;
}

.field .error-msg {
  display: none;
  font-size: 13px;
  color: #c00;
  margin-top: 3px;
}

.field.show-error .error-msg {
  display: block;
}

.field.show-error input,
.field.show-error select,
.field.show-error textarea {
  border-color: #c00;
}

/* Checkbox */
.field-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}

.field-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #0f2e5c;
  flex-shrink: 0;
}

.field-check label {
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

/* Submit-Button */
.btn-submit {
  display: block;
  width: 100%;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background-color: #0f2e5c;
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 8px;
}

.btn-submit:hover {
  background-color: #1e4a8a;
}

/* Sicherheitshinweis */
.security-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
  margin-top: 12px;
  justify-content: center;
}

.security-note img {
  height: 14px;
  width: auto;
}

/* Erfolgsseite */
.success-wrap {
  padding: 16px;
}

.success-wrap h2 {
  font-size: 24px;
  font-weight: 600;
  color: #0f2e5c;
  margin-bottom: 16px;
}

.success-wrap p {
  font-size: 16px;
  color: #212121;
  margin-bottom: 16px;
}

.success-wrap .lead {
  font-size: 18px;
  font-weight: 700;
  color: #0f2e5c;
}

.success-wrap a {
  color: inherit;
  text-decoration: none;
}

.success-wrap a:hover {
  text-decoration: underline;
}

.success-wrap p strong {
  color: #0f2e5c;
}
