/* ================================================
   EINZELANALYSE — Extrahiert aus mockups/astromantie-einzelanalyse.jsx
   ================================================ */

/* ===== HERO STARFIELD ===== */
.astro-product-hero .astro-starfield {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

body.astro-light-theme .astro-product-hero .astro-starfield {
  display: none;
}

/* Alle direkten Kinder des Hero (Icon, Titel, Text, Trust) ueber dem Starfield */
.astro-product-hero > *:not(.astro-starfield) {
  position: relative;
  z-index: 1;
}

/* ===== PRODUCT HERO ===== */
.astro-product-hero {
  position: relative;
  overflow: hidden;
  padding: 60px 48px 36px;
  text-align: center;
  background: var(--astro-hero-grad);
  transition: background 0.5s;
}

.astro-product-icon {
  font-size: 72px;
  animation: fadeUp 0.6s ease-out both;
  color: var(--astro-gold);
  filter: drop-shadow(0 0 20px rgba(232,201,106,0.4));
}

body.astro-light-theme .astro-product-icon {
  filter: drop-shadow(0 0 15px rgba(201,168,76,0.3));
}

.astro-product-title {
  font-family: 'Cinzel', serif;
  font-size: 46px;
  font-weight: 400;
  margin-bottom: 18px;
  line-height: 1.2;
  animation: fadeUp 0.6s ease-out both;
  animation-delay: 0.1s;
}

.astro-product-subtitle {
  font-size: 16px;
  color: var(--astro-text-mid);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 32px;
  animation: fadeUp 0.6s ease-out both;
  animation-delay: 0.2s;
}

/* Trust Indicators */
.astro-product-trust {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s ease-out both;
  animation-delay: 0.3s;
}

.astro-product-trust-item {
  text-align: center;
}

.astro-product-trust-num {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--astro-gold-star);
}

.astro-product-trust-label {
  font-size: 12px;
  color: var(--astro-text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ===== "JETZT BESTELLEN" HEADING ABOVE FORM ===== */
.astro-product-order-heading {
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
  padding: 50px 48px 44px;
}

.astro-product-order-title {
  font-family: 'Cinzel', serif;
  font-size: 32px;
  font-weight: 400;
  background: var(--astro-title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 12px;
  line-height: 1.3;
}

body.astro-light-theme .astro-product-order-title {
  background: none;
  -webkit-text-fill-color: var(--astro-accent-dark, #a07c2a);
  color: var(--astro-accent-dark, #a07c2a);
}

.astro-product-order-subtitle {
  font-size: 14px;
  color: var(--astro-text-mid);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== PRODUCT FORM SECTION ===== */
.astro-product-form-section {
  padding: 0 48px 80px;
  max-width: 750px;
  margin: 0 auto;
  position: relative;
}

/* Outer Glow als Pseudo-Element (wie Startseite) */
.astro-product-form-outer-glow {
  display: none !important;
}

.astro-product-form-section::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 40px;
  right: 40px;
  bottom: 72px;
  border-radius: 28px;
  z-index: 0;
  pointer-events: none;
  box-shadow: 0 0 35px rgba(124,58,237,0.18), 0 0 70px rgba(124,58,237,0.08);
  animation: formGlowPulse 4s ease-in-out infinite;
}

body.astro-light-theme .astro-product-form-section::before {
  box-shadow: 0 0 25px rgba(201,168,76,0.12), 0 0 50px rgba(232,201,106,0.08), 0 0 80px rgba(201,168,76,0.04);
  animation: goldPulse 5s ease-in-out infinite;
}

.astro-product-form-card {
  position: relative;
  overflow: visible;
  padding: 32px 28px 28px;
  border-radius: 20px;
  background: var(--astro-form-bg);
  border: 1px solid var(--astro-border);
  backdrop-filter: blur(24px);
  animation: var(--astro-card-glow) 4s ease-in-out infinite;
  z-index: 1;
}

body.astro-light-theme .astro-product-form-card {
  border-color: rgba(201,168,76,0.25);
}

/* Glow-Top wird vom globalen .astro-form-card .astro-form-glow-top gehandhabt.
   Das alte Product-spezifische Element ausblenden falls noch im HTML. */
.astro-product-form-glow-top {
  display: none;
}

/* ===== FORM LAYOUT (aus Startseite übernommen) ===== */
.astro-product-form-card .astro-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.astro-product-form-card .astro-form-row + .astro-form-row,
.astro-product-form-card .astro-form-row + .astro-form-field {
  margin-top: 12px;
}

.astro-product-form-card .astro-form-field + .astro-form-row {
  margin-top: 12px;
}

.astro-product-form-card .astro-form-field {
  margin-top: 12px;
}

/* Hand Photo Section */
.astro-product-form-card .astro-hand-section {
  margin-top: 18px;
}

.astro-product-form-card .astro-hand-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--astro-text-mid);
  margin-bottom: 8px;
  display: block;
}

.astro-product-form-card .astro-hand-info {
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--astro-text-mid);
  line-height: 1.6;
}

body.astro-light-theme .astro-product-form-card .astro-hand-info {
  background: rgba(201,168,76,0.06);
  border-color: rgba(201,168,76,0.15);
}

.astro-product-form-card .astro-hand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Pflichtfeld-Sternchen */
.astro-product-form-card .astro-required {
  color: var(--astro-accent);
  font-weight: 700;
  margin-left: 1px;
}

/* Beispielbilder Toggle */
.astro-product-form-card .astro-example-toggle {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--astro-accent);
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s;
}
.astro-product-form-card .astro-example-toggle:hover { opacity: 0.75; }

/* Beispielbilder Grid */
.astro-product-form-card .astro-example-grid {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.astro-product-form-card .astro-example-item {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.astro-product-form-card .astro-example-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 1.5px solid rgba(124,58,237,0.2);
  transition: transform 0.2s, border-color 0.2s;
}
.astro-product-form-card .astro-example-thumb:hover {
  transform: scale(1.04);
  border-color: var(--astro-accent);
}
body.astro-light-theme .astro-product-form-card .astro-example-thumb {
  border-color: rgba(201,168,76,0.25);
}
body.astro-light-theme .astro-product-form-card .astro-example-thumb:hover {
  border-color: var(--astro-accent);
}

.astro-product-form-card .astro-example-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--astro-text-mid);
  margin-top: 4px;
  line-height: 1.3;
}
.astro-product-form-card .astro-example-label::first-letter {
  color: #4ade80;
}

