/* --- Grundcontainer & Farbmodi --- */
.ech_html {
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    margin: 20px 0;
    padding: 20px;
    overflow: visible; /* Wichtig für Ribbon-Überstand */
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: background-color 0.3s ease;
}

/* Hellmodus – Container */
/* Hellmodus – Container (Glass) */
@media (prefers-color-scheme: light) {
  .ech_html {
    background: rgba(240, 240, 240, 0.55);     /* 👈 Transparenz */
    color: rgb(0, 0, 0);
    backdrop-filter: blur(40px);               /* 👈 Glass-Effekt */
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(0, 84, 134, 0.25);  /* optional weich */
  }
}

/* Dunkelmodus – Container (Glass) */
@media (prefers-color-scheme: dark) {
  .ech_html {
    background: rgba(60, 60, 60, 0.55);        /* 👈 Transparenz */
    color: rgb(242, 242, 242);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(242, 242, 242, 0.18);
  }
}

.ech_html::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius: 15px; /* gleich wie Container */

  background: linear-gradient(
    to top,
    rgba(0,0,0,0.10) 0%,
    rgba(0,0,0,0.06) 40%,
    rgba(0,0,0,0.00) 100%
  );
}

@media (prefers-color-scheme: dark){
  .ech_html::after{
    background: linear-gradient(
      to top,
    rgba(0,0,0,0.10) 0%,
    rgba(0,0,0,0.06) 40%,
    rgba(0,0,0,0.00) 100%
    );
  }
}

/* --- H3 Ribbon (Desktop 50% / Mobile 100%) --- */
.ech_html__title {
    background-color: rgb(0, 84, 134);
    color: rgb(240, 240, 240);
    margin: 0 0 20px -35px !important; /* Überstand nach links */
    padding: 10px 20px 10px 35px;
    border-radius: 0 5px 5px 0;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 10;
    position: relative;
}

.ech_html {
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    margin: 20px 0;
    padding: 20px 20px 40px 20px; /* Mehr Padding unten für den Balken */
    overflow: visible;
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.15);
    position: relative;
}

/* Der blaue Beschreibungsbalken unten links */
.ech_html__description {
    position: absolute;
    bottom: 30px;
    left: 15px;
    background-color: rgba(0, 84, 134, var(--opacity, 1));
    color: rgb(242, 242, 242);
    padding: 8px 25px 8px 15px;
    border-radius: 0 5px 5px 0;
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 10;
    font-size: 0.9rem;
}

/* Desktop: 50% Breite */
@media (min-width: 992px) {
    .ech_html__title {
        width: calc(50% + 15px);
    }
}

/* Tablet & Handy: 100% Breite */
@media (max-width: 991px) {
    .ech_html__title {
        margin: 0 -20px 20px -35px !important;
        width: calc(100% + 20px);
    }
}

.ech_html__inner {
    width: 100%;
}