/* ══════════════════════════════════════════════════════════════════════
   divergence-schnelltest: schnelltest.css
   Design system: divergence-coaching.de
   Fonts: Cormorant Garamond (headings) + Outfit (body)
   Min font-size: 16px throughout
   ══════════════════════════════════════════════════════════════════════ */

/* ── Google Fonts import (matches existing site) ─────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Outfit:wght@300;400;500;600&display=swap');

/* ── Design tokens ───────────────────────────────────────────────── */
.dst-root {
  --dst-bg:           #0e0b14;
  --dst-bg-card:      #17111f;
  --dst-bg-card-2:    #1e1628;
  --dst-border:       rgba(196,151,90,0.18);
  --dst-border-hover: rgba(196,151,90,0.45);

  --dst-purple:       #8a5cf6;
  --dst-purple-light: #b48aff;
  --dst-gold:         #c4975a;
  --dst-gold-light:   #e6be8a;
  --dst-cream:        #f5f0e8;
  --dst-muted:        rgba(245,240,232,0.55);

  --dst-chapter-morgen: #c4975a;
  --dst-chapter-mittag: #8a5cf6;
  --dst-chapter-abend:  #4a7c72;

  --dst-font-head: 'Cormorant Garamond', Georgia, serif;
  --dst-font-body: 'Outfit', system-ui, sans-serif;

  --dst-radius-card: 16px;
  --dst-radius-btn:  50px;
  --dst-radius-opt:  12px;

  --dst-transition: 0.22s ease;

  font-family:  var(--dst-font-body);
  font-size:    16px;
  line-height:  1.6;
  color:        var(--dst-cream);
  background:   var(--dst-bg);
  min-height:   100vh;
  padding:      0;
  margin:       0;
  box-sizing:   border-box;
}

.dst-root *, .dst-root *::before, .dst-root *::after {
  box-sizing: inherit;
}

/* ── Base typography ─────────────────────────────────────────────── */
.dst-root p    { font-size: 16px; margin: 0 0 0.75em; }
.dst-root h1   { font-family: var(--dst-font-head); font-size: clamp(28px, 6vw, 48px); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; }
.dst-root h2   { font-family: var(--dst-font-head); font-size: clamp(22px, 4.5vw, 36px); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; }

/* ── Screen wrapper ──────────────────────────────────────────────── */
.dst-screen {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 48px;
}

/* ════════════════════════════════════════════════════════════════════
   INTRO SCREEN
   ════════════════════════════════════════════════════════════════════ */

.dst-intro {
  justify-content: center;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(138,92,246,0.15) 0%, transparent 65%),
              var(--dst-bg);
}

.dst-intro-inner {
  max-width: 560px;
  width: 100%;
  text-align: center;
  padding: 32px 0;
}

.dst-intro-badge {
  font-size: 28px;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  opacity: 0.85;
}

.dst-heading {
  background: linear-gradient(135deg, var(--dst-cream) 0%, var(--dst-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.dst-subheading {
  font-size: 18px;
  color: var(--dst-muted);
  font-weight: 300;
  margin-bottom: 32px;
  line-height: 1.7;
}

.dst-intro-meta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.dst-intro-meta span {
  font-size: 16px;
  color: var(--dst-muted);
  background: var(--dst-bg-card);
  border: 1px solid var(--dst-border);
  border-radius: 50px;
  padding: 6px 16px;
}

.dst-intro-hint {
  font-size: 16px;
  color: var(--dst-muted);
  margin-top: 24px;
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════════════ */

.dst-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--dst-font-body);
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: var(--dst-radius-btn);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dst-transition), transform var(--dst-transition), box-shadow var(--dst-transition);
  padding: 14px 32px;
  width: 100%;
  max-width: 360px;
  margin: 6px auto;
  letter-spacing: 0.02em;
}

.dst-btn:focus-visible {
  outline: 2px solid var(--dst-gold);
  outline-offset: 3px;
}

.dst-btn-primary {
  background: linear-gradient(135deg, var(--dst-purple) 0%, #6d3ac7 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(138,92,246,0.3);
}
.dst-btn-primary:hover {
  background: linear-gradient(135deg, var(--dst-purple-light) 0%, var(--dst-purple) 100%);
  box-shadow: 0 6px 28px rgba(138,92,246,0.45);
  transform: translateY(-1px);
}

.dst-btn-secondary {
  background: var(--dst-bg-card-2);
  color: var(--dst-gold-light);
  border: 1.5px solid var(--dst-gold);
}
.dst-btn-secondary:hover {
  background: rgba(196,151,90,0.12);
  border-color: var(--dst-gold-light);
  transform: translateY(-1px);
}

.dst-btn-ghost {
  background: transparent;
  color: var(--dst-muted);
  border: 1px solid rgba(255,255,255,0.12);
}
.dst-btn-ghost:hover {
  color: var(--dst-cream);
  border-color: rgba(255,255,255,0.3);
}

.dst-btn-small {
  padding: 8px 20px;
  font-size: 16px;
  width: auto;
  max-width: none;
  border-radius: 50px;
  background: var(--dst-bg-card-2);
  color: var(--dst-gold-light);
  border: 1px solid var(--dst-gold);
  white-space: nowrap;
  flex-shrink: 0;
}
.dst-btn-small:hover {
  background: rgba(196,151,90,0.15);
}

.dst-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ════════════════════════════════════════════════════════════════════
   CHAPTER BREAK SCREEN
   ════════════════════════════════════════════════════════════════════ */

.dst-chapter-break {
  justify-content: center;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(138,92,246,0.12) 0%, transparent 70%),
              var(--dst-bg);
}

.dst-chapter-break-inner {
  text-align: center;
}

.dst-chapter-icon {
  font-size: 56px;
  margin-bottom: 20px;
  animation: dst-float 2s ease-in-out infinite;
}

@keyframes dst-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.dst-chapter-headline {
  font-family: var(--dst-font-head);
  font-size: clamp(24px, 5vw, 38px);
  font-weight: 600;
  color: var(--dst-cream);
  margin-bottom: 12px;
}

.dst-chapter-sub {
  font-size: 18px;
  color: var(--dst-muted);
}

/* ════════════════════════════════════════════════════════════════════
   SCENE SCREEN
   ════════════════════════════════════════════════════════════════════ */

.dst-scene {
  padding-top: 0;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.dst-scene-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 640px;
  padding: 20px 0 10px;
}

.dst-chapter-label {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dst-gold);
}

