/* ==========================================================
   Selbsttest 3-Phasen – Premium Dark Theme
   Nutzt CSS-Variablen aus warteliste.css (.dmw-site)
   ========================================================== */

/* ---- Layout ---- */
.st-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.st-wrap.st-wrap--result {
  min-height: auto;
  overflow: visible;
}

/* ---- Phase Progress ---- */
.st-phases {
  width: 100%;
  margin-bottom: 48px;
}

.st-phase-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.st-phase-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dmw-muted);
  transition: color 0.4s ease;
  flex: 1;
  text-align: center;
}

.st-phase-label.st-phase-active {
  color: var(--dmw-accent-2);
}

.st-phase-label.st-phase-done {
  color: var(--dmw-success);
}

.st-phase-track {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  gap: 3px;
}

.st-phase-segment {
  flex: 1;
  height: 100%;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.st-phase-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--dmw-accent), var(--dmw-accent-2));
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(59,130,246,0.4);
}

.st-phase-segment.st-segment-done .st-phase-fill {
  width: 100%;
  background: var(--dmw-success);
  box-shadow: 0 0 10px rgba(34,197,94,0.3);
}

.st-counter {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dmw-muted);
  margin-top: 10px;
  text-align: center;
}

/* ---- Card Container ---- */
.st-card {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: visible;
}

/* Result page: don't vertically center, align to top, no flex stretch */
.st-card.st-card--result {
  flex: none;
  justify-content: flex-start;
  overflow: visible;
}

/* ---- Phase Intro ---- */
.st-phase-intro {
  text-align: center;
  padding: 40px 0;
}

.st-phase-intro-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--dmw-accent-soft);
  border: 1px solid rgba(96,165,250,0.2);
}

.st-phase-intro-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--dmw-accent-2);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.st-phase-intro h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--dmw-ink);
  margin: 0 0 12px;
}

.st-phase-intro p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dmw-muted);
  margin: 0 0 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.st-phase-intro-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--dmw-accent) 0%, var(--dmw-accent-2) 100%);
  color: #fff;
  border: none;
  border-radius: var(--dmw-radius-sm);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 0 1px rgba(147,197,253,0.2), 0 12px 32px rgba(59,130,246,0.28);
}

.st-phase-intro-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(147,197,253,0.3), 0 16px 40px rgba(59,130,246,0.36);
}

.st-phase-intro-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ---- Question ---- */
.st-question {
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--dmw-ink);
  margin: 0 0 40px 0;
  text-align: center;
  text-wrap: balance;
}

/* ---- Answer Grid (DISC 2x2) ---- */
.st-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.st-answers--single {
  grid-template-columns: 1fr;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.st-answer {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 84px;
  padding: 20px 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--dmw-line);
  border-radius: var(--dmw-radius-md);
  color: var(--dmw-ink-soft);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
  width: 100%;
}

.st-answer:hover {
  background: rgba(59,130,246,0.08);
  border-color: rgba(96,165,250,0.4);
  color: var(--dmw-ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59,130,246,0.12);
}

.st-answer.st-selected {
  background: rgba(59,130,246,0.14);
  border-color: var(--dmw-accent);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(96,165,250,0.3), 0 0 24px rgba(59,130,246,0.18);
  transform: scale(0.97);
}

/* ---- Dropdown ---- */
.st-select-wrap {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.st-select {
  width: 100%;
  padding: 18px 44px 18px 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--dmw-line);
  border-radius: var(--dmw-radius-sm);
  color: var(--dmw-ink);
  font-size: 16px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2393a4c3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.st-select:focus {
  border-color: rgba(96,165,250,0.7);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.14), 0 0 20px rgba(59,130,246,0.08);
}

.st-select option {
  background: #0f1728;
  color: var(--dmw-ink);
}

.st-select-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--dmw-accent) 0%, var(--dmw-accent-2) 100%);
  color: #fff;
  border: none;
  border-radius: var(--dmw-radius-sm);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 0 1px rgba(147,197,253,0.2), 0 8px 24px rgba(59,130,246,0.2);
}

.st-select-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(147,197,253,0.3), 0 12px 32px rgba(59,130,246,0.3);
}

.st-select-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ---- Lead Capture ---- */
.st-lead {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.st-lead-headline {
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--dmw-ink);
  margin: 0 0 12px;
}

.st-lead-text {
  color: var(--dmw-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 36px;
}

.st-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.st-input {
  padding: 18px 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--dmw-line);
  border-radius: var(--dmw-radius-sm);
  color: var(--dmw-ink);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.st-input:focus {
  border-color: rgba(96,165,250,0.7);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.14), 0 0 20px rgba(59,130,246,0.08);
}

.st-input::placeholder {
  color: var(--dmw-muted);
}

.st-submit {
  position: relative;
  padding: 18px 36px;
  background: linear-gradient(135deg, var(--dmw-accent) 0%, var(--dmw-accent-2) 100%);
  color: #fff;
  border: none;
  border-radius: var(--dmw-radius-sm);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 0 1px rgba(147,197,253,0.2), 0 12px 32px rgba(59,130,246,0.28);
  overflow: hidden;
}

.st-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(147,197,253,0.3), 0 16px 40px rgba(59,130,246,0.36);
}

.st-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.st-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: st-spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes st-spin {
  to { transform: rotate(360deg); }
}

.st-privacy {
  font-size: 12px;
  color: var(--dmw-muted);
  line-height: 1.5;
  margin-top: 4px;
}

/* ---- Result Page ---- */
.st-result {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  overflow: visible;
  height: auto;
}

/* ALL result children: always visible, no animations */
.st-result * {
  opacity: 1 !important;
  animation: none !important;
}

