/* ============================================================
   Dana Quiz Funnel — Styles
   Brand: Purple #904FCC, Playfair Display + Inter, mobile-first
   ============================================================ */

:root {
  --purple:       #904FCC;
  --purple-dark:  #7340B8;
  --purple-light: #F0E8FF;
  --purple-soft:  #F7F4FC;
  --black:        #0D0D0D;
  --gray-dark:    #2A2A2A;
  --gray-mid:     #5C5C5C;
  --gray-light:   #F7F4FC;
  --gray-bg:      #FAFAFC;
  --border:       #E2D9EF;
  --green:        #2BB673;
  --shadow-card:  0 12px 32px rgba(45, 30, 90, 0.10);
  --shadow-cta:   0 8px 28px rgba(144, 79, 204, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--black); margin: 0 0 16px; line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(1.85rem, 4.5vw, 2.85rem); }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h1 em { color: var(--purple); font-style: italic; }

/* ============================================================
   TOP BADGE
   ============================================================ */
.top-badge {
  background: var(--black);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.top-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); display: inline-block;
  box-shadow: 0 0 0 0 rgba(43, 182, 115, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(43, 182, 115, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(43, 182, 115, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 182, 115, 0); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 48px 24px 56px;
  background: linear-gradient(180deg, #fff 0%, var(--gray-bg) 100%);
}
.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 52px;
}
.hero-photo-col { flex: 0 0 300px; width: 300px; }
.hero-photo-large {
  width: 300px; height: 360px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.hero-author-below-photo { display: none; }
.hero-text-col {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.preadline {
  color: var(--purple);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 12px;
  text-transform: none;
}

.subline {
  font-size: 1.05rem;
  color: var(--gray-mid);
  margin: 0 0 24px;
  max-width: 540px;
}

.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
}
.btn-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--purple);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 18px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  font-family: inherit;
}
.btn-hero-cta:hover { background: var(--purple-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(144, 79, 204, 0.45); }
.btn-hero-cta:active { transform: translateY(0); }
.btn-arrow { font-size: 1.2rem; }

.hero-cta-note {
  font-size: 0.85rem;
  color: var(--gray-mid);
  margin: 0;
}

.hero-bekannt-mobile { display: none; }

/* ============================================================
   BEKANNT-STRIP (Desktop)
   ============================================================ */
.bekannt-strip {
  padding: 24px 24px;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.bekannt-strip-label {
  font-size: 0.75rem;
  color: var(--gray-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.bekannt-strip-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.bekannt-strip-logos img { height: 28px; opacity: 0.72; filter: grayscale(100%); }

/* ============================================================
   SECOND PITCH
   ============================================================ */
.second-pitch {
  padding: 64px 24px;
  background: var(--purple-soft);
  text-align: center;
}
.container-narrow { max-width: 720px; margin: 0 auto; }
.second-pitch p {
  font-size: 1.05rem;
  color: var(--gray-mid);
  max-width: 620px;
  margin: 0 auto 24px;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  font-family: inherit;
}
.btn-secondary:hover { background: var(--purple-dark); }

/* ============================================================
   KK LOGOS
   ============================================================ */
.kk-logos {
  padding: 56px 24px;
  background: #fff;
  text-align: center;
}
.kk-logos h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.kk-logos-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 36px;
}
.kk-logos-row img { height: 48px; opacity: 0.78; }

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 64px 24px;
  background: var(--gray-bg);
}
.faq h2 { text-align: center; margin-bottom: 28px; }
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 14px 18px;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: -1px;
  font-size: 1.4rem;
  color: var(--purple);
  font-weight: 400;
}
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 12px 0 4px; color: var(--gray-mid); font-size: 0.95rem; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--black);
  color: #aaa;
  padding: 28px 24px;
  text-align: center;
  font-size: 0.85rem;
}
.footer-inner { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: #aaa; }

/* ============================================================
   QUIZ MODAL
   ============================================================ */
.quiz-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.quiz-overlay.active { display: flex; }

.quiz-modal {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px 32px 40px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
  animation: quizModalIn 0.32s cubic-bezier(0.32, 0.72, 0.32, 1) both;
}
@keyframes quizModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.quiz-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none; border: none;
  font-size: 2rem;
  color: var(--gray-mid);
  cursor: pointer;
  line-height: 1;
}
.quiz-close:hover { color: var(--black); }

