
/* ================================================================
   APROPOS PFERD 2026 – Contact Form 7 Styling
   Einbinden via: Appearance → Customize → Additional CSS
   oder in dein Theme-CSS / ein Custom CSS Plugin
   ================================================================ */

/* ── Reset & Wrapper ── */
.apf-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: 3rem;
  color: #1a1a1a;
}

/* ── Hero ── */
.apf-hero {
  background: #0f2540;
  border-radius: 14px;
  padding: 2rem 2rem 1.5rem;
  margin-bottom: 2rem;
}

.apf-hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.apf-hero-title {
  font-size: 26px !important;
  font-weight: 500 !important;
  color: #fff !important;
  margin: 0 0 .3rem !important;
  line-height: 1.2 !important;
  border: none !important;
  padding: 0 !important;
}

.apf-hero-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

.apf-hero-date {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 8px 16px;
  text-align: center;
  flex-shrink: 0;
}

.apf-date-d {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
}

.apf-date-m {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: .05em;
}

.apf-hero-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.apf-hero-meta span {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ── Sections ── */
.apf-section {
  margin-bottom: 1.5rem;
}

.apf-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: .875rem;
}

.apf-section-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #1d4ed8;
  flex-shrink: 0;
}

.apf-section-title {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* ── Card ── */
.apf-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
}

/* ── Grid Layouts ── */
.apf-grid {
  display: grid;
  gap: .875rem;
}

.apf-g1 { grid-template-columns: 1fr 1fr; }
.apf-g2 { grid-template-columns: 1fr 1fr; }
.apf-g3 { grid-template-columns: 1fr 1fr 1fr; }
.apf-full { grid-column: 1 / -1; }

/* ── Fields ── */
.apf-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.apf-field label,
.apf-wrap label {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #6b7280 !important;
  letter-spacing: .03em;
  margin-bottom: 0 !important;
}

.apf-group-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: .03em;
  margin-bottom: .5rem;
}

.apf-label-light {
  font-weight: 400;
  font-size: 11px;
}

/* ── Inputs ── */
.apf-wrap input[type="text"],
.apf-wrap input[type="email"],
.apf-wrap input[type="tel"],
.apf-wrap input[type="url"],
.apf-wrap input[type="number"],
.apf-wrap select,
.apf-wrap textarea {
  width: 100%;
  padding: 8px 12px !important;
  font-size: 13px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  background: #f9fafb !important;
  color: #111827 !important;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: none;
  -webkit-appearance: none;
}

.apf-wrap input[type="text"]:focus,
.apf-wrap input[type="email"]:focus,
.apf-wrap input[type="tel"]:focus,
.apf-wrap input[type="url"]:focus,
.apf-wrap input[type="number"]:focus,
.apf-wrap select:focus,
.apf-wrap textarea:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12) !important;
  background: #fff !important;
}

.apf-wrap textarea {
  min-height: 70px;
  resize: vertical;
  line-height: 1.5;
}

/* ── Divider ── */
.apf-divider {
  border: none;
  border-top: 1px solid #f3f4f6;
  margin: 1rem 0;
}

/* ── Roles (Teilnahmeart) ── */
.apf-roles .wpcf7-checkbox {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}

.apf-roles {
  display: block;
}

.apf-roles .wpcf7-list-item {
  margin: 0 !important;
}

.apf-roles .wpcf7-list-item label {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .875rem .75rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: background .1s, border-color .15s;
  text-align: center;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
  min-height: 64px;
}

.apf-roles .wpcf7-list-item label:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.apf-roles .wpcf7-list-item input[type="checkbox"] {
  display: none;
}

.apf-roles .wpcf7-list-item input[type="checkbox"]:checked + span,
.apf-roles .wpcf7-list-item input[type="checkbox"]:checked ~ span {
  color: #1d4ed8;
}

.apf-roles .wpcf7-list-item:has(input:checked) label {
  border: 2px solid #3b82f6;
  background: #eff6ff;
  color: #1d4ed8 !important;
}

/* ── Categories ── */
.apf-cats .wpcf7-checkbox {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 5px;
}

.apf-cats .wpcf7-list-item {
  margin: 0 !important;
}

.apf-cats .wpcf7-list-item label {
  display: flex !important;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px !important;
  color: #374151 !important;
  font-weight: 400 !important;
  transition: background .1s, border-color .1s;
  white-space: nowrap;
}