.st-result-header {
  text-align: center;
  margin-bottom: 48px;
}

.st-result-headline {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dmw-ink);
  margin: 0 0 16px;
  line-height: 1.25;
  text-wrap: balance;
}

.st-result-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--dmw-ink-soft);
  margin: 0;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Section Cards */
.st-section {
  margin-bottom: 28px;
  border-radius: var(--dmw-radius-md);
  border: 1px solid var(--dmw-line);
  background: rgba(255,255,255,0.02);
  padding: 28px;
  text-align: left;
}

.st-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--dmw-ink);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.st-section-title svg {
  width: 20px;
  height: 20px;
  stroke: var(--dmw-accent-2);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.st-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--dmw-ink-soft);
  margin: 0 0 10px;
}

.st-section p:last-child {
  margin-bottom: 0;
}

/* Hebel (Levers) */
.st-lever {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--dmw-line);
}

.st-lever:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.st-lever:first-child {
  padding-top: 0;
}

.st-lever-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--dmw-accent-soft);
  border: 1px solid rgba(96,165,250,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--dmw-accent-2);
}

.st-lever-body {
  flex: 1;
  min-width: 0;
}

.st-lever-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--dmw-ink);
  margin-bottom: 4px;
}

.st-lever-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dmw-muted);
  margin: 0;
}

/* Stat badge inline */
.st-stat-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--dmw-line);
  font-size: 12px;
  color: var(--dmw-muted);
  margin-top: 12px;
  line-height: 1.4;
}

.st-stat-inline strong {
  color: var(--dmw-accent-2);
}

/* CTA Section */
.st-cta-section {
  text-align: center;
  margin-top: 12px;
  margin-bottom: 28px;
  padding: 36px 28px;
  border-radius: var(--dmw-radius-md);
  background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(96,165,250,0.2);
}

.st-cta-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--dmw-ink-soft);
  margin: 0 0 24px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.st-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 36px;
  background: linear-gradient(135deg, var(--dmw-accent) 0%, var(--dmw-accent-2) 100%);
  color: #fff !important;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none !important;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 0 1px rgba(147,197,253,0.25), 0 14px 34px rgba(59,130,246,0.36), 0 0 26px rgba(59,130,246,0.18);
}

.st-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(147,197,253,0.35), 0 18px 44px rgba(59,130,246,0.44), 0 0 34px rgba(59,130,246,0.24);
}

.st-cta svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ---- Download Buttons ---- */
.st-download-section {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 0;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.st-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 28px;
  background: rgba(255,255,255,0.04);
  color: var(--dmw-ink-soft) !important;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  border: 1px solid var(--dmw-line);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
}

.st-download-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(96,165,250,0.4);
  color: var(--dmw-ink) !important;
  transform: translateY(-2px);
}

.st-download-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
  .st-wrap {
    padding: 32px 18px 60px;
    min-height: 100dvh;
  }

  .st-phases {
    margin-bottom: 36px;
  }

  .st-phase-label {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .st-counter {
    font-size: 12px;
  }

  .st-question {
    font-size: 1.2rem;
    margin-bottom: 28px;
  }

  .st-answers {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .st-answer {
    min-height: 60px;
    padding: 16px 18px;
    font-size: 15px;
  }

  .st-result-headline {
    font-size: 1.35rem;
  }

  .st-section {
    padding: 22px 18px;
  }

  .st-lever {
    gap: 12px;
  }

  .st-cta-section {
    padding: 28px 20px;
  }

  .st-phase-intro {
    padding: 24px 0;
  }
}

@media (max-width: 380px) {
  .st-wrap {
    padding: 24px 14px 48px;
  }

  .st-question {
    font-size: 1.1rem;
  }

  .st-phase-label {
    font-size: 9px;
  }
}

/* ---- Print Styles ---- */
@media print {
  /* Hide everything except the result */
  body > *:not(.dmw-site),
  .dmw-site > *:not(#dmw-selbsttest),
  .st-phases,
  .st-download-section,
  header, footer, nav,
  .dmw-hero, .dmw-nav, .dmw-footer,
  .dmw-site > header,
  .dmw-site > footer,
  .dmw-site > nav {
    display: none !important;
  }

  /* Reset layout for print */
  .st-wrap,
  .st-wrap.st-wrap--result {
    padding: 0;
    min-height: auto;
    display: block;
    overflow: visible;
  }

  .st-card,
  .st-card.st-card--result {
    display: block;
    overflow: visible;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Dark theme for PDF */
  @page {
    margin: 1.5cm;
    size: A4;
  }

  body,
  .dmw-site,
  #dmw-selbsttest {
    background: #0a0f1a !important;
    color: #f5f8ff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .st-result {
    max-width: 100%;
    overflow: visible;
  }

  .st-result * {
    opacity: 1 !important;
    animation: none !important;
  }

  .st-result .st-section,
  .st-result .st-cta-section {
    break-inside: avoid;
  }

  .st-section {
    background: rgba(255,255,255,0.02) !important;
    border-color: rgba(255,255,255,0.08) !important;
  }

  .st-cta-section {
    background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(255,255,255,0.02) 100%) !important;
    border-color: rgba(96,165,250,0.2) !important;
  }

  .st-cta {
    box-shadow: none;
    background: linear-gradient(135deg, var(--dmw-accent) 0%, var(--dmw-accent-2) 100%) !important;
  }

  .st-result-header {
    break-after: avoid;
  }

  .st-lever-num {
    background: rgba(59,130,246,0.1) !important;
    border-color: rgba(96,165,250,0.2) !important;
  }

  .st-stat-inline {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.08) !important;
  }
}