.dst-progress-label {
  font-size: 16px;
  color: var(--dst-muted);
  font-weight: 400;
}

.dst-progress-bar {
  width: 100%;
  max-width: 640px;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 32px;
}

.dst-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--dst-purple) 0%, var(--dst-gold) 100%);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.dst-scene-body {
  width: 100%;
  max-width: 640px;
}

.dst-scene-text {
  font-family: var(--dst-font-head);
  font-size: clamp(19px, 3.5vw, 26px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--dst-cream);
  background: var(--dst-bg-card);
  border: 1px solid var(--dst-border);
  border-radius: var(--dst-radius-card);
  padding: 24px 28px;
  margin-bottom: 24px;
}

.dst-scene-prompt {
  font-size: 16px;
  color: var(--dst-gold);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.1em;
}

/* Options */
.dst-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dst-option {
  background: var(--dst-bg-card);
  border: 1.5px solid var(--dst-border);
  border-radius: var(--dst-radius-opt);
  padding: 18px 22px;
  cursor: pointer;
  text-align: left;
  transition: background var(--dst-transition), border-color var(--dst-transition), transform var(--dst-transition);
  width: 100%;
}

.dst-option:hover, .dst-option:focus-visible {
  background: var(--dst-bg-card-2);
  border-color: var(--dst-border-hover);
  transform: translateX(4px);
  outline: none;
}

.dst-option:active {
  transform: translateX(2px) scale(0.99);
}

