.isfp-vorteilsrechner .isfp-vorteil-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  border-radius: 14px;
  border: 2px solid #d7dde4;
  box-shadow: none;
  overflow: visible;
}

.isfp-vorteilsrechner .isfp-vorteil-table th,
.isfp-vorteilsrechner .isfp-vorteil-table td {
  border: 1px solid #d7dde4;
  padding: 10px 12px;
  text-align: right;
  background: transparent;
}

.isfp-vorteilsrechner .isfp-vorteil-table th:first-child,
.isfp-vorteilsrechner .isfp-vorteil-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
}

.isfp-vorteilsrechner .isfp-vorteil-table th {
  background: transparent;
  color: #1f2a44;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 2px solid #cfd6de;
}

.isfp-vorteilsrechner .isfp-vorteil-table tr:nth-child(even) td {
  background: transparent;
}

.isfp-vorteilsrechner .isfp-vorteil-table td:first-child,
.isfp-vorteilsrechner .isfp-vorteil-table th:first-child {
  text-align: left;
  font-weight: 600;
  color: #1f2a44;
}

.isfp-vorteilsrechner .isfp-vorteil-table td input {
  width: 100%;
  text-align: right;
  height: 42px;
  padding: 8px 10px;
  border: 2px solid #cfd6de;
  border-radius: 10px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.isfp-vorteilsrechner .isfp-vorteil-table td input:focus {
  outline: none;
  border-color: #2f8d3a;
  box-shadow: 0 0 0 3px rgba(47, 141, 58, 0.18);
}

.isfp-vorteilsrechner .isfp-label {
  display: inline-block;
  margin-right: 6px;
}

.isfp-vorteilsrechner .isfp-vorteil-table td:first-child {
  position: relative;
  padding-right: 34px;
}

.isfp-vorteilsrechner .isfp-vorteil-table td:first-child .isfp-label {
  display: block;
  margin-right: 0;
  padding-right: 26px;
}

.isfp-vorteilsrechner .isfp-vorteil-table td:first-child .isfp-info {
  position: absolute;
  top: 10px;
  right: 10px;
}

.isfp-vorteilsrechner .isfp-summary label {
  position: relative;
  display: block;
  padding-right: 26px;
}

.isfp-vorteilsrechner .isfp-summary label .isfp-info {
  position: absolute;
  top: 0;
  right: 0;
  margin-left: 0;
}

.isfp-vorteilsrechner .isfp-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid #b7c2d0;
  border-radius: 50%;
  background: #fff;
  color: #1f2a44;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.isfp-vorteilsrechner .isfp-info::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  max-width: 260px;
  min-width: 200px;
  padding: 10px 12px;
  background: #ffffff;
  color: #5f6b7a;
  font-size: 12px;
  line-height: 1.35;
  border-radius: 8px;
  border: 1px solid #cfd6de;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 5;
}

.isfp-vorteilsrechner .isfp-info::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%) translateY(4px);
  border-width: 6px;
  border-style: solid;
  border-color: #cfd6de transparent transparent transparent;
  opacity: 0;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 5;
}

.isfp-vorteilsrechner .isfp-info:hover::after,
.isfp-vorteilsrechner .isfp-info:hover::before,
.isfp-vorteilsrechner .isfp-info:focus::after,
.isfp-vorteilsrechner .isfp-info:focus::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.isfp-vorteilsrechner .isfp-info.isfp-info--show::after,
.isfp-vorteilsrechner .isfp-info.isfp-info--show::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.isfp-vorteilsrechner .isfp-error-tooltip {
  margin-left: 8px;
  border-color: #e19191;
  color: #b30000;
}

.isfp-vorteilsrechner .isfp-error-tooltip::after {
  bottom: auto;
  top: calc(100% + 10px);
}

.isfp-vorteilsrechner .isfp-error-tooltip::before {
  bottom: auto;
  top: calc(100% + 4px);
  border-color: transparent transparent #cfd6de transparent;
}

