/* ======================================================
   Bootshaus – Powermail Footer Layout
   basiert auf deinem alten Inline-HTML
====================================================== */

.footerRequestForm {
  position: relative;
}

.footerRequestCloseWrapper {
  position: absolute;
 
  right: 20px;
  z-index: 30;
}

.footerRequestCloseBtn {
  appearance: none;
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.footerRequestCloseBtn span {
  font-size: 1.75rem;
  line-height: 1;
}

.footerRequestCloseBtn:hover,
.footerRequestCloseBtn:focus {
  background: #ffffff;
  color: #1f315e;
}


/* Grundwrapper */
.tx-powermail {
  background-color: #1f315e;
  /* border-top: 1px solid #fff; */
  position: absolute;
  color: #ffffff;
  padding: 6.2rem 0;
  z-index: 20;
 width: 96.2%;

}



/* Fieldsets Wrapper */
.tx-powermail .powermail_fieldsets {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* 3-Spalten Layout */
.tx-powermail .powermail_fieldset.layout2 {
  flex: 0 0 30%;
  max-width: 30%;
  border: none;
}

/* Volle Breite unten */
.tx-powermail .powermail_fieldset.layout3 {
  flex: 0 0 100%;
  max-width: 100%;
  border: none;
  margin-top: 3.2rem;
}

/* Inner Wrapper */
.tx-powermail .fieldsetInner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Fieldwrap */
.tx-powermail .powermail_fieldwrap {
  position: relative;
  flex: 0 0 65%;
  max-width: 65%;
  /* margin-bottom: 3.4666667rem; */
}

/* Label Styling */
.tx-powermail .powermail_label {
  /* transform: translateY(-28px); */
  text-transform: uppercase;
  line-height: 1.5rem;
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: 0.0238461538rem;
}

/* Inputs */
.tx-powermail input.powermail_input,
.tx-powermail textarea.powermail_textarea,
.tx-powermail select.powermail_select {
  font-size: 1rem;
  line-height: 1.9375rem;
  letter-spacing: 0.1823076923rem;
  background: none;
  border: none;
  border-bottom: 8px solid #ffffff;
  border-radius: 0;
  color: #ffffff;
  width: 100%;
  outline: none;
}

/* Focus */
.tx-powermail input:focus,
.tx-powermail textarea:focus,
.tx-powermail select:focus {
  border-bottom-color: #ffffff;
}

/* Legend */
.tx-powermail .powermail_legend {
  color: #ffffff;
  /* margin-bottom: 2rem;
  font-weight: 600; */
}

/* =============================
   Checkbox Styling
============================= */

.tx-powermail .powermail_fieldwrap_type_check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  border: 1px solid #ffffff;
  background: transparent;
  box-sizing: border-box;
  display: inline-block;
  vertical-align: top;
  margin: 3px 12px 0 0;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  position: relative;
}

.tx-powermail .powermail_fieldwrap_type_check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 6px;
  height: 6px;
  background: #ffffff;
}

.tx-powermail .powermail_fieldwrap_type_check .checkbox label,
.tx-powermail .powermail_fieldwrap_type_check .form-check label,
.tx-powermail .powermail_fieldwrap_type_check .form-check-label {
  display: flex;
  align-items: flex-start;
}

.tx-powermail .powermail_fieldwrap_type_check .labelText {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: 0.0238461538rem;
  color: #ffffff;
}

.tx-powermail .customCheckbox {
  display: none;
}

/* Checked State */
.tx-powermail input[type="checkbox"]:checked + .customCheckbox::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 6px;
  height: 6px;
  background: #ffffff;
}

/* Checkbox Label */
.tx-powermail .powermail_fieldwrap_type_check .labelText {
  display: inline;
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: 0.0238461538rem;
  color: #ffffff;
}



/* Links im Checkboxtext */
.tx-powermail .powermail_fieldwrap_type_check a {
  color: #ffffff;
  text-decoration: underline;
}

/* Zusatztext */
.tx-powermail .powermail_fieldwrap_type_check .addition {
  margin-top: 1.6rem;
  display: none;
}

/* =============================
   Submit Button
============================= */

.tx-powermail .powermail_fieldwrap_type_submit {
  align-items: flex-end;
  display: flex;
  width: auto;
  text-align: left;
}

.tx-powermail input.powermail_submit {
  font-size: 1rem;
  line-height: 1.125rem;
  letter-spacing: 0.2015384615rem;
  appearance: none;
  background-color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 0;
  color: #1f315e;
  padding: 6px 12px;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tx-powermail input.powermail_submit:hover {
  background-color: transparent;
  color: #ffffff;
}

/* =============================
   Responsive
============================= */

@media (max-width: 1200px) {
  .tx-powermail .powermail_fieldset.layout2 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}



/* =========================================
   Powermail: "Pages" (Fieldsets) nebeneinander
   für Bootstrap-Markup (ohne .fieldsets Wrapper)
   ========================================= */

/* Form als Spalten-Container */
/* .tx-powermail form.powermail_form {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 3rem !important;
} */

form.powermail_form .fieldsets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between
}

form.powermail_form fieldset {
    border: none;
    margin: 0;
    padding: 0;
    flex: 0 0 30%;
    max-width: 30%;
}

