/**************************************/
/* Default styles for news extension */
/**************************************/
.news {
	background-color: #f9f9f9;
	padding: 15px;
}
.news .clear {
	clear: both;
}

.news .nav ul {
	float: left;
	display: inline;
	margin: 0;
}

.news .nav li {
	float: left;
}

.news .nav a {
	float: left;
	display: block;
}

.news .nav:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

.news .article {
	padding-bottom: 15px;
	margin-bottom: 15px;
	background-color: #f9f9f9; /* Hellgrau */
}

.news .article:last-child {
	padding-bottom: 0;
	margin-bottom: 0;
}

.news .article:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

.news .article .news-img-wrap {
	float: center;
	margin: 3px 12px 5px 0;
}

.news .article .news-img-wrap a {
	display: block;
	float: left;
	padding: 4px;
	width: 70px;
}

.news .article .news-img-wrap img {
	float: left;
	height: auto;
	width: auto;
}

.news .article .teaser-text {
	margin: 0 0 10px 0;
}

.news .article h3 {
	margin-bottom: 0;
	color: #c00; /* Dunkelrot – kann jede andere Farbe oder HEX sein */
}


.news .footer {
	clear: both;
	padding: 10px 0 0 0;
	border-top: 1px solid #eee;
	margin-top: 15px;
	color: #130b81;
}

.news .footer p {
	line-height: 1em;
}

.news .footer span {
	display: inline-block;
	padding-right: 8px;
	margin-right: 8px;
	border-right: 1px solid #ddd;
}

.news .footer span:last-child {
	border-right: 0;
}

.news .footer .news-category a {
	text-transform: uppercase;
}

.news .no-news-found {
	color: #DB0202;
	font-style: italic;
}

.news .page-navigation p {
	float: left;
}

.news .page-navigation ul {
	float: right;
}

.news .page-navigation ul li {
	float: left;
	display: block;
	padding: 0 2px;
	background: none;
}

.news .page-navigation ul li a {
	display: block;
}

/* ============================
   News Kategorie-Menü – wie im Screenshot (Buttons)
   ============================ */

/* Liste nebeneinander anordnen */
.news-category-view ul {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;               /* Abstand zwischen den Buttons */
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Einträge neutralisieren */
.news-category-view li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Button-Grundstil (nicht aktiv) */
.news-category-view a,
.news-category-view span {   /* span = aktueller/aktiver Eintrag ohne Link */
  display: inline-block;
  padding: .45rem .9rem;
  border: 1px solid #000;    /* schwarzer Rand */
  border-radius: .4rem;      /* leicht abgerundet (wie im Bild) */
  background: #fff;          /* weißer Hintergrund */
  color: #000;               /* schwarze Schrift */
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  font-size: .95rem;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

/* Hover-Effekt für nicht aktive */
.news-category-view a:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Aktiver Zustand (mehrere mögliche Klassen/Varianten abdecken) */
.news-category-view li.active > a,
.news-category-view li.act > a,
.news-category-view li.current > a,
.news-category-view a[aria-current="page"],
.news-category-view a.is-active,
.news-category-view li.active > span,
.news-category-view li.current > span {
  background: #000;          /* schwarz gefüllt */
  color: #fff;               /* weiße Schrift */
  border-color: #000;
}

/* Optional: zweite Ebene (verschachtelte Kategorien) gleich stylen */
.news-category-view ul ul {
  margin-left: 0;
  gap: .75rem;
}
.news-category-view ul ul li a {
  opacity: .95;
}

/* Alte/ungewünschte Styles neutralisieren */
.news-category-view > ul > li:nth-child(even),
.news-category-view .category-desc {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
}

/* single view */
.news-single .footer {
	margin-bottom: 20px;
	margin-top: 5px;
	padding: 10px 0 0 0;
	border-bottom: 0;
	border-top: 1px solid #eee;
}

.news-single .article .news-img-wrap {
	float: right;
	width: 300px;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 20px;
	padding-right: 20px;
}

.news-single .article .news-img-wrap img {
	float: none;
}

.news-single .teaser-text {
	font-size: 15px;
	color: #888;
}

.news-text-wrap {
	margin-bottom: 10px;
}

.news-img-caption {
	color: #888;
}

/* related news + files */
.news-related-wrap {
	display: table;
	margin-top: 20px;
	width: 100%;
}

.news-related {
	width: 50%;
	padding: 15px;
	border: 1px solid #eee;
	display: table-cell;
}

.news-related ul li {
	line-height: 1em;
	margin-bottom: 12px;
}

.news-related ul li span {
	border-right: 1px solid #DDDDDD;
	display: inline-block;
	margin-right: 8px;
	padding-right: 8px;
	color: #888;
}

.news-related ul li span:last-child {
	border-right: 0;
	padding-right: 0;
}

.news-related h4 {
	margin-bottom: 10px;
}

.news-related-files ul li {
	margin-bottom: 20px;
}

.news-related-files .news-related-files-link .jpg {
	background-position: 0 0;
}

.news-clear {
	clear: both;
}
