/* =============================================================================
 * Homepage component: Article list widgets / "Weitere Ausstellungen" (.sza1-*)
 * Split from homepage.css (Issue #5). Homepage-only; enqueued after km-global.
 * ========================================================================== */

/* -----------------------------------------
   10. Article list widgets (sza1-widget)
   ----------------------------------------- */
.sza1-widget {
  margin: 40px 0;
  clear: both;
  width: 100%;
}
.sza1-liste {
  margin-top: 20px;
}
.sza1-item {
  display: flex;
  flex-direction: row-reverse; /* image LEFT, text RIGHT (DOM order is content, then image) */
  align-items: flex-start;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid var(--kunst-lines);
  cursor: pointer;
  position: relative;
}
.sza1-item:first-child {
  padding-top: 0;
}
.sza1-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
/* Widget 1 and 2: last item keeps bottom border */
.sza1-widget-1 .sza1-item:last-child,
.sza1-widget-2 .sza1-item:last-child {
  border-bottom: 1px solid var(--kunst-lines);
  padding-bottom: 30px;
}
/* Invisible link overlay for right-click support */
.sza1-item-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}
.sza1-content,
.sza1-bild {
  position: relative;
  z-index: 2;
}
a.sza1-kategorie {
  position: relative;
  z-index: 3;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--km-accent);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-decoration: none;
}
a.sza1-kategorie:hover {
  text-decoration: underline;
}
.sza1-content {
  flex: 1;
  min-width: 0;
}
.sza1-titel {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 6px 0;
}
.sza1-titel a {
  color: #333;
  text-decoration: none;
}
.sza1-titel a:hover {
  color: var(--km-accent);
}
/* Date + author meta line — same content/format as the unified card (.km-card__meta). */
.sza1-meta {
  font-size: 14px;
  color: #999;
  margin: 0 0 12px;
}
.sza1-excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}
.sza1-bild {
  flex-shrink: 0;
  width: 480px; /* +50% vs the former 320px — more room now that previews are longer */
}
.sza1-bild a {
  display: block;
}
.sza1-bild img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 2; /* match the unified card images (km-card__img) */
  object-fit: cover;
}
/* AdSense ad with label */
.sza1-anzeige-wrapper {
  padding: 0;
  margin: 0;
  border-bottom: 1px solid var(--kunst-lines);
}
.sza1-anzeige-label {
  display: block;
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  padding-top: 20px;
}
.sza1-anzeige {
  min-height: 90px;
  padding: 0 0 20px 0;
  margin: 0;
}


@media screen and (min-width: 768px) and (max-width: 1024px) {
  .sza1-bild {
    width: 375px;
    /* +50% vs the former 250px, proportional to the desktop bump */;
  }
  .sza1-titel {
    font-size: 20px;
  }
}


@media screen and (max-width: 767px) {
  .sza1-item {
    flex-direction: column-reverse;
    gap: 15px;
    padding: 20px 0;
  }
  .sza1-bild {
    width: 100%;
  }
  .sza1-bild img {
    aspect-ratio: auto;
    object-fit: contain;
  }
  a.sza1-kategorie {
    display: none;
  }
  .sza1-titel {
    font-size: 18px;
  }
  .sza1-excerpt {
    font-size: 15px;
  }
  .sza1-anzeige-label {
    padding-top: 15px;
  }
  .sza1-anzeige {
    padding: 0 0 15px 0;
    min-height: 50px;
  }
  .sza1-widget-1 .sza1-item:last-child, .sza1-widget-2 .sza1-item:last-child {
    padding-bottom: 20px;
  }
}
