/* =========================================================
   COMLIVE24 Landing – FINAL CSS
   Ziel: Frontend exakt wie WP-Editor-Ansicht
   Ursache: TT25 "is-layout-constrained" + content width + block margins
   ========================================================= */

/* ---------------------------------------------------------
   0) TT25 / Block-Theme: Content-Width & Spacing neutralisieren
   (WICHTIG: wirkt nur auf Landing-Template / Funnel-ID)
   --------------------------------------------------------- */

body.page-template-page-no-title-landing .wp-site-blocks,
body.page-template-page-no-title-landing main,
body.page-template-page-no-title-landing .entry-content,
body.page-template-page-no-title-landing .wp-block-post-content{
  max-width:none !important;
}

body.page-template-page-no-title-landing .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){
  max-width:none !important;
}

/* Standard-Block-Abstände im Frontend killen (Editor wirkt oft "enger") */
body.page-template-page-no-title-landing .wp-block-group,
body.page-template-page-no-title-landing .wp-block-columns,
body.page-template-page-no-title-landing .wp-block-post-content{
  margin-block-start:0 !important;
}

/* HOME/Entry Header / Titel sauber aus */
body.page-template-page-no-title-landing .entry-header,
body.page-template-page-no-title-landing header.entry-header,
body.page-template-page-no-title-landing .entry-title,
body.page-template-page-no-title-landing h1.entry-title,
body.page-template-page-no-title-landing .wp-block-post-title,
body.page-template-page-no-title-landing .wp-block-post-title a,
body.page-template-page-no-title-landing .wp-block-post-title__content{
  display:none !important;
  margin:0 !important;
  padding:0 !important;
}

/* Optional: Template-Spacing oben/unten reduzieren */
body.page-template-page-no-title-landing main.wp-block-group{
  margin-top:0 !important;
}
body.page-template-page-no-title-landing main.wp-block-group > .wp-block-group.alignfull{
  padding-top:0 !important;
  padding-bottom:18px !important;
}
body.page-template-page-no-title-landing .wp-block-post-featured-image{
  margin-bottom:0 !important;
}

/* ---------------------------------------------------------
   1) Landing Scope
   --------------------------------------------------------- */

.cl-page{
  --cl-accent:#00b4a8;
  --cl-text:#0f172a;
  --cl-muted:#64748b;
  --cl-border:#e5e7eb;
  --cl-bg:#ffffff;
  --cl-soft:#f8fafc;
  --cl-blue:#2563eb;
  --cl-shadow:0 10px 25px rgba(0,0,0,.06);

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--cl-text);
}

/* Wichtig: verhindert, dass WP Frontend die Seite auf "Content-Width" einklemmt */
body.page-template-page-no-title-landing .entry-content > .cl-page{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
}

.cl-page .cl-wrap{
  max-width:1100px;
  margin:0 auto;
  padding:0 18px;
}

/* ---------------------------------------------------------
   2) HERO
   --------------------------------------------------------- */

.cl-page .cl-hero{
  padding:14px 0 14px;
  background:var(--cl-bg);
}

.cl-page .cl-badge{
  display:inline-block;
  background:var(--cl-accent);
  color:#fff;
  font-weight:900;
  font-size:13px;
  letter-spacing:.3px;
  border-radius:999px;
  padding:6px 14px;
}

.cl-page .cl-h1{
  font-size:46px;
  line-height:1.06;
  font-weight:950;
  margin:10px 0 8px;
  color:var(--cl-text);
  text-align:center;
}

.cl-page .cl-sub{
  font-size:18px;
  color:#475569;
  text-align:center;
  max-width:900px;
  margin:0 auto;
}

.cl-page .cl-btnrow{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:12px;
}

.cl-page .cl-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border-radius:12px;
  padding:12px 18px;
  font-weight:900;
  line-height:1;
  border:0;
}

