/* ==========================================================================
   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 3D-Bücher links/rechts (Desktop) – Höhe fix, Breite folgt dem
   echten Cover-Format. Eintritt nur via opacity (kein transform-Reset). */
.hero__floats { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__float {
  position: absolute; height: clamp(130px, 13vw, 188px);
  animation: book-in 0.8s var(--ease-out) backwards, float-y 7s ease-in-out infinite;
}
.hero__float .book3d { position: relative; height: 100%; width: auto; aspect-ratio: auto; inset: auto; margin: 0; }
.hero__float .book3d-vol { position: relative; inset: auto; height: 100%; width: auto; margin: 0; --thick: 12px; }
.hero__float .book3d-vol img { height: 100%; width: auto; }
@keyframes book-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-15px) rotate(var(--rot, 0deg)); }
}
/* 3 links, 3 rechts, vertikal gestaffelt */
.hero__float.f1 { --rot: -8deg; left: 1%;  top: 9%;   animation-delay: 0s,   0s;   }
.hero__float.f2 { --rot: 6deg;  left: 5%;  top: 46%;  animation-delay: .12s, .9s;  height: clamp(112px,11vw,158px); }
.hero__float.f3 { --rot: -5deg; left: 9%;  top: 76%;  animation-delay: .24s, .5s;  height: clamp(100px,10vw,140px); }
.hero__float.f4 { --rot: 8deg;  right: 1%; top: 8%;   animation-delay: .18s, .4s;  }
.hero__float.f5 { --rot: -7deg; right: 5%; top: 45%;  animation-delay: .30s, 1.3s; height: clamp(112px,11vw,158px); }
.hero__float.f6 { --rot: 6deg;  right: 9%; top: 75%;  animation-delay: .42s, .7s;  height: clamp(100px,10vw,140px); }
@media (max-width: 1100px) { .hero__float.f3, .hero__float.f6 { display: none; } }
@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; border-radius: var(--radius-lg); filter: drop-shadow(0 30px 50px rgba(4,17,15,0.18)); }
/* transparente Buch-Mockups (book-isolated, Group-Cover) brauchen keinen Radius/Box-Schatten */
.imgtext__media img[src*="book-isolated"], .imgtext__media img[src*="group-"] { border-radius: 0; }
.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); font-size: var(--fs-h3); letter-spacing: -0.015em; }
.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;
  animation: book-in 0.8s var(--ease-out) backwards, float-y 8s ease-in-out infinite;
}
.ctaband__cover.c1 { --rot: -10deg; left: 3%;  top: 16%;    animation-delay: 0s,   0s;   }
.ctaband__cover.c2 { --rot: 7deg;   left: 12%; bottom: 8%;  animation-delay: .15s, .7s;  }
.ctaband__cover.c3 { --rot: 9deg;   right: 4%; top: 12%;    animation-delay: .25s, 1.1s; }
.ctaband__cover.c4 { --rot: -6deg;  right: 13%; bottom: 10%; animation-delay: .35s, 1.6s; }
@media (max-width: 760px) { .ctaband__covers { opacity: 0.4; } .ctaband__cover.c2, .ctaband__cover.c4 { display: none; } }

/* --- 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 CTA-Covern / Mobile-Band ------------------------------ */
/* Container-Filter weg (eigener Schatten kommt vom 3D-Buch, filter flacht 3D ab) */
.hero__float, .ctaband__cover { filter: none; }
/* CTA-Cover: Höhe fix, Breite folgt dem Cover-Format */
.ctaband__cover { height: clamp(110px, 11vw, 168px); width: auto; aspect-ratio: auto; }
.ctaband__cover .book3d { position: relative; height: 100%; width: auto; aspect-ratio: auto; inset: auto; margin: 0; }
.ctaband__cover .book3d-vol { position: relative; inset: auto; height: 100%; width: auto; margin: 0; --thick: 12px; -webkit-transform: rotateY(-18deg); transform: rotateY(-18deg); }
.ctaband__cover .book3d-vol img { height: 100%; width: auto; }
.ctaband__cover .book3d-vol::after { background: #0c1a17; }
.marquee__item--book { height: 150px; width: auto; }
.marquee__item--book .book3d { position: relative; height: 100%; width: auto; aspect-ratio: auto; inset: auto; margin: 0; }
.marquee__item--book .book3d-vol { position: relative; inset: auto; height: 100%; width: auto; margin: 0; --thick: 13px; }
.marquee__item--book .book3d-vol img { height: 100%; width: auto; }

/* --- CTA-Band vs. Footer optisch trennen -------------------------------- */
.ctaband {
  background: radial-gradient(120% 100% at 50% 0%, #0c3b35 0%, var(--teal-950) 55%, var(--ink-950) 100%);
}
.site-footer { border-top: 1px solid rgba(46,196,182,0.18); }
.footer__madein { font-size: 0.8rem; color: rgba(234,253,250,0.66); letter-spacing: 0.04em; }
