
/*--------------------------------------------------------------
This is your custom stylesheet.
Add your own styles here to make theme updates easier.
--------------------------------------------------------------*/

/* LESSON */
body:not(.nx-has-lesson-main) .nx-sec-lesson-main { display:none !important; }
body:not(.nx-has-lesson-docs) .nx-sec-lesson-docs { display:none !important; }
body:not(.nx-has-lesson-more) .nx-sec-lesson-more { display:none !important; }
body:not(.nx-has-lesson-refs) .nx-sec-lesson-refs { display:none !important; }

/* TOPIC */
body:not(.nx-has-topic-main) .nx-sec-topic-main { display:none !important; }
body:not(.nx-has-topic-docs) .nx-sec-topic-docs { display:none !important; }
body:not(.nx-has-topic-more) .nx-sec-topic-more { display:none !important; }
body:not(.nx-has-topic-refs) .nx-sec-topic-refs { display:none !important; }

/* COURSE (Kurs) */
body:not(.nx-has-course-main) .nx-sec-course-main { display:none !important; }
body:not(.nx-has-course-docs) .nx-sec-course-docs { display:none !important; }
body:not(.nx-has-course-refs) .nx-sec-course-refs { display:none !important; }

/* BANNERS (NEU) */
body:not(.nx-has-lesson-banner) .nx-sec-lesson-banner { display:none !important; }
body:not(.nx-has-topic-banner)  .nx-sec-topic-banner  { display:none !important; }
body:not(.nx-has-course-banner) .nx-sec-course-banner { display:none !important; }

/* BULLETIN (CPT: Bulletin) */
body:not(.nx-has-bulletin-editorial):not(.nx-bulletin-builder)  .nx-sec-bulletin-editorial  { display:none !important; }
body:not(.nx-has-bulletin-video):not(.nx-bulletin-builder)      .nx-sec-bulletin-video      { display:none !important; }
body:not(.nx-has-bulletin-next-step):not(.nx-bulletin-builder)  .nx-sec-bulletin-next-step  { display:none !important; }
body:not(.nx-has-bulletin-impulses):not(.nx-bulletin-builder)   .nx-sec-bulletin-impulses   { display:none !important; }
body:not(.nx-has-bulletin-resources):not(.nx-bulletin-builder)  .nx-sec-bulletin-resources  { display:none !important; }
body:not(.nx-has-bulletin-feedback):not(.nx-bulletin-builder)   .nx-sec-bulletin-feedback   { display:none !important; }
body:not(.nx-has-bulletin-printable):not(.nx-bulletin-builder)  .nx-sec-bulletin-printable  { display:none !important; }

/* BULLETIN POSTS – ganze Post-Blöcke */
body:not(.nx-bulletin-post-1-exists):not(.nx-bulletin-builder) .nx-bulletin-post-1 { display:none !important; }
body:not(.nx-bulletin-post-2-exists):not(.nx-bulletin-builder) .nx-bulletin-post-2 { display:none !important; }
body:not(.nx-bulletin-post-3-exists):not(.nx-bulletin-builder) .nx-bulletin-post-3 { display:none !important; }

/* BULLETIN POSTS – Media-Container je Post */
body:not(.nx-bulletin-post-1-has-media):not(.nx-bulletin-builder) .nx-bulletin-post-1-media { display:none !important; }
body:not(.nx-bulletin-post-2-has-media):not(.nx-bulletin-builder) .nx-bulletin-post-2-media { display:none !important; }
body:not(.nx-bulletin-post-3-has-media):not(.nx-bulletin-builder) .nx-bulletin-post-3-media { display:none !important; }

/* BULLETIN POSTS – CTA-Container je Post */
body:not(.nx-bulletin-post-1-has-cta):not(.nx-bulletin-builder) .nx-bulletin-post-1-cta { display:none !important; }
body:not(.nx-bulletin-post-2-has-cta):not(.nx-bulletin-builder) .nx-bulletin-post-2-cta { display:none !important; }
body:not(.nx-bulletin-post-3-has-cta):not(.nx-bulletin-builder) .nx-bulletin-post-3-cta { display:none !important; }

/* BULLETIN – Combined Wrappers */
body:not(.nx-has-bulletin-next-or-feedback):not(.nx-bulletin-builder)        .nx-sec-bulletin-actions   { display:none !important; }
body:not(.nx-has-bulletin-resources-or-printable):not(.nx-bulletin-builder) .nx-sec-bulletin-downloads  { display:none !important; }

/* Bulletin - Hub Cards Teaser auf 2 zeilen begränzen */
.nx-excerpt-2l {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  max-height: calc(1.35em * 2);
}

/* Bulletin Button nur für Berechtigte (oder im Elementor Builder sichtbar lassen) */
body:not(.nx-bulletin-allowed):not(.nx-bulletin-builder) .nx-only-bulletin {
	display: none !important;
}



/* Container: Form & Clipping */
body .nx-sec-lesson-banner,
body .nx-sec-topic-banner,
body .nx-sec-course-banner {
  overflow: hidden !important;
  border-radius: 0px !important;
}

/* Bild: sauberes Füllen + gleiche Rundung */
body .nx-sec-lesson-banner  .nx-banner-img,
body .nx-sec-topic-banner   .nx-banner-img,
body .nx-sec-course-banner  .nx-banner-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0px; /* explizit, falls overflow mal nicht greift */
}


/* DOC THUMBS – allgemeine Bildgröße */
body .nx-doc-thumb-img {
  display: block;
  width: 100%;
  height: auto;        /* oder 100% + object-fit:cover, wenn du hart croppen willst */
  object-fit: cover;
  border-radius: 0px;
}


