/* ============================================================
   Block: Onepager Kaufpreis
   Prefix: okp-
   ============================================================ */

.block-onepager-kaufpreis {
  font-family: "Jost", sans-serif;
  color: #15325a;
  background: #edecf0;
}

.block-onepager-kaufpreis-wrapper {
  max-width: 1440px;
  margin: 0 auto;
}

/* ── 1. Header ───────────────────────────────────────────────── */

.okp-header {
  text-align: center;
  padding: 72px 60px 56px;
  border-bottom: 1px solid #e2e6ea;
  background: none;
  &:hover {
    background: none;
  }
}

.okp-heading {
  font-size: 2.5rem;
  font-weight: 300;
  color: #15325a;
  margin: 0 0 0.6rem;
  line-height: 1.15;
}

.okp-unterzeile {
  font-size: 0.75rem;
  color: #8a9ab0;
  margin: 0 auto 2rem;
  line-height: 1.6;
  max-width: 360px;
}

/* Gesamtpreis-Box */
.okp-gesamtpreis-wrap {
  display: flex;
  justify-content: center;
}

.okp-gesamtpreis {
  display: inline-block;
  padding: 0.7rem 2.5rem;
  background: #15325a;
  font-size: 1.75rem;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* ── 2. Szenarien-Reihe ──────────────────────────────────────── */

.okp-szenarien {
  display: flex;
  border-bottom: 1px solid #e2e6ea;
}

.okp-sz {
  flex: 1;
  padding: 48px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid #e2e6ea;
}

.okp-sz:last-child {
  border-right: none;
}

/* Nebenkosten-Badge (Kreis) */
.okp-badge {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(#15325a calc(var(--pct, 0) * 1%), #cdd3da 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  flex-shrink: 0;
  position: relative;
}

/* Weißer Innenkreis erzeugt Ring-Optik */
.okp-badge::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #fff;
}

.okp-badge__pct,
.okp-badge__plus,
.okp-badge__label {
  position: relative;
  z-index: 1;
}

.okp-badge__pct {
  font-size: 2.5rem;
  font-weight: 300;
  color: #15325a;
  line-height: 1;
  letter-spacing: -0.02em;
}

.okp-badge__plus {
  font-size: 0.6rem;
  font-weight: 600;
  color: #15325a;
  line-height: 1;
  letter-spacing: 0;
  margin-top: 0.15em;
}

.okp-badge__label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #15325a;
  margin-top: 0.1em;
}

/* Eigenkapital */
.okp-sz__key {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #15325a;
  margin: 0 0 0.4rem;
}

.okp-sz__ek {
  font-size: 1.35rem;
  font-weight: 300;
  color: #15325a;
  margin: 0 0 1.75rem;
  line-height: 1.2;
}

/* Monatsrate */
.okp-sz__raten-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: #15325a;
  color: #fff;
  align-self: stretch;
  text-align: center;
  margin: 0 -40px 0.5rem;
  padding: 0.45rem 40px;
  line-height: 1.5;
}

