/**
 * Regulint Event Landing Page Styles
 *
 * Portiert aus landingpage.html (Design-Mockup).
 * Eigene Farbpalette (#9ef5cf mint, #303a4d navy) — bewusst abweichend
 * vom Site-Theme, da die LP eine fokussierte Conversion-Insel ist.
 *
 * Wird nur auf der page-event.php-Page geladen (siehe functions.php).
 */

/* ============================================================
 * Astra-Container aufbrechen — Event-LP soll volle Breite nutzen
 *
 * Astras Default-Layout packt den Page-Inhalt in einen max-width-Container
 * mit Sidebar und Page-Title. Auf der Event-LP wollen wir volle Breite
 * (mockup-treue Hero-Section mit edge-to-edge Background).
 *
 * Body-Class `event-landing-page` wird via functions.php gesetzt.
 * ============================================================ */
body.event-landing-page .ast-container,
body.event-landing-page .site-content > .ast-container,
body.event-landing-page #primary,
body.event-landing-page #content,
body.event-landing-page .site-content,
body.event-landing-page .entry-content,
body.event-landing-page .ast-article-single,
body.event-landing-page .ast-article-post {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* Sidebar komplett ausblenden (Astra default-layout hat ggf. eine) */
body.event-landing-page #secondary,
body.event-landing-page .secondary { display: none !important; }

/* Page-Title (Astra rendert ihn ueber dem Content) ausblenden */
body.event-landing-page .entry-header,
body.event-landing-page .ast-article-single .entry-title,
body.event-landing-page .post-thumb-img-content { display: none !important; }

/* Astra-Header und -Footer auf weiss umschalten (nur LP, andere Pages unveraendert) */
body.event-landing-page .site-header,
body.event-landing-page header.site-header,
body.event-landing-page .ast-primary-header-bar,
body.event-landing-page .main-header-bar,
body.event-landing-page .ast-above-header,
body.event-landing-page .ast-below-header {
  background-color: #ffffff !important;
  background-image: none !important;
}
/* Astra-Footer komplett ausblenden — die LP hat einen eigenen kompakten
   .event-footer im Mockup-Look (Mit display:none bleibt wp_footer-Hook
   intakt, nur die DOM-Anzeige weg). */
body.event-landing-page .site-footer,
body.event-landing-page footer.site-footer,
body.event-landing-page .ast-small-footer,
body.event-landing-page .ast-small-footer-wrap,
body.event-landing-page .footer-adv-area,
body.event-landing-page .footer-adv { display: none !important; }

/* ============================================================
 * Reset (scoped auf .regulint-event)
 * ============================================================ */
.regulint-event { font-family: 'Roboto', sans-serif; color: #303a4d; background: #fff; width: 100%; }
.regulint-event * { margin: 0; padding: 0; box-sizing: border-box; }

/* ============================================================
 * Success-Popup
 * ============================================================ */
.popup-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.65); z-index: 1000;
  align-items: center; justify-content: center;
}
.popup-overlay.active { display: flex; }
.popup {
  background: #fff; border-radius: 20px; padding: 48px 40px;
  max-width: 420px; width: 90%; text-align: center;
  animation: popIn 0.3s cubic-bezier(.175,.885,.32,1.275);
}
@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.popup-check {
  width: 72px; height: 72px; background: #9ef5cf; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; font-size: 32px; color: #303a4d;
  line-height: 1; padding: 0;
}
.popup h3 { font-size: 24px; font-weight: 800; color: #303a4d; margin-bottom: 12px; }
.popup p  { color: #666; font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.popup-hint { font-size: 13px; color: #999; }

/* ============================================================
 * HERO + Form
 * ============================================================ */
.hero {
  background: #303a4d;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 20px 48px; text-align: center;
}
.hero-logo { margin-bottom: 18px; }
.hero-logo img { display: block; margin: 0 auto; max-width: 200px; height: auto; }
.hero-badge {
  display: inline-block; background: rgba(158,245,207,0.15);
  border: 1px solid rgba(158,245,207,0.4);
  color: #9ef5cf; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 28px;
}
.hero h1 {
  color: #fff; font-size: 52px; font-weight: 900; line-height: 1.1;
  margin-bottom: 20px; max-width: 640px;
}
.hero h1 span { color: #9ef5cf; }
.hero-sub {
  color: rgba(255,255,255,0.65); font-size: 18px; font-weight: 400; line-height: 1.7;
  max-width: 480px; margin-bottom: 48px;
}
.form-wrap { width: 100%; max-width: 500px; }
.lead-form { display: flex; flex-direction: column; gap: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-input {
  width: 100%; padding: 16px 18px; font-size: 15px; font-family: 'Roboto', sans-serif;
  border: none; outline: none; background: #fff; color: #303a4d;
  border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.form-input::placeholder { color: #aaa; }
.submit-btn {
  width: 100%; padding: 18px 28px; background: #9ef5cf; color: #303a4d;
  font-weight: 800; font-size: 16px; font-family: 'Roboto', sans-serif;
  border: none; cursor: pointer; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3); transition: background 0.2s;
  margin-top: 4px;
}
.submit-btn:hover:not(:disabled),
.submit-btn:focus:not(:disabled),
.submit-btn:active:not(:disabled) {
  background: #7de0b8;
  color: #303a4d; /* Theme-Default-Hover (oft weiss) explizit ueberschreiben */
}
.submit-btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* Opt-in / AGB Labels */
.optin-wrap { margin-top: 16px; text-align: left; }
.optin-label {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  color: rgba(255,255,255,0.55); font-size: 12px; line-height: 1.6;
}
.optin-label + .optin-label { margin-top: 10px; }
.optin-label input[type="checkbox"] {
  margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px;
  accent-color: #9ef5cf; cursor: pointer;
}
.optin-label a { color: #9ef5cf; text-decoration: underline; }

/* Honeypot — visually hidden, screen-reader unsichtbar, kein Tab-Target */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Freemail-Warnung (dynamisch via JS eingeblendet) */
.freemail-warning {
  display: none; margin-top: 8px; padding: 12px 14px;
  background: rgba(158,245,207,0.08); border-left: 3px solid #9ef5cf;
  border-radius: 6px; text-align: left;
  color: rgba(255,255,255,0.85); font-size: 13px; line-height: 1.5;
}
.freemail-warning.visible { display: block; }
.freemail-warning strong { color: #9ef5cf; }

/* Turnstile Mount */
.turnstile-wrap { margin-top: 14px; display: flex; justify-content: center; }

/* Error-Box (dynamisch via JS eingeblendet) */
.form-error {
  display: none; margin-top: 12px; padding: 12px 14px;
  background: rgba(255, 99, 99, 0.12); border-left: 3px solid #ff6363;
  border-radius: 6px; color: #ffcccc; font-size: 13px;
  line-height: 1.5; text-align: left;
}
.form-error.visible { display: block; }

/* B2B-Disclaimer (immer sichtbar, klein, unter dem Submit) */
.b2b-disclaimer {
  margin-top: 18px; color: rgba(255,255,255,0.35);
  font-size: 11px; line-height: 1.55; text-align: left;
}

/* Support-Hinweis */
.form-support {
  margin-top: 14px; color: rgba(255,255,255,0.4);
  font-size: 12px; text-align: center;
}
.form-support a { color: #9ef5cf; text-decoration: none; }
.form-support a:hover { text-decoration: underline; }

/* Flow-Steps */
.flow-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin: 16px 0 20px; flex-wrap: wrap;
}
.flow-step {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.75); font-size: 13px; font-weight: 500;
}
.flow-num {
  width: 24px; height: 24px; background: #9ef5cf; color: #303a4d;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; flex-shrink: 0;
  line-height: 1; padding: 0;
}
.flow-arrow { color: rgba(255,255,255,0.3); font-size: 16px; }

/* ============================================================
 * Sections (Why, Content)
 * ============================================================ */
.section { padding: 88px 24px; }
.section-inner { max-width: 820px; margin: 0 auto; }
.section h2 {
  font-size: 36px; font-weight: 800; color: #303a4d;
  line-height: 1.2; margin-bottom: 16px;
}
.section > .section-inner > p {
  color: #555; font-size: 17px; line-height: 1.8; margin-bottom: 40px;
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.card {
  background: #f8f9fa; border-radius: 14px; padding: 28px 24px;
  border-left: 4px solid #9ef5cf;
}
.card-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: rgba(158,245,207,0.18);
  border-radius: 12px;
  margin-bottom: 16px;
  color: #303a4d; /* SVG nutzt currentColor */
}
.card-icon svg { width: 26px; height: 26px; display: block; }
.card h4 { font-size: 16px; font-weight: 700; color: #303a4d; margin-bottom: 8px; }
.card p  { font-size: 14px; color: #666; line-height: 1.6; }

.content-list { list-style: none; margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.content-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 0; border-bottom: 1px solid #eee;
  font-size: 15px; color: #444; line-height: 1.5;
}
.content-list li:nth-last-child(-n+2) { border-bottom: none; }
.num {
  width: 30px; height: 30px; min-width: 30px; background: #303a4d;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #9ef5cf; font-weight: 700; font-size: 13px;
  line-height: 1; padding: 0;
}

/* ============================================================
 * Repeat CTA Section
 * ============================================================ */
.repeat-cta { background: #303a4d; padding: 72px 24px; text-align: center; }
.repeat-cta-inner { max-width: 560px; margin: 0 auto; }
.repeat-cta h2 { color: #fff; font-size: 30px; font-weight: 900; margin-bottom: 32px; }
.repeat-cta-btn {
  display: inline-block; background: #9ef5cf; color: #303a4d; font-weight: 800;
  font-size: 16px; padding: 18px 40px; border-radius: 10px; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3); transition: background 0.2s;
  border: none; cursor: pointer;
}
.repeat-cta-btn:hover,
.repeat-cta-btn:focus,
.repeat-cta-btn:active {
  background: #7de0b8;
  color: #303a4d; /* Theme-Default-Hover (oft weiss) explizit ueberschreiben */
  text-decoration: none;
}

/* ============================================================
 * Footer
 * ============================================================ */
.event-footer {
  background: #1e2533; padding: 28px 24px; text-align: center;
  color: rgba(255,255,255,0.35); font-size: 13px;
}
.event-footer a { color: rgba(255,255,255,0.5); text-decoration: none; }
.event-footer a:hover { color: rgba(255,255,255,0.8); }

/* ============================================================
 * Mobile
 * ============================================================ */
@media (max-width: 640px) {
  .hero { padding: 40px 18px 36px; }
  .hero-logo img { width: 150px !important; }
  .hero h1 { font-size: 28px; margin-bottom: 14px; }
  .hero-sub { font-size: 14px; margin-bottom: 24px; line-height: 1.6; }
  .form-wrap { max-width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .form-input { padding: 14px 16px; font-size: 15px; }
  .submit-btn { font-size: 15px; padding: 16px; }
  .flow-steps { gap: 6px; font-size: 12px; }
  .flow-arrow { font-size: 12px; }
  .flow-num { width: 20px; height: 20px; font-size: 10px; }
  .section { padding: 48px 18px; }
  .section h2 { font-size: 24px; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 20px 18px; }
  .content-list { grid-template-columns: 1fr; }
  .content-list li { padding: 14px 0; font-size: 15px; }
  .content-list li:nth-last-child(-n+2) { border-bottom: 1px solid #eee; }
  .content-list li:last-child { border-bottom: none; }
  .popup { padding: 32px 20px; }
  .popup h3 { font-size: 20px; }
  .repeat-cta h2 { font-size: 24px; }
}