/* die ersten 3 Fieldsets = 3 Spalten */
.tx-powermail form.powermail_form > fieldset.powermail_fieldset {
  flex: 0 0 30% ;
  max-width: 30% ;
  width: 30% ;
  border: none ;
  margin: 0 ;
  padding: 0 ;
  min-width: 0 ;
}

/* letztes Fieldset (layout3) volle Breite */
.tx-powermail form.powermail_form > fieldset.powermail_fieldset.layout3 {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
  margin-top: 3.2rem;
}

form.powermail_form .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0;
}

/* Mobile: alles untereinander */
@media (max-width: 1200px) {
  .tx-powermail form.powermail_form > fieldset.powermail_fieldset {
    flex: 0 0 100% ;
    max-width: 100% ;
    width: 100% ;
  }
}

.powermail_fieldwrap_type_check .powermail_checkwrap{
  display: flex !important;
  width: 100% !important;
}

.powermail_fieldwrap_type_check .powermail_checkwrap .form-check-label{
  flex: 1 1 auto !important;
  min-width: 0;
  display: block !important;
  width: auto !important;   /* innerhalb flex übernimmt flex die Breite */
}




/* =========================================================
   Powermail Date-Felder: "Strich" wie Textfelder + Kalender
   ========================================================= */

/* Einheitliche Höhe wie die anderen Inputs */
.tx-powermail input.powermail_date[type="date"],
.tx-powermail input[type="date"].form-control {
  width: 100% ;
  height: 48px ;         
  line-height: 1.9375rem ;
  padding: 0 ;

  background: transparent ;
  color: #fff ;

  border: 0 ;
  border-bottom: 8px solid #fff ;  /* der "Strich" */
  border-radius: 0 ;

  box-shadow: none ;
  outline: none ;
  -webkit-appearance: none;
  appearance: none;
}

/* Fokus (optional) */
.tx-powermail input.powermail_date[type="date"]:focus {
  outline: none ;
}

/* Kalender-Icon (Chrome/Edge/Safari): hell machen, klickbar */
.tx-powermail input.powermail_date[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 1;
  cursor: pointer;
}

/* "Innenleben" vom Date-Input transparent halten (WebKit) */
.tx-powermail input.powermail_date[type="date"]::-webkit-datetime-edit,
.tx-powermail input.powermail_date[type="date"]::-webkit-datetime-edit-fields-wrapper,
.tx-powermail input.powermail_date[type="date"]::-webkit-datetime-edit-text,
.tx-powermail input.powermail_date[type="date"]::-webkit-datetime-edit-month-field,
.tx-powermail input.powermail_date[type="date"]::-webkit-datetime-edit-day-field,
.tx-powermail input.powermail_date[type="date"]::-webkit-datetime-edit-year-field {
  color: #fff;
}

/* Falls dein Browser sonst ein helles UI erzwingt */
.tx-powermail input.powermail_date[type="date"] {
  color-scheme: dark;
}

/* KONTAKTFORMULAR */

.footerRequestForm.is-hidden {
  display: none;
}
.footerRequestForm.is-visible {
  display: block;
 
}



/* =========================================
   Tablet
========================================= */
@media (max-width: 1200px) {

  .tx-powermail {
    position: relative;
    width: 100%;
    padding: 4rem 2rem;
  }

  .tx-powermail form.powermail_form .fieldsets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .tx-powermail form.powermail_form .fieldsets > fieldset,
  .tx-powermail form.powermail_form > fieldset.powermail_fieldset,
  .tx-powermail .powermail_fieldset.layout2,
  .tx-powermail .powermail_fieldset.layout3 {
    flex: 0 0 100% !important;
    max-width: 640px !important;
    width: 100% !important;
    margin: 0 auto 2.5rem auto !important;
  }

  .tx-powermail .fieldsetInner,
  .tx-powermail form.powermail_form .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .tx-powermail .powermail_fieldwrap {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-bottom: 2rem;
  }

  .footerRequestCloseWrapper {
    top: 20px;
    right: 20px;
  }
}


/* =========================================
   Mobile
========================================= */
@media (max-width: 768px) {

  .tx-powermail {
    padding: 4.5rem 1.25rem 2.5rem 1.25rem;
    width: 100%;
  }

  .tx-powermail form.powermail_form .fieldsets > fieldset,
  .tx-powermail form.powermail_form > fieldset.powermail_fieldset,
  .tx-powermail .powermail_fieldset.layout2,
  .tx-powermail .powermail_fieldset.layout3 {
    max-width: 100% !important;
    margin-bottom: 2rem !important;
  }

  .tx-powermail .powermail_fieldwrap {
    margin-bottom: 1.75rem;
  }

  .tx-powermail .powermail_label,
  .tx-powermail .powermail_legend {
    font-size: 0.95rem;
    line-height: 1.4rem;
  }

  .tx-powermail input.powermail_input,
  .tx-powermail textarea.powermail_textarea,
  .tx-powermail select.powermail_select {
    font-size: 0.95rem;
    line-height: 1.6rem;
  }

  .footerRequestCloseWrapper {
    top: 12px;
    right: 12px;
  }

  .footerRequestCloseBtn {
    width: 36px;
    height: 36px;
  }

  .footerRequestCloseBtn span {
    font-size: 1.5rem;
  }
}

.tx-powermail.powermail-active {
  z-index: 9999;
}