/* ============================================================
   viewmedia Landing Pages — ergänzt css/style.css
   Gilt für: neo-blocks/index.html, wengla/index.html
   Wird NUR auf den beiden Landingpages eingebunden, style.css
   bleibt unverändert.
   ============================================================ */

/* ----------------------------------------------------------
   Device-Rahmen fürs Hero-Bild (schlichter CSS-Rahmen,
   kein echtes Geräte-Bild nötig)
   ---------------------------------------------------------- */

.device-frame {
  position: relative;
  margin: 0 auto;
  background: #0c0c0e;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.device-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

/* Hochkant (NEO Blocks) */
.device-frame-phone {
  width: min(300px, 68vw);
  padding: 12px;
  border-radius: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.device-frame-phone img {
  border-radius: 32px;
}

/* Querformat (Wengla) */
.device-frame-tablet {
  width: min(480px, 92vw);
  padding: 14px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.device-frame-tablet img {
  border-radius: 16px;
}

/* ----------------------------------------------------------
   Vertrauens-Leiste (Pills)
   ---------------------------------------------------------- */

.trust-bar-section {
  padding: 40px 0 8px;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 980px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  white-space: nowrap;
}

.trust-pill svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

.lp-neo .trust-pill svg { color: var(--neo-gold); }
.lp-wengla .trust-pill svg { color: var(--wengla-red); }

/* ----------------------------------------------------------
   Store-Buttons: Icon + Reihenfolge nach Plattform
   ---------------------------------------------------------- */

.store-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* JS setzt style.order abhängig von der erkannten Plattform;
   ohne JS bleibt die Autoren-Reihenfolge (Desktop-Fallback). */
[data-store] { order: 0; }

/* ----------------------------------------------------------
   Trailer (NEO Blocks)
   ---------------------------------------------------------- */

.trailer-wrap {
  max-width: 880px;
  margin: 56px auto 0;
}

.trailer-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(10, 26, 10, 0.45);
  border: 1px solid rgba(212, 166, 74, 0.35);
  background: #0a1a0a;
}

/* ----------------------------------------------------------
   Tagesrätsel-Karte (NEO Blocks) — nur heutiges Rätsel
   ---------------------------------------------------------- */

.daily-style-toggle {
  text-align: center;
  margin-bottom: 24px;
}

.daily-style-btn {
  padding: 12px 22px;
  margin: 0 6px;
  border-radius: 14px;
  border: 2px solid rgba(212, 166, 74, 0.45);
  background: var(--color-bg-secondary);
  color: var(--neo-forest);
  font-weight: 700;
  font-size: 14px;
  min-height: 44px;
  min-width: 44px;
}

.daily-style-btn.active {
  border-color: var(--neo-gold);
  background: var(--neo-forest);
  color: #f7d36a;
}

.daily-card-wrap {
  max-width: 360px;
  margin: 0 auto;
}

.daily-card {
  background: #f6efdf;
  border: 1px solid rgba(212, 166, 74, 0.45);
  border-radius: 20px;
  padding: 16px 16px 20px;
  text-align: center;
  box-shadow: 0 18px 44px rgba(26, 46, 26, 0.14);
}

.daily-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.daily-card figcaption {
  margin-top: 16px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--neo-forest);
}

.daily-note {
  margin-top: 28px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

/* ----------------------------------------------------------
   „So funktioniert's" — 3 Schritte
   ---------------------------------------------------------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

@media (max-width: 860px) {
  .steps-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}

.step-card {
  text-align: center;
}

.step-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  margin-bottom: 24px;
}

.step-image img {
  display: block;
  width: 100%;
  height: auto;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
  color: white;
}

.lp-neo .step-number { background: linear-gradient(135deg, #d4a64a, #a8801c); }
.lp-wengla .step-number { background: linear-gradient(135deg, #ff9500, #ff6600); }

.step-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-card p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ----------------------------------------------------------
   Entwickler-Absatz
   ---------------------------------------------------------- */

.developer-note {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.developer-note p {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.developer-note a {
  color: var(--color-accent);
}

/* ----------------------------------------------------------
   Sticky Mobile CTA
   ---------------------------------------------------------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 251, 253, 0.94);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--color-border);
  transform: translateY(100%);
  transition: transform 0.3s var(--ease-smooth);
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.sticky-cta .btn {
  padding: 10px 20px;
  font-size: 15px;
  min-height: 44px;
}

@media (min-width: 768px) {
  .sticky-cta { display: none !important; }
}

/* Platz für die Sticky-Leiste am Seitenende (mobil), damit der
   Footer nicht darunter verschwindet. */
@media (max-width: 767px) {
  body.lp-page { padding-bottom: 64px; }
}

/* ----------------------------------------------------------
   Reduced motion
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .float {
    animation: none !important;
  }
  .sticky-cta {
    transition: none !important;
  }
}

/* ----------------------------------------------------------
   Kleinere Bildschirme: sauberer Abstand für Showcase-Bilder
   in device-frame innerhalb von "Für wen" / "Mit wem"
   ---------------------------------------------------------- */

.showcase-image .device-frame-tablet,
.showcase-image .device-frame-phone {
  margin: 0 auto;
}

/* ----------------------------------------------------------
   Store-Buttons je Seite (statt Inline-Styles): JS tauscht
   btn-primary/btn-secondary nach Plattform, die Farben folgen.
   ---------------------------------------------------------- */

.lp-page [hidden] { display: none !important; }

.lp-neo .btn-primary { background: var(--neo-gold); color: #1a2e1a; }
.lp-neo .btn-primary:hover { background: var(--neo-gold-light); color: #1a2e1a; }
.lp-neo .btn-secondary { border-color: var(--neo-gold); color: var(--neo-forest); }
.lp-neo .btn-secondary:hover { background: var(--neo-gold); color: #1a2e1a; }
.lp-neo .hero .btn-secondary,
.lp-neo .section-dark .btn-secondary { color: #fff; border-color: rgba(240, 214, 143, 0.6); }
.lp-neo .hero .btn-secondary:hover,
.lp-neo .section-dark .btn-secondary:hover { background: var(--neo-gold); color: #1a2e1a; }

.lp-wengla .hero .btn-secondary,
.lp-wengla .section-dark .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.lp-wengla .hero .btn-secondary:hover,
.lp-wengla .section-dark .btn-secondary:hover { background: #fff; color: #1d1d1f; }

/* ----------------------------------------------------------
   Hero: sofort sichtbar (kein IntersectionObserver nötig),
   sanftes Einblenden per CSS-Animation.
   ---------------------------------------------------------- */

.lp-page .hero .reveal {
  opacity: 1;
  transform: none;
  transition: none;
  animation: lpFadeUp 0.8s var(--ease-smooth) both;
}
.lp-page .hero .hero-image.reveal { animation-delay: 0.2s; }

@keyframes lpFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-page .hero .reveal { animation: none !important; }
}

/* ----------------------------------------------------------
   Tagesrätsel-Seiten (tagesraetsel.php): Lösungszüge als
   Kachelraster + Archiv als Tages-Chips, NEO-Blocks-Palette
   (Pergament, Waldgrün, Gold).
   ---------------------------------------------------------- */

.daily-solution {
  margin-top: 24px;
  padding: 22px 20px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #f8f1e0 0%, #f2e8cf 100%);
  border: 1px solid rgba(212, 166, 74, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  text-align: left;
}

.daily-solution-head {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--neo-forest);
  text-align: center;
}

.daily-solution-head strong { color: var(--neo-forest-dark); }

.daily-moves {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}

.daily-move {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 8px;
  border-radius: 14px;
  background: #fffdf6;
  border: 1px solid rgba(45, 74, 43, 0.14);
  box-shadow: 0 2px 6px rgba(26, 46, 26, 0.06);
}

.daily-move-step {
  flex: 0 0 auto;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 980px;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1a2e1a;
  background: linear-gradient(135deg, #f0d68f, #d4a64a);
}

.daily-move-cell {
  flex: 1 1 auto;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--neo-forest-dark);
  font-variant-numeric: tabular-nums;
}

.daily-move-dir {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #f7d36a;
  background: var(--neo-forest);
}

.daily-archive-note {
  margin: 8px 0 0;
  color: var(--color-text-secondary);
  font-size: 15px;
}

.daily-archive-month {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--neo-forest-dark);
}

.daily-archive-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.daily-archive-list a {
  display: block;
  padding: 11px 16px;
  min-height: 44px;
  border-radius: 14px;
  font-size: 15px;
  color: var(--neo-forest-dark);
  background: #f6efdf;
  border: 1px solid rgba(212, 166, 74, 0.45);
  transition: background 0.2s var(--ease-smooth), transform 0.2s var(--ease-smooth);
}

.daily-archive-list a:hover {
  background: #f0d68f;
  transform: translateY(-1px);
}

.daily-prevnext a { color: var(--neo-forest); font-weight: 600; }

@media (max-width: 480px) {
  .daily-solution { padding: 18px 14px 20px; }
  .daily-moves { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .daily-move-cell { font-size: 16px; }
  .daily-archive-list { grid-template-columns: 1fr 1fr; }
}