.dst-option-text {
  font-family: var(--dst-font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--dst-cream);
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════════════
   RESULT SCREEN
   ════════════════════════════════════════════════════════════════════ */

.dst-result {
  background: radial-gradient(ellipse 70% 40% at 50% 10%, rgba(138,92,246,0.12) 0%, transparent 60%),
              var(--dst-bg);
  padding-bottom: 80px;
}

.dst-result-inner {
  max-width: 640px;
  width: 100%;
}

.dst-result-hero {
  text-align: center;
  padding: 40px 0 24px;
}

.dst-result-intro {
  font-size: 16px;
  color: var(--dst-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}

.dst-result-heading {
  background: linear-gradient(135deg, var(--dst-cream) 0%, var(--dst-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0;
}

/* Radar */
.dst-radar-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 32px;
}

#dst-radar {
  max-width: 320px;
  width: 100%;
  height: auto;
}

/* Highlight cards */
.dst-highlight-card {
  background: var(--dst-bg-card);
  border: 1px solid var(--dst-border);
  border-radius: var(--dst-radius-card);
  padding: 24px;
  margin-bottom: 16px;
}

.dst-top-card {
  border-color: rgba(196,151,90,0.35);
  background: linear-gradient(135deg, var(--dst-bg-card) 0%, rgba(196,151,90,0.05) 100%);
}

.dst-contrast-card {
  border-color: rgba(138,92,246,0.35);
  background: linear-gradient(135deg, var(--dst-bg-card) 0%, rgba(138,92,246,0.05) 100%);
}

.dst-highlight-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dst-gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.dst-highlight-dim {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.dst-highlight-icon {
  font-size: 22px;
  color: var(--dst-gold-light);
}

.dst-highlight-name {
  font-family: var(--dst-font-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--dst-cream);
}

.dst-highlight-val {
  font-family: var(--dst-font-head);
  font-size: 26px;
  font-weight: 700;
  color: var(--dst-gold);
  margin-left: auto;
}

.dst-highlight-text {
  font-size: 16px;
  color: var(--dst-muted);
  line-height: 1.65;
  margin: 0;
}

/* Contrast */
.dst-contrast-pair {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.dst-contrast-high {
  font-family: var(--dst-font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--dst-purple-light);
}

.dst-contrast-arrow {
  color: var(--dst-gold);
  font-size: 18px;
  font-weight: 500;
}

.dst-contrast-low {
  font-family: var(--dst-font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--dst-muted);
}

/* Dimension list */
.dst-dims-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 32px;
  border: 1px solid var(--dst-border);
  border-radius: var(--dst-radius-card);
  overflow: hidden;
}

.dst-dim-row {
  padding: 20px 22px;
  border-bottom: 1px solid var(--dst-border);
  background: var(--dst-bg-card);
  transition: background var(--dst-transition);
}

.dst-dim-row:last-child { border-bottom: none; }
.dst-dim-row:nth-child(even) { background: var(--dst-bg-card-2); }

.dst-dim-row-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.dst-dim-icon {
  font-size: 18px;
  color: var(--dst-gold);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.dst-dim-name {
  font-family: var(--dst-font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--dst-cream);
  flex: 1;
}

.dst-dim-val {
  font-family: var(--dst-font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--dst-gold);
}

.dst-dim-bar-track {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.dst-dim-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--dst-purple) 0%, var(--dst-gold) 100%);
  transition: width 1s ease;
}

.dst-dim-text {
  font-size: 16px;
  color: var(--dst-muted);
  line-height: 1.6;
  margin: 0;
}

/* Actions */
.dst-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
}

/* Upsell box */
.dst-upsell-box {
  background: linear-gradient(135deg, var(--dst-bg-card) 0%, rgba(138,92,246,0.08) 100%);
  border: 1px solid rgba(138,92,246,0.3);
  border-radius: var(--dst-radius-card);
  padding: 28px;
  margin-bottom: 32px;
  text-align: center;
}

.dst-upsell-headline {
  font-family: var(--dst-font-head);
  font-size: clamp(19px, 3vw, 24px);
  font-weight: 600;
  color: var(--dst-cream);
  margin-bottom: 12px;
}

.dst-upsell-text {
  font-size: 16px;
  color: var(--dst-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.dst-upsell-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}

.dst-upsell-list li {
  font-size: 16px;
  color: var(--dst-cream);
  padding: 6px 0;
  padding-left: 4px;
  line-height: 1.5;
}

.dst-upsell-sub {
  font-size: 16px;
  color: var(--dst-muted);
  margin: 16px 0 0;
  font-style: italic;
}

/* Share result box */
.dst-share-result {
  background: var(--dst-bg-card);
  border: 1px solid rgba(196,151,90,0.3);
  border-radius: var(--dst-radius-card);
  padding: 20px;
  margin-top: 16px;
}

.dst-share-result.hidden { display: none; }

.dst-share-label {
  font-size: 16px;
  color: var(--dst-gold);
  font-weight: 500;
  margin-bottom: 10px;
}

.dst-share-url-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.dst-share-url-input {
  flex: 1;
  background: var(--dst-bg);
  border: 1px solid var(--dst-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--dst-font-body);
  font-size: 16px;
  color: var(--dst-muted);
  min-width: 0;
}

.dst-share-url-input:focus {
  outline: 1px solid var(--dst-gold);
}

.dst-share-expiry {
  font-size: 16px;
  color: var(--dst-muted);
  margin: 0;
}

/* Share info (shared view) */
.dst-share-info {
  text-align: center;
  padding: 24px 0;
}

.dst-share-info p {
  font-size: 16px;
  color: var(--dst-muted);
  margin-bottom: 16px;
}

/* ════════════════════════════════════════════════════════════════════
   LOADING & ERROR
   ════════════════════════════════════════════════════════════════════ */

.dst-loading {
  justify-content: center;
}

.dst-loading-inner {
  text-align: center;
}

.dst-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(196,151,90,0.2);
  border-top-color: var(--dst-gold);
  border-radius: 50%;
  animation: dst-spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

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

.dst-error {
  justify-content: center;
}

.dst-error-inner {
  text-align: center;
  max-width: 400px;
}

.dst-error-icon {
  font-size: 48px;
  color: var(--dst-muted);
  margin-bottom: 16px;
}

.dst-error-inner h2 {
  font-family: var(--dst-font-head);
  margin-bottom: 12px;
}

.dst-error-inner p {
  color: var(--dst-muted);
  margin-bottom: 24px;
}

/* ════════════════════════════════════════════════════════════════════
   NOSCRIPT
   ════════════════════════════════════════════════════════════════════ */

.dst-noscript {
  padding: 40px;
  text-align: center;
  color: var(--dst-muted);
  font-size: 16px;
}

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  .dst-screen {
    padding: 16px 12px 40px;
  }

  .dst-scene-text {
    padding: 18px 18px;
  }

  .dst-option {
    padding: 16px 18px;
  }

  .dst-upsell-box {
    padding: 20px 16px;
  }

  .dst-dims-list {
    border-radius: 12px;
  }

  .dst-highlight-card {
    padding: 18px;
  }

  .dst-share-url-row {
    flex-direction: column;
    align-items: stretch;
  }

  .dst-btn-small {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .dst-scene-text {
    font-size: 22px;
  }

  .dst-option-text {
    font-size: 17px;
  }
}
