
.zs-downloads-overview {
  --zs-blue: #21479b;
  --zs-text: #17324a;
  --zs-muted: #5d6e81;
  --zs-white: #ffffff;
  --zs-radius: 22px;
  --zs-gap: 28px;
  --zs-shadow: 0 16px 30px rgba(15, 37, 68, 0.08);
}

.zs-downloads-header {
  margin-bottom: 28px;
}

.zs-downloads-title {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--zs-text);
}

.zs-downloads-intro {
  margin: 0;
  max-width: 880px;
  color: var(--zs-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.zs-downloads-grid {
  display: grid;
  /* grid-template-columns wird pro Instanz per Inline-<style> gesetzt
     (siehe ZS_Downloads_Frontend::render_grid()), damit Desktop/Tablet/
     Mobil unabhängig konfigurierbar sind. 3 Spalten hier nur als Fallback. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--zs-gap, 28px);
}

.zs-download-card {
  min-width: 0;
}

.zs-download-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit !important;
  background: var(--zs-white);
  border-radius: var(--zs-radius);
  overflow: hidden;
  box-shadow: var(--zs-shadow);
  transform: translateY(0);
  transition: transform .22s ease, box-shadow .22s ease;
}

.zs-download-card-link:hover,
.zs-download-card-link:focus {
  transform: translateY(-3px);
  box-shadow: 0 22px 36px rgba(15, 37, 68, 0.12);
}

.zs-download-card-media {
  position: relative;
  aspect-ratio: 571 / 811;
  background: #e9eef3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.zs-download-card-media img {
  /* object-fit: contain statt cover – Hochformat- UND Querformat-PDFs
     (z. B. wenn Seite 1 im Querformat gestaltet ist) werden dadurch immer
     komplett angezeigt, statt zufällig beschnitten zu werden. */
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  box-shadow: 0 2px 8px rgba(15, 37, 68, 0.12);
  background: var(--zs-white);
}

.zs-download-card-content {
  padding: 16px 18px 20px;
}

.zs-download-card-title {
  margin: 0 0 6px;
  color: var(--zs-text);
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 700;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.zs-download-card-button {
  margin: 0;
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--zs-blue);
}

@media (max-width: 1024px) {
  .zs-downloads-grid {
    gap: 22px;
  }
}

@media (max-width: 767px) {
  .zs-downloads-title {
    font-size: 1.65rem;
  }

  .zs-downloads-grid {
    gap: 18px;
  }

  .zs-download-card-content {
    padding: 14px 16px 18px;
  }

  .zs-download-card-title {
    font-size: 1rem;
  }
}
