/* Grundlayout */
.gst-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(var(--gst-columns, 1), 1fr);
  align-items: stretch;
}

/* Teaser-Kachel */
.gst-teaser {
  background: #fff;
  border: 20px solid #fff;
  border-radius: 0px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative; /* für Badge / Overlay */
}

/* Teaser disabled/abgelaufen (Standard-Klasse gst-disabled) */
.gst-disabled {
  filter: grayscale(60%);
  opacity: 0.7;
  pointer-events: none; /* zusätzliche Sicherheit */
}

/* Link-Wrapper füllt die Kachel */
.gst-teaser-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

/* Wenn disabled: pointer-events none, keine Interaktion */
.gst-teaser-link.disabled {
  pointer-events: none;
  cursor: default;
}

/* Innere Struktur sorgt dafür, dass alle Kacheln gleich hoch sind */
.gst-teaser-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Thumbnail oben */
.gst-thumb {
  margin-bottom: 10px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative; /* für overlay pseudo-element */
  transition: transform 0.25s ease, filter 0.25s ease;
  width: 100% !important;
  aspect-ratio: 1000/711;
  object-fit: cover;
}

/* Overlay für Abdunkelung bei Hover (Start transparent) */
.gst-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

/* Hover: nur bei nicht-abgelaufenen Teasern abdunkeln */
.gst-teaser:not(.gst-disabled):hover .gst-thumb::after,
.gst-teaser:not(.gst-disabled) .gst-teaser-link:focus .gst-thumb::after {
  opacity: 1;
}

/* Cursor zeigt Interaktion bei aktiven Teasern */
.gst-teaser:not(.gst-disabled) .gst-teaser-link {
  cursor: pointer;
}

/* Content-Bereich dehnt sich */
.gst-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

/* Titel und Text */
.gst-title {
  color: #0b0b0b;
  font-size: 1.2rem;
  margin: 1rem 0 0rem 0;
  text-align: center;
}

.gst-teasertext {
  flex: 1 1 auto;
  color: #0b0b0b;
  margin-bottom: 0.75rem;
  font-size: .8rem;
  line-height: 1.2;
  margin: 0rem 0 0rem 0;
  text-align: center;
}

/* Meta-Bereich: Label oben, Datum + Badge in einer Reihe */
.gst-meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0rem;
  text-align: right;
  font-size: 14px;
  color: #b7b3b7;

}

.gst-meta-label {
  font-size: 14px;
  color: #b7b3b7;
  display: block;
  text-align: right;
}

/* Row für Datum und Badge */
.gst-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Wenn Anforderung: datum rot (Standard-Klasse gst-teilnahmeschluss-red) */
.gst-teilnahmeschluss-red {
  color: #c62828;
  font-weight: 600;
}

/* Abgelaufen-Badge */
.gst-expired-label {
  background: #c62828;
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-block;
  line-height: 1;
}

/* Tablet: zwei Spalten (unabhängig von --gst-columns) */
@media (min-width: 700px) and (max-width: 1024px) {
  .gst-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive: bei sehr kleinen Bildschirmen 1 Spalte */
@media (max-width: 699px) {
  .gst-grid {
    grid-template-columns: 1fr;
  }
}