/* =====================================
   3er-Linkteaser
===================================== */

.teaser_3 {
    --teaser-gap: 10px;
    margin-top: var(--teaser-gap);
}

/* Grid ab 768px */
@media (min-width: 768px) {
    .teaser_3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--teaser-gap);
    }
}

/* Einzelner Teaser */
.teaser_3 .ce_linkteaser {
    position: relative;
    overflow: hidden;
}

/* Link füllt den ganzen Teaser */
.teaser_3 .ce_linkteaser > a {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Innerer Wrapper */
.teaser_3 .ce_linkteaser .inside {
    position: relative;
    height: 100%;
}

/* Bild als Hintergrund */
.teaser_3 figure.image_container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.teaser_3 figure.image_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Farb-Overlay */
.teaser_3 .ce_linkteaser::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: background 0.4s ease;
}

/* Inhalt über Overlay */
.teaser_3 .content {
    position: relative;
    z-index: 2;
}

.teaser_3 .content > .inside {
    padding: 40px 30px;
    box-sizing: border-box;
}

/* Typografie */
.teaser_3 h2 {
    margin: 0 0 15px;
    font-size: 20px;
    letter-spacing: 1px;
}

.teaser_3 .teaser p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

/* Mindesthöhe */
@media (min-width: 768px) {
    .teaser_3 .ce_linkteaser {
        min-height: 360px;
    }
}


/* =====================================
   Mobile Teaser – schlicht & stabil
===================================== */

@media (max-width: 767px) {

  /* Container */
  .teaser_3 {
    display: block;
    margin: 20px auto;
  }

  /* Einzelner Teaser */
  .teaser_3 .ce_linkteaser {
    max-width: 400px;
    margin: 0 auto 24px;
    background: #f4f1ec;
    overflow: hidden;
    background: rgba(255,255,255,0.8);
  }

  /* Link normal */
  .teaser_3 .ce_linkteaser > a {
    display: block;
    color: inherit;
    text-decoration: none;
  }

  /* Bild ganz normal im Flow */
  .teaser_3 figure.image_container {
    position: relative;
    height: auto;
    padding: 20px;
  }

  .teaser_3 figure.image_container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: initial;
  }

  /* Overlay komplett aus */
  .teaser_3 .ce_linkteaser::before,
  .teaser_3 figure.image_container::after {
    display: none !important;
  }

  /* Textbereich */
  .teaser_3 .content {
    background: transparent;
  }

  .teaser_3 .content > .inside {
    padding: 16px 18px 20px;
  }

  /* Typo */
  .teaser_3 h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
  }

  .teaser_3 .teaser p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
  }
}




/* Farben pro Teaser */
.teaser_3 .ce_linkteaser:nth-child(1)::before {
    background: rgba(120,180,180,0.85);
}

.teaser_3 .ce_linkteaser:nth-child(2)::before {
    background: rgba(160,190,120,0.85);
}

.teaser_3 .ce_linkteaser:nth-child(3)::before {
    background: rgba(110,160,130,0.85);
}

/* Hover-Effekt */
.teaser_3 .ce_linkteaser:hover::before {
    background: rgba(0,0,0,0.55);
}

.teaser_3 .ce_linkteaser:hover img {
    transform: scale(1.05);
}
