:root {
  --color-primary: #192846;
  --color-secondary: #b4f283;
  --color-secondary-light: #f4ffe8;
  --color-secondary-dark: #6fce60;
  --color-grey-typo: #b6bac1;
  --color-light-grey: #f4f4f4;
  --color-card-bg: rgba(25, 40, 70, 0.05);
  --font-heading: "Fractul Variable", "DM Sans", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-primary);
  background: #fff;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Navigation */

.navi {
  max-width: var(--max-width);
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 30px;
  border-radius: 38px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.09);
}

.navi__logo {
  height: 28px;
  width: auto;
}

.navi__links {
  display: flex;
  gap: 40px;
  font-weight: 700;
  font-size: 16px;
}

.navi__links a {
  text-decoration: none;
}

/* Page hero */

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 30px 100px;
}

.page__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 44px;
  letter-spacing: -0.44px;
  margin: 0 0 24px;
}

.page__lead {
  font-size: 20px;
  line-height: 1.3;
  max-width: 900px;
  margin: 0 0 60px;
}

/* Wizard */

.wizard-step {
  display: none;
}

.wizard-step.is-active {
  display: block;
}

.wizard-card {
  background: var(--color-card-bg);
  border-radius: 10px;
  padding: 40px;
  max-width: 700px;
}

.wizard-eyebrow {
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 20px;
}

.wizard-subtext {
  font-size: 16px;
  margin: -12px 0 20px;
}

.wizard-question {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.26px;
  margin: 0 0 24px;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.choice-btn {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 10px;
  border: 2px solid var(--color-grey-typo);
  background: #fff;
  font-size: 16px;
  color: var(--color-primary);
  text-align: center;
}

.choice-btn img {
  width: 22px;
  height: 22px;
}

.choice-btn.is-selected {
  border: 4px solid var(--color-secondary);
  padding: 16px 18px;
}

.choice-row--chips {
  gap: 16px;
}

.chip-btn {
  flex: 0 0 auto;
  min-width: 60px;
  padding: 12px 18px;
  border-radius: 30px;
  border: none;
  background: rgba(25, 40, 70, 0.12);
  color: var(--color-primary);
  font-size: 16px;
}

.chip-btn.is-selected {
  background: var(--color-primary);
  color: #fff;
}

.wizard-actions {
  margin-top: 24px;
  display: flex;
  max-width: 700px;
}

.wizard-actions--split {
  justify-content: space-between;
}

.btn {
  padding: 12px 22px;
  border-radius: 24px;
  border: none;
  font-weight: 700;
  font-size: 16px;
  color: var(--color-primary);
}

.btn-back {
  background: var(--color-secondary-light);
}

.btn-primary {
  background: var(--color-secondary);
}

/* Progress bar */

.progress-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.progress-track {
  flex: 1;
  height: 5px;
  background: #d9d9d9;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--color-secondary);
  box-shadow: 0 0 5px 0 var(--color-secondary);
  border-radius: 3px;
  transition: width 0.2s ease;
}

.progress-label {
  font-size: 14px;
  color: var(--color-grey-typo);
  white-space: nowrap;
}

/* Input fields */

.field {
  margin-bottom: 24px;
  max-width: 700px;
}

.field label {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}

.field input {
  width: 100%;
  padding: 16px 15px;
  border-radius: 10px;
  border: 1px solid var(--color-grey-typo);
  font-size: 16px;
  font-family: inherit;
  color: var(--color-primary);
}

.field input::placeholder {
  color: var(--color-grey-typo);
}

/* Result screen */

.wizard-step--result {
  max-width: none;
}

.result {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.result__main {
  flex: 1 1 560px;
  min-width: 0;
}

.result__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 34px;
  letter-spacing: -0.34px;
  margin: 4px 0 24px;
}

.result__consumption {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 28px;
}

.result__consumption-prefix {
  font-weight: 500;
  font-size: 16px;
}

.result__consumption-value {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.36px;
  color: var(--color-secondary);
}

.result__consumption-suffix {
  font-weight: 500;
  font-size: 16px;
}

.result__panel {
  background: var(--color-light-grey);
  border-radius: 10px;
  padding: 30px;
}

.tariff-tabs {
  display: flex;
  gap: 10px;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 20px;
}

.tariff-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px;
  border-radius: 10px;
  font-size: 16px;
  color: var(--color-primary);
}

.tariff-tab.is-active {
  background: var(--color-secondary);
}

.price-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.price-card {
  flex: 1 1 200px;
  background: rgba(25, 40, 70, 0.05);
  border-radius: 10px;
  padding: 20px;
}

.price-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-card__label {
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 16px;
}

.price-card__value {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.28px;
  margin: 0 0 8px;
}

.price-card__rate {
  font-size: 16px;
  margin: 0;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border-radius: 25px;
  padding: 5px 10px 5px 5px;
  font-weight: 700;
  font-size: 14px;
}

.price-badge img {
  width: 20px;
  height: 20px;
}

.result__chart-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.22px;
  margin: 0 0 20px;
}

.chart {
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: 8px;
}

.chart__bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 80px;
  padding: 0 20px;
  min-height: 200px;
}

.chart__bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 130px;
  position: relative;
}

.chart__bar {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.chart__segment {
  width: 100%;
}

.chart__segment--cap {
  background: var(--color-secondary-dark);
}

.chart__segment--energy {
  background: var(--color-secondary);
}

.chart__segment--netz {
  background: var(--color-primary);
}

.chart__year {
  margin-top: 12px;
  font-weight: 500;
  font-size: 16px;
}

.chart__tooltip {
  position: absolute;
  top: -6px;
  right: -10px;
  transform: translateY(-100%);
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: none;
}

.chart__bar-col:hover .chart__tooltip {
  display: block;
}

.result__footnote {
  font-size: 13px;
  margin: 0;
}

.result__sidebar {
  flex: 0 1 320px;
  min-width: 280px;
}

.result__links-title {
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 20px;
}

.links-list {
  list-style: none;
  margin: 0 0 40px;
  padding: 20px 0 0;
  border-top: 1px solid var(--color-grey-typo);
}

.links-list li {
  border-bottom: 1px solid var(--color-grey-typo);
}

.links-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  text-decoration: none;
  font-size: 16px;
}

/* Footer */

.footer {
  background: var(--color-primary);
  color: #fff;
  margin-top: 60px;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 50px 30px 30px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 24px;
  align-items: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 40px;
}

.footer__logo {
  height: 26px;
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.footer__address p,
.footer__contact a {
  margin: 0 0 4px;
  font-size: 16px;
  display: block;
}

.footer__contact a {
  text-decoration: underline;
}

.footer__social {
  display: flex;
  gap: 12px;
  justify-self: end;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__social img {
  width: 14px;
  height: auto;
}

.footer__legal {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 30px;
  display: flex;
  gap: 30px;
  font-size: 16px;
}

/* Responsive */

@media (max-width: 900px) {
  .navi {
    border-radius: 24px;
    padding: 12px 20px;
  }
  .navi__links {
    gap: 20px;
    font-size: 14px;
  }
  .page {
    padding: 50px 20px 70px;
  }
  .page__title {
    font-size: 34px;
  }
  .page__lead {
    font-size: 18px;
    margin-bottom: 40px;
  }
  .wizard-card {
    padding: 24px;
  }
  .choice-row {
    flex-direction: column;
  }
  .chart__bars {
    gap: 40px;
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__social {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .wizard-actions--split {
    gap: 12px;
  }
  .price-cards {
    flex-direction: column;
  }
  .footer__inner {
    grid-template-columns: 1fr;
  }
}
