JSFiddle - React, Tailwind, and code Playground

HTML

<div class="grid-6 grid-md-3 teaser"><a href="https://www.springlane.de/magazin/rezeptideen/ananas-mango-smoothie-kokosmilch/"><img src="https://d12xickik43a9a.cloudfront.net/images/magazine/de/M33228-Ananas-Mango-Smoothie-mit-Kokosmilch_featured-650x642-Q75-433x433.jpg" alt="M33228-Ananas-Mango-Smoothie-mit-Kokosmi" /></a>
  <div class="teaser-content"><span class="tag">Clean</span>
    <p>Karibischer Ananas-Mango-Smoothie mit Kokosmilch</p>
  </div>
</div>

CSS

.teaser {
  display: flex;
}

.teaser .teaser-content {
  padding: 1rem .5rem 1rem .5rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  border: 1.5px solid #e2e2e2;
  border-top: 0;
}

.teaser .tag {
  line-height: 1.6;
  font-size: .625rem;
  border-radius: .1875rem;
  padding: .25rem .5rem .25rem .5rem;
  top: calc(-1 * ((.75rem + .625rem) / 2));
  position: absolute;
  text-transform: uppercase;
  background: #ffea8a
}

.teaser p {
  margin: auto;
  line-height: 1.5;
  font-size: 18px;
  font-family: "Brandon Text Medium", Helvetica, Verdana, Arial, sans-serif;
  font-weight: normal;
}

.teaser a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.teaser img {
  flex-shrink: 0;
  width: 100%;
}

.mag--teaser-wrapper .teaser {
  margin-bottom: 1rem;
  padding: 0rem .5rem 0rem .5rem
}

.grid-md-3 {
  max-width: 25%;
  flex: 0 0 25%;
  width: 100% min-heidht: 1px;
}

.grid-row {
  margin-left: -16px;
  margin: right: -16px;
  width: calc(100% + 32px);
  display: flex;
  flex-wrap: wrap;
}

.emotion--container.emotion--mode-rows .emotion--element {
  position: relative;
  top: 0;
  left: 0;
  float: left;
  vertical-align: top;
  padding-left: 1rem;
  padding-bottom: 1rem;
  margin-left: inherit;
}