@charset "UTF-8";

/* ==========================================================================
   KROON Bestattungen: tt_news, Liste und Einzelansicht
   Datei: fileadmin/template/css/news.css  (als UTF-8 speichern)
   ========================================================================== */

/* ---------- Liste: Bild links, Text rechts, Meldungen untereinander ---------- */

.news-list-container {
  margin: 0 0 2em 0;
  padding: 0;
  display: block;
}

.news-list-item {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  column-gap: 26px;
  align-content: start;
  margin: 0 0 24px;
  padding: 0;
  background: #fff;
  border: 1px solid #e4dcc6;
}
.news-list-item hr.clearer { display: none; }

/* Bild: links ueber die komplette Hoehe der Karte, Ausschnitt per object-fit */
.news-list-item { min-height: 240px; }
.news-list-item > img,
.news-list-item > a img {
  display: block;
  float: none;
  margin: 0 !important;
  border: 0;
  width: 100%;
  object-fit: cover;
  object-position: center top;
}
.news-list-item > img {
  grid-column: 1;
  grid-row: 1 / span 4;
  align-self: stretch;
  height: 100%;
  min-height: 240px;
}
.news-list-item > a {
  grid-column: 1;
  grid-row: 1 / span 4;
  align-self: stretch;
  display: block;
  position: relative;
  float: none;
}
.news-list-item > a img {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
}

.news-list-date {
  grid-column: 2;
  grid-row: 1;
  float: none;
  padding: 20px 20px 0 0;
  font: 12px/1.2 open_sanslight, Arial, sans-serif;
  letter-spacing: .1em;
  color: #777;
}

#main_col .news-list-container .news-list-item h2,
#content_left .news-list-container .news-list-item h2 {
  grid-column: 2;
  grid-row: 2;
  margin: 6px 20px 10px 0;
  padding: 0;
  min-height: 0;
  font: normal 28px/1.15 cormorant_scregular, Georgia, serif;
  color: #17496d;
}
#main_col .news-list-container .news-list-item h2 a,
#content_left .news-list-container .news-list-item h2 a {
  font-size: inherit;
  font-family: inherit;
  font-style: normal;
  line-height: inherit;
  color: inherit;
  text-decoration: none;
}
.news-list-container .news-list-item h2 a:hover { color: #b8902a; }

.news-list-item p {
  grid-column: 2;
  grid-row: 3;
  margin: 0 20px 8px 0;
  padding: 0;
  text-indent: 0;
  font: 16px/1.6 open_sanslight, Arial, sans-serif;
  color: #2f2f2f;
}

/* "[mehr]" ersetzen durch "Weiterlesen →" */
.news-list-morelink {
  grid-column: 2;
  grid-row: 4;
  display: block;
  margin: 4px 20px 20px 0;
  padding: 0;
}
.news-list-morelink a { font-size: 0; text-decoration: none; }
.news-list-morelink a:after { content: "Weiterlesen \2192"; font-size: 15px; color: #b8902a; }
.news-list-morelink a:hover:after { text-decoration: underline; }

/* Meldung ohne Bild: Text ueber die volle Breite */
.news-list-item:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.news-list-item:not(:has(img)) .news-list-date,
.news-list-item:not(:has(img)) h2,
.news-list-item:not(:has(img)) p,
.news-list-item:not(:has(img)) .news-list-morelink {
  grid-column: 1;
  margin-left: 20px;
}

/* Handy: Bild oben, Text darunter */
@media (max-width: 640px) {
  .news-list-item { grid-template-columns: minmax(0, 1fr); }
  .news-list-item { min-height: 0; }
  .news-list-item > img { grid-column: 1; grid-row: 1; height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .news-list-item > a { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 10; }
  .news-list-date { grid-column: 1; grid-row: 2; padding-left: 18px; }
  #main_col .news-list-container .news-list-item h2,
  #content_left .news-list-container .news-list-item h2 { grid-column: 1; grid-row: 3; margin-left: 18px; }
  .news-list-item p { grid-column: 1; grid-row: 4; margin-left: 18px; }
  .news-list-morelink { grid-column: 1; grid-row: 5; margin-left: 18px; }
}


/* ---------- Einzelansicht ---------- */

.news-single-item {
  display: flow-root;            /* schließt das schwebende Bild ein */
  margin: 10px 0 2em;
  padding: 0;
  background: none;
  border: 0;
}
.news-single-item hr.cl-right { display: none; }
.news-single-item > h1 { display: none; }   /* Titel steht schon als Seitenüberschrift */
.news-single-item > a { display: none; }    /* vorherige/nächste Meldung */

.news-single-rightbox {
  float: none;
  width: auto;
  margin: 0 0 18px;
  padding: 0;
  text-align: left;
  font: 12px/1.2 open_sanslight, Arial, sans-serif;
  letter-spacing: .1em;
  color: #777;
}

.news-single-img {
  float: left;
  width: 260px;
  margin: 0 28px 16px 0;
  padding: 0;
}
.news-single-img img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 !important;
  float: none;
  border: 0;
}

.news-single-item > p {
  margin: 0 0 1em;
  padding: 0;
  font: 16px/1.65 open_sanslight, Arial, sans-serif;
  color: #2f2f2f;
}

/* Zurück-Link im Stil von "Weiterlesen →", Pfeil nach links */
.news-single-backlink {
  clear: both;
  margin: 22px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #e4dcc6;
}
.news-single-backlink a { font-size: 0; text-decoration: none; }
.news-single-backlink a:after {
  content: "\2190  Zurück";
  font: 15px/1.4 open_sanslight, Arial, sans-serif;
  color: #b8902a;
}
.news-single-backlink a:hover:after { text-decoration: underline; }

@media (max-width: 700px) {
  .news-single-img { float: none; width: 100%; margin: 0 0 16px; }
}