/* ═══════════════════════════════════════════════════════════
   CF7 Form Styles — Kontakt & Bewerbung
   Lädt nur wenn CF7-Shortcode auf der Seite vorhanden ist
   (siehe functions.php conditional enqueue)
   ═══════════════════════════════════════════════════════════ */
.et_pb_row_form{
	padding: 0 !important;
}

.et_pb_row_form br{
	display: none;
}


/* ── 1. Felder ─────────────────────────────────────────────── */

.wpcf7-text,
.wpcf7-textarea,
.wpcf7-captcha,
.wpcf7-date,
.wpcf7-tel,
.wpcf7-email,
.wpcf7-select,
.wpcf7-number{
  font-family: inherit;
  font-size: 15px;
  color: #1a1a1a;
  background: #fff;
  border: 0.5px solid rgba(99,99,99, .51) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  width: 100% !important;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
	min-height:42px;
}
.wpcf7-email,
span[data-name="mitgliedsnummer-zahler"] .wpcf7-text,
span[data-name="mitgliedsnummer-empfaenger"] .wpcf7-text{
	margin-top: 6px;
}
.wpcf7-text:focus,
.wpcf7-textarea:focus,
.wpcf7-captcha:focus,
.wpcf7-date:focus,
.wpcf7-tel:focus,
.wpcf7-email:focus,
.wpcf7-select:focus,
.wpcf7-number:focus{
  border-color: rgba(0, 0, 0, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
  background: #fff;
}
input:focus-visible,
input:focus{
	outline: 3px solid var(--brand-color) !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 5px rgba(18, 132, 18, .25) !important;
	border-radius: 2px;
}

textarea.wpcf7-textarea {
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  max-height: 140px;
  line-height: 1.6;
  margin-bottom: 9px;
}

.wpcf7-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: #f5f5f3;
  padding-right: 32px !important;
  cursor: pointer;
}

/* ── 2. Labels ─────────────────────────────────────────────── */
.et_pb_row_form h3{
	margin-bottom:0;
}

.wpcf7-form label,
.cf7-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  letter-spacing: 0.03em;
  margin-bottom: 5px;
}

.wpcf7-form .wpcf7-radio label{
	font-size:15px;
	cursor:pointer;
}

/* ── 4. Layout — Bewerbungsformular ────────────────────────── */

.cf7-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  /*margin-bottom: 1.25rem;*/
}

.cf7-section-second {
  margin-top: 2rem;
}

.cf7-req-note {
  font-size: 11px;
  color: #999;
}

/* Conditional-Field-Wrapper */
.cf7-cond-field {
  margin-top: 8px;
  padding: 10px 12px;
  background: #f9f9f7;
  border: 0.5px solid #ddd;
  border-radius: 8px;
}

.cf7-cond-field .wpcf7-text {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* File-Upload */
.cf7-file-field .wpcf7-file {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 14px;
  background: #f5f5f3;
  border: 0.5px dashed #bbb !important;
  border-radius: 8px !important;
  cursor: pointer;
  color: #555;
  box-sizing: border-box;
}

.cf7-file-hint {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
  line-height: 1.4;
}

/* Einwilligung */
.cf7-accept-wrap {
  /*display: flex;*/
  gap: 10px;
  align-items: flex-start;
  padding: 1rem;
  background: #f9f9f7;
  border: 0.5px solid #e0e0e0;
  border-radius: 8px;
}

.cf7-accept-wrap .wpcf7-acceptance {
  flex-shrink: 0;
  margin-top: 2px;
}

.cf7-accept-wrap label {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 0;
  display: inline;
}

.cf7-accept-note {
  font-size: 11px;
  color: #999;
  margin-top: 6px;
  line-height: 1.5;
}

.cf7-accept-note a {
  color: var(--brand-color);
}

/* Submit */
.et_pb_code_submit {
  text-align: center;
  margin-top: 0.5rem;
}

/* ── 5. Submit-Button ──────────────────────────────────────── */

.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: inherit;
  line-height: 1.5;
  color: #fff;
  border: none !important;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--brand-color);
  border-radius: 2px;
  font-style: normal;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 2px;
	
  border: none;
  font-size: 0.9rem;
  font-family: inherit;
  white-space: nowrap;
  display: inline-block;
  font-weight: 600;
  white-space: nowrap;	
}