.quiz-progress-wrap { margin-bottom: 28px; }
.quiz-progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 6px;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple) 0%, var(--purple-dark) 100%);
  width: 14%;
  transition: width 0.32s ease;
  border-radius: 6px;
}
.quiz-progress-label {
  font-size: 0.78rem;
  color: var(--gray-mid);
  text-align: right;
  font-weight: 500;
}

.quiz-content { animation: stepFade 0.28s ease both; }
@keyframes stepFade { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }

.quiz-step-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  color: var(--black);
  margin: 0 0 8px;
  line-height: 1.25;
  font-weight: 700;
}
.quiz-step-sub {
  color: var(--gray-mid);
  margin: 0 0 22px;
  font-size: 0.95rem;
}

/* Input */
.quiz-input {
  width: 100%;
  font-size: 1.05rem;
  padding: 16px 18px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  transition: border-color 0.18s ease;
}
.quiz-input:focus {
  outline: none;
  border-color: var(--purple);
}

/* Option Cards */
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 1rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--gray-dark);
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.quiz-option:hover { border-color: var(--purple); background: var(--purple-soft); }
.quiz-option.selected {
  border-color: var(--purple);
  background: var(--purple-soft);
  color: var(--black);
  font-weight: 600;
}
.quiz-option-checkbox {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
  color: #fff;
  background: #fff;
  transition: all 0.18s ease;
}
.quiz-option.selected .quiz-option-checkbox {
  background: var(--purple);
  border-color: var(--purple);
}

/* Multi-Select Helper Text */
.quiz-multi-hint {
  font-size: 0.82rem;
  color: var(--gray-mid);
  margin: 8px 0 0;
  text-align: center;
}

/* Footer Buttons */
.quiz-footer { margin-top: 24px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.quiz-btn-back {
  background: none;
  border: none;
  color: var(--gray-mid);
  font-size: 0.92rem;
  cursor: pointer;
  font-family: inherit;
}
.quiz-btn-back:hover { color: var(--black); }
.quiz-btn-next {
  background: var(--purple);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-cta);
  font-family: inherit;
  margin-left: auto;
}
.quiz-btn-next:hover:not(:disabled) { background: var(--purple-dark); }
.quiz-btn-next:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

/* ============================================================
   TESTIMONIAL MIRROR (Step 3.5)
   ============================================================ */
.quiz-testimonial {
  background: var(--purple-soft);
  border-radius: 16px;
  padding: 24px;
  margin: 0 0 16px;
  border: 2px solid var(--purple-light);
}
.quiz-testimonial-label {
  font-size: 0.78rem;
  color: var(--purple);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.quiz-testimonial-stars {
  color: #FFB400;
  font-size: 1.05rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.quiz-testimonial-quote {
  font-size: 1.02rem;
  color: var(--black);
  line-height: 1.55;
  margin: 0 0 16px;
  font-style: italic;
}
.quiz-testimonial-quote strong { background: linear-gradient(180deg, transparent 65%, rgba(144, 79, 204, 0.22) 65%); padding: 0 2px; }
.quiz-testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.quiz-testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.quiz-testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.quiz-testimonial-name { font-weight: 700; color: var(--black); }
.quiz-testimonial-role { font-size: 0.82rem; color: var(--gray-mid); }

/* ============================================================
   TEASER + EMAIL GATE (Step 7)
   ============================================================ */
.quiz-teaser-result {
  margin-bottom: 22px;
}
.quiz-teaser-profile {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: #fff;
  padding: 20px 24px;
  border-radius: 16px;
  margin: 0 0 20px;
}
.quiz-teaser-profile-label { font-size: 0.78rem; opacity: 0.85; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.quiz-teaser-profile-name { font-family: 'Playfair Display', Georgia, serif; font-size: 1.55rem; font-weight: 700; margin-top: 4px; line-height: 1.2; }
.quiz-teaser-text {
  font-size: 0.98rem;
  color: var(--gray-dark);
  line-height: 1.6;
  margin: 0 0 20px;
}
.quiz-blur-block {
  position: relative;
  background: var(--gray-bg);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 18px;
  margin: 0 0 24px;
}
.quiz-blur-content {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  color: var(--gray-mid);
  font-size: 0.92rem;
  line-height: 1.6;
}
.quiz-blur-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--purple);
  background: rgba(255,255,255,0.12);
}

.quiz-gate-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  color: var(--black);
  margin: 0 0 10px;
}
.quiz-gate-sub {
  color: var(--gray-mid);
  font-size: 0.95rem;
  margin: 0 0 20px;
}
.quiz-checkbox-wrap {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: var(--gray-mid);
}
.quiz-checkbox-wrap input { margin-top: 3px; flex-shrink: 0; }
.quiz-honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.quiz-trust {
  font-size: 0.78rem;
  color: var(--gray-mid);
  text-align: center;
  margin: 12px 0 0;
}