.cl-page .cl-btn.primary{background:var(--cl-accent);color:#fff}
.cl-page .cl-btn.ghost{background:transparent;color:var(--cl-text);border:2px solid #e2e8f0}

/* Cards */
.cl-page .cl-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:18px;
  margin-top:18px;
  align-items:stretch;
}

.cl-page .cl-card{
  border:1px solid var(--cl-border);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--cl-shadow);
}

.cl-page .cl-pad{padding:16px}
.cl-page .cl-kicker{font-weight:950;color:var(--cl-text);margin:0 0 10px}
.cl-page .cl-check{margin:0;padding:0}
.cl-page .cl-check li{
  list-style:none;
  position:relative;
  padding-left:28px;
  margin:8px 0;
  color:#1f2937;
}
.cl-page .cl-check li::before{
  content:"✔";
  position:absolute;
  left:0;top:0;
  color:#16a34a;
  font-weight:900;
}

.cl-page .cl-decision{
  margin-top:10px;
  color:var(--cl-muted);
  font-size:15.5px;
  font-weight:900;
  letter-spacing:.1px;
}

/* ---------------------------------------------------------
   3) FORMS SECTION
   --------------------------------------------------------- */

.cl-page .cl-soft{
  background:var(--cl-soft);
  padding:18px 0 22px;
  margin-top:6px;
}

.cl-page .cl-forms{
  display:grid;
  grid-template-columns:1fr 1fr;   /* DESKTOP: zwei Spalten */
  gap:16px;
  align-items:start;
}

/* ---------------------------------------------------------
   4) Form UI
   --------------------------------------------------------- */

.cl-page .cl-form label{
  display:block;
  font-size:14px;
  font-weight:850;
  color:#334155;
  margin:8px 0 4px;
}

.cl-page .cl-form input,
.cl-page .cl-form select,
.cl-page .cl-form textarea{
  width:100%;
  font-size:14px;
  padding:11px 12px;
  border:1px solid var(--cl-border);
  border-radius:12px;
  background:#f8fafc;
  outline:none;
}

.cl-page .cl-form input:focus,
.cl-page .cl-form select:focus,
.cl-page .cl-form textarea:focus{
  border-color:#94a3b8;
  box-shadow:0 0 0 4px rgba(0,180,168,.12);
  background:#fff;
}

/* Hidden inputs dürfen keinen Abstand erzeugen */
.cl-page .cl-form input[type="hidden"]{
  margin:0 !important;
  padding:0 !important;
  height:0 !important;
  border:0 !important;
}

/* ---------------------------------------------------------
   5) CONSENT (Checkbox + Text rechts daneben, wenig Abstand)
   --------------------------------------------------------- */

.cl-page form.cl-form label.cl-consent{
  display:flex !important;
  flex-direction:row !important;
  align-items:flex-start !important;
  gap:10px !important;

  margin:6px 0 6px !important;
  padding:0 !important;

  font-size:13px !important;
  color:var(--cl-muted) !important;
  line-height:1.35 !important;
}

.cl-page form.cl-form label.cl-consent > input[type="checkbox"]{
  flex:0 0 auto !important;
  width:16px !important;
  height:16px !important;
  margin:2px 0 0 0 !important;
  float:none !important;
  display:block !important;
  accent-color:var(--cl-accent);
}

.cl-page form.cl-form label.cl-consent > span{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
}

/* Falls WP irgendwo <p> in label injiziert */
.cl-page form.cl-form label.cl-consent p,
.cl-page form.cl-form label.cl-consent div{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
}

/* ---------------------------------------------------------
   6) Buttons – smooth & kompakt
   --------------------------------------------------------- */

.cl-page .cl-form button{
  -webkit-appearance:none !important;
  appearance:none !important;
  border:0 !important;
  outline:0 !important;

  width:100% !important;
  padding:12px 18px !important;
  border-radius:12px !important;

  font-weight:950 !important;
  font-size:14px !important;
  line-height:1 !important;

  cursor:pointer !important;
  margin-top:8px !important;
  box-shadow:0 8px 18px rgba(15, 23, 42, .10) !important;
  transition:transform .12s ease, filter .12s ease, box-shadow .12s ease !important;
}

