@import url("../finanzierungsrechner/styles.css");

.calculator-hero h1 {
  max-width: 900px;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  width: 100%;
  min-height: 52px;
  border: 0;
  background: transparent;
  padding: 13px 42px 13px 14px;
  color: var(--ink);
  font: 650 1rem/1.2 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  appearance: none;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-68%) rotate(45deg);
  pointer-events: none;
}

.calculator-wide {
  grid-column: 1 / -1;
}

.result-list .result-highlight dt,
.result-list .result-highlight dd {
  color: #fff;
}

.result-list .result-highlight {
  position: relative;
}

.result-list .result-highlight::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -18px;
  width: 4px;
  background: var(--gold);
}

.cost-overview,
.financing {
  background: var(--surface);
}

.cost-overview > *,
.planning > *,
.financing > * {
  max-width: var(--max);
  margin-inline: auto;
}

.cost-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cost-wide {
  grid-column: span 4;
  min-height: auto;
}

.next-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.next-link strong {
  align-self: end;
  color: var(--green);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

.financing .section-intro {
  margin-bottom: 0;
}

.financing .text-flow {
  max-width: 680px;
}

@media (max-width: 1180px) {
  .cost-grid,
  .next-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cost-wide {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .cost-grid,
  .next-grid {
    grid-template-columns: 1fr;
  }

  .cost-wide {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .calculator-hero h1 {
    font-size: clamp(1.8rem, 8.6vw, 2.35rem);
    overflow-wrap: normal;
    word-break: normal;
  }
}