.quiz-loading {
  text-align: center;
  padding: 40px 0;
}
.quiz-loading-spinner {
  width: 44px; height: 44px;
  border: 4px solid var(--border);
  border-top-color: var(--purple);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.quiz-loading-text { color: var(--gray-mid); }

.quiz-error {
  background: #FFF2F0;
  color: #C73E3E;
  border: 1px solid #FFCCC8;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  max-width: 480px;
  margin-left: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  z-index: 800;
  font-size: 0.88rem;
}
.cookie-banner p { margin: 0 0 12px; color: var(--gray-mid); }
.cookie-banner-actions { display: flex; gap: 8px; justify-content: flex-end; }
.cookie-banner-actions button {
  font-family: inherit;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--gray-dark);
  cursor: pointer;
  font-weight: 600;
}
.cookie-banner-actions button.primary { background: var(--purple); color: #fff; border-color: var(--purple); }

/* ============================================================
   MOBILE (max 480px) — Mobile-First-Patterns aus reference_mobile_landingpage.md
   ============================================================ */
@media (max-width: 480px) {
  /* Hero: Text vor Foto, Foto klein, alles zentriert */
  .hero { padding: 16px 16px 28px; }
  .hero-inner { flex-direction: column; align-items: center; gap: 20px; }
  .hero-text-col { order: -1; text-align: center; align-items: center; }
  .hero-photo-col { width: 130px; flex: 0 0 auto; order: 1; display: flex; flex-direction: column; align-items: center; }
  .hero-photo-large { width: 130px; height: 130px; border-radius: 50%; }
  .hero-author-below-photo {
    display: flex !important; justify-content: center; align-items: center;
    gap: 6px; margin-top: 10px; flex-wrap: wrap;
    font-size: 0.82rem; color: var(--gray-mid);
  }
  .hero-author-name { font-weight: 600; color: var(--black); }

  /* Subline kürzen */
  .subline { font-size: 0.95rem; max-width: 100%; margin-bottom: 20px; }

  /* CTA-Wrap zentrieren */
  .hero-cta-wrap { align-items: center !important; }
  .hero-cta-note { text-align: center !important; }

  /* Bekannt-Strip Desktop ausblenden, Mobile-Variante einblenden */
  .bekannt-strip { display: none; }
  .hero-bekannt-mobile {
    display: flex !important; flex-direction: column;
    align-items: center; gap: 8px; margin-top: 22px;
    width: 100%;
  }
  .hero-bekannt-mobile .bekannt-strip-logos img { height: 22px; }
  .hero-bekannt-mobile .bekannt-strip-logos { gap: 18px; flex-wrap: wrap; justify-content: center; }

  /* Headlines kleiner */
  h1 { font-size: 1.7rem; }
  .preadline { font-size: 0.95rem; }

  /* Quiz Modal Mobile */
  .quiz-modal { padding: 24px 20px 28px; border-radius: 18px; max-height: 96vh; }
  .quiz-step-title { font-size: 1.3rem; }
  .quiz-option { padding: 14px 14px; font-size: 0.95rem; }
  .quiz-btn-next { padding: 12px 22px; font-size: 0.95rem; }
  .second-pitch { padding: 40px 20px; }
  .kk-logos { padding: 40px 20px; }
  .kk-logos-row { gap: 22px; }
  .kk-logos-row img { height: 36px; }
  .faq { padding: 40px 16px; }
  .quiz-teaser-profile-name { font-size: 1.3rem; }
  .quiz-gate-headline { font-size: 1.2rem; }
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px; }
}
