/**
 * Käuferfinder + Mieterfinder — NUR Counter-Frame-Layout
 *
 * Form nutzt komplett das Standard-Pattern aus frames/r2go4-contact.css
 * (.contact-form, .form-row, .form-row--thirds, .form-field,
 * .form-field--checkbox, .contact-form__hint). Kein eigenes Form-CSS!
 *
 * Sections nutzen Standard-`.section` (Padding) + `.section__label` +
 * `<h2>` + `.section__intro`. Kein eigenes Heading/Padding!
 *
 * Hier definiert ist NUR:
 *   - kf-sr-only (visually-hidden H1)
 *   - kf-frame__layout (Counter-Grid + CTA daneben)
 *   - kf-card (Counter-Box visuelles Layout)
 *   - kf-frame__cta (CTA-Block rechts)
 */

.kf-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Counter-Grid + CTA-Block bündig zur Unterkante der Boxen */
.kf-frame__layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}

.kf-frame__boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.kf-card {
  background: var(--color-white, #fff);
  border: 1px solid var(--color-border, #e0d9cb);
  border-radius: 4px;
  padding: 2rem 1rem 1.6rem;
  text-align: center;
}
.section--warm .kf-card {
  border-color: #d6cdb8;
}

.kf-card__counter {
  font-size: clamp(2.6rem, 4.4vw, 3.4rem);
  color: var(--color-primary, #aa9a7f);
  font-family: var(--font-heading, 'Marcellus'), serif;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.kf-card__num {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.kf-card__label {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
}
.kf-card__label strong {
  display: inline-block;
  margin-top: 0.2rem;
  color: var(--color-text-dark, #222);
  font-weight: 700;
}

/* CTA-Block: Label fett + Button bündig zur Box-Unterkante */
.kf-frame__cta {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  min-width: 220px;
  text-align: center;
  height: 100%;
}
.kf-frame__cta-label {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--color-text-dark, #222);
}
.kf-frame__cta-btn {
  white-space: nowrap;
  margin-bottom: 2px;
}

/* ── Form-Layout 2-spaltig (Form-Element-Styles aus r2go4-contact.css) ── */
.kf-form-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  margin-bottom: 0;
}

/* Form-Fields innerhalb jeder Spalte vertikal stacken mit Gap.
   Ohne diese Regel kleben die Felder aneinander (.contact-form > * gap
   greift nur auf direkte Kinder = .kf-form-cols, nicht auf die Fields
   tiefer in der Struktur). */
.kf-form-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Senden-Button enger an die Spalten — Default contact-form .btn margin-top
   ist 1.5rem (ausgelegt für single-column Form mit Textarea am Ende), das
   ist hier zu viel weil die rechte Spalte schon mit Checkboxen endet. */
.section--kf-form .contact-form .btn {
  margin-top: 0;
}

/* .kf-form-col__title — entfernt. Spalten-Headlines nutzen jetzt
   die normalen H3-Defaults aus base.css (Marcellus, --h3-size). */

/* Tablet: CTA unter den Counter-Boxen */
@media (max-width: 900px) {
  .kf-frame__layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .kf-frame__cta {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    height: auto;
  }
  .kf-frame__cta-label { margin: 0 1rem 0 0; }
}

/* Mobile: Counter gestapelt + Form 1-spaltig */
@media (max-width: 700px) {
  .kf-form-cols { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 640px) {
  .kf-frame__boxes {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .kf-card { padding: 1.5rem 1rem; }
  .kf-frame__cta {
    flex-direction: column;
    width: 100%;
  }
  .kf-frame__cta-label { margin: 0 0 0.5rem; }
  .kf-frame__cta-btn { width: 100%; }
}