/* Privacy + CTA Section */
.astro-product-form-card .astro-form-privacy {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.astro-product-form-card .astro-form-ctas {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== FEATURES SECTION ===== */
.astro-product-features {
  padding: 60px 48px;
  background: var(--astro-section-alt);
}

.astro-product-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.astro-product-feature-card {
  padding: 28px;
  border-radius: 16px;
  background: var(--astro-card-surface);
  border: 1px solid var(--astro-surface-border);
  animation: fadeUp 0.6s ease-out both;
}

.astro-product-feature-card:nth-child(1) { animation-delay: 0.4s; }
.astro-product-feature-card:nth-child(2) { animation-delay: 0.48s; }
.astro-product-feature-card:nth-child(3) { animation-delay: 0.56s; }
.astro-product-feature-card:nth-child(4) { animation-delay: 0.64s; }

.astro-product-feature-icon {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--astro-gold);
}

body.astro-light-theme .astro-product-feature-icon {
  color: var(--astro-accent-dark);
}

.astro-product-feature-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--astro-text);
  margin-bottom: 6px;
}

.astro-product-feature-desc {
  font-size: 13px;
  color: var(--astro-text-mid);
  line-height: 1.6;
  margin: 0;
}

/* ===== TESTIMONIALS ===== */
.astro-product-testimonials {
  padding: 60px 48px;
}

.astro-product-testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.astro-product-testimonial {
  padding: 28px;
  border-radius: 16px;
  background: var(--astro-card-surface);
  border: 1px solid var(--astro-surface-border);
}

.astro-product-testimonial-text {
  font-size: 14px;
  color: var(--astro-text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.astro-product-testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.astro-product-testimonial-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  font-weight: 700;
}

body.astro-light-theme .astro-product-testimonial-avatar {
  background: linear-gradient(135deg, #c9a84c, #e8c96a);
}

.astro-product-testimonial-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--astro-text);
}

.astro-product-testimonial-meta {
  font-size: 12px;
  color: var(--astro-text-dim);
}

/* ===== ALLE SECTION-TITLES GROESSER ===== */
.astro-product-features .astro-section-title,
.astro-product-steps .astro-section-title,
.astro-product-testimonials .astro-section-title,
.astro-product-faq .astro-section-title {
  font-size: 32px;
}

