/* ========== Danke-Seite Overrides ==========
   Teilt style.css + dynamic.css mit der Risikocheck-LP.
   Hier nur Danke-spezifische Anpassungen:
   - Body ohne .screen-Flex-Zwang
   - Badge-Success-Variante
   - 2-Card Urgency-Grid
   - Calendar-iframe-Frame
   - Sticky Mobile CTA
   - Footer
   ============================================= */

/* Body-Flow: normale Dokument-Darstellung (keine .screen-Logik) */
body.danke-page {
  background: #F5F5F5;
  min-height: 100vh;
}
body.danke-page main {
  display: block;
}

/* Badge-Variante: grüner Check-Ton statt Gold-Border-Only */
.lp-badge--success {
  background: linear-gradient(90deg, #fff7dc 0%, #fffbeb 100%);
  border: 1.5px solid #C99802;
  color: #8a6b00;
  box-shadow: 0 2px 8px rgba(201, 152, 2, 0.12);
}

/* Urgency-Cards: 2 statt 3 */
.danke-risk-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 900px) {
  .danke-risk-cards {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 820px;
    margin: 0 auto;
  }
}

/* Kalender-Sektion: iframe-Frame im Gold-Rahmen */
.danke-cal {
  background: #F5F5F5;
}
.danke-cal__frame {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  padding: 8px;
  overflow: hidden;
  border: 1px solid #f0ead2;
  max-width: 920px;
  margin: 0 auto 20px;
}
.danke-cal__frame iframe {
  width: 100%;
  border: none;
  display: block;
  border-radius: 12px;
  min-height: 760px;
  background: #fff;
}
@media (max-width: 600px) {
  .danke-cal__frame iframe {
    min-height: 820px;
  }
}
.danke-cal__fallback {
  font-size: 14px;
  color: #777;
  margin-top: 18px;
}
.danke-cal__fallback a {
  color: #C99802;
  font-weight: 700;
}

/* Live-Tag oberhalb Kalender-Titel (erzeugt "Heute bereits X" Urgency) */
.lp-final-cta__livetag {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}
.tag-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e8c84a;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #8a6b00;
}
.tag-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C99802;
  box-shadow: 0 0 0 0 rgba(201, 152, 2, 0.6);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 152, 2, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(201, 152, 2, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .tag-live::before { animation: none; }
}

/* Footer */
.lp-footer {
  padding: 32px 0;
  background: #1a1a1a;
  color: #888;
}
.lp-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}
@media (min-width: 600px) {
  .lp-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.lp-footer__copy {
  font-size: 13px;
}
.lp-footer__nav {
  display: flex;
  gap: 20px;
}
.lp-footer__nav a {
  color: #bbb;
  font-size: 13px;
  text-decoration: none;
}
.lp-footer__nav a:hover {
  color: #E8C84A;
}

/* Sticky Mobile CTA: nur unter 768px, verschwindet wenn Kalender sichtbar */
.danke-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: none;
}
.danke-sticky-cta.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.danke-sticky-cta .btn {
  margin: 0;
}
body.danke-page {
  /* Platz unten reservieren, damit sticky CTA keinen Content verdeckt */
  padding-bottom: 0;
}
@media (max-width: 767px) {
  .danke-sticky-cta {
    display: block;
  }
  body.danke-page {
    padding-bottom: 84px;
  }
}

/* Hero etwas kompakter auf Danke — User ist bereits "committed", muss nicht lang gehalten werden */
.danke-hero {
  padding: 40px 0 32px;
}
@media (min-width: 900px) {
  .danke-hero {
    padding: 56px 0 48px;
  }
}

/* Scroll-Margin damit Sticky-Header + Live-Ticker nicht auf Kalender landen beim Anchor-Sprung */
#kalender {
  scroll-margin-top: 56px;
}

/* FAQ extra Polish */
.faq {
  padding: 48px 0 72px;
  background: #F5F5F5;
}

/* Unauffälliger Fokus-Ring für Keyboard-Navigation */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid #C99802;
  outline-offset: 2px;
  border-radius: 4px;
}
