/* ==========================================================================
   Lucid Page Media – Sektions-Layouts
   ========================================================================== */

/* --- HERO --------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 2rem + 6vw, 6.5rem) clamp(3rem, 2rem + 4vw, 5rem);
  text-align: center;
  overflow: clip;
}
.hero::before { /* sanfter Cream→Mint Verlauf + Teal-Glow */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 50% -8%, rgba(46,196,182,0.16), transparent 70%),
    linear-gradient(180deg, var(--mint-50), var(--cream-50));
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; margin-inline: auto; }
.hero__title { font-size: var(--fs-display); margin-bottom: var(--sp-4); }
.hero__title .accent { color: var(--teal-600); }
.hero__sub { font-size: var(--fs-lead); color: var(--color-text-soft); margin-inline: auto; max-width: 60ch; }
.hero__actions { margin-top: var(--sp-8); display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

/* schwebende Bücher links/rechts (Desktop) */
.hero__floats { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__float {
  position: absolute; width: clamp(86px, 9vw, 140px); aspect-ratio: 2/3;
  filter: drop-shadow(0 20px 34px rgba(4,17,15,0.22));
  animation: float-y 7s ease-in-out infinite;
}
.hero__float img { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.hero__float.f1 { left: 2%;  top: 12%;  transform: rotate(-9deg);  animation-delay: 0s; }
.hero__float.f2 { left: 7%;  top: 52%;  transform: rotate(6deg);   animation-delay: .9s; width: clamp(70px,7vw,112px); }
.hero__float.f3 { right: 2%; top: 10%;  transform: rotate(8deg);   animation-delay: .4s; }
.hero__float.f4 { right: 6%; top: 50%;  transform: rotate(-7deg);  animation-delay: 1.3s; width: clamp(70px,7vw,112px); }
@keyframes float-y { 50% { transform: translateY(-16px) rotate(var(--rot, 0deg)); } }
.hero__float.f1 { --rot: -9deg; } .hero__float.f2 { --rot: 6deg; }
.hero__float.f3 { --rot: 8deg; }  .hero__float.f4 { --rot: -7deg; }
@media (max-width: 980px) { .hero__floats { display: none; } }

/* Mobile-Bücherband (auto-scroll) */
.hero__mobile-books { display: none; }
@media (max-width: 980px) {
  .hero__mobile-books { display: block; margin-top: var(--sp-8); }
}

/* --- STATS-Reihe -------------------------------------------------------- */
.stats-row {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(3, 1fr);
  max-width: 720px; margin: var(--sp-10) auto 0;
}
.stat {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--sp-6) var(--sp-4); text-align: center;
  box-shadow: var(--shadow-xs);
}
.stat__value {
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); font-weight: var(--fw-bold);
  color: var(--teal-600); line-height: 1; letter-spacing: -0.02em;
}
.stat__label { margin-top: var(--sp-2); font-size: var(--fs-small); color: var(--color-text-soft); font-weight: var(--fw-medium); }
.section--dark .stat { background: rgba(255,255,255,0.04); border-color: var(--color-border-dark); }
.section--dark .stat__value { color: var(--teal-500); }
@media (max-width: 560px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stats-row .stat:nth-child(3):last-child { grid-column: 1 / -1; }
}

/* --- IMAGE + TEXT ------------------------------------------------------- */
.imgtext { display: grid; gap: clamp(2rem, 1rem + 5vw, 5rem); align-items: center; grid-template-columns: 1fr 1fr; }
.imgtext--rev .imgtext__media { order: 2; }
.imgtext__body > * + * { margin-top: var(--sp-4); }
.imgtext__media { position: relative; }
.imgtext__media img { margin-inline: auto; filter: drop-shadow(0 30px 50px rgba(4,17,15,0.18)); }
.imgtext__badges { position: absolute; inset: 0; pointer-events: none; }
.badge-float {
  position: absolute; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 0.7rem 1rem; box-shadow: var(--shadow);
  display: grid; gap: 2px; min-width: 116px; animation: float-y 6s ease-in-out infinite;
}
.badge-float .bf-value { font-size: 1.25rem; font-weight: var(--fw-bold); color: var(--teal-600); line-height: 1; }
.badge-float .bf-label { font-size: 0.72rem; color: var(--color-text-soft); font-weight: var(--fw-medium); }
.badge-float.b1 { top: 4%;   left: -6%; }
.badge-float.b2 { top: 40%;  right: -8%; animation-delay: .8s; }
.badge-float.b3 { bottom: 6%; left: 2%;  animation-delay: 1.4s; }
@media (max-width: 760px) {
  .imgtext { grid-template-columns: 1fr; }
  .imgtext--rev .imgtext__media { order: 0; }
  .badge-float { position: static; display: inline-grid; margin: 0.4rem 0.4rem 0 0; animation: none; }
  .imgtext__badges { position: static; margin-top: var(--sp-4); display: flex; flex-wrap: wrap; }
}

/* --- STEPS (nummerierte Prozesskarten) ---------------------------------- */
.steps { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); }
.step {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: center;
}
.step:nth-child(even) .step__media { order: 2; }
.step__num {
  display: inline-grid; place-items: center; width: 56px; height: 56px;
  border-radius: var(--radius); font-weight: var(--fw-bold); font-size: 1.3rem;
  color: var(--ink-950); background: var(--color-accent); margin-bottom: var(--sp-4);
  box-shadow: var(--shadow-teal);
}
.step:nth-child(4n+2) .step__num { background: var(--yellow-300); }
.step:nth-child(4n+3) .step__num { background: var(--apricot-300); }
.step:nth-child(4n+0) .step__num { background: var(--blue-200); }
.step__title { margin-bottom: var(--sp-3); }
.step__text { color: var(--color-text-soft); }
.step__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
@media (max-width: 760px) {
  .step { grid-template-columns: 1fr; gap: var(--sp-6); }
  .step:nth-child(even) .step__media { order: 0; }
}

