/* Kachel (Light/Dark + Schatten) – komplett auf ech_bt gescoped */
.ech-bt {
  --bt-bg-light: rgb(242,242,242);
  --bt-bg-dark:  rgb(60,60,60);
  --bt-fg-light: rgb(0,0,0);
  --bt-fg-dark:  rgb(242,242,242);
  --bt-accent:   rgb(0,84,134);
  --bt-radius:   16px;
  --bt-gap:      28px;

  background: var(--bt-bg-light);
  color: var(--bt-fg-light);
  border-radius: var(--bt-radius);
  box-shadow: 0 4px 8px rgba(0,0,0,.2);
}
@media (prefers-color-scheme: dark) {
  .ech-bt { background: var(--bt-bg-dark); color: var(--bt-fg-dark); }
}
.ech-bt.ech-dark { background: var(--bt-bg-dark); color: var(--bt-fg-dark); }

/* Grid 50/50 */
.ech-bt__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--bt-gap); }
@media (max-width: 980px){ .ech-bt__grid { grid-template-columns: 1fr; } }

/* Spiegelung: links Media, rechts Text */
.ech-bt__left  { padding: 30px; }
.ech-bt__right { padding: 0 0 30px 0; }

/* --- H3: Wrapper 50/100 % Breite (rechts) --- */
.ech-bt__headline-wrap { margin: 30px; }
.ech-bt__headline-wrap.is-half { width: calc(50% - 60px); display: block; }
.ech-bt__headline-wrap.is-full { width: calc(100% - 60px); display: block; }

/* H3-Styling (eigene Klasse, kollisionsfrei) */
.ech-bt__headline{
  background: var(--bt-accent);
  color: rgb(242, 242, 242);
  box-shadow: 0 4px 8px rgba(0,0,0,.2);
  font-weight: bold;
  padding: 10px;
  margin: 0 0 30px 0;
  line-height: 1.2;
  width: 100%;
}

/* Textbereich rechts */
.ech-bt__body--text { padding: 0 30px 30px 30px; }
.ech-bt__body--text p { margin: 0 0 12px 0; }

/* Linke Spalte: Media */
.ech-bt__media { min-height: 180px; }

/* Bild: Höhe via CSS-Variable, Breite auto (mit !important innerhalb der Variable am Wrapper) */
.ech-bt__img {
  display: block;
  width: auto;
  max-width: 100%;
  height: var(--bt-img-h, auto) !important;
  object-fit: contain;
}

/* Positionen */
.ech-bt__img.pos-tl { object-position: left   top; }
.ech-bt__img.pos-tc { object-position: center top; }
.ech-bt__img.pos-tr { object-position: right  top; }
.ech-bt__img.pos-cl { object-position: left   center; }
.ech-bt__img.pos-cc { object-position: center center; }
.ech-bt__img.pos-cr { object-position: right  center; }
.ech-bt__img.pos-bl { object-position: left   bottom; }
.ech-bt__img.pos-bc { object-position: center bottom; }
.ech-bt__img.pos-br { object-position: right  bottom; }

/* Platzhalter wenn nichts gesetzt */
.ech-bt__img--placeholder{
  width: 100%;
  border: 2px dashed rgba(0,0,0,.25);
  color: rgba(0,0,0,.6);
  padding: 24px;
  text-align: center;
  border-radius: 10px;
}
.ech-bt.ech-dark .ech-bt__img--placeholder{
  border-color: rgba(255,255,255,.35);
  color: rgba(255,255,255,.8);
}

/* Beschreibung unter Bild ODER HTML */
.ech-bt__desc{
  margin-top: 12px;
  padding: 0 2px;
  opacity: .85;
  font-size: 14px;
}


/* Aufzählungen mit Piktogrammen (nur in ech_bild_text) */
.ech-bt .ech-bt__body--text ul {
  list-style: none;
  margin: 0 0 12px 0;
  padding: 0;
}

/* Abstand: 30px links + 25px Icon + 10px Text = 65px Einzug */
.ech-bt .ech-bt__body--text ul li {
  position: relative;
  margin: 6px 0;
  padding-left: 65px;      /* 30 + 25 + 10 */
  min-height: 25px;        /* Iconhöhe */
  line-height: 1.4;
}

/* Icon links platzieren */
.ech-bt .ech-bt__body--text ul li::before {
  content: "";
  position: absolute;
  left: 0px;              /* 30px vom Kachelrand */
  top: 0.2em;              /* optische Vertikalausrichtung */
  width: 25px;
  height: 25px;
  background: no-repeat center / 25px 25px
    url("https://data.ech.group/pictograms/svg/check_circle_blue_30x30.svg");
}

/* Dark-Variante (per .ech-dark am Wrapper ODER System-Darkmode) */
.ech-bt.ech-dark .ech-bt__body--text ul li::before {
  background-image: url("https://data.ech.group/pictograms/svg/check_circle_white_30x30.svg");
}
@media (prefers-color-scheme: dark) {
  .ech-bt .ech-bt__body--text ul li::before {
    background-image: url("https://data.ech.group/pictograms/svg/check_circle_white_30x30.svg");
  }
}