.isfp-vorteilsrechner .table-responsive {
  padding: 10px;
  background: transparent;
  border-radius: 16px;
  border: 2px solid #e1e6ec;
  overflow: visible;
  display: block;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.isfp-vorteilsrechner .table-responsive.isfp-scrollable {
  overflow-x: auto;
  overflow-y: visible;
}

.isfp-vorteilsrechner .isfp-vorteil-table {
  width: 100%;
  table-layout: fixed;
}

.isfp-vorteilsrechner .table-responsive.isfp-scrollable .isfp-vorteil-table {
  width: max-content;
  table-layout: auto;
}

.isfp-vorteilsrechner .table-responsive.isfp-scrollable .isfp-vorteil-table th:first-child,
.isfp-vorteilsrechner .table-responsive.isfp-scrollable .isfp-vorteil-table td:first-child {
  min-width: 200px;
}

.isfp-vorteilsrechner .table-responsive.isfp-scrollable .isfp-vorteil-table th:not(:first-child),
.isfp-vorteilsrechner .table-responsive.isfp-scrollable .isfp-vorteil-table td:not(:first-child) {
  min-width: 140px;
}

.isfp-vorteilsrechner .isfp-summary {
  text-align: center !important;
  justify-content: center !important;
  gap: 16px;
  flex-wrap: nowrap;
}

.isfp-vorteilsrechner .isfp-summary .col-md-4,
.isfp-vorteilsrechner .isfp-summary-card,
.isfp-vorteilsrechner .isfp-summary strong,
.isfp-vorteilsrechner .isfp-summary span {
  text-align: center !important;
}

.isfp-vorteilsrechner .isfp-summary strong,
.isfp-vorteilsrechner .isfp-summary span,
.isfp-vorteilsrechner .isfp-summary-card strong,
.isfp-vorteilsrechner .isfp-summary-card span {
  display: block;
}

.isfp-vorteilsrechner .isfp-summary .col-md-4,
.isfp-vorteilsrechner .isfp-summary-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid #e0e6ee;
  border-radius: 14px;
  padding: 12px 14px 16px;
  background: transparent;
  flex: 1 1 0;
}

.isfp-vorteilsrechner .isfp-summary-card--ohne {
  border-color: #f0c96a;
  background: #fff8e6;
}

.isfp-vorteilsrechner .isfp-summary-card--mit {
  border-color: #7bcf8e;
  background: #eef9f1;
}

.isfp-vorteilsrechner .isfp-summary label {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5f6b7a;
  margin-bottom: 6px;
}

.isfp-vorteilsrechner .isfp-summary .form-control {
  height: 46px;
  width: 100%;
  max-width: 260px;
  border-radius: 12px;
  border: 2px solid #cfd6de;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.02);
  text-align: center;
  font-weight: 600;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.isfp-vorteilsrechner .isfp-summary .form-control:focus {
  border-color: #2f8d3a;
  box-shadow: 0 0 0 3px rgba(47, 141, 58, 0.18);
}

.isfp-vorteilsrechner .isfp-summary *,
.isfp-vorteilsrechner .isfp-summary-card * {
  text-align: center !important;
}

.isfp-vorteilsrechner .isfp-summary .col-md-4 strong,
.isfp-vorteilsrechner .isfp-summary-card strong {
  font-size: 1.7rem;
  font-family: 'Poppins', 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.01em;
  color: #1f2a44;
  margin-bottom: 6px;
}

.isfp-vorteilsrechner .isfp-summary .col-md-4 span,
.isfp-vorteilsrechner .isfp-summary-card span {
  font-size: 1.7rem;
  font-weight: 700;
  color: #1f2a44;
}

.isfp-vorteilsrechner .isfp-summary-card > span,
.isfp-vorteilsrechner .isfp-summary .col-md-4 > span {
  background: #fff;
  padding: 4px 12px;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  min-width: 160px;
  text-align: center;
  border: 2px solid #e0e6ee;
}

.isfp-vorteilsrechner .isfp-summary-card--ohne > span {
  border-color: #f0c96a;
}

.isfp-vorteilsrechner .isfp-summary-card--mit > span {
  border-color: #7bcf8e;
}

.isfp-vorteilsrechner #isfp-mit-suffix {
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #5f6b7a;
}

