
/* ==========================================
   MI DOMICILIO FISCAL – BIT FORM ID 5
   KOMPLETTES CSS – GESAMTVERSION
   ========================================== */

/* 1. ALLGEMEINE EINSTELLUNGEN */

.btcd-fld-itm,
.btcd-fld-itm * {
  box-sizing: border-box;
}

.btcd-fld-itm {
  max-width: 100%;
  min-width: 0;
}

.btcd-fld-itm input,
.btcd-fld-itm select,
.btcd-fld-itm textarea {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.btcd-fld-itm label {
  max-width: 100% !important;
  overflow-wrap: break-word;
}


/* 2. EINHEITLICHE FORMULARKARTEN */

.btcd-fld-itm:is(
  .b5-41, .b5-42, .b5-81, .b5-43,
  .b5-55, .b5-56, .b5-57, .b5-58,
  .b5-88, .b5-79, .b5-19, .b5-8,
  .b5-80, .b5-7, .b5-16, .b5-21,
  .b5-53, .b5-23, .b5-22, .b5-20,
  .b5-82
) {
  background: #f5f9ff !important;
  border: 1px solid #c6dcef !important;
  border-radius: 12px !important;
  padding: 14px !important;
  margin: 6px !important;
  max-width: calc(100% - 12px) !important;
  min-width: 0 !important;
  height: auto !important;
}


/* 3. STARTER / PRO – TARIFKARTEN */

.btcd-fld-itm.b5-55 {
  margin-bottom: 20px !important;
}

.btcd-fld-itm.b5-55 [role="radiogroup"] {
  display: flex !important;
  justify-content: center !important;
  align-items: stretch !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  width: 100% !important;
}

.btcd-fld-itm.b5-55 label.b5-55-cl {
  display: flex !important;
  align-items: center !important;
  width: 220px !important;
  min-width: 220px !important;
  min-height: 100px !important;
  padding: 16px !important;
  background: #ffffff !important;
  border: 1px solid #c6dcef !important;
  border-radius: 12px !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  transition:
    background-color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease !important;
}

.btcd-fld-itm.b5-55
label.b5-55-cl:has(input:checked),
.btcd-fld-itm.b5-55
label.b5-55-cl:has(+ input:checked) {
  background: #eaf4ff !important;
  border: 2px solid #2878d0 !important;
  box-shadow: 0 2px 10px
    rgba(40,120,208,.10) !important;
}


/* 4. MONATSPREIS UND KAUTION */

.btcd-fld-itm:is(.b5-83, .b5-92) {
  width: 100% !important;
  max-width: 520px !important;
  margin: 20px auto !important;
  text-align: center !important;
}

.btcd-fld-itm:is(.b5-83, .b5-92) label {
  display: block !important;
  text-align: center !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #17365d !important;
}

.btcd-fld-itm.b5-83 .b5-83-inp-wrp,
.btcd-fld-itm.b5-92 .b5-92-inp-wrp {
  position: relative !important;
  width: 240px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

#b5-83-1,
#b5-92-1 {
  display: block !important;
  width: 100% !important;
  height: 105px !important;
  padding: 8px 12px 38px !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  text-align: center !important;
  border: 2px solid #2878d0 !important;
  border-radius: 14px !important;
  background: #f0f7ff !important;
  color: #174b91 !important;
  box-shadow: 0 3px 12px
    rgba(40,120,208,.08) !important;
}

/* Währungsanzeige */

.btcd-fld-itm.b5-83 .b5-83-inp-wrp::after,
.btcd-fld-itm.b5-92 .b5-92-inp-wrp::after {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 20px !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #2878d0 !important;
  pointer-events: none !important;
}

.btcd-fld-itm.b5-83 .b5-83-inp-wrp::after {
  content: "€/mes";
}

.btcd-fld-itm.b5-92 .b5-92-inp-wrp::after {
  content: "€";
}

#b5-83-1:read-only,
#b5-92-1:read-only {
  cursor: default !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #174b91 !important;
}


/* 5. PREIS-UNTERTITEL ZENTRIEREN */

