/* ═══════════════════════════════════════════════════════════════════
   EEG-Gründungs-Wizard – Tool-spezifische Styles
   Visuelle Konsistenz mit Homepage-Design
   Stand: 2026-04-27
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Wizard-spezifische Farb-Mappings (alte → neue Variablen) ─── */
:root {
  --wizard-blue: var(--c-petrol);
  --wizard-green: var(--c-gruen);
  --wizard-grey: var(--c-grau);
  --wizard-light-bg: var(--c-bg-soft);
  --wizard-green-light: rgba(107, 169, 68, 0.12);
  --wizard-blue-light: rgba(27, 64, 91, 0.08);
  --wizard-border: var(--c-border);
  --wizard-text: var(--c-petrol);
  --wizard-green-dark: var(--c-gruen-dark);
  --wizard-blue-dark: var(--c-petrol-dark);
}

/* ─── LAYOUT ─── */
body {
  background: transparent;
}

/* ─── STEP NAVIGATION + FORTSCHRITT ─── */
.step-nav-wrap {
  background: var(--c-petrol);
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--c-petrol-dark);
}

.step-nav-wrap .container {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.step-nav-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 0 12px;
  flex-shrink: 0;
}

.step-nav-progress-bar {
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.step-nav-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--c-gruen);
  transition: width 0.5s ease;
}

.step-nav-progress-num {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--ff-head);
  min-width: 30px;
  text-align: right;
}

.phase-tag {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-right: 2px;
  font-family: var(--ff-head);
}

.phase-divider {
  width: 14px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 4px;
}

.step-pip {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  border: 2px solid transparent;
  cursor: default;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 500;
}

.step-pip.active {
  background: var(--c-gruen);
  color: white;
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 12px rgba(107, 169, 68, 0.5);
}

.step-pip.visited {
  background: rgba(107, 169, 68, 0.3);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.2s;
}

.step-pip.visited:hover {
  background: rgba(107, 169, 68, 0.4);
  transform: scale(1.05);
}

.step-pip.locked {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
}

/* ─── PROGRESS STRIP ─── */
.progress-strip {
  background: var(--c-petrol-dark);
  padding: 0;
  height: 4px;
  overflow: hidden;
  position: relative;
  z-index: 50;
}

.progress-strip-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--c-gruen), #8fc95e);
  transition: width 0.5s ease;
  border-radius: 0 2px 0 0;
}

/* ─── MAIN CONTENT ─── */
.wizard-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px var(--gutter) 60px;
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 40px 44px;
  box-shadow: 0 2px 16px rgba(27, 64, 91, 0.06);
  border: 1px solid var(--c-border);
}

/* Back Link */
.back-link {
  display: inline-block;
  color: var(--c-petrol);
  text-decoration: none;
  font-family: var(--ff-head);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin: 20px var(--gutter) 0;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--c-gruen);
}

/* ─── TYPOGRAPHY ─── */
.card h1 {
  font-size: 32px;
  font-weight: 500;
  color: var(--c-petrol);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

.card h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--c-petrol);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

.card h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-gruen-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 1em;
  font-family: var(--ff-head);
}

.card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-petrol);
  margin: 0 0 0.8em;
  font-family: var(--ff-head);
}

.subtitle {
  font-size: 16px;
  color: var(--c-text-soft);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* ─── FORM ELEMENTS (inherits from style.css, only override if needed) ─── */
.form-label {
  display: block;
  font-family: var(--ff-head);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gruen-dark);
  font-weight: 500;
  margin-bottom: 0.4rem;
  margin-top: 1.2rem;
}

.form-label:first-of-type,
.form-label:not(:first-of-type) + .form-input:not(:first-child) ~ .form-label {
  margin-top: 1.2rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--c-petrol);
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--c-gruen);
  box-shadow: 0 0 0 3px rgba(107, 169, 68, 0.18);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  text-transform: none;
  border-radius: var(--radius);
}

.btn-primary {
  background: var(--c-gruen);
  color: white;
  border-color: var(--c-gruen);
}

.btn-primary:hover:not(:disabled) {
  background: var(--c-gruen-dark);
  border-color: var(--c-gruen-dark);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--c-petrol);
  border-color: var(--c-petrol);
}

.btn-ghost:hover {
  background: var(--c-petrol);
  color: white;
}

/* ─── STATUTEN COMPONENTS ─── */
.s-section {
  background: white;
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(27, 64, 91, 0.06);
  border-left: 4px solid var(--c-gruen);
}

.s-sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.s-sec-icon {
  width: 34px;
  height: 34px;
  background: rgba(27, 64, 91, 0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.s-sec-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-petrol);
  font-family: var(--ff-head);
  flex: 1;
}

.s-info-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--c-grau);
  background: transparent;
  color: var(--c-grau);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  padding: 0;
  line-height: 1;
  font-family: var(--ff-body);
}
.s-info-btn:hover {
  border-color: var(--c-petrol);
  color: white;
  background: var(--c-petrol);
}
.s-info-btn.open {
  border-color: var(--c-petrol);
  color: white;
  background: var(--c-petrol);
}
.s-info-box {
  font-size: 13px;
  color: var(--c-text-soft);
  background: rgba(27, 64, 91, 0.05);
  border-left: 3px solid var(--c-petrol);
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  margin-bottom: 14px;
  line-height: 1.6;
}