/* ===== STEPS SECTION (So entsteht dein Lebensbuch) ===== */
.astro-product-steps {
  padding: 80px 48px;
}

.astro-product-steps .astro-section-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--astro-accent, #a78bfa);
  margin-bottom: 12px;
}

body.astro-light-theme .astro-product-steps .astro-section-label {
  color: var(--astro-gold-star);
}

.astro-product-steps .astro-section-title {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--astro-text);
  margin-bottom: 12px;
}

/* "dein Lebensbuch" im Gradient, "So entsteht" in weiss (darkmode) */
.astro-product-steps .astro-section-title .astro-title-gradient {
  background: var(--astro-title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

body.astro-light-theme .astro-product-steps .astro-section-title {
  color: var(--astro-accent-dark, #a07c2a);
}

body.astro-light-theme .astro-product-steps .astro-section-title .astro-title-gradient {
  background: none;
  -webkit-text-fill-color: var(--astro-accent-dark, #a07c2a);
  color: var(--astro-accent-dark, #a07c2a);
}

.astro-product-steps .astro-section-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--astro-text-mid);
  margin-bottom: 40px;
}

.astro-product-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.astro-product-step-card {
  padding: 28px;
  border-radius: 18px;
  text-align: left;
  background: var(--astro-card-surface);
  border: 1px solid var(--astro-surface-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.5s, border-color 0.5s;
}

.astro-product-step-num {
  font-family: 'Cinzel', serif;
  font-size: 32px;
  margin-bottom: 12px;
  font-weight: 400;
  background: var(--astro-title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

body.astro-light-theme .astro-product-step-num {
  background: none;
  -webkit-text-fill-color: var(--astro-accent-dark, #a07c2a);
  color: var(--astro-accent-dark, #a07c2a);
}

.astro-product-step-title {
  font-size: 17px;
  color: var(--astro-text);
  margin-bottom: 8px;
  font-weight: 600;
}

.astro-product-step-desc {
  font-size: 13px;
  color: var(--astro-text-mid);
  line-height: 1.7;
  margin: 0;
}

/* ===== FAQ MINI-SECTION ===== */
.astro-product-faq {
  padding: 80px 48px;
  background: var(--astro-section-alt);
}

.astro-product-faq .astro-section-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--astro-accent, #a78bfa);
  margin-bottom: 12px;
}

body.astro-light-theme .astro-product-faq .astro-section-label {
  color: var(--astro-gold-star);
}

.astro-product-faq .astro-section-title {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 400;
  background: var(--astro-title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 40px;
}

body.astro-light-theme .astro-product-faq .astro-section-title {
  background: none;
  -webkit-text-fill-color: var(--astro-accent-dark, #a07c2a);
  color: var(--astro-accent-dark, #a07c2a);
}

.astro-product-faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.astro-product-faq-item {
  border-bottom: 1px solid var(--astro-surface-border);
  padding: 22px 0;
}

.astro-product-faq-question {
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--astro-text);
  text-align: left;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.2px;
  line-height: 1.4;
}

.astro-product-faq-chevron {
  font-size: 0;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--astro-surface-border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.astro-product-faq-chevron::after {
  content: '+';
  font-size: 16px;
  font-weight: 300;
  color: var(--astro-text-mid);
  transition: all 0.3s;
}

.astro-product-faq-item.open .astro-product-faq-chevron {
  background: var(--astro-accent-dark, #7c3aed);
  border-color: var(--astro-accent-dark, #7c3aed);
  transform: rotate(45deg);
}

.astro-product-faq-item.open .astro-product-faq-chevron::after {
  color: #fff;
}

.astro-product-faq-answer {
  display: none;
  padding: 0;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.75;
  text-align: left;
  font-weight: 400;
  letter-spacing: 0.1px;
  color: #e8e0f0;
}

body.astro-light-theme .astro-product-faq-answer {
  color: #5a4d3a;
}

.astro-product-faq-item.open .astro-product-faq-answer {
  display: block;
}

.astro-product-faq-more {
  text-align: center;
  margin-top: 32px;
}

.astro-product-faq-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--astro-text-mid);
  text-decoration: none;
  border: 1px solid var(--astro-surface-border);
  background: transparent;
  transition: all 0.3s;
}

.astro-product-faq-more a:hover {
  color: var(--astro-accent);
  border-color: var(--astro-accent);
  background: rgba(124, 58, 237, 0.06);
}

body.astro-light-theme .astro-product-faq-more a:hover {
  color: var(--astro-accent-dark, #a07c2a);
  border-color: var(--astro-accent-dark, #a07c2a);
  background: rgba(201, 168, 76, 0.04);
}

/* ===== STEP 02 PHOTO GUIDE ===== */
.astro-product-photo-guide {
  margin-top: 14px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.15);
  font-size: 12px;
  line-height: 1.7;
  color: var(--astro-text-mid);
  display: none;
}

.astro-product-photo-guide.open {
  display: block;
}

body.astro-light-theme .astro-product-photo-guide {
  background: rgba(201,168,76,0.06);
  border-color: rgba(201,168,76,0.15);
}

.astro-product-photo-guide-title {
  font-weight: 700;
  color: var(--astro-accent);
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.astro-product-photo-guide-step {
  margin-bottom: 6px;
}

.astro-product-photo-guide-step-num {
  color: var(--astro-gold-star);
  font-weight: 600;
}

body.astro-light-theme .astro-product-photo-guide-step-num {
  color: var(--astro-accent-dark);
}

.astro-product-step-link {
  color: var(--astro-accent);
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  border-bottom: 1px dashed var(--astro-accent);
  transition: opacity 0.2s;
}

.astro-product-step-link:hover {
  opacity: 0.75;
}

/* Beispielbilder im Step */
.astro-product-step-examples {
  margin-top: 12px;
}

.astro-product-step-examples-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--astro-accent, #a78bfa);
  transition: opacity 0.2s;
}

.astro-product-step-examples-btn:hover {
  opacity: 0.8;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .astro-product-hero {
    padding: 60px 20px 40px;
  }

  .astro-product-icon {
    font-size: 56px;
  }

  .astro-product-title {
    font-size: 30px;
  }

  .astro-product-order-title {
    font-size: 24px;
  }

  .astro-product-order-heading {
    padding: 36px 20px 28px;
  }

  .astro-product-form-section {
    padding: 0 12px 40px;
  }

  /* Schwarzen Rahmen entfernen, stattdessen staerkeren Glow direkt auf die Card */
  .astro-product-form-section::before {
    display: none;
  }

  .astro-product-form-card {
    padding: 24px 18px 20px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    /* borderGlowPulse animiert nur box-shadow + border-color, nicht opacity */
    animation: borderGlowPulse 4s ease-in-out infinite;
  }

  body.astro-light-theme .astro-product-form-card {
    animation: borderGlowGold 5s ease-in-out infinite;
  }

  .astro-product-form-card .astro-form-row {
    grid-template-columns: 1fr;
  }

  .astro-product-form-card .astro-hand-grid {
    grid-template-columns: 1fr;
  }

  /* Datenschutz-Checkbox NEBEN dem Text, nicht darueber */
  .astro-product-form-card .astro-form-privacy {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
  }

  .astro-product-features {
    padding: 40px 20px;
  }

  .astro-product-features-grid {
    grid-template-columns: 1fr;
  }

  .astro-product-feature-card {
    text-align: center;
  }

  .astro-product-testimonials {
    padding: 40px 20px;
  }

  .astro-product-testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Alle Section-Titles Mobile */
  .astro-product-features .astro-section-title,
  .astro-product-steps .astro-section-title,
  .astro-product-testimonials .astro-section-title,
  .astro-product-faq .astro-section-title {
    font-size: 24px;
  }

  /* Steps Mobile */
  .astro-product-steps {
    padding: 50px 20px;
  }

  .astro-product-steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .astro-product-step-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* FAQ Mobile */
  .astro-product-faq {
    padding: 50px 20px;
  }

  .astro-product-faq-question {
    font-size: 14px;
  }

  .astro-product-faq-answer {
    font-size: 13px;
  }
}

/* ===== BILD-LIGHTBOX ===== */
.astro-img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: fadeIn 0.2s ease;
}

.astro-img-lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  cursor: default;
}

.astro-img-lightbox-inner img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: block;
}

.astro-img-lightbox-caption {
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
  font-family: 'Inter', sans-serif;
}

.astro-img-lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.astro-img-lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
