/* ============================================================
   SECTION: BOOKLET LEAD MAGNET — Premium Hero
   ============================================================ */

.booklet-section {
  background-color: var(--background-secondary);
  padding-block: clamp(48px, 7vw, 80px);
}

/* ── Hero-Card (dunkles Indigo, contained, abgerundet) ── */
.booklet-hero {
  background: linear-gradient(135deg, #1A1530 0%, #231840 50%, #1E1535 100%);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  min-height: 380px;
  position: relative;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.20),
    0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ── Text-Spalte ── */
.booklet-hero-text {
  padding: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 56px);
  position: relative;
  z-index: 1;
}

.booklet-hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(188, 131, 215, 0.80);
  margin-bottom: 20px;
}

.booklet-hero-headline {
  font-size: clamp(1.625rem, 2.75vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 18px;
  margin-top: 0;
}

.booklet-hero-headline em {
  font-style: italic;
  color: #BC83D7;
}

.booklet-hero-desc {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 32px;
  max-width: 400px;
}

.booklet-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  background-color: rgba(147, 39, 195, 0.85);
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  cursor: pointer;
  font-family: inherit;
  transition: background-color var(--transition-base), transform var(--transition-base);
  backdrop-filter: blur(8px);
}

.booklet-hero-cta:hover {
  background-color: rgba(147, 39, 195, 1);
  transform: translateY(-1px);
}

.booklet-hero-cta:focus-visible {
  outline: 2px solid rgba(188, 131, 215, 0.8);
  outline-offset: 3px;
}

/* ── Visual-Spalte ── */
.booklet-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 48px);
  padding-right: clamp(32px, 5vw, 64px);
  height: 100%;
}

/* Violetter Glow hinter dem Buch */
.booklet-hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(147, 39, 195, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.booklet-hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  border-radius: 6px;
  transform: translateY(-8px);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.50),
    0 16px 32px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: bookletFloat 6s ease-in-out infinite;
}

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

/* ── Responsive ── */
@media (max-width: 767px) {
  .booklet-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .booklet-hero-visual {
    padding-top: 0;
    padding-bottom: clamp(32px, 5vw, 48px);
  }

  .booklet-hero-img {
    max-width: 180px;
    transform: rotate(-3deg) translateY(0);
    animation: none;
  }

  .booklet-hero-glow {
    width: 200px;
    height: 200px;
  }
}

/* ── Compact Layout: Text links, kleines Bild rechts ── */
.booklet-compact-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  max-width: 880px;
  margin-inline: auto;
}

.booklet-compact-text {
  min-width: 0;
}

.booklet-compact-headline {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 16px;
  margin-top: 0;
}

.booklet-compact-headline em {
  font-style: italic;
  color: var(--accent-primary);
}

.booklet-compact-desc {
  font-size: clamp(0.9375rem, 1.3vw, 1rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 28px;
}

.booklet-compact-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent-primary);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: opacity var(--transition-base);
}

.booklet-compact-cta:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.booklet-compact-cta:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Kleines Booklet-Bild ── */
.booklet-compact-visual {
  flex-shrink: 0;
}

.booklet-compact-img {
  width: 160px;
  height: auto;
  display: block;
  transform: rotate(-3deg);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.14),
    0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 3px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .booklet-compact-wrap {
    grid-template-columns: 1fr;
  }

  .booklet-compact-visual {
    display: none;
  }
}

.booklet-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--container-padding, 24px);
}

/* ── Left column: visual ── */
.booklet-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.booklet-img {
  max-height: 560px;
  width: auto;
  display: block;
  transform: rotate(-3deg);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.10);
  border-radius: 3px;
  animation: bookletFloat 5s ease-in-out infinite;
}

@keyframes bookletFloat {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%       { transform: rotate(-3deg) translateY(-4px); }
}

/* ── Right column: text ── */
.booklet-content {
  max-width: 520px;
}

.booklet-tag {
  font-family: 'ABC Diatype', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #9327C3;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.booklet-headline {
  font-family: 'ABC Diatype', system-ui, sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.booklet-headline em {
  font-style: italic;
  color: #9327C3;
}

.booklet-desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
}

.booklet-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booklet-bullets li {
  font-family: 'ABC Diatype', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.booklet-bullets li::before {
  content: '\2713';
  color: #9327C3;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.booklet-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background-color: #9327C3;
  color: #ffffff;
  font-family: 'ABC Diatype', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 200ms ease, transform 200ms ease;
  line-height: 1;
}

.booklet-cta-btn:hover {
  background-color: #7d1fa6;
  transform: translateY(-1px);
}

.booklet-trust-note {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 16px;
  margin-bottom: 0;
}

/* ── Tablet (768-1024px) ── */
@media (max-width: 1024px) {
  .booklet-layout {
    gap: 40px;
  }

  .booklet-img {
    max-height: 480px;
  }
}

/* ── Mobile (under 768px) ── */
@media (max-width: 768px) {
  .booklet-section {
    padding-block: 80px;
  }

  .booklet-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .booklet-visual {
    order: -1;
  }

  .booklet-img {
    max-width: 320px;
    max-height: none;
    transform: none;
    animation: none;
    box-shadow:
      0 16px 48px rgba(0, 0, 0, 0.15),
      0 4px 16px rgba(0, 0, 0, 0.08);
  }

  .booklet-desc {
    font-size: 16px;
  }
}


/* ============================================================
   MODAL: BOOKLET LEAD MAGNET
   ============================================================ */

.booklet-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.60);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease-out, visibility 0s linear 200ms;
}