.s-desc {
  font-size: 13px;
  color: var(--c-grau);
  margin-bottom: 12px;
  line-height: 1.5;
}

.s-divider {
  height: 1px;
  background: var(--c-border);
  margin: 16px 0;
}

/* Chips */
.s-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.s-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border: 2px solid var(--c-border);
  border-radius: 20px;
  background: white;
  cursor: pointer;
  font-size: 13px;
  color: var(--c-petrol);
  transition: all var(--transition);
  user-select: none;
  font-family: var(--ff-body);
}

.s-chip:hover {
  border-color: var(--c-gruen);
}

.s-chip.s-active {
  border-color: var(--c-gruen);
  background: rgba(107, 169, 68, 0.12);
  font-weight: 600;
  color: var(--c-gruen-dark);
}

.s-chip .s-chk {
  width: 14px;
  height: 14px;
  border: 2px solid #ccc;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
  transition: all var(--transition);
  background: white;
}

.s-chip.s-active .s-chk {
  border-color: var(--c-gruen);
  background: var(--c-gruen);
  color: white;
}

.s-chip.s-locked {
  cursor: default;
  opacity: 0.6;
}

.s-chip.s-locked .s-chk {
  content: '🔒';
}

/* Radio Buttons */
.s-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.s-radio {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border: 2px solid var(--c-border);
  border-radius: 20px;
  background: white;
  cursor: pointer;
  font-size: 13px;
  color: var(--c-petrol);
  transition: all var(--transition);
  user-select: none;
  font-family: var(--ff-body);
}

.s-radio:hover {
  border-color: var(--c-gruen);
}

.s-radio.s-active {
  border-color: var(--c-gruen);
  background: rgba(107, 169, 68, 0.12);
  font-weight: 600;
  color: var(--c-gruen-dark);
}

.s-radio .s-dot {
  width: 14px;
  height: 14px;
  border: 2px solid #ccc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
  background: white;
}

.s-radio.s-active .s-dot {
  border-color: var(--c-gruen);
  background: var(--c-gruen);
}

.s-radio.s-active .s-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

/* Toggle */
.s-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  display: inline-block;
  margin: 0;
  padding: 0;
}

.s-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.s-toggle .s-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  border-radius: 24px;
  cursor: pointer;
  transition: background var(--transition);
}

.s-toggle .s-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.s-toggle input:checked + .s-slider {
  background: var(--c-gruen);
}

.s-toggle input:checked + .s-slider::before {
  transform: translateX(20px);
}

/* Conditional blocks */
.s-cond {
  margin-top: 10px;
  padding: 14px 16px;
  background: var(--c-bg-soft);
  border-radius: var(--radius);
  border-left: 3px solid var(--c-gruen);
}

.s-cond .form-label {
  font-size: 13px;
  margin-top: 0.8rem;
}

/* ─── BADGES & MILESTONES ─── */
.badges-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 32px 0;
  padding: 0;
}

.mini-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: var(--c-bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  text-align: center;
  transition: all var(--transition);
  opacity: 0.5;
  min-width: 70px;
  max-width: 120px;
}

.mini-badge.earned {
  opacity: 1;
  border-color: var(--c-gruen);
  background: rgba(107, 169, 68, 0.12);
  transform: scale(1.05);
}

.mini-badge-circle {
  font-size: 28px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-badge-label {
  font-size: 10px;
  font-family: var(--ff-head);
  font-weight: 600;
  color: var(--c-petrol);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
  word-break: break-word;
  hyphens: auto;
}

/* ─── TIPS/TOOLTIPS ─── */
.tip {
  position: relative;
  cursor: help;
  color: var(--c-gruen-dark);
  font-weight: 600;
  border-bottom: 1px dotted var(--c-gruen);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.tip-icon {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
}

.tip-box {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-petrol);
  color: white;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: normal;
  max-width: 280px;
  text-align: left;
  word-wrap: break-word;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 100;
  margin-bottom: 6px;
  font-family: var(--ff-body);
}

.tip-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--c-petrol);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.tip.open .tip-box,
.tip.open .tip-arrow {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 760px) {
  .wizard-main {
    padding: 24px var(--gutter) 40px;
  }

  .card {
    padding: 24px 20px;
  }

  .card h1 {
    font-size: 24px;
  }

  .step-nav-wrap {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .step-pip {
    scroll-snap-align: start;
  }

  .s-section {
    padding: 16px 18px;
  }
}

@media (max-width: 520px) {
  .wizard-progress {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .step-nav-wrap {
    padding: 8px 12px;
  }

  .step-pip {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .badges-row {
    gap: 8px;
  }

  .mini-badge {
    padding: 8px 12px;
  }

  .mini-badge-circle {
    font-size: 20px;
    height: 28px;
  }

  .mini-badge-label {
    font-size: 10px;
  }
}