.cl-page .cl-form button.btn-toolkit{ background:var(--cl-accent) !important; color:#fff !important; }
.cl-page .cl-form button.btn-apply{ background:var(--cl-blue) !important; color:#fff !important; }

.cl-page .cl-form button:hover{
  filter:brightness(0.98) !important;
  box-shadow:0 10px 22px rgba(15, 23, 42, .14) !important;
  transform:translateY(-1px) !important;
}
.cl-page .cl-form button:active{
  transform:translateY(0px) !important;
  box-shadow:0 6px 14px rgba(15, 23, 42, .10) !important;
}
.cl-page .cl-form button:focus{
  box-shadow:0 0 0 4px rgba(0,180,168,.18), 0 10px 22px rgba(15, 23, 42, .14) !important;
}

/* ---------------------------------------------------------
   7) Note (Datenschutz/Impressum) – wird jetzt in Footer ausgelagert
   => Notes unter Formularen ausblenden
   --------------------------------------------------------- */

.cl-page .cl-note{
  display:none !important;
}

/* ---------------------------------------------------------
   8) Footer (NEU) – Datenschutz / Impressum / Abmeldung
   --------------------------------------------------------- */

.cl-footer{
  background:var(--cl-soft);
  padding:14px 0 22px;
  border-top:1px solid rgba(15, 23, 42, .06);
}

.cl-footer .cl-footer-nav{
  display:flex;
  flex-wrap:wrap;
  gap:6px 10px;
  align-items:center;

  font-size:11px;
  line-height:1.35;
  color:#94a3b8;
}

.cl-footer .cl-footer-nav a{
  color:#2563eb;
  font-weight:900;
  text-decoration:none;
  border-bottom:1px solid rgba(37,99,235,.20);
}

.cl-footer .cl-footer-nav a:hover{
  border-bottom-color:rgba(37,99,235,.50);
}

/* ---------------------------------------------------------
   9) Errors
   --------------------------------------------------------- */

.cl-page .cl-error{
  display:none;
  margin-top:10px;
  background:#fef2f2;
  border:1px solid #ef4444;
  color:#991b1b;
  padding:10px 12px;
  border-radius:12px;
  font-weight:700;
}

/* Optional-Details */
.cl-page details{
  margin-top:10px;
  padding:12px;
  border:1px solid var(--cl-border);
  border-radius:12px;
  background:#f8fafc;
}
.cl-page summary{
  cursor:pointer;
  font-weight:950;
  color:var(--cl-text);
}

/* ---------------------------------------------------------
   10) Mobile
   --------------------------------------------------------- */
@media (max-width:900px){
  .cl-page .cl-h1{font-size:34px}
  .cl-page .cl-grid{grid-template-columns:1fr}
  .cl-page .cl-forms{grid-template-columns:1fr} /* mobile untereinander */
  .cl-page .cl-btnrow{ width:100%; }
  .cl-page .cl-btn{ width:100%; min-height:48px; }

  .cl-footer{
    padding:12px 0 18px;
  }
  .cl-footer .cl-footer-nav{
    gap:6px 8px;
  }
}

/* ---------------------------------------------------------
   10) Footer (Datenschutz/Impressum) – zentriert + Trennlinie
   --------------------------------------------------------- */

.cl-page .cl-footer{
  margin-top:16px;
  padding:14px 0 18px;
  border-top:1px solid rgba(15, 23, 42, .08); /* dezente Trennlinie */
  background:transparent;
}

.cl-page .cl-footer-nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;  /* ✅ zentriert */
  align-items:center;
  gap:6px 10px;
  text-align:center;
  font-size:11px;
  line-height:1.35;
  color:#94a3b8;
}

.cl-page .cl-footer-nav a{
  color:#2563eb;
  font-weight:900;
  text-decoration:none;
  border-bottom:1px solid rgba(37,99,235,.20);
  transition:border-color .12s ease, color .12s ease;
}

.cl-page .cl-footer-nav a:hover{
  border-bottom-color:rgba(37,99,235,.50);
}
