/* ==========================================================================
   Presse News Loop
   Optisch an der bestehenden, manuell aufgebauten Presse-Seite orientiert.
   ========================================================================== */

.press-news-loop {
  width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}

.press-news-loop *,
.press-news-loop *::before,
.press-news-loop *::after {
  box-sizing: border-box;
}


/* ==========================================================================
   Einleitung
   ========================================================================== */

.press-news-loop__intro {
  width: min(100% - 40px, 1240px);
  margin: 0 auto 110px;
  text-align: center;
}

.press-news-loop__intro p {
  max-width: 1180px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.45;
}


/* ==========================================================================
   Gesamte News-Liste
   ========================================================================== */

.press-news-loop__list {
  width: min(100% - 40px, 1260px);
  margin: 0 auto;
}


/* ==========================================================================
   Einzelner News-Beitrag
   ========================================================================== */

.press-news-loop__item {
  display: grid;

  /*
   * Links großes quadratisches Bild,
   * rechts der Textbereich.
   */
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 0.96fr);

  align-items: start;
  gap: clamp(48px, 5vw, 76px);

  margin: 0;
}

.press-news-loop__item + .press-news-loop__item {
  margin-top: 105px;
}


/* ==========================================================================
   Bild
   ========================================================================== */

.press-news-loop__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.press-news-loop__image {
  display: block;

  width: 100%;
  height: 100%;
  max-width: none;

  object-fit: cover;
}

.press-news-loop__image--placeholder {
  background: #f2f2f2;
}


/* ==========================================================================
   Rechte Inhaltsspalte
   ========================================================================== */

.press-news-loop__content {
  min-width: 0;
  padding-top: 4px;
}


/* ==========================================================================
   Datum / Veröffentlichungsort
   ========================================================================== */

.press-news-loop__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 0.45rem;

  margin: 0 0 20px;

  color: #111;

  font-size: 1rem;
  line-height: 1.3;
}

.press-news-loop__meta-separator {
  display: inline-block;
}


/* ==========================================================================
   Überschrift
   Blaues Quadrat + Titel + Linie
   ========================================================================== */

.press-news-loop__heading-row {
  display: flex;
  align-items: flex-start;

  /*
   * Wichtig:
   * Die Reihe darf über die eigentliche Textspalte hinauslaufen.
   * Dadurch kann die blaue Linie wieder bis zum rechten Rand laufen.
   */
  width: 100%;

  margin: 0 0 54px;
}


/* Blaues Quadrat links neben Überschrift */

.press-news-loop__heading-square {
  flex: 0 0 34px;

  width: 34px;
  height: 34px;

  margin: 2px 12px 0 0;

  background: #bfe6f3;
}


/* Überschrift */

.press-news-loop__title {
  flex: 0 1 auto;

  min-width: 0;

  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;

  color: #111;

  font-family: inherit;

  font-size: clamp(2rem, 2.35vw, 2.6rem);
  font-weight: 300;
  line-height: 1.07;

  letter-spacing: 0;
  text-transform: none;
}


/*
 * Falls das Theme h2-Pseudo-Elemente verwendet:
 * für diesen Block deaktivieren.
 */

.press-news-loop__title::before,
.press-news-loop__title::after {
  display: none !important;
  content: none !important;
}


/* ==========================================================================
   Hellblaue Linie rechts neben dem Titel
   ========================================================================== */

.press-news-loop__heading-line {
  position: relative;

  flex: 1 1 auto;

  min-width: 40px;
  height: 2px;

  margin: 28px 0 0 13px;

  background: #bfe6f3;
}


/*
 * Verlängert die Linie unabhängig von der Titellänge
 * über die rechte Content-Spalte hinaus.
 *
 * Da .press-news-loop overflow-x: clip besitzt,
 * wird sie sauber am rechten Seitenrand abgeschnitten.
 */

.press-news-loop__heading-line::after {
  content: "";

  position: absolute;

  top: 0;
  left: 100%;

  width: 100vw;
  height: 2px;

  background: #bfe6f3;
}


/* ==========================================================================
   Beschreibung
   ========================================================================== */

.press-news-loop__excerpt {
  max-width: 600px;

  margin: 0 0 20px;

  color: #111;

  font-size: 1rem;
  line-height: 1.48;
}


/* ==========================================================================
   Zum Beitrag Button
   ========================================================================== */

.press-news-loop__button {
  display: inline-flex;
  align-items: center;

  gap: 5px;

  min-height: 42px;

  padding:
    8px
    18px
    8px
    12px;

  border: 0;
  border-radius: 999px;

  background: #383c40;

  color: #fff !important;

  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1;

  text-decoration: none !important;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}


.press-news-loop__button:hover,
.press-news-loop__button:focus-visible {
  background: #22272b;

  color: #fff !important;

  text-decoration: none !important;
}


.press-news-loop__button:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}


.press-news-loop__button-arrow {
  font-size: 1.05rem;
  line-height: 1;
}


/* ==========================================================================
   Keine Beiträge
   ========================================================================== */

.press-news-loop__empty {
  padding: 20px;

  border: 1px dashed #aaa;

  background: #fafafa;
}


/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 991px) {

  .press-news-loop__intro {
    margin-bottom: 75px;
  }


  .press-news-loop__item {
    gap: 38px;
  }


  .press-news-loop__item + .press-news-loop__item {
    margin-top: 80px;
  }


  .press-news-loop__heading-row {
    margin-bottom: 35px;
  }


  .press-news-loop__heading-square {
    flex-basis: 28px;

    width: 28px;
    height: 28px;
  }


  .press-news-loop__heading-line {
    margin-top: 22px;
  }

}


/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 767px) {

  .press-news-loop__intro,
  .press-news-loop__list {
    width: min(100% - 30px, 1260px);
  }


  .press-news-loop__intro {
    margin-bottom: 55px;
  }


  .press-news-loop__intro p {
    font-size: 1rem;
  }


  /*
   * Bild und Inhalt untereinander
   */
  .press-news-loop__item {
    grid-template-columns: 1fr;

    gap: 28px;
  }


  .press-news-loop__item + .press-news-loop__item {
    margin-top: 72px;
  }


  .press-news-loop__content {
    padding-top: 0;
  }


  .press-news-loop__meta {
    margin-bottom: 16px;
  }


  .press-news-loop__heading-row {
    margin-bottom: 26px;
  }


  .press-news-loop__heading-square {
    flex: 0 0 24px;

    width: 24px;
    height: 24px;

    margin-right: 10px;
  }


  .press-news-loop__title {
    font-size: clamp(1.65rem, 8vw, 2.1rem);
  }


  /*
   * Auf Mobile keine lange horizontale Linie.
   */
  .press-news-loop__heading-line {
    display: none;
  }


  .press-news-loop__excerpt {
    max-width: none;
  }

}