/* Rechner: einheitliches Layout für Eingabe und Sticky-Hinweise */

.calculator-intro-card {
  border-color: rgba(96, 165, 250, 0.34);
}

.calculator-start-hint {
  margin: 18px 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 14px;
  background: rgba(16, 39, 68, 0.72);
}

.calculator-start-hint strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.calculator-start-hint p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.calculator-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}

.progress-phase {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 17, 31, 0.48);
}

.progress-phase span {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
  font-weight: 800;
}

.progress-phase strong {
  color: var(--text);
  line-height: 1.25;
}

.progress-phase small {
  color: var(--muted);
  line-height: 1.35;
}

.progress-phase.active {
  border-color: rgba(96, 165, 250, 0.46);
  background: rgba(16, 39, 68, 0.76);
}

.step-help {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.calculator-benefit-card {
  border-color: rgba(96, 165, 250, 0.28);
}

.benefit-list li + li {
  margin-top: 8px;
}

.next-step-box {
  border: 1px solid rgba(96, 165, 250, 0.32);
  border-radius: 16px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 34%),
    rgba(16, 28, 47, 0.86);
}

.next-step-box h3 {
  margin-top: 0;
}

.next-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.next-step-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.result-sammelwege-box {
  border-color: rgba(52, 211, 153, 0.28);
}

.points-row {
  display: block;
}

.points-main-card {
  width: 100%;
}

.sidebar-transfer-hint {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sidebar-transfer-hint .info-card {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
}

.sidebar-transfer-hint .info-icon {
  line-height: 1.4;
}

.sidebar-transfer-hint strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.sidebar-transfer-hint p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.points-main-card .form-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.points-main-card .field-group input,
.points-main-card .scenario-switch-wrap select {
  width: 100%;
}

.scenario-switch-wrap {
  margin-top: 18px;
  max-width: 360px;
}

.scenario-label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}

.result-loading {
  padding: 22px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 18px;
  background: rgba(16, 39, 68, 0.72);
  color: var(--text);
  font-weight: 800;
}

.optimized-result-card .result-section,
.optimized-result-card .result-action-box {
  margin-top: 20px;
}

.result-hero-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border-radius: 22px;
}

.result-hero-summary h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.result-hero-summary p {
  margin: 0;
  color: rgba(226, 232, 240, 0.84);
  line-height: 1.65;
}

.result-main-number {
  padding: 18px;
  border-radius: 18px;
  background: rgba(7, 17, 31, 0.52);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.result-main-number span,
.result-main-number small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.result-main-number strong {
  display: block;
  margin: 7px 0;
  color: var(--text);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.1;
}

.result-grid-priority .result-item-highlight {
  border-color: rgba(96, 165, 250, 0.30);
  background: rgba(16, 39, 68, 0.58);
}

.result-context-note {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.result-action-box {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  background: rgba(16, 28, 47, 0.78);
}

.result-action-box h3 {
  margin: 8px 0 10px;
  color: var(--text);
}

.result-action-box p,
.result-action-box li {
  color: var(--muted);
  line-height: 1.7;
}

.result-action-box ul {
  margin-bottom: 0;
}

.result-action-good {
  border-color: rgba(52, 211, 153, 0.34);
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.32), rgba(16, 28, 47, 0.82));
}

.result-action-medium {
  border-color: rgba(251, 191, 36, 0.34);
  background: linear-gradient(180deg, rgba(120, 83, 12, 0.30), rgba(16, 28, 47, 0.82));
}

.result-action-bad {
  border-color: rgba(248, 113, 113, 0.34);
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.30), rgba(16, 28, 47, 0.82));
}

.optimized-affiliate-box {
  border-color: rgba(96, 165, 250, 0.34);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 32%),
    rgba(16, 39, 68, 0.80);
}

.affiliate-disclosure {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(7, 17, 31, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 14px;
}

.result-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.result-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.result-link-grid a {
  display: block;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.20);
  background: rgba(7, 17, 31, 0.42);
  color: #bfdbfe;
  font-weight: 850;
  text-decoration: none;
}

.result-link-grid a:hover {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(16, 39, 68, 0.72);
}

@media (max-width: 900px) {
  .calculator-progress {
    grid-template-columns: 1fr;
  }

  .sidebar-transfer-hint {
    margin-top: 18px;
  }

  .points-main-card .form-grid.two-col {
    grid-template-columns: 1fr;
  }

  .scenario-switch-wrap {
    max-width: none;
  }

  .result-hero-summary {
    grid-template-columns: 1fr;
  }

  .result-main-number {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .next-step-actions,
  .next-step-actions .btn,
  .result-action-buttons,
  .result-action-buttons .btn {
    width: 100%;
  }

  .next-step-actions .btn,
  .result-action-buttons .btn {
    text-align: center;
  }

  .result-link-grid {
    grid-template-columns: 1fr;
  }

  .result-hero-summary,
  .result-action-box {
    padding: 18px;
  }
}