/*
 Theme Name:   Newspaper Child
 Theme URI:    https://tagdiv.com
 Description:  BV Custom CSS
 Author:       SCM Bundes-Verlag gGmbH
 Author URI:   https://bundes-verlag.net
 Template:     Newspaper
 Version:      0.1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

*/

/* Desktop */
.main-banner {
  display: flex;
  max-width: 1200px;
  margin: auto;
}
.banner-logo {
  width: 60%;
}
.content-banner {
  font-size: clamp(0.875rem, 0.76rem + 0.51vw, 1rem);
  line-height: 160%;
  font-family: "Montserrat", sans-serif;
}
.main-banner__left {
  width: 50%;
  background-color: #DAD6D3;
  color: #102B3E;
  padding: 2rem;
  border-radius: 12px 0 0 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.main-banner__left h2 {
font-size: clamp(2rem, 0.93rem + 4.58vw, 3.125rem);
  font-family: "Red Hat Display", sans-serif;
  margin: 0;
  color: #102B3E;
  font-weight: 400;
  line-height: 120%;
}

.main-banner__right {
  width: 50%;
  background: url(https://www.jesus.de/wp-content/uploads/2026/10/banner-jde.jpg) no-repeat center / cover;
  border-radius: 0 12px 12px 0;
}

.jde-button {
    background-color: #E51F49;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    color: #fff;
    font-family: Montserrat ;
    font-size: 14px ;
    font-weight: 500;
}
  /* Mobil*/

@media (max-width: 767px) {
  .main-banner {
    flex-direction: column;
  }

  .main-banner__left {
    display: contents;
  }
.banner-headline{
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #DAD6D3;
  border-radius: 12px 12px 0 0;
  padding: 1rem;
}
  .banner-logo {
  order: 1;
  width: 50%;

}
  .main-banner__left h2 {
    order: 1;
    background-color: #DAD6D3;
    color: #102B3E;
    text-align: center;
  }

  .main-banner__right {
    order: 2;
    width: auto;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 0 0 12px 12px;
  }

.jde-button {
  display: flex;
  flex-direction: column;
  text-align: center;
}
  .content-banner {
    order: 3;
    color: #0C0C0C;
  }
}

/* News Block CSS Custom Anpasuungen */
/* START */
/* ===================================================================
   JDE News-Karten (Block mit Klasse: jde-news-card)
   Desktop: 4 Spalten | Tablet: 2 Spalten | Mobil: 1 Spalte
   =================================================================== */

/* ===== Raster: CSS-Grid ===== */
.jde-news-card .td_block_inner {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
  width: 100% !important;
  margin: 0 !important;
}

/* Zeilen-Wrapper des Themes transparent machen */
.jde-news-card .td_block_inner > div:has(> .td-block-span4),
.jde-news-card .td-block-row {
  display: contents !important;
}

/* Theme-Clearfix nicht als Grid-Zelle */
.jde-news-card .td_block_inner::before,
.jde-news-card .td_block_inner::after,
.jde-news-card .td-block-row::before,
.jde-news-card .td-block-row::after {
  display: none !important;
  content: none !important;
}

.jde-news-card .td-block-span4 {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
}

/* ===== Karte ===== */
.jde-news-card .td_module_mx4,
.jde-news-card .td_module_wrap {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff;
  border: 0 !important;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(16, 43, 62, 0.10);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jde-news-card .td_module_mx4:hover,
.jde-news-card .td_module_wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(16, 43, 62, 0.16);
}

.jde-news-card .td-module-container {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ===== Bild ===== */
.jde-news-card .td-module-image {
  float: none !important;
  width: 100% !important;
  flex: none !important;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 16px 16px 0 !important;
}

.jde-news-card .td-module-thumb,
.jde-news-card .td-image-wrap {
  float: none !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

.jde-news-card .td-module-thumb img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
}

/* ===== Titel ===== */
.jde-news-card .td-module-title {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 16px;
  box-sizing: border-box;
  text-align: center;
  font-family: "Red Hat Display", sans-serif !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  color: #414459;
}

.jde-news-card .td-module-title a {
  color: #414459 !important;
  text-decoration: none;
}

/* ===== "weiter lesen ›" ===== */
.jde-news-card .td-module-title::after {
  content: "weiter lesen \203A";
  display: block;
  margin-top: 10px;
  font-family: "Red Hat Display", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: #5b6076;
  text-align: center;
}

/* Ganze Karte klickbar */
.jde-news-card .td-module-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* Störende Theme-Elemente ausblenden */
.jde-news-card .td-admin-edit,
.jde-news-card .td-module-meta-info,
.jde-news-card .td-module-container::before {
  display: none !important;
}

/* ===== Tablet (bis 1018px): 2 Spalten ===== */
@media (max-width: 1018px) {
  .jde-news-card .td_block_inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Mobil (bis 567px): 1 Spalte ===== */
@media (max-width: 567px) {
  .jde-news-card .td_block_inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== Mobil (bis 767px): Bild und Text vollständig, keine Theme-Floats ===== */
@media (max-width: 767px) {
  .jde-news-card .td_block_inner {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }

  .jde-news-card .td_module_wrap,
  .jde-news-card .td_module_wrap .td-module-container,
  .jde-news-card .td_module_wrap .td-module-image,
  .jde-news-card .td_module_wrap .td-module-thumb,
  .jde-news-card .td_module_wrap .td-image-wrap,
  .jde-news-card .td_module_wrap .td-module-title {
    float: none !important;
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    transform: none !important;
  }

  .jde-news-card .td_module_wrap {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .jde-news-card .td-module-thumb,
  .jde-news-card .td-image-wrap {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
  }

  .jde-news-card .td-module-thumb img {
    position: static !important;
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  .jde-news-card .td-module-title {
    padding: 14px 16px 4px !important;
    text-align: center !important;
    font-size: 17px !important;
  }

  .jde-news-card .td-module-title::after {
    text-align: center !important;
  }
}

/* ===== Reduzierte Bewegung ===== */
@media (prefers-reduced-motion: reduce) {
  .jde-news-card .td_module_mx4,
  .jde-news-card .td_module_wrap {
    transition: none;
  }
}
/* ENDE */

/* ===================================================================
   JDE News-Karten mit Textauszug (Klasse: jde-news-card-text)
   Desktop: 3 Spalten | Tablet: 2 Spalten | Mobil: 1 Spalte
   =================================================================== */

/* ===== Raster ===== */
.jde-news-card-text .td_block_inner {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Zeilen-Wrapper des Themes transparent machen */
.jde-news-card-text .td_block_inner > div:has(> .td-block-span4),
.jde-news-card-text .td-block-row {
  display: contents !important;
}

/* Theme-Clearfix nicht als Grid-Zelle */
.jde-news-card-text .td_block_inner::before,
.jde-news-card-text .td_block_inner::after,
.jde-news-card-text .td-block-row::before,
.jde-news-card-text .td-block-row::after {
  display: none !important;
  content: none !important;
}

.jde-news-card-text .td-block-span4 {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
}

/* ===== Karte ===== */
.jde-news-card-text .td_module_mx4,
.jde-news-card-text .td_module_wrap {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff;
  border: 0 !important;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(16, 43, 62, 0.10);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jde-news-card-text .td_module_mx4:hover,
.jde-news-card-text .td_module_wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(16, 43, 62, 0.16);
}

.jde-news-card-text .td-module-container {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.jde-news-card-text .td-module-container::before {
  display: none !important;
}

/* ===== Bild: bis an den Rand, ohne Abstand ===== */
.jde-news-card-text .td-module-image {
  float: none !important;
  width: 100% !important;
  flex: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.jde-news-card-text .td-module-thumb,
.jde-news-card-text .td-image-wrap {
  float: none !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

.jde-news-card-text .td-module-thumb img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
}

/* ===== Titel mit Innenabstand ===== */
.jde-news-card-text .td-module-title {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 20px 20px 0;
  box-sizing: border-box;
  text-align: left;
  font-family: "Red Hat Display", sans-serif !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  color: #414459;
}

.jde-news-card-text .td-module-title a {
  color: #414459 !important;
  text-decoration: none;
}

/* ===== Textauszug mit Innenabstand ===== */
.jde-news-card-text .td-excerpt {
  float: none !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 10px 20px 0 !important;
  font-family: Montserrat, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #414459;
}

/* ===== "Jetzt lesen ›" ===== */
.jde-news-card-text .td_module_wrap::after,
.jde-news-card-text .td_module_mx4::after {
  content: "Jetzt lesen \203A";
  display: block;
  padding: 12px 20px 20px;
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: #414459;
}

/* Ganze Karte klickbar */
.jde-news-card-text .td-module-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* Störende Theme-Elemente ausblenden */
.jde-news-card-text .td-admin-edit,
.jde-news-card-text .td-module-meta-info,
.jde-news-card-text .td-read-more {
  display: none !important;
}

/* ===== Tablet (bis 1018px): 2 Spalten ===== */
@media (max-width: 1018px) {
  .jde-news-card-text .td_block_inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Mobil (bis 767px): 1 Spalte, Theme-Floats aufheben ===== */
@media (max-width: 767px) {
  .jde-news-card-text .td_block_inner {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }

  .jde-news-card-text .td_module_wrap,
  .jde-news-card-text .td_module_wrap .td-module-container,
  .jde-news-card-text .td_module_wrap .td-module-image,
  .jde-news-card-text .td_module_wrap .td-module-thumb,
  .jde-news-card-text .td_module_wrap .td-image-wrap,
  .jde-news-card-text .td_module_wrap .td-module-title,
  .jde-news-card-text .td_module_wrap .td-excerpt {
    float: none !important;
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    transform: none !important;
  }

  .jde-news-card-text .td_module_wrap {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .jde-news-card-text .td-module-thumb,
  .jde-news-card-text .td-image-wrap {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
  }

  .jde-news-card-text .td-module-thumb img {
    position: static !important;
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .jde-news-card-text .td-module-title {
    padding: 16px 16px 0 !important;
    font-size: 17px !important;
  }

  .jde-news-card-text .td-excerpt {
    padding: 8px 16px 0 !important;
    font-size: 15px !important;
  }

  .jde-news-card-text .td_module_wrap::after,
  .jde-news-card-text .td_module_mx4::after {
    padding: 10px 16px 16px;
  }
}

/* ===== Reduzierte Bewegung ===== */
@media (prefers-reduced-motion: reduce) {
  .jde-news-card-text .td_module_mx4,
  .jde-news-card-text .td_module_wrap {
    transition: none;
  }
}