/* ==========================================================================
   page-projects.css — "Alle Projekte" / "All Projects" Standalone-Seite
   Erbt Basis-Styles (Body, Nav, Footer, .work-card, .btn-primary) aus
   globals.css. Hier nur das Seiten-Layout: Hero-Header + Karten-Grid.
   ========================================================================== */

.projects-page {
  position: relative;
  z-index: 2;
  min-height: 60vh;
}

/* ===== Hero-Header ===== */
.projects-hero {
  text-align: center;
  padding: 160px 24px 40px;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Eyebrow-Pill = exakt die Home-Hero-Pill (.available-pill mit animiertem
   Punkt). Hier nur: kein Link-Cursor, da reines Label. */
.projects-pill {
  cursor: default;
  margin-bottom: 28px;
}

.projects-title {
  font-family: "Clash Display", sans-serif;
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
/* Animierter Gradient im Wort wie auf der Hauptseite (gradient-text-circular
   liegt global in globals.css). */
.projects-title .grad-text {
  background: linear-gradient(90deg, #00d4ff, #7f00ff, #00d4ff);
  background-size: 500% 500%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-text-circular 15s ease-in-out infinite;
}

.projects-sub {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  color: #a3a3a3;
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto;
}

/* ===== Karten-Grid ===== */
.projects-grid-section {
  position: relative;
  z-index: 2;
  max-width: 1480px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

/* Reveal-Wrapper als Flex, damit die Karte die volle Zellenhöhe füllt. */
.project-reveal {
  display: flex;
}

/* Karte aus dem Carousel-Kontext lösen: feste Breite weg, Grid-Zelle füllen.
   height:100% + align-stretch => alle Karten einer Reihe exakt gleich hoch. */
.projects-grid .work-card {
  flex: none;
  width: 100%;
  min-height: 0;
  height: 100%;
}
/* 16:9-Bild, darf nicht schrumpfen (sonst verzieht es sich bei gleicher Höhe). */
.projects-grid .work-card-img {
  height: auto;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
}
/* Body füllt den Rest gleichmäßig auf; kleinere Schrift für bessere Lesbarkeit. */
.projects-grid .work-card-body {
  height: auto;
  flex: 1;
  padding: 28px;
}
.projects-grid .work-card-body h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.projects-grid .work-card-body p {
  font-size: 15px;
  line-height: 1.5;
  -webkit-line-clamp: 5;
}
.projects-grid .work-card-link {
  font-size: 15px;
  margin-top: 16px;
}

/* ===== Closing-CTA — erbt .cta-section aus globals.css, nur Abstände ===== */
.projects-cta {
  position: relative;
  z-index: 2;
  padding-top: 160px;
  padding-bottom: 160px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .projects-hero {
    padding: 130px 20px 24px;
  }
  .projects-grid-section {
    padding: 36px 20px 24px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .projects-grid .work-card-body {
    padding: 24px;
  }
}