.wpcf7-submit:hover {
  opacity: 0.82;
}

.wpcf7-submit:active {
  opacity: 0.7;
  transform: scale(0.98);
}

.wpcf7-submit[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ── 6. Spinner ────────────────────────────────────────────── */

.wpcf7-spinner {
  /* Basiszustand: unsichtbar, aber Platz reserviert um Layout-Sprung zu vermeiden */
  visibility: hidden;
  opacity: 0;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  vertical-align: middle;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-top-color: #111;
  border-radius: 50%;
  transition: opacity 0.15s;
}

/* CF7 fügt diese Klasse nur während des aktiven Submits hinzu */
form.submitting .wpcf7-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-top-color: #111;
  border-radius: 50%;
  animation: cf7spin 0.6s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes cf7spin {
  to { transform: rotate(360deg); }
}

.wpcf7-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-top-color: #111;
  border-radius: 50%;
  animation: cf7spin 0.6s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes cf7spin {
  to { transform: rotate(360deg); }
}

/* ── 7. Validation — Einzelfelder ──────────────────────────── */

.wpcf7-not-valid {
  border-color: #e24b4a !important;
  background: #fff8f8 !important;
}

.wpcf7-not-valid:focus {
  border-color: #e24b4a !important;
  box-shadow: 0 0 0 3px rgba(226, 75, 74, 0.1) !important;
}

span.wpcf7-not-valid-tip {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #a32d2d;
  margin-top: 0;
  line-height: 1.4;
  background: rgb(226, 75, 74,.1);
  padding: 0 0 0 4px;
}

.wpcf7-acceptance input[type="checkbox"].wpcf7-not-valid {
  outline: 2px solid #e24b4a;
  outline-offset: 2px;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* ── 8. Response-Output — alle States ──────────────────────── */

div.wpcf7-response-output {
  margin: 1.25rem 0 0;
  padding: 12px 16px 12px 40px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  border: 0.5px solid transparent;
  clear: both;
  position: relative;
}

div.wpcf7-response-output::before {
  position: absolute;
  left: 14px;
  top: 13px;
  font-size: 15px;
  line-height: 1;
}

/* Erfolg */
div.wpcf7-mail-sent-ok,
form.wpcf7-form.wpcf7-acceptance-as-validation.sent div.wpcf7-response-output{
  background: #eaf3de;
  border-color: #7ab648;
  color: #27500a;
}

div.wpcf7-mail-sent-ok::before,
form.wpcf7-form.wpcf7-acceptance-as-validation.sent div.wpcf7-response-output::before{
  content: "✓";
  color: #3b6d11;
}

/* Validierungsfehler & fehlende Einwilligung */
div.wpcf7-validation-errors,
div.wpcf7-acceptance-missing,
div.wpcf7-spam-blocked,
form.wpcf7-form.invalid .wpcf7-response-output {
  background: #faeeda;
  border-color: #d4900a;
  color: #633806;
}

div.wpcf7-validation-errors::before,
div.wpcf7-acceptance-missing::before,
div.wpcf7-spam-blocked::before {
  content: "⚠";
  color: #854f0b;
}

/* Serverfehler */
div.wpcf7-mail-sent-ng,
div.wpcf7-aborted {
  background: #fcebeb;
  border-color: #e24b4a;
  color: #791f1f;
}

div.wpcf7-mail-sent-ng::before,
div.wpcf7-aborted::before {
  content: "✕";
  color: #a32d2d;
}

/* ── 9. Responsive ─────────────────────────────────────────── */

@media (max-width: 750px) {
  .column-half {
    width: 100%;
    float: none;
    padding-right: 0;
  }

  .et_pb_column_1_3 {
    width: 100% !important;
    float: none !important;
  }
}

@media (min-width: 751px) and (max-width: 1200px) {
  .form-row div:nth-child(5) {
    width: 83%;
  }
}

/**/
.screen-reader-response{
	padding-bottom:25px;
}
.screen-reader-response ul{
	display: none;
}