/* PrimeKonzept calculator hub and detail pages. Partner logic stays in Core. */
.pk-calculator-site {
  overflow-x: clip;
}

.pk-calculator-page,
.pk-calculator-page * {
  min-width: 0;
}

.pk-calculator-page {
  color: var(--pk-ink);
  background: #fff;
}

.pk-calculator-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 7vw, 92px) 0 clamp(48px, 6vw, 76px);
  background:
    radial-gradient(circle at 92% 8%, rgba(189, 139, 47, .16), transparent 28%),
    linear-gradient(145deg, #fff 0%, #f7fafc 72%, #f4f0e8 100%);
  border-bottom: 1px solid var(--pk-line);
}

.pk-calculator-hero::after {
  position: absolute;
  right: -145px;
  bottom: -310px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(189, 139, 47, .22);
  border-radius: 50%;
  box-shadow:
    0 0 0 68px rgba(189, 139, 47, .04),
    0 0 0 136px rgba(16, 37, 63, .025);
  content: "";
}

.pk-calculator-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
  gap: clamp(38px, 7vw, 86px);
  align-items: end;
}

.pk-breadcrumb {
  margin-bottom: 28px;
}

.pk-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 9px;
  margin: 0;
  padding: 0;
  color: #647487;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.pk-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.pk-breadcrumb li + li::before {
  color: #b18a48;
  content: "/";
}

.pk-breadcrumb a {
  color: #526578;
  text-decoration: none;
}

.pk-breadcrumb a:hover,
.pk-breadcrumb a:focus-visible {
  color: var(--pk-blue);
  text-decoration: underline;
}

