/* ── Langfrist-Einspeisetarif Registration Form ── */

.hero-compact {
  margin-bottom: 12px;
}

.hero-compact h1 {
  margin: 0 0 6px;
}

.hero-compact p {
  font-size: 1rem;
}

.footer-link {
  margin: 0;
}

/* ── Progress Bar ── */
.wizard-progress {
  margin-bottom: 24px;
}

.progress-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
  cursor: default;
}

.progress-step.done {
  cursor: pointer;
}

.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: var(--progress-fill-bg);
  z-index: 0;
  transition: background 0.3s;
}

.progress-step.done:not(:last-child)::after {
  background: var(--accent);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--border-soft);
  color: var(--muted);
  position: relative;
  z-index: 2;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.progress-step.active .step-number {
  background: var(--accent);
  color: #fff;
  transform: scale(1.12);
  box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb) / 0.3);
}

.progress-step.done .step-number {
  background: var(--accent);
  color: #fff;
}

.step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 6px;
  transition: color 0.3s;
}

.progress-step.active .step-label,
.progress-step.done .step-label {
  color: var(--accent);
}

.step-mobile-label {
  display: none;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin: 8px 0 0;
}

/* ── Wizard Steps ── */
.wizard-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-title {
  font-family: 'Fraunces', 'DM Serif Display', 'Georgia', serif;
  font-size: 1.3rem;
  margin: 0 0 6px;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.5;
}

/* ── Form Elements ── */
.input-field {
  margin-bottom: 16px;
}

.input-field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}

.input-field input {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.2s;
}

.input-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb) / 0.1);
}

.hint {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Select Wraps ── */
.select-wrap {
  margin-bottom: 16px;
}

.select-wrap label {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}

select {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s;
}

select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb) / 0.1);
}

/* ── Sliders ── */
.slider {
  margin-bottom: 20px;
}

.slider label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--ink);
}

.slider .value {
  font-weight: 700;
  color: var(--accent);
  min-width: 60px;
  text-align: right;
}

input[type='range'] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(var(--brand-primary-rgb) / 0.3);
  transition: transform 0.2s;
}

input[type='range']::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type='range']::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(var(--brand-primary-rgb) / 0.3);
  transition: transform 0.2s;
}

input[type='range']::-moz-range-thumb:hover {
  transform: scale(1.15);
}

/* ── Option Groups ── */
.option-group {
  margin-bottom: 20px;
  border: none;
  padding: 0;
}

.option-group legend {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0;
  color: var(--ink);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-button {
  flex: 1;
  min-width: 140px;
  padding: 12px 14px;
  border: 2px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  white-space: normal;
  text-align: center;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.option-button:hover {
  background: var(--highlight-bg);
}

.option-button.active {
  border-color: var(--accent);
  background: var(--highlight-bg);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb) / 0.1);
  position: relative;
}

.option-button.active::after {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 1rem;
  color: var(--accent);
  font-weight: 700;
}

.option-button .icon {
  font-size: 1.4rem;
  line-height: 1.2;
}

.option-button .label {
  font-size: 0.85rem;
  line-height: 1.3;
}

/* ── Buttons ── */
.button-group {
  margin-top: 24px;
  gap: 12px;
}

.btn {
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  outline: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb) / 0.3);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: var(--border-strong);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(var(--brand-primary-rgb) / 0.1);
}

.action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ── Summary Sections ── */
.summary-section {
  margin-bottom: 28px;
  padding: 16px;
  background: var(--highlight-bg);
  border-radius: 8px;
}

.summary-section h3 {
  font-family: 'Fraunces', 'DM Serif Display', 'Georgia', serif;
  font-size: 1rem;
  margin: 0 0 12px;
  color: var(--ink);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row .label {
  font-weight: 600;
  color: var(--ink);
}

.summary-row .value {
  color: var(--muted);
  text-align: right;
}

/* ── Economics Section ── */
.economics-section {
  margin: 24px 0;
  padding: 20px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
}

.economics-section h3 {
  font-family: 'Fraunces', 'DM Serif Display', 'Georgia', serif;
  font-size: 1rem;
  margin: 0 0 16px;
  color: var(--ink);
}

.eco-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  margin: 8px 0;
  background: var(--surface);
  border-radius: 6px;
  font-size: 0.95rem;
  border-left: 4px solid var(--border);
}

.eco-metric.highlight {
  background: linear-gradient(135deg, var(--highlight-bg), var(--surface));
  border-left-color: var(--accent);
}

.eco-label {
  flex: 1;
  color: var(--ink);
}

.eco-value {
  font-weight: 700;
  color: var(--accent);
  min-width: 150px;
  text-align: right;
  font-size: 1.1rem;
}

/* ── Info Box ── */
.info-box {
  padding: 12px 16px;
  background: var(--highlight-bg);
  border-radius: 6px;
  border-left: 4px solid var(--accent);
  font-size: 0.95rem;
  color: var(--ink);
}

/* ── Modal ── */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--bg);
  border-radius: 12px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--ink);
}

.modal h2 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  color: var(--ink);
}

.modal p {
  margin: 0 0 20px;
  color: var(--muted);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .step-title {
    font-size: 1.1rem;
  }

  .step-mobile-label {
    display: block;
  }

  .button-group {
    gap: 6px;
  }

  .option-button {
    min-width: 100px;
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .summary-row {
    flex-direction: column;
    gap: 4px;
  }

  .summary-row .value {
    text-align: left;
  }

  .eco-metric {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .eco-value {
    min-width: auto;
    text-align: left;
  }

  .action-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .modal-content {
    padding: 20px;
  }
}