.isfp-vorteilsrechner .isfp-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.isfp-vorteilsrechner .isfp-summary-stack {
  display: grid;
  gap: 16px;
}

.isfp-vorteilsrechner.section-full.bg-firmengrau .zd-heading {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #15243d 0%, #1f3a66 45%, #1a5b74 100%);
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 12px 18px;
  display: block;
  box-shadow: 0 14px 28px rgba(15, 26, 46, 0.28);
  position: relative;
  overflow: hidden;
}

.isfp-vorteilsrechner.section-full.bg-firmengrau .zd-heading-line {
  display: none;
}

.isfp-vorteilsrechner.section-full.bg-firmengrau .zd-heading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 180% at 10% 20%, rgba(255, 255, 255, 0.18), transparent 55%);
  pointer-events: none;
}

.isfp-vorteilsrechner.section-full.bg-firmengrau .zd-heading::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/wp-content/uploads/2026/01/isfp-haeuser-1.avif');
  background-size: auto 85%;
  background-repeat: no-repeat;
  background-position: 18px center;
  opacity: 0.42;
  pointer-events: none;
}

.isfp-vorteilsrechner .isfp-lead-question {
  margin: 10px auto 18px;
  text-align: left;
  font-size: 1.28rem;
  font-weight: 600;
  color: #1f2a44;
  letter-spacing: 0.01em;
}

.isfp-vorteilsrechner .isfp-lead-question--table {
  margin-top: 18px;
  margin-bottom: 12px;
}

.isfp-vorteilsrechner.section-full.bg-firmengrau .zd-heading .isfp-subtitle {
  display: block;
  margin-top: 6px;
  font-size: 0.98rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.isfp-vorteilsrechner .isfp-info-text {
  font-size: 0.9rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.isfp-vorteilsrechner .isfp-info-label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #1f2a44;
  flex: 0 0 auto;
}

.isfp-vorteilsrechner .isfp-info-body {
  display: block;
  color: #1f2a44;
}

.isfp-vorteilsrechner .isfp-gauge {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 2 / 1;
  margin: 10px auto 0;
  overflow: hidden;
}

.isfp-vorteilsrechner .isfp-gauge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px 999px 0 0;
  background: conic-gradient(from 180deg, #e04b4b 0deg, #f3c75e 90deg, #2fb463 180deg);
  z-index: 0;
}

.isfp-vorteilsrechner .isfp-gauge::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 999px 999px 0 0;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e6ecf3;
  z-index: 1;
}

.isfp-vorteilsrechner .isfp-gauge-needle {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2px;
  height: 88%;
  background: #1f2a44;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(-90deg);
  z-index: 2;
}

.isfp-vorteilsrechner .isfp-gauge-center {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1f2a44;
  transform: translate(-50%, 50%);
  z-index: 3;
}

.isfp-vorteilsrechner .isfp-gauge-value {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  font-weight: 700;
  color: #1f2a44;
  z-index: 4;
}

.isfp-vorteilsrechner .isfp-gauge-sub {
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  font-size: 0.78rem;
  color: #5f6b7a;
  width: 100%;
}

.isfp-vorteilsrechner .isfp-gauge-warning {
  margin-top: 10px;
  font-size: 0.88rem;
  text-align: center;
}

.isfp-vorteilsrechner .isfp-gauge-ok {
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2f8d3a;
  text-align: center;
}

