/* =========================================================
   ech_text_download – vollständige & robuste CSS
   - Kachel (Light/Dark)
   - 2-Spalten-Layout: links Text, rechts Downloads
   - EIN blaues Panel, darin Zeilen mit Icon + Titel
   ========================================================= */

/* Kachel-Box */
.ech-td__box {
  background: rgb(242, 242, 242);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 18px -8px rgba(0, 0, 0, 0.30);
}
@media (prefers-color-scheme: dark) {
  .ech-td__box {
    background: rgb(60, 60, 60);
    box-shadow: 0 12px 22px -10px rgba(0, 0, 0, 0.55);
  }
}

/* 2-Spalten-Layout: links Text, rechts Downloads (robust) */
.ech-td__columns {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 20px;
  align-items: start;
}
.ech-td__col--text { grid-column: 1; }
.ech-td__col--downloads { grid-column: 2; }

@media (max-width: 900px) {
  .ech-td__columns { grid-template-columns: 1fr; }
  .ech-td__col--downloads { grid-column: auto; }
  .ech-td__headline { width: 100% !important; }
}

/* Text links */
.ech-td__text { margin: 0; }

/* Überschrift rechts (Balken) */
.ech-td__headline {
  box-sizing: border-box;
  background: rgb(0, 84, 134);
  color: rgb(242, 242, 242);
  font-weight: 700;
  line-height: 1.2;
  padding: 10px;
  margin: 0;
}

/* 30px Abstand unter H3 */
.ech-td__spacer { height: 30px; }

/* === EIN Panel/Kachel für alle Downloads === */
.ech-td__panel {
  background: rgb(0, 84, 134);
  color: rgb(242, 242, 242);
  border-radius: 10px;
  box-shadow: 0 18px 26px -14px rgba(0,0,0,.35);
  overflow: hidden;
}

/* Liste im Panel */
.ech-td__list {
  list-style: none;
  margin: 0;
  padding: 12px;
  display: grid !important;
  gap: 10px !important;
}

/* Einzelzeile (leichte Abhebung) */
.ech-td__row {
  position: relative;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
}

/* ========= Harte Resets & Overrides NUR im Download-CE ========= */
.ech-td { isolation: isolate; }
.ech-td__panel { position: relative; z-index: 1; }

/* Alles zurücksetzen, was Link-/Text-Sichtbarkeit stören könnte */
.ech-td__link,
.ech-td__link:link,
.ech-td__link:visited,
.ech-td__title {
  all: unset;
}

/* Link neu aufbauen (klickbar + Hand-Cursor + sichtbarer Text) */
.ech-td__link {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 10px 12px !important;

  color: rgb(242,242,242) !important;
  text-decoration: none !important;
  cursor: pointer !important;

  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-indent: 0 !important;
}
.ech-td__link:hover,
.ech-td__link:focus { text-decoration: underline !important; }

/* Icon + Titel */
.ech-td__icon { display: inline-block !important; flex: 0 0 auto !important; }

.ech-td__title {
  display: inline !important;
  color: rgb(242,242,242) !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  word-break: break-word !important;
}
