﻿/* =========================================================
   WISSENSWERTES / NEWS-ÜBERSICHT
   TYPO3 tx_news – ohne Bilder und Datum
   ========================================================= */

.news {
  --news-blue: #294a70;
  --news-blue-dark: #183a5d;
  --news-gold: #c7a76a;
  --news-gold-dark: #a77d31;
  --news-text: #566474;
  --news-border: rgba(41, 74, 112, 0.11);
  --news-soft: #f6f8fa;

  width: 100%;
}

/* =========================================================
   LISTENRASTER
   ========================================================= */

.news .news-list-view {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);

  width: 100%;
  margin: 0;
  padding: 0;
}

/* =========================================================
   EINZELNER BEITRAG
   ========================================================= */

.news .article {
  position: relative;

  display: flex;
  min-width: 0;
  min-height: 310px;
  flex-direction: column;

  margin: 0 !important;
  padding: clamp(2rem, 3vw, 2.75rem) !important;

  border: 1px solid var(--news-border);
  border-top: 3px solid var(--news-gold);
  border-radius: 8px;

  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      var(--news-soft) 100%
    );

  box-shadow:
    0 12px 34px rgba(24, 58, 93, 0.07);

  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.news .article:hover,
.news .article:focus-within {
  border-color: rgba(199, 167, 106, 0.72);

  box-shadow:
    0 22px 48px rgba(24, 58, 93, 0.13);

  transform: translateY(-6px);
}

/* Kleines Dokument-Icon */

.news .article::before {
  display: inline-flex;
  width: 58px;
  height: 58px;

  flex: 0 0 58px;
  align-items: center;
  justify-content: center;

  margin-bottom: 1.7rem;

  border: 1px solid rgba(41, 74, 112, 0.11);
  border-radius: 50%;

  background: #fff;

  box-shadow:
    0 7px 22px rgba(24, 58, 93, 0.07);

  color: var(--news-gold);

  font-family: "Font Awesome 6 Free";
  font-size: 1.25rem;
  font-weight: 900;

  content: "\f15c"; /* file-lines */

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

.news .article:hover::before,
.news .article:focus-within::before {
  background: var(--news-blue);
  color: #fff;

  transform: translateY(-2px);
}

/* =========================================================
   BILD UND DATUM AUSBLENDEN
   ========================================================= */

.news .news-img-wrap,
.news .no-media-element,
.news .footer,
.news .news-list-date {
  display: none !important;
}

/* =========================================================
   ÜBERSCHRIFT
   ========================================================= */

.news .article > .header {
  margin: 0 0 1.25rem !important;
  padding: 0 !important;
}

.news .article > .header h3 {
  margin: 0 !important;
  padding: 0 !important;

  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.news .article > .header h3::after {
  display: none !important;
}

.news .article > .header h3 a {
  color: var(--news-blue);
  text-decoration: none;

  transition: color 0.22s ease;
}

.news .article > .header h3 a:hover,
.news .article > .header h3 a:focus-visible {
  color: var(--news-gold-dark);
}

/* =========================================================
   TEASERTEXT
   ========================================================= */

.news .teaser-text {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.news .teaser-text > div[itemprop="description"] {
  margin-bottom: 2rem;
}

.news .teaser-text p {
  margin: 0 !important;

  color: var(--news-text);

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

/* =========================================================
   WEITERLESEN-LINK
   ========================================================= */

.news .article .more {
  position: relative;

  display: inline-flex;
  min-height: 42px;
  width: fit-content;

  align-items: center;
  gap: 0.75rem;

  margin-top: auto;
  padding: 0.65rem 2rem 0.65rem 0;

  border: 0 !important;
  border-radius: 0 !important;

  background: transparent !important;
  box-shadow: none !important;

  color: var(--news-blue) !important;

  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.2;

  text-decoration: none !important;
  text-transform: uppercase;

  transition:
    color 0.22s ease,
    padding-left 0.22s ease;
}

/* Kleine Goldlinie über dem Link */

.news .article .more::before {
  position: absolute;
  top: -0.65rem;
  left: 0;

  width: 34px;
  height: 2px;

  border-radius: 2px;
  background: var(--news-gold);

  content: "";
}

/* Pfeil */

.news .article .more::after {
  color: var(--news-gold);

  font-family: "Font Awesome 6 Free";
  font-size: 0.72rem;
  font-weight: 900;

  content: "\f061";

  transition: transform 0.22s ease;
}

.news .article .more:hover,
.news .article .more:focus-visible {
  padding-left: 0.3rem;

  background: transparent !important;
  color: var(--news-gold-dark) !important;
}

.news .article .more:hover::after,
.news .article .more:focus-visible::after {
  transform: translateX(5px);
}

/* =========================================================
   FOKUS
   ========================================================= */

.news a:focus-visible {
  border-radius: 2px;
  outline: 3px solid rgba(199, 167, 106, 0.42);
  outline-offset: 4px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {
  .news .news-list-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {
  .news .news-list-view {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .news .article {
    min-height: 0;
    padding: 1.75rem !important;
  }

  .news .article::before {
    width: 52px;
    height: 52px;
    margin-bottom: 1.4rem;

    font-size: 1.1rem;
  }
}

/* =========================================================
   REDUZIERTE BEWEGUNG
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .news .article,
  .news .article::before,
  .news .article .more,
  .news .article .more::after {
    transition-duration: 0.01ms !important;
  }
}