/* --- FEATURES (Benefit-Liste + Bild) ------------------------------------ */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,1rem+4vw,4.5rem); align-items: center; }
.feature-list { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); }
.feature-list li {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  font-size: 1.05rem; font-weight: var(--fw-medium);
}
.feature-list .fi {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(88,148,199,0.15); color: var(--blue-400);
  margin-top: 1px;
}
.feature-list .fi svg { width: 16px; height: 16px; }
.features__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

/* --- RETAILERS (Logo-Marquee, dunkel) ----------------------------------- */
.retailers { text-align: center; }
.retailers__head { max-width: 640px; margin: 0 auto var(--sp-12); }

/* --- FAQ ---------------------------------------------------------------- */
.faq-section__head { max-width: 640px; margin: 0 auto var(--sp-10); text-align: center; }
.faq { max-width: 820px; margin-inline: auto; }
.faq__a ul { margin: 0.2rem 0 0.6rem; display: grid; gap: 0.35rem; }
.faq__a li { padding-left: 1.1rem; position: relative; }
.faq__a li::before { content: "•"; position: absolute; left: 0; color: var(--teal-600); }
.faq__a strong { color: var(--color-text); font-weight: var(--fw-semibold); }

/* --- CTA-Band ----------------------------------------------------------- */
.ctaband { text-align: center; position: relative; overflow: clip; }
.ctaband__inner { position: relative; z-index: 2; max-width: 620px; margin-inline: auto; }
.ctaband__title { color: #fff; margin-bottom: var(--sp-3); }
.ctaband__sub { color: rgba(234,253,250,0.78); font-size: var(--fs-lead); margin-bottom: var(--sp-8); }
.ctaband__covers { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ctaband__cover {
  position: absolute; width: clamp(74px, 8vw, 124px); aspect-ratio: 2/3;
  border-radius: 4px; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.4));
  animation: float-y 8s ease-in-out infinite;
}
.ctaband__cover img { width: 100%; height: 100%; object-fit: contain; }
.ctaband__cover.c1 { left: 3%;  top: 16%; transform: rotate(-10deg); }
.ctaband__cover.c2 { left: 13%; bottom: 8%; transform: rotate(7deg); animation-delay: .7s; }
.ctaband__cover.c3 { right: 4%; top: 12%; transform: rotate(9deg); animation-delay: 1.1s; }
.ctaband__cover.c4 { right: 14%; bottom: 10%; transform: rotate(-6deg); animation-delay: 1.6s; }
@media (max-width: 760px) { .ctaband__covers { opacity: 0.35; } }