.pk-calculator-hero h1 {
  max-width: 830px;
  margin: 16px 0 18px;
  color: var(--pk-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(43px, 6vw, 74px);
  font-weight: 500;
  letter-spacing: -.038em;
  line-height: 1.03;
  overflow-wrap: anywhere;
}

.pk-calculator-hero__copy > p {
  max-width: 790px;
  margin: 0;
  color: var(--pk-muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.7;
}

.pk-calculator-hero__note {
  padding: 27px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #dfe6eb;
  border-radius: 22px;
  box-shadow: 0 22px 58px rgba(16, 37, 63, .09);
}

.pk-calculator-hero__note > span {
  display: block;
  color: #846121;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.pk-calculator-hero__note strong {
  display: block;
  margin-top: 10px;
  color: var(--pk-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.pk-calculator-hero__note p {
  margin: 13px 0 0;
  color: #5c6c7c;
  font-size: 13px;
  line-height: 1.62;
}

/* Detail pages are task-first: one compact heading, then the calculator. */
.pk-calculator-detail-head {
  padding: 22px 0 16px;
  background: #fff;
}

.pk-calculator-detail-head .pk-breadcrumb {
  margin-bottom: 10px;
}

.pk-calculator-detail-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 22px;
  align-items: center;
}

.pk-calculator-detail-visual {
  width: 180px;
  height: 104px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dfe5ea;
  border-radius: 13px;
  box-shadow: 0 9px 26px rgba(16, 37, 63, .09);
}

.pk-calculator-detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 62%;
}

.pk-calculator-detail-head h1 {
  margin: 0;
  color: var(--pk-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.pk-calculator-detail-head p {
  max-width: 920px;
  margin: 8px 0 0;
  color: var(--pk-muted);
  font-size: 14px;
  line-height: 1.5;
}

.pk-calculator-switch {
  position: relative;
  z-index: 2;
  padding: 0 0 14px;
  background: #fff;
}

.pk-calculator-site--hub .pk-calculator-switch {
  padding: 20px 0 0;
}

.pk-calculator-switch .pk-wrap {
  display: grid;
  grid-template-columns: auto minmax(220px, 420px);
  gap: 12px;
  align-items: center;
}

.pk-calculator-switch label {
  color: var(--pk-navy);
  font-size: 13px;
  font-weight: 850;
}

.pk-calculator-switch__control {
  position: relative;
  display: block;
}

.pk-calculator-switch__control::after {
  position: absolute;
  top: 50%;
  right: 17px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--pk-navy);
  border-bottom: 2px solid var(--pk-navy);
  content: "";
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.pk-calculator-switch select {
  width: 100%;
  min-height: 46px;
  padding: 9px 46px 9px 13px;
  color: var(--pk-navy);
  background: #fff;
  border: 1px solid #b9c5cf;
  border-radius: 11px;
  box-shadow: 0 8px 22px rgba(16, 37, 63, .06);
  appearance: none;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.pk-calculator-switch select:focus-visible {
  outline: 3px solid rgba(189, 139, 47, .46);
  outline-offset: 2px;
}

.pk-calculator-main {
  padding: clamp(54px, 7vw, 86px) 0 clamp(72px, 8vw, 108px);
}

.pk-calculator-page--detail .pk-calculator-main {
  padding: 0 0 24px;
}

.pk-calculator-content {
  width: 100%;
  max-width: none;
}

.pk-calculator-content > :first-child {
  margin-top: 0;
}

.pk-calculator-content > :last-child {
  margin-bottom: 0;
}

.pk-calculator-content h2,
.pk-calculator-content h3 {
  color: var(--pk-navy);
  overflow-wrap: anywhere;
}

.pk-calculator-content h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -.022em;
  line-height: 1.12;
}

.pk-calculator-content h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.35;
}

.pk-calculator-content p,
.pk-calculator-content li {
  color: #536476;
  line-height: 1.7;
}

.pk-calculator-content a:focus-visible,
.pk-calculator-back a:focus-visible,
.pk-calculator-card:focus-visible {
  outline: 3px solid rgba(189, 139, 47, .46);
  outline-offset: 3px;
}

/* Shared surface for first-party tools and licensed comparison integrations. */
.pk-internal-calculator,
.pk-calculator-shell {
  width: 100%;
  padding: clamp(18px, 3vw, 30px);
  background: #fff;
  border: 1px solid #dfe5ea;
  border-radius: 16px;
  box-shadow: 0 14px 38px rgba(16, 37, 63, .07);
}

.pk-calculator-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pk-calculator-field {
  display: grid;
  gap: 6px;
}

.pk-calculator-field label {
  color: var(--pk-navy);
  font-size: 13px;
  font-weight: 800;
}

.pk-calculator-field input,
.pk-calculator-field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--pk-ink);
  background: #fff;
  border: 1px solid #b9c5cf;
  border-radius: 10px;
  font: inherit;
}

.pk-calculator-field input:focus-visible,
.pk-calculator-field select:focus-visible,
.pk-calculator-submit:focus-visible {
  outline: 3px solid rgba(189, 139, 47, .46);
  outline-offset: 2px;
}

.pk-calculator-submit {
  min-height: 48px;
  padding: 11px 20px;
  color: #fff;
  background: var(--pk-navy);
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.pk-calculator-result {
  margin-top: 18px;
  padding: clamp(16px, 3vw, 26px);
  color: var(--pk-navy);
  background: var(--pk-gold-soft);
  border-radius: 12px;
}

.pk-calculator-disclaimer,
.pk-calculator__disclosure {
  margin: 0;
  padding: 10px 14px;
  color: #5e6e7e;
  background: #fff;
  border-top: 1px solid var(--pk-line);
  font-size: 11px;
  line-height: 1.45;
}

/* Catalogue supplied by PrimeKonzept Core. */
.pk-calculator-catalog {
  display: grid;
  gap: clamp(54px, 7vw, 84px);
}

.pk-calculator-catalog__section {
  scroll-margin-top: 112px;
}

.pk-calculator-catalog__section > header,
.pk-calculator-catalog__heading {
  max-width: 760px;
  margin-bottom: 25px;
}

.pk-calculator-catalog__section > header p,
.pk-calculator-catalog__heading p {
  margin: 9px 0 0;
}

.pk-calculator-catalog__notice {
  margin: 0;
  padding: 22px 24px;
  border: 1px solid #e8d9bd;
  border-left: 4px solid var(--pk-gold);
  border-radius: 0 16px 16px 0;
  background: linear-gradient(90deg, #faf5eb, #fff);
  box-shadow: 0 12px 32px rgba(16, 37, 63, .045);
}

.pk-calculator-catalog__notice p {
  margin: 0;
  color: #554a39;
  font-size: 14px;
}

.pk-calculator-catalog__grid,
.pk-calculator-catalog__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.pk-calculator-card {
  position: relative;
  min-height: 248px;
  display: flex;
  flex-direction: column;
  padding: 27px;
  color: var(--pk-navy);
  background: #fff;
  border: 1px solid var(--pk-line);
  border-radius: 20px;
  box-shadow: 0 16px 42px rgba(16, 37, 63, .06);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.pk-calculator-card:hover {
  color: var(--pk-navy);
  border-color: #d7bd8b;
  box-shadow: 0 20px 48px rgba(16, 37, 63, .11);
  transform: translateY(-3px);
}

.pk-calculator-card p {
  margin: 0;
  font-size: 13px;
}

.pk-calculator-card__icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 27px;
  place-items: center;
  color: var(--pk-navy);
  background: var(--pk-gold-soft);
  border-radius: 14px;
  font-family: Georgia, serif;
  font-size: 21px;
}

.pk-calculator-card__link,
.pk-calculator-card > span:last-child {
  margin-top: auto;
  min-height: 44px;
  padding: 24px 0 0;
  color: var(--pk-blue);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 800;
}

.pk-calculator-card__link:hover {
  color: var(--pk-navy);
  background: transparent;
}

/* Individual calculator/consent component supplied by PrimeKonzept Core. */
.pk-calculator,
.pk-calculator-page .pk-partner-gate {
  width: 100%;
  max-width: none;
}

.pk-calculator {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe5ea;
  border-radius: 24px;
  box-shadow: 0 22px 62px rgba(16, 37, 63, .09);
}

.pk-calculator-page--detail .pk-calculator {
  border-radius: 16px;
  box-shadow: 0 14px 38px rgba(16, 37, 63, .07);
}

/* Core keeps a navigation fallback; the theme-level selector is the one shown. */
.pk-calculator-page--detail .pk-calculator__switch {
  display: none;
}

.pk-calculator__consent {
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(120deg, rgba(247, 239, 225, .68), rgba(255, 255, 255, .96) 48%),
    #fff;
}

.pk-calculator-page--detail .pk-calculator__intro {
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--pk-line);
}

.pk-calculator-page--detail .pk-calculator__intro h2 {
  display: none;
}

.pk-calculator-page--detail .pk-calculator__intro p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.pk-calculator__intro h2 {
  margin: 7px 0 11px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.12;
}

.pk-calculator__intro > p:last-child {
  max-width: 780px;
  margin-bottom: 0;
}

.pk-calculator__consent > :first-child,
.pk-calculator__stage > :first-child {
  margin-top: 0;
}

.pk-calculator__consent > :last-child,
.pk-calculator__stage > :last-child {
  margin-bottom: 0;
}

.pk-calculator__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.pk-calculator__actions button,
.pk-calculator__actions a,
.pk-calculator-page .pk-partner-button,
.pk-calculator-page .pk-partner-close {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  border-radius: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.pk-calculator__actions .pk-calculator__fallback {
  color: var(--pk-navy);
  background: #fff;
  border: 1px solid #b9c5cf;
}

.pk-calculator__actions .pk-calculator__fallback:hover {
  color: var(--pk-blue);
  border-color: var(--pk-blue);
}

.pk-calculator-page .pk-partner-frame {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #f4f6f8;
}

.pk-calculator__stage {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding: clamp(10px, 2vw, 20px);
  border-top: 1px solid var(--pk-line);
  background: #f4f6f8;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.pk-calculator-page--detail .pk-calculator__stage {
  padding: 0;
  border-top: 0;
}

.pk-calculator__stage iframe,
.pk-calculator-page .pk-partner-frame iframe,
.pk-calculator-content > iframe {
  display: block;
  width: 100% !important;
  min-height: 720px;
  margin: 0;
  border: 1px solid #d6dee5;
  border-radius: 14px;
  background: #fff;
}

.pk-calculator__stage iframe {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.pk-calculator--wide .pk-calculator__stage iframe {
  min-width: var(--pk-calculator-min-width) !important;
  max-width: none !important;
}

.pk-calculator:not(.pk-calculator--wide) .pk-calculator__stage iframe {
  max-width: 100%;
  min-width: 0;
}

.pk-calculator-page .pk-partner-frame iframe,
.pk-calculator-content > iframe {
  max-width: 100% !important;
  min-width: 0 !important;
}

.pk-calculator__fallback {
  margin: 14px 0 0;
  color: #5e6e7e;
  font-size: 13px;
}

.pk-calculator__fallback a {
  font-weight: 800;
}

.pk-calculator-process {
  padding: clamp(68px, 8vw, 104px) 0;
  background: var(--pk-cloud);
  border-top: 1px solid var(--pk-line);
}

.pk-calculator-section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.pk-calculator-section-head h2 {
  margin: 12px 0 0;
  color: var(--pk-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4.2vw, 50px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.pk-calculator-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pk-calculator-steps article {
  min-height: 220px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--pk-line);
  border-radius: 18px;
}

.pk-calculator-steps article > span {
  color: var(--pk-gold-dark);
  font-family: Georgia, serif;
  font-size: 22px;
}

.pk-calculator-steps h3 {
  margin: 27px 0 8px;
  color: var(--pk-navy);
  font-size: 18px;
}

.pk-calculator-steps p {
  margin: 0;
  color: var(--pk-muted);
  font-size: 13px;
  line-height: 1.65;
}

.pk-calculator-back {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 33px;
  padding-top: 25px;
  border-top: 1px solid var(--pk-line);
}

.pk-calculator-page--detail > .pk-calculator-back {
  margin-bottom: clamp(48px, 6vw, 76px);
}

.pk-calculator-back a {
  color: var(--pk-navy);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.pk-calculator-back a:hover {
  color: var(--pk-blue);
}

@media (max-width: 980px) {
  .pk-calculator-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .pk-calculator-hero__note {
    max-width: 620px;
  }

  .pk-calculator-catalog__grid,
  .pk-calculator-catalog__cards,
  .pk-calculator-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pk-calculator-steps article:last-child {
    grid-column: 1 / -1;
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .pk-calculator-hero {
    padding: 45px 0 48px;
  }

  .pk-calculator-hero h1 {
    font-size: clamp(38px, 11.5vw, 54px);
    hyphens: auto;
  }

  .pk-calculator-hero__copy > p {
    font-size: 15px;
  }

  .pk-calculator-hero__note {
    padding: 22px;
    border-radius: 18px;
  }

  .pk-calculator-main {
    padding: 48px 0 74px;
  }

  .pk-calculator-detail-head {
    padding: 14px 0 10px;
  }

  .pk-calculator-detail-head .pk-wrap {
    width: min(calc(100% - 24px), var(--pk-width));
  }

  .pk-calculator-detail-head__grid {
    display: block;
  }

  .pk-calculator-detail-visual {
    width: 100%;
    height: 72px;
    margin-top: 9px;
    border-radius: 10px;
    box-shadow: none;
  }

  .pk-calculator-detail-visual img {
    object-position: 70% 62%;
  }

  .pk-calculator-detail-head .pk-breadcrumb {
    margin-bottom: 7px;
  }

  .pk-calculator-detail-head h1 {
    font-size: clamp(28px, 8.8vw, 38px);
  }

  .pk-calculator-detail-head p {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.42;
  }

  .pk-calculator-switch {
    padding-bottom: 9px;
  }

  .pk-calculator-site--hub .pk-calculator-switch {
    padding-top: 14px;
  }

  .pk-calculator-switch .pk-wrap {
    width: min(calc(100% - 24px), var(--pk-width));
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .pk-calculator-switch select {
    min-height: 48px;
    font-size: 16px;
  }

  .pk-calculator-page--detail .pk-calculator-main {
    padding: 0 0 18px;
  }

  .pk-calculator-page--detail .pk-calculator-main > .pk-wrap {
    width: 100%;
  }

  .pk-calculator-catalog__grid,
  .pk-calculator-catalog__cards,
  .pk-calculator-steps,
  .pk-calculator-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .pk-calculator-steps article:last-child {
    grid-column: auto;
  }

  .pk-calculator-card,
  .pk-calculator-steps article {
    min-height: 0;
  }

  .pk-calculator__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pk-calculator__actions button,
  .pk-calculator__actions a,
  .pk-calculator-page .pk-partner-button,
  .pk-calculator-page .pk-partner-close {
    width: 100%;
  }

  .pk-calculator__stage {
    padding: 8px;
  }

  .pk-calculator-page--detail .pk-calculator,
  .pk-calculator-page--detail .pk-partner-gate,
  .pk-calculator-page--detail .pk-internal-calculator,
  .pk-calculator-page--detail .pk-calculator-shell {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .pk-calculator-page--detail .pk-calculator__stage,
  .pk-calculator-page--detail .pk-partner-frame {
    width: 100%;
    padding: 0;
  }

  .pk-calculator-page--detail .pk-calculator__stage {
    max-width: 100%;
    overflow-x: auto;
  }

  .pk-calculator-page--detail .pk-calculator__intro {
    padding: 9px 12px;
  }

  .pk-calculator__stage iframe,
  .pk-calculator-page .pk-partner-frame iframe,
  .pk-calculator-content > iframe {
    min-height: 650px;
    border-radius: 10px;
  }

  .pk-calculator-back {
    flex-direction: column;
  }

  .pk-calculator-page--detail > .pk-calculator-back {
    width: min(calc(100% - 24px), var(--pk-width));
    margin-top: 0;
    margin-bottom: 48px;
  }
}

@media (max-width: 470px) {
  .pk-calculator-page {
    overflow-wrap: anywhere;
  }

  .pk-calculator-hero::after {
    display: none;
  }

  .pk-breadcrumb {
    margin-bottom: 22px;
  }

  .pk-calculator-hero h1 {
    font-size: clamp(35px, 10.9vw, 46px);
    line-height: 1.06;
  }

  .pk-calculator-hero__note,
  .pk-calculator-card,
  .pk-calculator__consent,
  .pk-calculator-steps article {
    padding: 20px;
  }

  .pk-calculator,
  .pk-calculator-page .pk-partner-gate {
    border-radius: 17px;
  }

  .pk-calculator-catalog {
    gap: 50px;
  }

  .pk-calculator-card__icon {
    margin-bottom: 20px;
  }
}

@media (max-width: 340px) {
  .pk-calculator-hero h1 {
    font-size: 34px;
  }

  .pk-calculator-hero__note strong {
    font-size: 20px;
  }

  .pk-calculator__stage {
    padding-inline: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pk-calculator-card {
    transition: none;
  }
}

@media print {
  .pk-calculator-hero__note,
  .pk-calculator-process,
  .pk-calculator__actions,
  .pk-calculator__stage {
    display: none !important;
  }
}