.booklet-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 200ms ease-out, visibility 0s linear 0s;
}

.booklet-modal {
  background-color: #ffffff;
  border-radius: 24px;
  max-width: 820px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  transform: translateY(12px);
  transition: transform 200ms ease-out;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
}

/* ── Linke Spalte: Visual (dunkles Indigo) ── */
.booklet-modal-visual {
  width: 260px;
  flex-shrink: 0;
  background: linear-gradient(160deg, #1A1530 0%, #231840 60%, #1E1535 100%);
  border-radius: 24px 0 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  position: relative;
  overflow: hidden;
}

.booklet-modal-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(147, 39, 195, 0.40) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.booklet-modal-book {
  position: relative;
  z-index: 1;
  width: 190px;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.55),
    0 8px 16px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
}

.booklet-modal-visual-label {
  position: relative;
  z-index: 1;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  line-height: 1.5;
}

/* ── Rechte Spalte: Formular ── */
.booklet-modal-form-wrap {
  flex: 1;
  padding: 48px 40px;
  overflow-y: auto;
  position: relative;
}

.booklet-modal-overlay.is-open .booklet-modal {
  transform: translateY(0);
}

.booklet-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 22px;
  line-height: 1;
  border-radius: 50%;
  transition: background-color 150ms ease, color 150ms ease;
  padding: 0;
}

.booklet-modal-close:hover {
  background-color: #f5f5f5;
  color: #333;
}

/* State toggling */
.booklet-modal-success { display: none; }

.booklet-modal.show-success .booklet-modal-initial { display: none; }
.booklet-modal.show-success .booklet-modal-success { display: block; }

/* Initial state */
.booklet-modal-headline {
  font-family: 'ABC Diatype', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.booklet-modal-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 12px;
  margin-bottom: 32px;
  line-height: 1.5;
}

.booklet-modal-label {
  display: block;
  font-family: 'ABC Diatype', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.booklet-modal-input {
  width: 100%;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: 'ABC Diatype', system-ui, sans-serif;
  color: var(--text-primary);
  background: #fff;
  outline: none;
  transition: border-color 150ms ease;
  box-sizing: border-box;
}

.booklet-modal-input:focus {
  border-color: #9327C3;
}

.booklet-modal-error {
  font-size: 13px;
  color: #c0392b;
  margin-top: 6px;
  display: none;
}

.booklet-modal-error.is-visible {
  display: block;
}

.booklet-modal-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  cursor: pointer;
}

.booklet-modal-consent-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #9327C3;
  cursor: pointer;
}

.booklet-modal-consent-label span {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.booklet-modal-dsgvo {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 14px;
  line-height: 1.5;
}

.booklet-modal-dsgvo a {
  color: var(--text-secondary);
  text-decoration: underline;
}

.booklet-modal-submit {
  display: block;
  width: 100%;
  padding: 16px;
  background-color: #9327C3;
  color: #ffffff;
  font-family: 'ABC Diatype', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 24px;
  transition: background-color 200ms ease;
}

.booklet-modal-submit:hover:not(:disabled) {
  background-color: #7d1fa6;
}

.booklet-modal-submit:disabled {
  opacity: 0.70;
  cursor: not-allowed;
}

/* Success state */
.booklet-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(147, 39, 195, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.booklet-success-icon svg {
  width: 40px;
  height: 40px;
  stroke: #9327C3;
}

.booklet-success-headline {
  font-family: 'ABC Diatype', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 12px;
}

.booklet-success-desc {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
  margin: 0 0 32px;
}

.booklet-success-download {
  display: block;
  width: 100%;
  padding: 16px;
  background-color: #9327C3;
  color: #ffffff;
  font-family: 'ABC Diatype', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 200ms ease;
  box-sizing: border-box;
}

.booklet-success-download:hover {
  background-color: #7d1fa6;
}

.booklet-modal-close-link {
  display: block;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  margin-top: 16px;
  background: none;
  border: none;
  font-family: 'ABC Diatype', system-ui, sans-serif;
  text-decoration: none;
  width: 100%;
  padding: 0;
}

.booklet-modal-close-link:hover {
  text-decoration: underline;
}

/* Mobile modal */
@media (max-width: 768px) {
  .booklet-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .booklet-modal {
    max-width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    max-height: 92vh;
    flex-direction: column;
  }

  .booklet-modal-visual {
    display: none;
  }

  .booklet-modal-form-wrap {
    padding: 32px 24px;
  }
}

@media (max-width: 400px) {
  .booklet-modal-form-wrap {
    padding: 28px 16px;
  }

  .booklet-modal-headline {
    font-size: 20px;
  }
}
