/*
Theme Name: comlive24-landing (Child of Twenty Twenty-Five)
Theme URI: https://comlive24.de/
Description: Schlankes Child-Theme für Landing/Infos/Danke Seiten (COMLIVE24).
Author: Manfred Meier / ChatGPT
Template: twentytwentyfive
Version: 1.0.1
Text Domain: comlive24-landing
*/

/* =========================================================
   GLOBAL FALLBACKS (minimal & sicher)
   ========================================================= */

/* A) Landing Template: Titel/Header zuverlässig aus */
body.page-template-page-no-title-landing .wp-block-post-title,
body.page-template-page-no-title-landing .entry-title,
body.page-template-page-no-title-landing .entry-header,
body.page-template-page-no-title-landing header.entry-header{
  display:none !important;
  margin:0 !important;
  padding:0 !important;
}

/* B) Fallback: Falls einzelne Funnel-Seiten ohne Template laufen (IDs) */
body.page-id-60 .wp-block-post-title,
body.page-id-12 .wp-block-post-title{
  display:none !important;
}

/* C) Landing Template: Constrained Layout neutralisieren */
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;
}

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;
}

body.page-template-page-no-title-landing main.wp-block-group{
  margin-top:0 !important;
}

/* D) INFOS (ID 16): Constrained Layout ebenfalls entschärfen (nur diese Seite) */
body.page-id-16 .wp-site-blocks,
body.page-id-16 main,
body.page-id-16 .entry-content,
body.page-id-16 .wp-block-post-content{
  max-width:none !important;
}

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