/* Info-FAQ Sidebar — Formular auto_form_3, Layout wie GBF Projektanfrage (__form-col) */
/* Fallback: cssID war kurz fälschlich als HTML-id gesetzt (#ahf-info-faq-sidebar) */

#ahf-info-faq-sidebar .ce_form .formbody,
.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .formbody,
.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .ce_form .formbody {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end;
  gap: 0.45rem 0.75rem;
}

#ahf-info-faq-sidebar .ce_form .widget,
.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .widget {
  margin-bottom: 0.5rem;
  float: none !important;
  width: 100%;
  box-sizing: border-box;
}

#ahf-info-faq-sidebar .ce_form input[type="text"],
#ahf-info-faq-sidebar .ce_form input[type="email"],
#ahf-info-faq-sidebar .ce_form textarea,
.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col input[type="text"],
.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col input[type="email"],
.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col textarea {
  width: 100% !important;
  box-sizing: border-box;
  padding: 0.4rem 0.5rem !important;
  font-size: 0.9rem !important;
  border: 1px solid #c5d0d6 !important;
  border-radius: 6px !important;
}

#ahf-info-faq-sidebar .widget-altcha,
.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .widget-altcha {
  display: none !important;
}

.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .gbf-projekt-anfrage__badge {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1b978d;
}

.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .gbf-projekt-anfrage__title {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem !important;
  padding: 0 0 0.65rem !important;
  border: none !important;
  border-bottom: 1px solid #d0d6da !important;
  background: transparent !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #2a2a2a !important;
  line-height: 1.3 !important;
  width: 100%;
  box-sizing: border-box;
}

.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .gbf-projekt-anfrage__title i {
  color: #1b978d;
  font-size: 1.05rem !important;
}

.mod_faqlist.oHeadline .inner > h1.headline {
  margin-bottom: 0.25rem;
}

.mod_faqlist.oHeadline .ahf-info-faq-category {
  margin: 2.75rem 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #2a2a2a;
  line-height: 1.25;
}

.mod_faqlist.oHeadline .inner > .ahf-info-faq-category:first-of-type {
  margin-top: 1.5rem;
}

/* GBF Form-Layout (Sidebar-Scope) */
.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .formbody,
.ahf-info-faq-sidebar.gbf-projekt-anfrage-live .gbf-projekt-anfrage__form-col .formbody {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end;
  gap: 0.45rem 0.75rem;
}

.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .widget {
  margin-bottom: 0.5rem;
  box-sizing: border-box;
  float: none !important;
  width: 100%;
}

.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .widget:has(#ctrl_37) {
  order: 1;
  flex: 1 1 calc(50% - 0.375rem) !important;
  width: calc(50% - 0.375rem) !important;
  max-width: calc(50% - 0.375rem) !important;
}

.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .widget:has(#ctrl_38) {
  order: 2;
  flex: 1 1 calc(50% - 0.375rem) !important;
  width: calc(50% - 0.375rem) !important;
  max-width: calc(50% - 0.375rem) !important;
}

.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .widget-textarea {
  order: 3;
  width: 100%;
}

.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .widget-checkbox {
  order: 4;
  width: 100%;
}

.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .widget-captcha,
.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .widget:has(#ctrl_42) {
  order: 5;
  width: 100%;
}

.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .widget-captcha .captcha {
  max-width: 6rem;
}

.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .widget-checkbox fieldset,
.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .widget-checkbox .checkbox_container,
#ahf-info-faq-sidebar .ce_form .widget-checkbox fieldset,
#ahf-info-faq-sidebar .ce_form .widget-checkbox .checkbox_container {
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  min-width: 0;
}

/* Zeilenumbruch: Text bündig unter erster Zeile, nicht unter Checkbox */
.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .widget-checkbox span,
#ahf-info-faq-sidebar .ce_form .widget-checkbox span {
  display: flex !important;
  align-items: flex-start;
  gap: 0.45rem;
  width: 100% !important;
  max-width: none;
}

.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .widget-checkbox input[type="checkbox"],
#ahf-info-faq-sidebar .ce_form .widget-checkbox input[type="checkbox"] {
  flex: 0 0 auto;
  margin: 0.2rem 0 0 0 !important;
  vertical-align: top;
}

.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .widget-checkbox label,
#ahf-info-faq-sidebar .ce_form .widget-checkbox label {
  display: block !important;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #404040;
  font-weight: 400;
}

.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .widget:not(.widget-checkbox) label {
  display: none;
}

.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col input[type="text"],
.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col input[type="email"],
.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col textarea {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  padding: 0.4rem 0.5rem !important;
  font-size: 0.9rem !important;
  line-height: 1.35 !important;
  border: 1px solid #c5d0d6 !important;
  border-radius: 6px !important;
}

.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .widget-altcha {
  display: none !important;
}

.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .widget-submit {
  order: 6;
  width: 100%;
  margin: 0.15rem 0 0;
  display: flex;
  justify-content: stretch;
}

.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .widget-submit input[type="submit"].submit,
.gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .widget-submit .submit {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0.55rem 1rem !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  border: none !important;
  color: #fff !important;
}

@media (max-width: 991px) {
  .gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .widget:has(#ctrl_37),
  .gbf-projekt-anfrage-live.ahf-info-faq-sidebar .gbf-projekt-anfrage__form-col .widget:has(#ctrl_38) {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