.btcd-fld-itm:is(.b5-83, .b5-92)
.btcd-fld-subtitle,
.btcd-fld-itm:is(.b5-83, .b5-92)
[class*="sub-titl"],
.btcd-fld-itm:is(.b5-83, .b5-92)
[class*="subtitle"] {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* 6. PFLICHTFELD-STERN TARIFAUSWAHL */

.btcd-fld-itm.b5-55 label.b5-55-lbl {
  position: relative !important;
  padding-right: 18px !important;
  padding-left: 0 !important;
}

.btcd-fld-itm.b5-55
label.b5-55-lbl::after {
  position: static !important;
  display: inline !important;
  margin-left: 4px !important;
  vertical-align: baseline !important;
}


/* ==========================================
   7. ABSCHLUSSBEREICH – SCHRITT 3
   b5-93 Zahlungsbedingungen
   b5-65 Vertragsbedingungen
   b5-38 Datenschutz
   ========================================== */

/* Einheitliche Karten */

.btcd-fld-itm:is(.b5-93, .b5-65, .b5-38),
.btcd-fld-itm:has(#b5-93-1) {
  background: #f5f9ff !important;
  border: 1px solid #c6dcef !important;
  border-left: 1px solid #c6dcef !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  margin: 8px 6px 12px !important;
  width: auto !important;
  max-width: calc(100% - 12px) !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Einheitliche Schriftfamilie */

.btcd-fld-itm:is(.b5-93, .b5-65, .b5-38),
.btcd-fld-itm:is(.b5-93, .b5-65, .b5-38) * {
  font-family: Arial, Helvetica, sans-serif !important;
}

/* Überschrift Zahlungsbedingungen */

.btcd-fld-itm.b5-93 .b5-93-lbl {
  display: block !important;
  color: #1765b5 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  margin-bottom: 10px !important;
}

/* Radio-Auswahltexte */

.btcd-fld-itm.b5-93
label:not(.b5-93-lbl),
.btcd-fld-itm.b5-93
label:not(.b5-93-lbl) * {
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  color: #17365d !important;
}

/* Abstand zwischen Radio-Optionen */

.btcd-fld-itm.b5-93 [role="radiogroup"] {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
}

/* Vertrag und Datenschutz */

.btcd-fld-itm:is(.b5-65, .b5-38) label {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #17365d !important;
}


/* ==========================================
   8. MOBILE DARSTELLUNG
   ========================================== */

@media (max-width: 767px) {

  /* Allgemeine Karten */

  .btcd-fld-itm:is(
    .b5-41, .b5-42, .b5-81, .b5-43,
    .b5-55, .b5-56, .b5-57, .b5-58,
    .b5-88, .b5-79, .b5-19, .b5-8,
    .b5-80, .b5-7, .b5-16, .b5-21,
    .b5-53, .b5-23, .b5-22, .b5-20,
    .b5-82
  ) {
    width: auto !important;
    max-width: calc(100% - 12px) !important;
    min-width: 0 !important;
    padding: 12px !important;
    margin: 6px !important;
  }

  /* Starter / Pro untereinander */

  .btcd-fld-itm.b5-55 [role="radiogroup"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .btcd-fld-itm.b5-55 label.b5-55-cl {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 80px !important;
    padding: 14px !important;
  }

  /* Versandoptionen untereinander */

  .btcd-fld-itm.b5-56 [role="radiogroup"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .btcd-fld-itm.b5-56 .b5-56-cw {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .btcd-fld-itm.b5-56 label {
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  /* Preisfelder mobil */

  .btcd-fld-itm:is(.b5-83, .b5-92) {
    width: 100% !important;
    max-width: 100% !important;
    margin: 16px auto !important;
  }

  .btcd-fld-itm.b5-83 .b5-83-inp-wrp,
  .btcd-fld-itm.b5-92 .b5-92-inp-wrp {
    width: 220px !important;
    max-width: 100% !important;
  }

  #b5-83-1,
  #b5-92-1 {
    font-size: 28px !important;
    height: 95px !important;
  }

  .btcd-fld-itm:is(.b5-83, .b5-92) label {
    font-size: 16px !important;
  }

  /* Drei Abschlusskarten mobil */

  .btcd-fld-itm:is(.b5-93, .b5-65, .b5-38),
  .btcd-fld-itm:has(#b5-93-1) {
    padding: 14px !important;
    margin: 8px 6px 12px !important;
  }

  .btcd-fld-itm.b5-93 .b5-93-lbl {
    font-size: 15px !important;
  }
}

/* ==========================================
   ENDE – MDF BIT FORM ID 5
   ========================================== */