.apf-cats .wpcf7-list-item label:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.apf-cats .wpcf7-list-item input[type="checkbox"] {
  width: 13px !important;
  height: 13px !important;
  accent-color: #3b82f6;
  flex-shrink: 0;
  margin: 0 !important;
}

.apf-cats .wpcf7-list-item:has(input:checked) label {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af !important;
}

/* ── Stand Table Rows ── */
.apf-stand-block {
  margin-bottom: .75rem;
}

.apf-stand-label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: .5rem;
}

.apf-stand-row {
  display: grid;
  grid-template-columns: 170px 100px 1fr 80px 80px;
  gap: .5rem;
  align-items: end;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.apf-stand-row:last-child {
  border-bottom: none;
}

.apf-stand-check .wpcf7-list-item {
  margin: 0 !important;
}

.apf-stand-check .wpcf7-list-item label {
  display: flex !important;
  align-items: center;
  gap: 7px;
  font-size: 13px !important;
  color: #111827 !important;
  font-weight: 400 !important;
  cursor: pointer;
}

.apf-stand-check input[type="checkbox"] {
  width: 14px !important;
  height: 14px !important;
  accent-color: #3b82f6;
  margin: 0 !important;
}

.apf-stand-row .apf-field label {
  font-size: 10px !important;
  color: #9ca3af !important;
}

.apf-stand-row input[type="number"] {
  padding: 6px 8px !important;
  font-size: 12px !important;
}

/* ── Price Badge ── */
.apf-badge {
  display: inline-block;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
  align-self: end;
  margin-bottom: 2px;
}

/* ── Add Rows (Zusatz) ── */
.apf-add-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 9px 0;
  border-bottom: 1px solid #f3f4f6;
  flex-wrap: wrap;
}

.apf-add-row:last-child {
  border-bottom: none;
}

.apf-add-row .wpcf7-list-item {
  margin: 0 !important;
  flex: 1;
}

.apf-add-row .wpcf7-list-item label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 13px !important;
  color: #111827 !important;
  font-weight: 400 !important;
  cursor: pointer;
}

.apf-add-row .wpcf7-list-item input[type="checkbox"] {
  width: 14px !important;
  height: 14px !important;
  accent-color: #3b82f6;
  flex-shrink: 0;
  margin: 0 !important;
}

.apf-pr {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  margin-left: auto;
}

.apf-with-num input[type="number"] {
  width: 70px;
  flex-shrink: 0;
}

/* ── Note text ── */
.apf-note {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.5;
}

/* ── AGB ── */
.apf-agb {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.apf-agb .wpcf7-list-item {
  margin: 0 !important;
}

.apf-agb .wpcf7-list-item label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px !important;
  color: #4b5563 !important;
  font-weight: 400 !important;
  line-height: 1.6;
  cursor: pointer;
}

.apf-agb input[type="checkbox"] {
  width: 15px !important;
  height: 15px !important;
  accent-color: #3b82f6;
  margin-top: 2px !important;
  flex-shrink: 0;
}

/* ── Submit Button ── */
.apf-submit-row {
  display: flex;
  justify-content: flex-end;
}

.apf-wrap input.apf-submit,
.apf-wrap .wpcf7-submit {
  padding: 11px 36px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border: none !important;
  border-radius: 9px !important;
  background: #1d4ed8 !important;
  color: #fff !important;
  cursor: pointer !important;
  font-family: inherit !important;
  transition: background .15s !important;
  box-shadow: none !important;
}

.apf-wrap input.apf-submit:hover,
.apf-wrap .wpcf7-submit:hover {
  background: #1e40af !important;
}

/* ── CF7 Validation Styles ── */
.apf-wrap .wpcf7-not-valid {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
}

.apf-wrap .wpcf7-not-valid-tip {
  font-size: 11px !important;
  color: #dc2626 !important;
  margin-top: 3px !important;
}

.apf-wrap .wpcf7-response-output {
  border-radius: 8px !important;
  font-size: 13px !important;
  padding: 12px 16px !important;
  margin: 1rem 0 0 !important;
  border-width: 1px !important;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .apf-g1,
  .apf-g2,
  .apf-g3 {
    grid-template-columns: 1fr;
  }

  .apf-roles {
    grid-template-columns: 1fr 1fr;
  }

  .apf-stand-row {
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
  }

  .apf-stand-row .apf-badge {
    display: none;
  }

  .apf-hero-inner {
    flex-direction: column;
  }
}

