/* Vergleich: page-specific additions. Shared filter/table chrome lives in lp-comparison-table.css. */
body.lp-kostenlos-page .kostenlos-filter-primary {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(520px, 1.6fr);
  gap: 16px;
  align-items: end;
}

body.lp-kostenlos-page .hero-stat-num--18 {
  font-size: 18px;
}

body.lp-kostenlos-page .kostenlos-rechner-inline {
  min-width: 0;
  display: grid;
  gap: 8px;
}

body.lp-kostenlos-page .rechner-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-caption-size);
  font-weight: 800;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

body.lp-kostenlos-page .rechner-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.lp-kostenlos-page .rechner-field {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body.lp-kostenlos-page .rechner-field label {
  overflow: hidden;
  color: var(--gray-700);
  font-size: var(--text-mini-label-size);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body.lp-kostenlos-page .rechner-field input {
  width: 100%;
  min-height: 44px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  background: var(--gray-50);
  color: var(--gray-800);
  font-family: 'Poppins', sans-serif;
  font-size: var(--text-ui-size);
  font-weight: 700;
  padding: 8px 16px 8px 10px;
  text-align: right;
  transition: border-color .15s, background .15s;
}

body.lp-kostenlos-page .rechner-field input:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: #fff;
}

body.lp-kostenlos-page .kostenlos-table { min-width: 1640px; }
body.lp-kostenlos-page .kostenlos-table .th-col-anbieter { width: 292px; min-width: 292px; }
body.lp-kostenlos-page .kostenlos-table .th-col-price { width: 132px; min-width: 132px; text-align: center; }
body.lp-kostenlos-page .kostenlos-table .th-col-schufa { width: 132px; min-width: 132px; text-align: center; }
body.lp-kostenlos-page .kostenlos-table .th-col-rf { width: 170px; min-width: 170px; }
body.lp-kostenlos-page .kostenlos-table .th-col-cashback { width: 138px; min-width: 138px; text-align: center; }
body.lp-kostenlos-page .kostenlos-table .th-col-feature { width: 140px; min-width: 140px; text-align: center; }
body.lp-kostenlos-page .kostenlos-table .th-col-total { width: 184px; min-width: 184px; text-align: center; }
body.lp-kostenlos-page .kostenlos-table .th-col-cta { width: 168px; min-width: 168px; }

body.lp-kostenlos-page .td-total {
  color: var(--gray-800);
  font-weight: 700;
  white-space: nowrap;
}

body.lp-kostenlos-page .th-total {
  background: color-mix(in srgb, var(--accent-blue) 8%, transparent) !important;
}

body.lp-kostenlos-page .td-total-col {
  background: color-mix(in srgb, var(--accent-blue) 4.5%, transparent);
}

body.lp-kostenlos-page tr:hover .td-total-col {
  background: color-mix(in srgb, var(--accent-blue) 7%, transparent);
}

body.lp-kostenlos-page .td-total-col .u-text-green-xstrong {
  font-weight: 700;
}

body.lp-kostenlos-page .kostenlos-table .total-breakdown-tooltip {
  top: calc(100% + 10px);
  bottom: auto;
  left: 50%;
  transform: translateX(-22%);
  width: min(280px, 72vw);
  white-space: normal;
  text-align: left;
}

body.lp-kostenlos-page .kostenlos-table .total-breakdown-tooltip::after {
  top: auto;
  bottom: 100%;
  left: 22%;
  border-top-color: transparent;
  border-bottom-color: var(--gray-800);
}

body.lp-kostenlos-page .icon-no {
  color: var(--red);
}

@media (max-width: 980px) {
  body.lp-kostenlos-page .kostenlos-filter-primary { grid-template-columns: 1fr; }
  body.lp-kostenlos-page .kostenlos-rechner-inline { gap: 10px; }
  body.lp-kostenlos-page .kostenlos-table thead th.th-col-cta,
  body.lp-kostenlos-page .kostenlos-table tbody td.td-cta {
    position: static;
  }
}

@media (max-width: 640px) {
  body.lp-kostenlos-page .filter-header { grid-template-columns: minmax(0, 1fr); }
  body.lp-kostenlos-page .filter-header-left,
  body.lp-kostenlos-page .sort-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  body.lp-kostenlos-page .filter-title { overflow-wrap: normal; }
  body.lp-kostenlos-page .filter-subtitle { overflow-wrap: anywhere; }
  body.lp-kostenlos-page .fd-sort {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  body.lp-kostenlos-page .rechner-fields { grid-template-columns: 1fr; }
  body.lp-kostenlos-page .rechner-label { white-space: normal; }
}

/* EDITORIAL */
body.lp-kostenlos-page section.content-section { padding: 72px 5vw 80px; background: var(--gray-50); border-top: 1px solid var(--gray-200); }
body.lp-kostenlos-page .content-body { min-width: 0; }

@media (max-width: 768px) {
  body.lp-kostenlos-page .rechner-fields { flex-wrap: wrap; gap: 10px; }
  body.lp-kostenlos-page .rechner-field { flex: 1; min-width: 80px; }
  body.lp-kostenlos-page .rechner-field input { width: 100%; }
}
