/* =========================
   EVENTS / LISTEN
========================= */
.event-list {
  margin: 15px 0;
}

.event-item {
  margin-bottom: 15px;
  padding: 10px 15px;
  border-radius: 5px;
}

/* Kategorien farblich */
.event-item.vortrag {
  border-left: 4px solid #1e73be;
}

.event-item.workshop {
  border-left: 4px solid #ff9800;
}

.event-item.aktion {
  border-left: 4px solid #28a745;
}

.event-item.online {
  background-color: #f0f8ff;
}

.event-title {
  cursor: pointer;
  font-weight: 600;
  color: #1e73be;
  margin-bottom: 5px;
}

.event-details {
  display: none;
  padding-left: 15px;
  margin-top: 5px;
  font-size: 14px;
}

/* =========================
   GIFT GRID / BILDER
========================= */
.gift-grid a {
  display: block;
}

.gift-img {
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gift-img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* =========================
   CONTENT: FIGURE & CAPTION
========================= */
.com-content figure {
  display: inline-block;
  margin: 1.5rem auto;
  text-align: center;
}

.com-content figure img {
  display: block;
  max-width: 100%;
  height: auto;
}

.com-content figure figcaption {
  margin-top: 0.4rem;
  line-height: 1.4;
}

.blog .com-content figure figcaption {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  opacity: 0.85;
}

.item-page .com-content figure figcaption {
  font-size: 0.95rem;
  color: #555;
  font-weight: 500;
}

.com-content figure figcaption::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: #ddd;
  margin: 0.4rem auto 0.5rem;
}

/* =========================
   TABELLEN (RESPONSIVE)
========================= */
.com-content table {
  width: 100%;
  border-collapse: collapse;
}

.com-content th,
.com-content td {
  padding: 0.6rem;
  border: 1px solid #ddd;
  vertical-align: top;
  word-break: break-word;
}

/* =========================
   MOBILE STYLING
========================= */
@media (max-width: 768px) {

  .event-title {
    font-size: 16px;
  }

  .event-details p {
    font-size: 13px;
  }

  .event-item {
    margin-bottom: 10px;
  }

  .mod-articles-title {
    font-size: 16px;
  }

  /* Tabellen stacken */
  body:not(.mceContentBody) table,
  body:not(.mceContentBody) thead,
  body:not(.mceContentBody) tbody,
  body:not(.mceContentBody) th,
  body:not(.mceContentBody) td,
  body:not(.mceContentBody) tr {
    display: block;
  }

  body:not(.mceContentBody) thead {
    display: none;
  }

  body:not(.mceContentBody) tr {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
    background: #fafafa;
  }

  body:not(.mceContentBody) td {
    border: none;
    position: relative;
    padding-left: 45%;
  }

  body:not(.mceContentBody) td::before {
    content: attr(data-label);
    position: absolute;
    left: 0.6rem;
    top: 0.6rem;
    width: 40%;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
  }
}

@media (max-width: 576px) {
  .gift-img {
    border-radius: 12px;
  }
}

/* Alle Tabellen automatisch responsive */
.article-content table {
  width: 100%;
  border-collapse: collapse;
}

.article-content th,
.article-content td {
  padding: 0.6rem;
  border: 1px solid #ddd;
}

/* Mobile: Scroll statt kaputtem Layout */
@media (max-width: 768px) {
  .article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
