/* =========================================================
   Footer-CTA als Kachel im Work-Grid (Startseite)
   ---------------------------------------------------------
   Das <li class="sz-card sz-card--cta"> wird IMMER als letztes
   Element in .sz-work__list ausgegeben. CSS entscheidet:
   - ungerade Anzahl Projekte → CTA-Kachel ist ein gerades Kind
     → sichtbar, füllt die leere rechte Zelle; der Footer-Top
       (gleicher Inhalt) wird ausgeblendet.
   - gerade Anzahl → CTA-Kachel ist ungerades Kind → versteckt,
     Footer bleibt wie bisher.
   - Mobil (1 Spalte) → nie Kachel, immer normaler Footer.
   ========================================================= */

.sz-card--cta { display: flex; }
.sz-card--cta .sz-footer__top {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-32);
  width: 100%;
  padding: var(--s-32);
}
.sz-card--cta .sz-footer__cta { max-width: 14ch; }

.sz-card--cta:nth-child(odd) { display: none; }

@media (width <= 760px) {
  .sz-card--cta { display: none; }
}

@media (width > 760px) {
  body:has(.sz-card--cta:nth-child(even)) .sz-footer { padding-top: var(--s-32); }
  body:has(.sz-card--cta:nth-child(even)) .sz-footer > .sz-footer__top { display: none; }
  body:has(.sz-card--cta:nth-child(even)) .sz-footer__bottom { margin-top: 0; }
}