/* --- FORM-Embed (Formflow) ---------------------------------------------- */
.formembed { max-width: 760px; margin: var(--sp-8) auto 0; }
.formembed__frame {
  width: 100%; border: 0; border-radius: var(--radius-lg);
  background: var(--color-surface); box-shadow: var(--shadow);
  display: block; min-height: 620px;
}
.section--dark .formembed__frame { background: rgba(255,255,255,0.03); }

/* Popup-Form (Book Tester) */
.form-popup {
  position: fixed; inset: 0; z-index: 9500; display: none;
  align-items: center; justify-content: center; padding: var(--gutter);
  background: rgba(4,17,15,0.6); backdrop-filter: blur(4px);
}
.form-popup.is-open { display: flex; }
.form-popup__box {
  position: relative; width: 100%; max-width: 720px; max-height: 92vh;
  background: var(--color-surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  animation: pop-in var(--dur) var(--ease-out);
}
@keyframes pop-in { from { opacity: 0; transform: scale(0.96) translateY(10px); } }
.form-popup__close {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px;
  border-radius: 50%; display: grid; place-items: center; background: rgba(4,17,15,0.06);
  transition: background-color var(--dur) var(--ease);
}
.form-popup__close:hover { background: rgba(4,17,15,0.14); }
.form-popup__frame { width: 100%; height: 78vh; max-height: 720px; border: 0; display: block; }

/* --- Generischer Section-Head ------------------------------------------- */
.section-head { max-width: 680px; margin: 0 auto var(--sp-10); text-align: center; }
.section-head .eyebrow { margin-bottom: var(--sp-3); }
.section-head h2 + .lead { margin-top: var(--sp-3); }

/* --- Seiten-Titel (Subseiten / Legal) ----------------------------------- */
.page-title {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: linear-gradient(180deg, var(--mint-50), var(--cream-50));
  text-align: center;
}
.page-title h1 { font-size: var(--fs-h1); }
.page-title__meta { margin-top: var(--sp-3); color: var(--color-text-soft); font-size: var(--fs-small); }

/* --- Legal / Langtext --------------------------------------------------- */
.legal { padding-top: var(--sp-12); }
.legal__body { font-size: 1rem; line-height: 1.75; color: var(--color-text); }
.legal__body h2 {
  font-size: 1.4rem; margin-top: var(--sp-12); margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2); border-bottom: 1px solid var(--color-border);
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { font-size: 1.12rem; margin-top: var(--sp-6); margin-bottom: var(--sp-2); }
.legal__body p { margin-bottom: var(--sp-4); color: var(--color-text-soft); }
.legal__body ul, .legal__body ol { margin: 0 0 var(--sp-4) var(--sp-6); display: grid; gap: 0.4rem; }
.legal__body li { list-style: disc; color: var(--color-text-soft); }
.legal__body ol li { list-style: decimal; }
.legal__body a { color: var(--teal-600); text-decoration: underline; word-break: break-word; }
.legal__body strong { color: var(--color-text); font-weight: var(--fw-semibold); }

/* --- 3D-Bücher in Hero-Floats / CTA-Covern / Mobile-Band ---------------- */
/* Container-Filter weg (eigener Schatten kommt vom 3D-Buch, filter flacht 3D ab) */
.hero__float, .ctaband__cover { filter: none; }
.hero__float .book3d, .ctaband__cover .book3d {
  position: absolute; inset: 0; width: auto; height: 100%; aspect-ratio: auto; margin: 0;
}
.hero__float .book3d-vol, .ctaband__cover .book3d-vol { --thick: 13px; -webkit-transform: rotateY(-20deg); transform: rotateY(-20deg); }
.ctaband__cover .book3d-vol::after { background: #0c1a17; }
.marquee__item--book { height: 150px; width: 100px; }
.marquee__item--book .book3d { height: 100%; }
.marquee__item--book .book3d-vol { --thick: 15px; }
