/* ==========================================================
   COMPONENT: Teaser
   Große klickbare Teaser-Karten
   ========================================================== */

.teaser-grid {
  width: min(1900px, calc(100% - 3rem));
  margin: 3rem auto 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.2rem;
}

.teaser {
  text-decoration: none;
  cursor: pointer;
  transform: translate3d(0, 0, 0);

  width: 100%;
  min-height: 320px;

  border-radius: var(--radius-large);
  overflow: hidden;
  padding: 1.8rem;
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);

  transition:
    transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.teaser h3,
.teaser p {
  position: relative;
  z-index: 2;
  color: #fff;
}

.teaser h3 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}

.teaser p {
  font-size: 1rem;
  line-height: 1.45;
}

.teaser:hover {
  transform: translate3d(0, -10px, 0) scale(1.03);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

.teaser-link-text {
  margin-top: auto;
  color: #ffee99;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}

.teaser-link-text:hover {
  text-decoration: underline;
}

.teaser.flugplatz-bg {
  background-image: url("/bilder/flugplatz_rieplos001.jpg");
}

.teaser.vereinsmodelle-bg {
  background-image: url("/bilder/30_FMSC.webp");
}

.teaser.veranstaltung-bg {
  background-image: url("/bilder/Bärenpo_046.jpg");
}

.teaser.flugplatz-bg,
.teaser.vereinsmodelle-bg,
.teaser.veranstaltung-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.teaser::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.25)
  );
  border-radius: var(--radius-large);
  z-index: 1;
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.teaser:hover::before,
.teaser:focus::before,
.teaser:focus-visible::before,
.teaser:active::before {
  opacity: 0.30;
}

/* Teaser-Link ohne renderkritische Animation */
.teaser .teaser-link-text {
  position: relative;
  z-index: 2;
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #ffee99;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, color 0.25s ease;
}

.teaser:hover .teaser-link-text,
.teaser:focus-visible .teaser-link-text {
  color: #ffffff;
  transform: translate3d(4px, 0, 0);
}

/* Tablet */
@media (max-width: 1100px) {
  .teaser-grid {
    width: min(760px, calc(100% - 2rem));
    grid-template-columns: 1fr;
  }

  .teaser {
    min-height: 260px;
  }
}

/* Mobil */
@media (max-width: 600px) {
  .teaser-grid {
    width: calc(100% - 24px);
    margin-top: 2rem;
    gap: 1.2rem;
  }

  .teaser {
    width: 100%;
    min-height: 200px;
    margin: 0 auto;
    border-radius: 12px;
    padding: 1.3rem;
  }

  .teaser h3 {
    font-size: 1.25rem;
  }

  .teaser p {
    font-size: 0.95rem;
  }
}