.isfp-vorteilsrechner .isfp-gauge-under {
  margin-top: 8px;
  font-size: 0.88rem;
  color: #4f5b6a;
  text-align: center;
}


.isfp-vorteilsrechner .isfp-gauge--over .isfp-gauge-needle {
  background: #b30000;
}

.isfp-vorteilsrechner .isfp-gauge--over .isfp-gauge-value {
  color: #b30000;
}

.isfp-vorteilsrechner .isfp-result-line {
  margin: 18px 0 10px;
  padding: 14px 18px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2a44;
  background: transparent;
  border: 2px solid #c7e5c2;
  border-radius: 12px;
  box-shadow: none;
}

.isfp-vorteilsrechner .isfp-result-line #isfp-result-betrag {
  display: inline-block;
  margin: 0 6px;
  font-size: 1.35rem;
  color: #2f8d3a;
}

.isfp-vorteilsrechner .isfp-result-highlight {
  color: #2f8d3a;
  text-decoration: underline;
  margin: 0 6px 0 0;
  font-weight: 700;
}

.isfp-vorteilsrechner #isfp-fehler {
  background: transparent;
  border: 2px solid #f1b9b9;
  color: #9e2020;
  padding: 10px 12px;
  border-radius: 8px;
}

.isfp-vorteilsrechner .isfp-hinweis-deckel {
  margin-top: 12px;
  padding: 10px 12px;
  background: transparent;
  border: 2px solid #f3c285;
  border-radius: 8px;
  color: #8a4b10;
  font-size: 0.95rem;
  text-align: center;
}

.isfp-vorteilsrechner .isfp-min-invest {
  margin: 10px auto 0;
  padding: 10px 14px;
  max-width: 720px;
  text-align: center;
  background: transparent;
  border: 2px solid #c7dbf3;
  border-radius: 10px;
  color: #1f2a44;
  font-size: 0.98rem;
}

.isfp-vorteilsrechner.section-full.bg-firmengrau {
  background: transparent;
  border: 2px solid #d7dde4;
  border-radius: 18px;
  padding: 26px 0;
}


@media (max-width: 768px) {
  .isfp-vorteilsrechner .isfp-summary .col-md-4 {
    margin-bottom: 12px;
  }

  .isfp-vorteilsrechner .isfp-summary-grid {
    grid-template-columns: 1fr;
  }

  .isfp-vorteilsrechner .isfp-summary .form-control {
    max-width: 100%;
  }

  .isfp-vorteilsrechner .isfp-vorteil-table th,
  .isfp-vorteilsrechner .isfp-vorteil-table td {
    padding: 8px 10px;
    font-size: 0.92rem;
  }
}

@media (max-width: 700px) {
  .isfp-vorteilsrechner {
    display: none !important;
  }

  .isfp-mobile-link {
    display: block !important;
    margin: 0 auto 18px;
    text-align: center;
    max-width: 520px;
  }

  .isfp-mobile-link__hint {
    margin: 6px 0 0;
    font-size: 0.92rem;
    color: #5f6b7a;
  }

  .isfp-mobile-link__btn {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #33cc33;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
  }

  .isfp-mobile-link__btn:hover {
    background: #28aa28;
  }
}

@media (max-width: 700px) {
  body.isfp-force-show .isfp-vorteilsrechner {
    display: block !important;
  }

  body.isfp-force-show .isfp-mobile-link {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .isfp-vorteilsrechner .isfp-summary-card > span,
  .isfp-vorteilsrechner .isfp-summary .col-md-4 > span {
    min-width: 0;
    width: 100%;
  }

  .isfp-vorteilsrechner .isfp-summary .col-md-4 strong,
  .isfp-vorteilsrechner .isfp-summary-card strong,
  .isfp-vorteilsrechner .isfp-summary .col-md-4 span,
  .isfp-vorteilsrechner .isfp-summary-card span {
    font-size: 1.3rem;
  }
}

.isfp-mobile-link {
  display: none;
}