.okp-sz__raten-datum {
  display: block;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.okp-sz__rate {
  font-size: 1.5rem;
  font-weight: 500;
  color: #15325a;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

/* Optionale Fußnote unter der Szenarienreihe */
.okp-sz-fussnote {
  text-align: center;
  font-size: 0.68rem;
  color: #8a9ab0;
  padding: 0.6rem 60px;
  margin: 0;
  border-bottom: 1px solid #e2e6ea;
}

/* ── 3. Haustypen-Details ────────────────────────────────────── */

.okp-details {
  display: flex;
  align-items: flex-start;
}

.okp-dt {
  flex: 1;
  padding: 48px 44px;
  border-right: 1px solid #e2e6ea;
}

.okp-dt:last-child {
  border-right: none;
}

/* Haustyp-Heading */
.okp-dt__heading {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #15325a;
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #15325a;
  display: inline-block;
}

/* Kostenaufschlüsselung */
.okp-kosten {
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.okp-kosten__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #e2e6ea;
  font-size: 1rem;
}

.okp-kosten__row:first-child {
  border-top: 1px solid #e2e6ea;
}

.okp-kosten__row dt {
  font-weight: 400;
  color: #15325a;
  flex: 1;
}

.okp-kosten__row dd {
  font-weight: 500;
  color: #15325a;
  margin: 0;
  white-space: nowrap;
  text-align: right;
}

/* Berechnete Zeilen (Grunderwerbsteuer, Notar) leicht abgesetzt */
.okp-kosten__row--calc dt {
  color: #7a8fa8;
  font-style: italic;
}

.okp-kosten__row--calc dd {
  color: #7a8fa8;
}

/* Finanzierungsaufbau */
.okp-fin__heading {
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #15325a;
  margin: 0 0 1.25rem;
  font-size: 1rem;
}

.okp-fin__sub {
  font-weight: 500;
  color: #15325a;
  margin: 0 0 0.6rem;
  line-height: 1.5;
}

/* Definition-List für Finanzierungsdetails */
.okp-fin__dl {
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e6ea;
  background: #fff;
}

.okp-fin__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.35rem 0.75rem;
  border-bottom: 1px solid #e2e6ea;
}

.okp-fin__row:last-child {
  border-bottom: none;
}

.okp-fin__row dt {
  font-weight: 400;
  color: #7a8fa8;
  flex: 1;
}

.okp-fin__row dd {
  font-weight: 500;
  color: #15325a;
  margin: 0;
  white-space: nowrap;
  text-align: right;
}

/* Monatliche-Rate-Zeile hervorgehoben */
.okp-fin__row--rate {
  background: #eef1f5;
}

.okp-fin__row--rate dt {
  color: #15325a;
  font-weight: 500;
}

.okp-fin__row--rate dd {
  color: #15325a;
  font-weight: 600;
}

/* Fußnotentext */
.okp-dt__fussnoten {
  font-size: 0.65rem;
  color: #8a9ab0;
  line-height: 1.6;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e6ea;
}

/* ── 4. Bilder vor Kaufnebenkosten ──────────────────────────── */

.okp-kn-bilder {
  display: flex;
  gap: 80px;
  background: #fff;
  padding: 60px 80px;
}

.okp-kn-bilder__item {
  flex: 1 1 0;

  line-height: 0;
}

.okp-kn-bilder__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .okp-kn-bilder {
    flex-direction: column;
  }
}

/* ── 5. Kaufnebenkosten-Hinweis ──────────────────────────────── */

.okp-kn {
  padding: 48px 60px 56px;
  text-align: center;
  border-top: 1px solid #e2e6ea;
}

.okp-kn__heading {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #15325a;
  margin: 0 0 1rem;
}

.okp-kn__text {
  font-size: 0.78rem;
  color: #8a9ab0;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto;
}

.okp-kn__text p {
  margin: 0 0 0.4rem;
}

.okp-kn__text p:last-child {
  margin-bottom: 0;
}

.okp-kn__text strong {
  color: #15325a;
  font-weight: 600;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .okp-dt {
    padding: 40px 32px;
  }
}

@media (max-width: 900px) {
  .okp-header {
    padding: 56px 40px 40px;
  }

  .okp-sz {
    padding: 36px 24px;
  }

  .okp-sz__raten-label {
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 768px) {
  .okp-header {
    padding: 48px 24px 36px;
  }

  .okp-gesamtpreis {
    font-size: 1.4rem;
    padding: 0.6rem 1.75rem;
  }

  .okp-szenarien {
    flex-direction: column;
  }

  .okp-sz {
    border-right: none;
    border-bottom: 1px solid #e2e6ea;
    padding: 36px 24px;
  }

  .okp-sz__raten-label {
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .okp-sz:last-child {
    border-bottom: none;
  }

  .okp-details {
    flex-direction: column;
  }

  .okp-dt {
    border-right: none;
    border-bottom: 1px solid #e2e6ea;
    padding: 36px 24px;
  }

  .okp-dt:last-child {
    border-bottom: none;
  }

  .okp-kn {
    padding: 40px 24px 48px;
  }
}

@media (max-width: 480px) {
  .okp-heading {
    font-size: 2rem;
  }

  .okp-gesamtpreis {
    font-size: 1.2rem;
    padding: 0.5rem 1.25rem;
  }

  .okp-sz__rate {
    font-size: 1.25rem;
  }
}
