*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --color-bg: #0f1021;
  --color-bg-elevated: #181a33;
  --color-primary: #6c63ff;
  --color-primary-soft: #a19bff;
  --color-accent: #ffb86c;
  --color-text: #ffffff;
  --color-text-muted: #c2c4dd;
  --color-border-soft: #2a2d52;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.35);
  --container-width: 1120px;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #292a5a 0, #050515 55%, #020210 100%);
  color: var(--color-text);
}

body.page-home {
  background: radial-gradient(circle at top, #26236d 0, #060515 60%, #020210 100%);
}

body.page-methodik {
  background: radial-gradient(circle at top, #26236d 0, #050515 60%, #020210 100%);
}

body.page-analysis {
  background: radial-gradient(circle at top, #26236d 0, #050515 60%, #020210 100%);
}

.sk-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sk-container.narrow {
  max-width: 760px;
}

.sk-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to right, rgba(6, 7, 40, 0.92), rgba(18, 13, 62, 0.92));
  border-bottom: 1px solid rgba(161, 155, 255, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--color-primary-soft);
}

.sk-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 1.2rem;
  position: relative;
}

.sk-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--color-primary-soft);
  transition: width 0.2s ease;
}

.sk-nav a:hover::after {
  width: 100%;
}

.sk-main {
  padding: 2.4rem 0 3.5rem;
}

/* Hero */

.hero {
  padding: 2.5rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.hero-text h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  margin: 0 0 1rem;
}

.hero-text p {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 32rem;
}

.hero-meta {
  font-size: 0.85rem;
  margin-top: 0.8rem;
  color: var(--color-primary-soft);
}

.hero-illustration {
  display: flex;
  justify-content: center;
}

.moon-card {
  background: radial-gradient(circle at top, #383282 0, #17163c 40%, #09071f 100%);
  border-radius: 24px;
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  max-width: 320px;
  text-align: center;
  border: 1px solid rgba(161, 155, 255, 0.5);
}

.moon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 25%, #ffffff 0, #f5e9ff 30%, #a19bff 70%, #3730a3 100%);
  margin: 0 auto 1.4rem;
  box-shadow: 0 0 40px rgba(161, 155, 255, 0.9);
}

.stars span {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #ffffff;
  margin: 0 6px 1.2rem;
  opacity: 0.7;
}

.moon-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Sections */

.section {
  padding: 1rem 0 3rem;
}

.section-highlights h2,
.section-cta h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: rgba(9, 8, 35, 0.9);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
  padding: 1.4rem 1.3rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.section-cta {
  text-align: center;
}

.cta-inner p {
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0.6rem auto 1.5rem;
}

/* Buttons */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #6c63ff, #a19bff);
  color: #0b0b1a;
  box-shadow: 0 12px 30px rgba(108, 99, 255, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(108, 99, 255, 0.8);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary-soft);
  border: 1px solid var(--color-primary-soft);
}

.btn-secondary:hover {
  background: rgba(161, 155, 255, 0.1);
}

/* Footer */

.sk-footer {
  border-top: 1px solid rgba(161, 155, 255, 0.25);
  padding: 1.4rem 0 2rem;
  background: radial-gradient(circle at top, #15163a 0, #050515 60%, #020210 100%);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  margin-right: 1rem;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--color-primary-soft);
}

@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ANALYSE */

.section-analysis {
  padding-top: 2rem;
}

.analysis-inner {
  max-width: 840px;
}

.analysis-intro {
  background: rgba(9, 8, 35, 0.9);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem 1.8rem;
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-soft);
  margin-bottom: 2rem;
}

.analysis-intro h1 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.analysis-intro p {
  color: var(--color-text-muted);
  margin-bottom: 0.8rem;
}

.intro-bullets {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.2rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.intro-bullets li::before {
  content: "• ";
  color: var(--color-primary-soft);
}

/* Quiz */

.hidden {
  display: none;
}

.analysis-quiz {
  background: rgba(9, 8, 35, 0.9);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.6rem 1.4rem;
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-soft);
  margin-bottom: 2rem;
}

.quiz-header {
  margin-bottom: 1.2rem;
}

.quiz-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6c63ff, #ffb86c);
  transition: width 0.2s ease;
}

.quiz-step-info {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.quiz-question-container h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.quiz-question-helper {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.quiz-option {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-soft);
  padding: 0.7rem 0.9rem;
  background: rgba(10, 9, 38, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.quiz-option-label {
  font-size: 0.95rem;
}

.quiz-option-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.quiz-option.active {
  background: rgba(108, 99, 255, 0.18);
  border-color: var(--color-primary-soft);
  transform: translateY(-1px);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

/* Loading */

.analysis-loading {
  text-align: center;
  padding: 3rem 1rem 3.5rem;
}

.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(161, 155, 255, 0.2);
  border-top-color: var(--color-primary-soft);
  margin: 0 auto 1.4rem;
  animation: spin 0.8s linear infinite;
}

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

/* Result */

.analysis-result {
  background: rgba(9, 8, 35, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
  padding: 1.7rem 1.6rem 1.9rem;
  box-shadow: var(--shadow-soft);
}

.result-section {
  margin-bottom: 1.4rem;
}

.result-section h2 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.result-section p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.result-tag {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(108, 99, 255, 0.18);
  border: 1px solid rgba(161, 155, 255, 0.6);
}

.reco-list {
  list-style: none;
  padding-left: 0;
  margin: 0.3rem 0 0.4rem;
}

.reco-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.reco-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary-soft);
}

.analysis-disclaimer {
  margin-top: 1.4rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Utility */

.lead {
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* Responsive tweaks */

@media (max-width: 600px) {
  .analysis-intro,
  .analysis-quiz,
  .analysis-result {
    padding: 1.3rem 1.1rem 1.4rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .sk-nav {
    display: none;
  }

  .hero {
    padding-top: 1.5rem;
  }
}


/* ==========================================================
   RESULT CARDS – Support for new results.js (non-invasive)
   ========================================================== */

.result-card {
  padding: 1.2rem 0 1.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.result-card:last-of-type {
  border-bottom: none;
}

.result-card h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  margin: 0 0 0.4rem 0;
}

.result-card .icon {
  font-size: 1.3rem;
}

.result-list {
  list-style: none;
  padding-left: 0;
  margin: 0.4rem 0 0;
}

.result-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.result-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.2rem;
  color: var(--color-primary-soft);
}

/* simple fade-in for the complete result container (optional) */
.analysis-result {
  animation: resultFadeIn 0.35s ease-out;
}

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