/* =========================================
   Netzbetreiberinfo – KOMPLETTES Custom CSS
   (Hero/Teaser, Top-Story hero4, Featured,
    Meistgelesen, Newsflash, Category-Module,
    Tags, Breadcrumbs, Pagination, Utilities,
    Main-Stream, Tag- und Suchseiten,
    Artikeldetailseiten)
   ========================================= */

/* -----------------------------
   0) Link-Verhalten vereinheitlichen
   ----------------------------- */
.nb-hero .nb-title a,
.nb-teaser .nb-title a,
.nb-featured .card-title a,
.nb-card .card-title a,
.nb-popular .nb-title a,
.nb-news .nb-title a,
.nb-catmod .nb-title a {
  color: inherit;
  text-decoration: none;
}
.nb-hero .nb-title a:visited,
.nb-teaser .nb-title a:visited,
.nb-featured .card-title a:visited,
.nb-card .card-title a:visited,
.nb-popular .nb-title a:visited,
.nb-news .nb-title a:visited,
.nb-catmod .nb-title a:visited {
  color: inherit;
}
.nb-hero .nb-title a:hover,
.nb-teaser .nb-title a:hover,
.nb-featured .card-title a:hover,
.nb-card .card-title a:hover,
.nb-popular .nb-title a:hover,
.nb-news .nb-title a:hover,
.nb-catmod .nb-title a:hover {
  text-decoration: underline;
}

/* -----------------------------
   1) HERO (gross) – Overlay-Variante
   ----------------------------- */

.nb-hero4.hero-card .nb-hero.card {
  border-radius: 1rem;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
.nb-hero4.hero-card .nb-hero .nb-img-wrap::after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
}
.nb-hero4.is-centered .nb-teaser .nb-overlay {
  text-align: center;
}

.nb-hero.card {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
.nb-hero .nb-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 21/9;
}
@media (max-width: 991.98px) {
  .nb-hero .nb-img-wrap { aspect-ratio: 16/9; }
}
.nb-hero .nb-img-wrap > .img-link {
  display: block;
  width: 100%;
  height: 100%;
}
.nb-hero .nb-img-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.nb-hero .nb-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.nb-hero .nb-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.1rem 1.2rem;
  color: #fff;
  z-index: 2;
}
.nb-hero .nb-cat .badge {
  background: #0d6efd;
  text-decoration: none;
}
.nb-hero .nb-title {
  margin: .35rem 0 .3rem;
  font-size: clamp(1.25rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.2;
}
.nb-hero .nb-title a {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.nb-hero .nb-meta {
  font-size: .95rem;
  opacity: .95;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}

.com-content-featured.is-centered .nb-hero .nb-overlay,
.nb-hero4.is-centered .nb-hero .nb-overlay { text-align: center; }

/* -----------------------------
   2) TEASER (klein) – Overlay-Variante
   ----------------------------- */
.nb-teaser.card {
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.nb-teaser .nb-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.nb-teaser .nb-img-wrap > .img-link {
  display: block;
  width: 100%;
  height: 100%;
}
.nb-teaser .nb-img-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.nb-teaser .nb-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.nb-teaser .nb-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: .8rem .9rem;
  color: #fff;
  z-index: 2;
}
.nb-teaser .nb-cat .badge { background: #0d6efd; }
.nb-teaser .nb-title {
  margin: .25rem 0 .2rem;
  font-size: 1.05rem;
  line-height: 1.25;
}
.nb-teaser .nb-title a {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.nb-teaser .nb-meta {
  font-size: .82rem;
  opacity: .95;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.nb-hero4.is-centered .nb-teaser .nb-overlay { text-align: center; }

/* -----------------------------
   3) TOP STORY – Modul Wrapper (hero4)
   ----------------------------- */
.nb-hero4.hero-card .nb-hero.card {
  border-radius: 1rem;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
.nb-hero4.hero-card .nb-hero .nb-img-wrap::after {
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%);
}

/* -----------------------------
   4) Featured/Blog – Karten
   ----------------------------- */
.nb-featured.card {
  overflow: hidden;
  border-radius: .75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.nb-featured .nb-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 21/9;
}
@media (max-width: 991.98px) { .nb-featured .nb-img-wrap { aspect-ratio: 16/9; } }
.nb-featured .nb-img-wrap > a.img-link { display: block; width: 100%; height: 100%; }
.nb-featured .nb-img-wrap > a.img-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nb-featured .nb-badge { position: absolute; top: .75rem; left: .75rem; z-index: 2; }
.nb-featured .card-body > .mb-2 > .badge { display: inline-block; margin-top: .125rem; }
.nb-featured .card-title { margin-top: .4rem; margin-bottom: .5rem; }
.nb-featured .text-muted.small { display: flex; gap: .35rem; align-items: center; opacity: .85; }

.nb-card {
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.nb-card .nb-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.nb-card .nb-img-wrap > a.img-link { display: block; width: 100%; height: 100%; }
.nb-card .nb-img-wrap > a.img-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nb-card .nb-badge { position: absolute; top: .5rem; left: .5rem; z-index: 2; }
.nb-card .card-title { margin-top: .35rem; }
.nb-card .text-muted.small { display: flex; gap: .35rem; align-items: center; opacity: .85; }

/* LIST-VIEW – horizontale Karten */
.com-content-featured.list-view .nb-card,
.category-blog.list-view .nb-card {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  min-height: 140px;
}
.com-content-featured.list-view .nb-card .nb-img-wrap,
.category-blog.list-view .nb-card .nb-img-wrap {
  flex: 0 0 32%;
  aspect-ratio: 4/3;
  border-top-right-radius: 0;
  border-bottom-left-radius: .5rem;
}
@media (max-width: 575.98px) {
  .com-content-featured.list-view .nb-card,
  .category-blog.list-view .nb-card { flex-direction: column; }
  .com-content-featured.list-view .nb-card .nb-img-wrap,
  .category-blog.list-view .nb-card .nb-img-wrap { flex: 0 0 auto; aspect-ratio: 16/9; }
}

/* IS-CENTERED */
.com-content-featured.is-centered .nb-featured .card-body,
.category-blog.is-centered .nb-card .card-body { text-align: center; }
.com-content-featured.is-centered .nb-featured .text-muted.small,
.category-blog.is-centered .nb-card .text-muted.small { justify-content: center; }

/* -----------------------------
   5) Meistgelesen (mod_articles_popular)
   ----------------------------- */
.nb-popular .nb-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  position: relative;
}
.nb-popular .nb-thumb {
  width: 72px;
  min-width: 72px;
  aspect-ratio: 1/1;
  border-radius: .375rem;
  overflow: hidden;
  background: #f5f5f5;
  position: relative;
  z-index: 2;
  border: 1px solid #e5e7eb;
}
.nb-popular .nb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nb-popular .nb-title a { color: inherit; }
.nb-popular .nb-meta { font-size: .825rem; color: #6c757d; }
@media (min-width: 768px) {
  .nb-popular .nb-thumb { width: 84px; min-width: 84px; }
}
.nb-popular.list-view .nb-thumb { width: 100px; min-width: 100px; }
@media (min-width: 768px) {
  .nb-popular.list-view .nb-thumb { width: 120px; min-width: 120px; }
}
.nb-popular.list-view .nb-title a { line-height: 1.25; display: inline-block; }

/* 5a) Meistgelesen-Clone (mod_articles mit Klasse nb-popular-clone) */
.nb-popular-clone .mod-articles-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nb-popular-clone .mod-articles-items > li {
  margin: 0 0 .75rem 0;
  padding-bottom: .75rem;
  border-bottom: 1px solid #e5e5e5;
}
.nb-popular-clone .mod-articles-items > li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.nb-popular-clone .mod-articles-item-content {
  display: grid;
  grid-template-columns: 63px 1fr;
  column-gap: .75rem;
  grid-template-areas:
    "thumb title"
    "thumb meta";
  align-items: flex-start;
}
@media (min-width: 768px) {
  .nb-popular-clone .mod-articles-item-content {
    grid-template-columns: 75px 1fr;
  }
}
.nb-popular-clone .mod-articles-item-content > figure.pull-mod-articles-image {
  grid-area: thumb;
  margin: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: .375rem;
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid #e5e7eb;
}
.nb-popular-clone .mod-articles-item-content > figure.pull-mod-articles-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.nb-popular-clone .mod-articles-item-content:not(:has(figure.pull-mod-articles-image))::before {
  content: "";
  grid-area: thumb;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: .375rem;
  background: #f5f5f5;
  border: 1px solid #e5e7eb;
}
.nb-popular-clone .mod-articles-item-content > h4.mod-articles-title {
  grid-area: title;
  margin: 0 0 .15rem 0;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.3;
}
.nb-popular-clone .mod-articles-title a {
  color: inherit;
  text-decoration: none;
}
.nb-popular-clone .mod-articles-title a:hover {
  text-decoration: underline;
}
.nb-popular-clone .mod-articles-item-content > dl {
  grid-area: meta;
  display: inline-flex;
  gap: .35rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: #6c757d;
  margin: 0;
}
.nb-popular-clone .mod-articles-item-content dt.article-info-term,
.nb-popular-clone .mod-articles-item-content .icon-calendar,
.nb-popular-clone .mod-articles-item-content .icon-folder-open {
  display: none;
}
.nb-popular-clone .mod-articles-item-content > p {
  display: none;
}

/* -----------------------------
   6) NEWSFLASH – Bridge (nb, em, Core)
   ----------------------------- */
.list-view.is-centered .nb-news .nb-item,
.list-view.is-centered .mod-articlesnews.newsflash .mod-articlesnews__item,
.list-view.is-centered .em-list.mod-articlesnews .em-item > .em-media {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  align-items: flex-start;
}
.list-view.is-centered .nb-news .nb-thumb,
.list-view.is-centered .mod-articlesnews.newsflash .newsflash-image,
.list-view.is-centered .mod-articlesnews.newsflash figure {
  align-self: start;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: .5rem;
  background: #f5f5f5;
}
.list-view.is-centered .nb-news .nb-thumb img,
.list-view.is-centered .mod-articlesnews.newsflash .newsflash-image img,
.list-view.is-centered .mod-articlesnews.newsflash figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.list-view.is-centered .em-list.mod-articlesnews .em-item .em-img {
  align-self: start;
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: .5rem;
  overflow: hidden;
  background: #f5f5f5;
}
.list-view.is-centered .nb-news .nb-body { grid-column: 2; }
.list-view.is-centered .mod-articlesnews.newsflash .category-name,
.list-view.is-centered .mod-articlesnews.newsflash .newsflash-date,
.list-view.is-centered .mod-articlesnews.newsflash .newsflash-title,
.list-view.is-centered .mod-articlesnews.newsflash .introtext,
.list-view.is-centered .em-list.mod-articlesnews .em-item .em-body {
  grid-column: 2;
}
.list-view.is-centered .nb-news .nb-meta,
.list-view.is-centered .em-list.mod-articlesnews .em-item .em-meta {
  display: inline-flex;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .825rem;
  color: #6c757d;
  margin-bottom: .2rem;
}
.list-view.is-centered .nb-news .nb-cat a,
.list-view.is-centered .em-list.mod-articlesnews .em-item .em-badge {
  text-transform: uppercase;
  letter-spacing: .02em;
  font-weight: 600;
  text-decoration: none;
}
.list-view.is-centered .mod-articlesnews.newsflash .category-name,
.list-view.is-centered .mod-articlesnews.newsflash .newsflash-date {
  display: inline-flex;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .825rem;
  color: #6c757d;
  margin-bottom: .2rem;
}
.list-view.is-centered .mod-articlesnews.newsflash .category-name a {
  text-transform: uppercase;
  letter-spacing: .02em;
  font-weight: 600;
  text-decoration: none;
}
.list-view.is-centered .nb-news .nb-title,
.list-view.is-centered .em-list.mod-articlesnews .em-item .em-head,
.list-view.is-centered .mod-articlesnews.newsflash .newsflash-title {
  margin: 0 0 .15rem;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
}
.list-view.is-centered .nb-news .nb-title a,
.list-view.is-centered .em-list.mod-articlesnews .em-item .em-head a,
.list-view.is-centered .mod-articlesnews.newsflash .newsflash-title a {
  color: inherit;
  text-decoration: none;
}
.list-view.is-centered .nb-news .nb-title a:hover,
.list-view.is-centered .em-list.mod-articlesnews .em-item .em-head a:hover,
.list-view.is-centered .mod-articlesnews.newsflash .newsflash-title a:hover {
  text-decoration: underline;
}
.list-view.is-centered .nb-news .nb-intro,
.list-view.is-centered .em-list.mod-articlesnews .em-item .em-teaser,
.list-view.is-centered .mod-articlesnews.newsflash .introtext {
  margin: 0;
  font-size: .95rem;
  line-height: 1.6;
  color: #374151;
}

:root {
  --nb-divider: #e9ecef;
  --nb-item-vspace: .75rem;
}
.list-view.is-centered .nb-news .nb-item,
.list-view.is-centered .mod-articlesnews.newsflash .mod-articlesnews__item,
.list-view.is-centered .em-list.mod-articlesnews .em-item {
  padding-bottom: var(--nb-item-vspace);
  margin-bottom: var(--nb-item-vspace);
  border-bottom: 1px solid var(--nb-divider);
}
.list-view.is-centered .nb-news .nb-item:last-child,
.list-view.is-centered .mod-articlesnews.newsflash .mod-articlesnews__item:last-child,
.list-view.is-centered .em-list.mod-articlesnews .em-item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
@media (min-width: 992px) {
  .list-view.is-centered .nb-news .nb-item,
  .list-view.is-centered .mod-articlesnews.newsflash .mod-articlesnews__item,
  .list-view.is-centered .em-list.mod-articlesnews .em-item > .em-media {
    grid-template-columns: 170px 1fr;
  }
}
@media (max-width: 768px) {
  .list-view.is-centered .nb-news .nb-item,
  .list-view.is-centered .mod-articlesnews.newsflash .mod-articlesnews__item,
  .list-view.is-centered .em-list.mod-articlesnews .em-item > .em-media {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------
   7) Artikeldetailseiten
   ----------------------------- */
.view-article .com-content-article.item-page.nb-article-root {
  max-width: var(--nbi-max-width, 1260px);
  margin: 0 auto 2.5rem;
}
.view-article .nb-article-root .com-content-article__body,
.view-article .nb-article-root .article-body {
  font-size: 18px;
  line-height: 1.7;
  color: #333;
}
.view-article .nb-article-root p,
.view-article .nb-article-root li {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  text-align: left !important;
  -webkit-hyphens: auto;
  hyphens: auto;
  word-wrap: break-word;
}
.view-article .nb-article-root p:empty {
  display: none;
}
.view-article .nb-article-root .page-header,
.view-article .nb-article-root .page-header * {
  text-align: left !important;
}
.view-article .nb-article-root .page-header {
  border-left: 4px solid #0d6efd;
  padding-left: .9rem;
  margin-bottom: 1.5rem;
}
.view-article .nb-article-root .page-header h1,
.view-article .nb-article-root .page-header h2 {
  font-size: clamp(1.7rem, 1.25rem + 1.2vw, 2.3rem);
  line-height: 1.18;
  margin-top: 0;
  margin-bottom: .75rem;
  font-weight: 800;
  color: #0a3d6b;
  letter-spacing: -.3px;
  -webkit-hyphens: none;
  hyphens: none;
}
.view-article .nb-article-root h2,
.view-article .nb-article-root h3 {
  margin-top: 1.5em;
  margin-bottom: .5em;
  font-weight: 700;
  color: #0a3d6b;
  -webkit-hyphens: none;
  hyphens: none;
  text-align: left !important;
}
.view-article .nb-article-root h3 { font-size: 1.3rem; }

/* Titel-Split (via JS generiert) */
.nb-article-root .nb-article-title { margin-bottom: .75rem; }
.nb-article-root .nb-article-title-prefix {
  display: inline-block;
  font-size: 0.8em;
  font-weight: 500;
  color: #0d6efd;
  margin-bottom: .2rem;
}
.nb-article-root .nb-article-title-main {
  display: inline-block;
  font-size: 1em;
  font-weight: 700;
}

/* Einleitungstext */
.view-article .nb-article-root .desc-article p,
.view-article .nb-article-root .nb-article-intro {
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 1rem;
  text-align: left !important;
}
@media (max-width: 575.98px) {
  .view-article .nb-article-root .desc-article p,
  .view-article .nb-article-root .nb-article-intro { font-size: 1.05em; }
}
.view-article .nb-article-root.nb-no-intro-highlight .desc-article p,
.view-article .nb-article-root.nb-no-intro-highlight .nb-article-intro {
  font-size: inherit;
  font-weight: inherit;
}

/* Metadaten */
.view-article .nb-article-root dl.article-info {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .5rem;
  align-items: center;
  justify-content: flex-start;
  font-size: .85rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 20px;
  text-align: left !important;
}
.view-article .nb-article-root dl.article-info,
.view-article .nb-article-root dl.article-info *,
.view-article .nb-article-root .article-info,
.view-article .nb-article-root .article-info * {
  margin: 0;
  text-align: left !important;
}
.view-article .nb-article-root dl.article-info dd.category-name a {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #0d6efd;
  color: #fff;
  text-decoration: none;
}
.view-article .nb-article-root dl.article-info dd.category-name a:hover {
  filter: brightness(.95);
}

/* AutoMeta – Datum + Lesezeit */
.view-article .nb-article-root .nb-autometa-articlemeta {
  display: block;
  text-align: left;
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}
.view-article .nb-article-root .nb-autometa-articlemeta .nb-sep {
  margin: 0 0.35rem;
  opacity: 0.7;
}

/* Hero-Bild oben */
.view-article .nb-article-root .full-image { margin: 20px 0; }
.view-article .nb-article-root .full-image figure {
  position: relative;
  margin: 0;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  background: #ffffff;
  overflow: hidden;
}
.view-article .nb-article-root .full-image figure.pull-left { float: none !important; }
.view-article .nb-article-root .full-image figure::before {
  content: "";
  display: block;
  width: 100%;
  padding-top: 56.25%;
  background: #f5f5f5;
}
.view-article .nb-article-root .full-image figure > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.view-article .nb-article-root .full-image figure > figcaption,
.view-article .nb-article-root .full-image figure > .caption,
.view-article .nb-article-root .full-image figure > figcaption.caption {
  position: relative !important;
  z-index: 2;
  opacity: 1 !important;
  visibility: visible !important;
  text-indent: 0 !important;
  clip: auto !important;
  text-align: left !important;
  background: #ffffff !important;
  color: #6b7280 !important;
  margin: 0;
  padding: .55rem .9rem .65rem .9rem;
  font-size: .85rem;
  line-height: 1.4;
  font-weight: 400;
  font-style: normal;
  text-shadow: none;
  text-transform: none !important;
}

/* Bilder im Artikeltext */
.view-article .nb-article-root .nb-article-figure,
.view-article .nb-article-root .article-body figure {
  margin: 20px 0;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
}
.view-article .nb-article-root .nb-article-figure img,
.view-article .nb-article-root .article-body figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}
.view-article .nb-article-root .article-body p > img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 20px 0;
}
.view-article .nb-article-root .article-body figure figcaption,
.view-article .nb-article-root .article-body .img_caption,
.view-article .nb-article-root .article-body .img_caption p {
  text-align: left !important;
  background: transparent !important;
  color: #6b7280 !important;
  margin: 0;
  padding: .55rem .9rem .65rem .9rem;
  font-size: .85rem;
  line-height: 1.4;
  font-weight: 400;
  font-style: normal;
  text-shadow: none;
  text-transform: none !important;
}

/* Navigation vorher/nächster Artikel */
.view-article .pagenavigation,
.view-article .pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.view-article .pagenavigation li,
.view-article .pager li { list-style: none; }
.view-article .pagenavigation a,
.view-article .pager a {
  display: inline-block;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  font-size: .9rem;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .2s ease;
}
.view-article .pagenavigation a:hover,
.view-article .pager a:hover {
  background-color: #e2e6ea;
  border-color: #adb5bd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Key-Facts Box */
.view-article .nb-article-root blockquote.nb-keyfacts {
  margin: 1.75rem 0;
  padding: 1.5rem 1.75rem;
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
  font-style: normal;
  color: #111827;
  box-shadow: 0 10px 30px rgba(15,23,42,0.04);
}
.view-article .nb-article-root blockquote.nb-keyfacts .nb-keyfacts-title {
  margin: -1.5rem -1.75rem 1rem;
  padding: 0.7rem 1.75rem;
  display: block;
  background: linear-gradient(90deg, #0f4c81, #1e293b);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.view-article .nb-article-root blockquote.nb-keyfacts .nb-keyfacts-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.view-article .nb-article-root blockquote.nb-keyfacts .nb-keyfacts-list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.4rem;
  margin: 0;
  line-height: 1.5;
  border-bottom: 1px solid #e5e7eb;
}
.view-article .nb-article-root blockquote.nb-keyfacts .nb-keyfacts-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.view-article .nb-article-root blockquote.nb-keyfacts .nb-keyfacts-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  top: 0.6rem;
  font-weight: 600;
  color: #0f4c81;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .view-article .nb-article-root blockquote.nb-keyfacts { padding: 1.25rem 1.4rem; }
  .view-article .nb-article-root blockquote.nb-keyfacts .nb-keyfacts-title {
    margin: -1.25rem -1.4rem 0.85rem;
    padding: 0.6rem 1.4rem;
    font-size: 1.05rem;
  }
}

/* Zitatbox */
figure.nb-quote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem 1.25rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15,23,42,0.08);
  position: relative;
}
figure.nb-quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0f4c81, #1e293b);
}
figure.nb-quote::after {
  content: "«";
  position: absolute;
  right: 1.5rem;
  top: 0.6rem;
  font-size: 3rem;
  line-height: 1;
  color: rgba(15,23,42,0.12);
  font-family: Georgia, "Times New Roman", serif;
}
figure.nb-quote > blockquote {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 500;
}
figure.nb-quote > figcaption {
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.9rem;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: baseline;
}
figure.nb-quote .nb-quote-name { font-weight: 600; color: #111827; }
figure.nb-quote .nb-quote-role::before,
figure.nb-quote .nb-quote-company::before { content: " • "; font-weight: 400; }
@media (max-width: 640px) {
  figure.nb-quote { padding: 1.25rem 1.5rem 1rem; }
  figure.nb-quote::after { font-size: 2.3rem; right: 1rem; top: 0.4rem; }
}

/* Pullquote */
.nb-pullquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid #0f4c81;
  background: #f3f4f6;
  font-size: 0.98rem;
  line-height: 1.6;
  font-weight: 500;
  font-style: italic;
  color: #111827;
}

/* -----------------------------
   8) Tag-Seiten
   Echte Joomla HTML-Struktur:
   li.list-group-item > h3 > a (Titel)
                      > a > img (Bild, optional)
                      > span.tag-body > p (Teaser)
   ----------------------------- */

/* Filter-Leiste */
.view-tag .com-tags-tags__filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.view-tag .com-tags-tags__filter input[type="text"] {
  padding: .4rem .75rem;
  border: 1px solid var(--nbi-color-border, #e4e8ef);
  border-radius: var(--nbi-radius, 6px);
  font-size: .875rem;
  outline: none;
  min-width: 200px;
}
.view-tag .com-tags-tags__filter input[type="text"]:focus {
  border-color: var(--nbi-color-primary-mid, #1a5fa8);
}
.view-tag .com-tags-tags__filter .btn { font-size: .8125rem; padding: .4rem .875rem; }
.view-tag .com-tags-tags__filter .filter-search-lbl { display: none; }
/* Limit-Wähler (Anzeige #) ausblenden — Editorial-Look */
.view-tag .btn-group.float-end { display: none; }

/* Listen-Container: Bootstrap-Styles zurücksetzen */
.view-tag .com-tags-tag__category.list-group {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

/* Einzelner Artikel-Eintrag ── Grid: Bild links, Inhalt rechts */
.view-tag .com-tags-tag__category > li.list-group-item {
  display: grid;
  grid-template-columns: 210px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "img title"
    "img body";
  column-gap: 1.25rem;
  align-items: start;
  /* Bootstrap-Overrides */
  padding: 1.1rem 0 !important;
  margin: 0;
  border: none !important;
  border-bottom: 1px solid var(--nbi-color-border, #e4e8ef) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.view-tag .com-tags-tag__category > li.list-group-item:last-child {
  border-bottom: none !important;
}

/* Bild-Link (direktes Kind von li, enthält <img>) */
.view-tag .com-tags-tag__category > li.list-group-item > a {
  grid-area: img;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--nbi-radius, 6px);
  overflow: hidden;
  background: var(--nbi-color-bg, #f4f6fb);
  box-shadow: var(--nbi-shadow-sm);
  align-self: start;
  text-decoration: none;
}
.view-tag .com-tags-tag__category > li.list-group-item > a > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.view-tag .com-tags-tag__category > li.list-group-item > a:hover > img {
  transform: scale(1.03);
}

/* Titel (h3 direkt in li) */
.view-tag .com-tags-tag__category > li.list-group-item > h3 {
  grid-area: title;
  margin: 0 0 .375rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--nbi-color-text, #1a1d23);
  -webkit-hyphens: auto;
  hyphens: auto;
}
.view-tag .com-tags-tag__category > li.list-group-item > h3 a {
  color: inherit;
  text-decoration: none;
}
.view-tag .com-tags-tag__category > li.list-group-item > h3 a:hover {
  color: var(--nbi-color-primary-mid, #1a5fa8);
  text-decoration: none;
}

/* Teaser-Text (span.tag-body) */
.view-tag .com-tags-tag__category > li.list-group-item > .tag-body {
  grid-area: body;
  display: block;
  align-self: start;
}
.view-tag .com-tags-tag__category > li.list-group-item > .tag-body p {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--nbi-color-muted, #6b7280);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Einträge OHNE Bild: Platzhalter damit Spaltenbreite erhalten bleibt */
.view-tag .com-tags-tag__category > li.list-group-item:not(:has(> a))::before {
  content: "";
  grid-area: img;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--nbi-radius, 6px);
  background: var(--nbi-color-bg, #f4f6fb);
  align-self: start;
}

/* Tablet */
@media (max-width: 767.98px) {
  .view-tag .com-tags-tag__category > li.list-group-item {
    grid-template-columns: 160px 1fr;
    column-gap: 1rem;
  }
}

/* Mobile: Stack */
@media (max-width: 575.98px) {
  .view-tag .com-tags-tag__category > li.list-group-item {
    grid-template-columns: 1fr;
    grid-template-areas: "img" "title" "body";
    row-gap: .5rem;
  }
  .view-tag .com-tags-tag__category > li.list-group-item > a {
    margin-bottom: .25rem;
  }
  .view-tag .com-tags-tag__category > li.list-group-item:not(:has(> a))::before {
    display: none;
  }
}

/* -----------------------------
   9) Suche
   ----------------------------- */
.view-search .com-finder .search-results .result-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  column-gap: 1.25rem;
  align-items: flex-start;
  padding: 1rem 0;
  margin: 0;
  border-bottom: 1px solid #e9ecef;
}
.view-search .com-finder .search-results .result-item:last-child { border-bottom: 0; }
.view-search .com-finder .search-results .result-item .row { display: contents; grid-column: auto; margin: 0; }
.view-search .com-finder .search-results .result-item .row > [class*="col-"] { padding: 0; }
.view-search .com-finder .search-results .result-item .row > .col-12.col-md-3 { grid-column: 1; grid-row: 1 / span 3; }
.view-search .com-finder .search-results .result-item .result__image {
  width: 220px;
  aspect-ratio: 16 / 9;
  border-radius: .5rem;
  overflow: hidden;
  background: #f5f5f5;
}
.view-search .com-finder .search-results .result-item .result__image img {
  width: 100%; height: 100%; display: block; object-fit: cover;
}
.view-search .com-finder .search-results .result-item .row > .col-12.col-md-9 { grid-column: 2; align-self: start; }
.view-search .com-finder .search-results .result-item .result-title {
  margin: 0 0 .25rem;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
  color: #111827;
}
.view-search .com-finder .search-results .result-item .result-title a { color: inherit; text-decoration: none; }
.view-search .com-finder .search-results .result-item .result-title a:hover { text-decoration: underline; }
.view-search .com-finder .search-results .result-item .result-taxonomy {
  margin: 0 0 .35rem;
  font-size: .8rem;
  color: #6c757d;
}
.view-search .com-finder .search-results .result-item .result-taxonomy .badge {
  background: #eef2f7;
  color: #374151;
  border-radius: 999px;
  font-weight: 500;
}
.view-search .com-finder .search-results .result-item .result-text {
  margin: 0 0 .25rem; font-size: .95rem; line-height: 1.6; color: #374151;
}
.view-search .com-finder .search-results .result-item .result-date { font-size: .8rem; color: #6c757d; }
.view-search .com-finder .search-results .result-item .result-url {
  margin-top: .25rem; font-size: .8rem; color: #9ca3af; word-break: break-all;
}
.view-search .com-finder .search-results .result-item:not(:has(.result__image img))::before {
  content: "";
  display: block;
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 220px;
  aspect-ratio: 16 / 9;
  border-radius: .5rem;
  background: #f3f4f6;
}
@media (max-width: 575.98px) {
  .view-search .com-finder .search-results .result-item { grid-template-columns: 1fr; }
  .view-search .com-finder .search-results .result-item .row { display: block; }
  .view-search .com-finder .search-results .result-item .row > .col-12.col-md-3,
  .view-search .com-finder .search-results .result-item .row > .col-12.col-md-9 { grid-column: auto; grid-row: auto; }
  .view-search .com-finder .search-results .result-item .result__image,
  .view-search .com-finder .search-results .result-item:not(:has(.result__image img))::before { width: 100%; margin-bottom: .75rem; }
  .view-search .com-finder .search-results .result-item .result-title,
  .view-search .com-finder .search-results .result-item .result-taxonomy,
  .view-search .com-finder .search-results .result-item .result-url { grid-column: 1; }
}

/* -----------------------------
   10) MAIN-STREAM (Neueste Nachrichten)
   ----------------------------- */
.main-stream .module-title { margin-bottom: .75rem; }
.main-stream .module-title span { font-size: 1.3rem; font-weight: 700; }

.main-stream .mod-articles-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.main-stream .mod-articles-items > li {
  margin: 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e9ecef;
}
.main-stream .mod-articles-items > li:last-child { border-bottom: 0; padding-bottom: 0; }

.main-stream .mod-articles-item-content {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "img meta"
    "img title"
    "img intro";
  column-gap: .8rem;
  row-gap: .04rem;
  align-items: flex-start;
}
.main-stream .mod-articles-item-content dt.article-info-term { display: none; }
.main-stream .mod-articles-item-content > figure.pull-mod-articles-image {
  grid-area: img;
  margin: 0;
  border-radius: .5rem;
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid #e5e7eb;
  aspect-ratio: 1 / 1;
}
.main-stream .mod-articles-item-content > figure.pull-mod-articles-image img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.main-stream .mod-articles-item-content:not(:has(figure.pull-mod-articles-image))::before {
  content: "";
  grid-area: img;
  width: 100%;
  height: 100%;
  border-radius: .5rem;
  background: #f5f5f5;
  border: 1px solid #e5e7eb;
  aspect-ratio: 1 / 1;
}
.main-stream .mod-articles-item-content > dl {
  grid-area: meta;
  display: inline-flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: .02rem 0 .04rem;
  font-size: .84rem;
  color: #6c757d;
}
.main-stream .mod-articles-item-content dd { margin: 0; }
.main-stream .mod-articles-item-content .icon-folder-open,
.main-stream .mod-articles-item-content .icon-calendar { display: none; }
.main-stream .mod-articles-item-content .mod-articles-category a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-weight: 600;
}
.main-stream .mod-articles-title {
  grid-area: title;
  margin: .02rem 0 .06rem;
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.25;
}
.main-stream .mod-articles-title a { color: inherit; text-decoration: none; }
.main-stream .mod-articles-title a:hover { text-decoration: underline; }
.main-stream .mod-articles-item-content > p {
  grid-area: intro;
  margin: .02rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #374151;
}
@media (max-width: 991.98px) {
  .main-stream .mod-articles-item-content {
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: .8rem;
    row-gap: .12rem;
  }
  .main-stream .mod-articles-item-content > figure.pull-mod-articles-image,
  .main-stream .mod-articles-item-content:not(:has(figure.pull-mod-articles-image))::before { aspect-ratio: 1 / 1; margin: 0; }
  .main-stream .mod-articles-item-content > dl { margin-bottom: .16rem; font-size: .9rem; }
  .main-stream .mod-articles-title { font-size: 1.12rem; }
  .main-stream .mod-articles-item-content > p { font-size: 1rem; }
}

/* -----------------------------
   11) Featured-Ansicht: Einleitungsbild oben
   ----------------------------- */
.blog-featured .blog-items.items-leading .blog-item .item-image { float: none; margin: 0 0 1rem; width: 100%; }
.blog-featured .blog-items.items-leading .blog-item .item-image img { display: block; width: 100%; height: auto; }

/* -----------------------------
   12) Allgemeine Effekte & Utilities
   ----------------------------- */
.nb-card:hover,
.nb-featured.card:hover,
.nb-hero.card:hover,
.nb-teaser.card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transition: box-shadow .2s ease;
}
.com-content-featured .page-header,
.category-blog .page-header { margin-bottom: 1rem; }
.nb-card .btn,
.nb-featured .btn { border-radius: .5rem; }
.nb-img-1x1  { aspect-ratio: 1/1 !important; }
.nb-img-4x3  { aspect-ratio: 4/3 !important; }
.nb-img-16x9 { aspect-ratio: 16/9 !important; }
.nb-img-21x9 { aspect-ratio: 21/9 !important; }
.nb-hero a:focus, .nb-teaser a:focus, .nb-popular a:focus, .nb-news a:focus,
.nb-catmod a:focus, .nb-featured a:focus, .nb-card a:focus {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}
.nb-hero .nb-title a, .nb-hero .nb-title a:visited,
.nb-hero .nb-title a:hover, .nb-hero .nb-title a:active, .nb-hero .nb-title a:focus {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.nb-teaser .nb-title a, .nb-teaser .nb-title a:visited,
.nb-teaser .nb-title a:hover, .nb-teaser .nb-title a:active, .nb-teaser .nb-title a:focus {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.30);
}

/* -----------------------------
   13) Kategorie-Ansichten (Blog)
   ----------------------------- */
body.view-category .category-blog { max-width: 1200px; margin: 0 auto 2rem; }

body.view-category .category-blog .nb-hero.card {
  border-radius: 1rem; overflow: hidden; border: 0;
  box-shadow: 0 8px 22px rgba(15,23,42,0.16);
}
body.view-category .category-blog .nb-hero .nb-img-wrap {
  position: relative; inset: 0; overflow: hidden; aspect-ratio: 21 / 9; background: #f3f4f6;
}
body.view-category .category-blog .nb-hero .nb-img-wrap > .img-link { display: block; width: 100%; height: 100%; }
body.view-category .category-blog .nb-hero .nb-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.view-category .category-blog .nb-hero .nb-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 58%, rgba(15,23,42,0.65) 100%);
  pointer-events: none;
}
body.view-category .category-blog .nb-hero .nb-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.05rem 1.25rem;
  color: #f9fafb;
  z-index: 2;
  background: linear-gradient(180deg, rgba(15,23,42,0.68), rgba(15,23,42,0.82));
}
@media (max-width: 767.98px) {
  body.view-category .category-blog .nb-hero .nb-title { font-size: 1.1rem; }
}

body.view-category .category-blog .nb-teaser.card {
  border-radius: 0.75rem; overflow: hidden; border: 0;
  box-shadow: 0 6px 18px rgba(15,23,42,0.16);
}
body.view-category .category-blog .nb-teaser .nb-img-wrap {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #f3f4f6;
}
body.view-category .category-blog .nb-teaser .nb-img-wrap > .img-link { display: block; width: 100%; height: 100%; }
body.view-category .category-blog .nb-teaser .nb-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.view-category .category-blog .nb-teaser .nb-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.14) 45%, rgba(15,23,42,0.88) 100%);
  pointer-events: none;
}
body.view-category .category-blog .nb-teaser .nb-overlay {
  position: absolute; inset: auto 0 0 0; padding: 0.8rem 0.9rem; color: #f9fafb; z-index: 2;
}

body.view-category .category-blog .items-row { margin-top: 1.75rem; margin-bottom: 0.5rem; }
body.view-category .category-blog .items-row .card:not(.nb-hero):not(.nb-teaser),
body.view-category .category-blog .items-row .nb-card {
  display: flex; flex-direction: row; gap: 1rem; margin: 0;
  padding: 0.9rem 0 1rem;
  border-top: 0 !important; border-left: 0 !important; border-right: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
}
body.view-category .category-blog .items-row .card:not(.nb-hero):not(.nb-teaser):last-child,
body.view-category .category-blog .items-row .nb-card:last-child { border-bottom: 0 !important; }

body.view-category .category-blog .items-row .card:not(.nb-hero):not(.nb-teaser) .nb-img-wrap,
body.view-category .category-blog .items-row .nb-card .nb-img-wrap {
  flex: 0 0 210px; max-width: 210px; aspect-ratio: 16 / 9;
  background: #f3f4f6; border-radius: 0.75rem; overflow: hidden;
  box-shadow: 0 8px 20px rgba(15,23,42,0.18);
}
body.view-category .category-blog .items-row .card:not(.nb-hero):not(.nb-teaser) .nb-img-wrap > a.img-link,
body.view-category .category-blog .items-row .nb-card .nb-img-wrap > a.img-link { display: block; width: 100%; height: 100%; }
body.view-category .category-blog .items-row .card:not(.nb-hero):not(.nb-teaser) .nb-img-wrap img,
body.view-category .category-blog .items-row .nb-card .nb-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.view-category .category-blog .items-row .card:not(.nb-hero):not(.nb-teaser) .card-body,
body.view-category .category-blog .items-row .nb-card .card-body { flex: 1 1 auto; padding: 0; }

body.view-category .category-blog .items-row .card:not(.nb-hero):not(.nb-teaser) .badge,
body.view-category .category-blog .items-row .nb-card .badge {
  border-radius: 0.35rem; font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.03em; padding: 0.1rem 0.5rem;
  background: #edf2ff; color: #374151;
}
body.view-category .category-blog .items-row .card:not(.nb-hero):not(.nb-teaser) .text-muted.small,
body.view-category .category-blog .items-row .nb-card .text-muted.small {
  margin: 0 0 0.1rem; font-size: 0.8rem; color: #6c757d;
}
body.view-category .category-blog .items-row .card:not(.nb-hero):not(.nb-teaser) .card-title,
body.view-category .category-blog .items-row .nb-card .card-title {
  margin: 0 0 0.2rem; font-weight: 700; font-size: 1.05rem; line-height: 1.25;
}
body.view-category .category-blog .items-row .card:not(.nb-hero):not(.nb-teaser) .card-text,
body.view-category .category-blog .items-row .nb-card .card-text {
  display: inline; margin: 0; font-size: 0.95rem; line-height: 1.6; color: #374151;
}
body.view-category .category-blog .items-row .card:not(.nb-hero):not(.nb-teaser) .readmore,
body.view-category .category-blog .items-row .nb-card .readmore { display: inline; margin: 0 0 0 0.35rem; }

body.view-category .category-blog .items-row .card:not(.nb-hero):not(.nb-teaser) .readmore .btn,
body.view-category .category-blog .items-row .card:not(.nb-hero):not(.nb-teaser) .readmore a,
body.view-category .category-blog .items-row .nb-card .readmore .btn,
body.view-category .category-blog .items-row .nb-card .readmore a {
  padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  font-size: 0.9rem; color: #0d6efd; text-decoration: underline;
}
body.view-category .category-blog .items-row .card:not(.nb-hero):not(.nb-teaser) .readmore .btn:hover,
body.view-category .category-blog .items-row .card:not(.nb-hero):not(.nb-teaser) .readmore a:hover,
body.view-category .category-blog .items-row .nb-card .readmore .btn:hover,
body.view-category .category-blog .items-row .nb-card .readmore a:hover {
  color: #0b3fb0; background: transparent; border-color: transparent;
}

@media (max-width: 768px) {
  body.view-category .category-blog .items-row .card:not(.nb-hero):not(.nb-teaser),
  body.view-category .category-blog .items-row .nb-card { flex-direction: column; }
  body.view-category .category-blog .items-row .card:not(.nb-hero):not(.nb-teaser) .nb-img-wrap,
  body.view-category .category-blog .items-row .nb-card .nb-img-wrap { flex: 0 0 auto; max-width: 100%; }
}

/* Pagination in Kategorien */
body.view-category .category-blog .pagination .page-link {
  border-radius: 999px; min-width: 2.25rem; text-align: center;
  font-size: 0.9rem; border: 1px solid #e5e7eb; color: #4b5563;
}
body.view-category .category-blog .pagination .page-item:not(.active) .page-link:hover {
  background: #f3f4f6; color: #111827; border-color: #d1d5db;
}
body.view-category .category-blog .pagination .page-item.active .page-link {
  background: #0d6efd; border-color: #0d6efd; color: #ffffff; font-weight: 600;
  box-shadow: 0 0 0 1px rgba(255,255,255,.7), 0 4px 10px rgba(37,99,235,.35);
}
body.view-category .category-blog .pagination .page-item.disabled .page-link {
  background: transparent; color: #9ca3af; border-color: #e5e7eb;
}

/* Weiterlesen als Textlink */
body.view-category .category-blog .items-row .readmore .btn,
body.view-category .category-blog .items-row .readmore a {
  padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  font-size: 0.9rem; color: #0d6efd; text-decoration: underline;
}

/* "Weitere Beiträge" */
body.view-category .category-blog .items-more {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #e5e7eb;
}
body.view-category .category-blog .items-more h3 {
  margin: 0 0 0.75rem; font-size: 1.1rem; font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase; color: #4b5563;
}
body.view-category .category-blog .items-more .com-content-category-blog__links {
  list-style: none; margin: 0; padding: 0; border-radius: 0.75rem; background: #f9fafb;
}
body.view-category .category-blog .items-more .com-content-category-blog__link {
  border-bottom: 1px solid #e5e7eb;
}
body.view-category .category-blog .items-more .com-content-category-blog__link:last-child { border-bottom: 0; }
body.view-category .category-blog .items-more .com-content-category-blog__link a {
  display: block; padding: 0.7rem 1rem; font-size: 0.95rem; font-weight: 500; color: #111827;
  text-decoration: none; transition: background-color .18s ease, color .18s ease, transform .15s ease;
}
body.view-category .category-blog .items-more .com-content-category-blog__link a:hover,
body.view-category .category-blog .items-more .com-content-category-blog__link a:focus {
  background: #e5edf5; color: #0f172a; transform: translateX(2px);
}

/* -----------------------------
   FINALE OVERRIDES – Mockup-konform
   ----------------------------- */
/* Hero/Teaser-Badges werden in nbi-design.css auf weiß-transparent gesetzt */
.nb-hero .nb-cat, .nb-teaser .nb-cat { z-index: 10; }

.category-blog.list-view .nb-card .card-body,
.nb-card .card-body { display: block !important; }
.nb-card .card-text.mb-3 { margin-bottom: .75rem !important; }
.nb-card .mt-auto { display: block !important; margin-top: .5rem !important; }
.nb-card .mt-auto a.btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: .25rem !important;
  padding: 0 !important;
  border: none !important;
  border-bottom: 1px solid transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #1a5fa8 !important;
  font-size: .8125rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: border-color .15s, color .15s !important;
}
.nb-card .mt-auto a.btn:hover, .nb-card .mt-auto a.btn:focus {
  color: #0a3d6b !important;
  border-color: #1a5fa8 !important;
  background: transparent !important;
  text-decoration: none !important;
}
.nb-card .mt-auto a.btn::after {
  content: '↗';
  font-size: .75em;
}

.category-blog .nb-card .card-body .nb-badge a.badge.bg-primary,
body.view-category .category-blog .items-row .nb-card .card-body > .mb-2 a.badge {
  background-color: #e8f0fb !important; color: #1a5fa8 !important;
  font-weight: 700 !important; border: 1px solid #c5d9f5 !important;
  opacity: 1 !important; text-shadow: none !important; font-size: 0.6875rem !important;
  padding: 0.2rem 0.55rem !important; text-transform: uppercase !important; letter-spacing: 0.05em !important;
  border-radius: 99px !important;
}

.nb-teaser .nb-img-wrap::after {
  background: linear-gradient(180deg, rgba(15,23,42,0) 30%, rgba(15,23,42,0.9) 100%) !important;
}
.nb-hero .nb-img-wrap::after {
  background: linear-gradient(180deg, rgba(15,23,42,0) 20%, rgba(15,23,42,0.8) 100%) !important;
}

.nb-hero .nb-img-wrap img, .nb-teaser .nb-img-wrap img,
.nb-featured .nb-img-wrap img, .nb-card .nb-img-wrap img {
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  filter: grayscale(10%);
  transition: all 0.4s ease-in-out;
}
.nb-hero .nb-img-wrap:hover img, .nb-teaser .nb-img-wrap:hover img,
.nb-featured .nb-img-wrap:hover img, .nb-card .nb-img-wrap:hover img { filter: grayscale(0%); }

.nb-hero .nb-img-wrap, .nb-teaser .nb-img-wrap,
.nb-featured .nb-img-wrap, .nb-card .nb-img-wrap { background: #e9ecef !important; }

.category-blog.list-view .nb-card {
  border-bottom: 1px solid #dee2e6 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding-bottom: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.nb-hero.card, .nb-hero4.hero-card .nb-hero.card, .nb-teaser.card, .nb-featured.card, .nb-card {
  box-shadow: 0 2px 6px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02) !important;
}
.nb-card:hover, .nb-featured.card:hover, .nb-teaser.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04) !important;
  transform: translateY(-2px);
  transition: all 0.25s ease-out;
}

/* Autorbox */
.nb-article-author {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #e0e0e0;
  font-size: 0.9rem; color: #555; display: flex; align-items: center; gap: 0.75rem;
}
.nb-article-author-avatar {
  width: 40px; height: 40px; border-radius: 999px; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
}
.nb-article-author-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nb-article-author-text { display: inline-block; }
.nb-article-author-line1 { line-height: 1.2; }
.nb-article-author-line2 { margin-top: 0.15rem; font-size: 0.85em; line-height: 1.2; color: #777; }
.nb-article-author-label { font-weight: 600; margin-right: 0.25rem; }

/* Über uns */
.nb-about { max-width: 1040px; margin: 0 auto; padding: 2rem 1rem; }
.nb-about h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.nb-about .nb-lead { font-size: 1rem; margin-bottom: 1.5rem; }
.nb-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) { .nb-about-grid { grid-template-columns: 1fr; } }
.nb-about-main p { margin-bottom: 0.9rem; }
.nb-about-main h2 { margin-top: 1.4rem; margin-bottom: 0.6rem; font-size: 1.2rem; }
.nb-about-aside .nb-about-card {
  background: #ffffff; padding: 1.3rem; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04); font-size: 0.9rem;
}
.nb-about-aside h3 { margin-top: 0.2rem; margin-bottom: 0.4rem; font-size: 1rem; }
.nb-about-aside p { margin: 0 0 0.6rem 0; }
.nb-about a { text-decoration: none; }
.nb-about a:hover { text-decoration: underline; }

/* Mobile Menü */
@media (max-width: 991.98px) {
  #t4-header, #t4-header .navbar, #t4-header .t4-mainnav, .t3-mainnav { position: relative; top: auto; }
  #t4-header .navbar-collapse, .t3-mainnav .navbar-collapse { position: static; width: 100%; max-height: none; overflow: visible; }
  #t4-header .navbar-collapse.show, .t3-mainnav .navbar-collapse.show { margin-bottom: .75rem; }
}

/* Mobile: nb-catmod list-view main-stream */
@media (max-width: 768px) {
  .nb-catmod.list-view.main-stream .mod-articles-item-content {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas: "thumb meta" "thumb title" "thumb intro";
    column-gap: .7rem; row-gap: .1rem; align-items: flex-start;
  }
  .nb-catmod.list-view.main-stream .mod-articles-item-content > figure.pull-mod-articles-image {
    grid-area: thumb; float: none; margin: 0; width: 100%;
    aspect-ratio: 1 / 1; border-radius: .375rem; overflow: hidden;
    background: #f5f5f5; border: 1px solid #e5e7eb;
  }
  .nb-catmod.list-view.main-stream .mod-articles-item-content > figure.pull-mod-articles-image img {
    width: 100%; height: 100%; display: block; object-fit: cover;
  }
  .nb-catmod.list-view.main-stream .mod-articles-item-content:not(:has(figure.pull-mod-articles-image))::before {
    content: ""; grid-area: thumb; display: block; margin: 0; width: 100%;
    aspect-ratio: 1 / 1; border-radius: .375rem; background: #f5f5f5; border: 1px solid #e5e7eb;
  }
  .nb-catmod.list-view.main-stream .mod-articles-item-content h4.mod-articles-title {
    grid-area: title; margin: 0 0 .15rem 0; font-weight: 700; font-size: 1.02rem; line-height: 1.3;
  }
  .nb-catmod.list-view.main-stream .mod-articles-title a { color: inherit; text-decoration: none; }
  .nb-catmod.list-view.main-stream .mod-articles-title a:hover { text-decoration: underline; }
  .nb-catmod.list-view.main-stream .mod-articles-item-content dl {
    grid-area: meta; display: inline-flex; gap: .35rem; flex-wrap: wrap;
    font-size: .84rem; color: #6c757d; margin: .02rem 0 .06rem 0;
  }
  .nb-catmod.list-view.main-stream .mod-articles-item-content dt.article-info-term,
  .nb-catmod.list-view.main-stream .mod-articles-item-content .icon-calendar,
  .nb-catmod.list-view.main-stream .mod-articles-item-content .icon-folder-open { display: none; }
  .nb-catmod.list-view.main-stream .mod-articles-item-content > p {
    grid-area: intro; margin: .02rem 0 0 0; font-size: .95rem; line-height: 1.45; color: #374151; text-align: left;
  }
  .nb-catmod.list-view.main-stream .mod-articles-items > li {
    margin: 0 0 .75rem 0; padding-bottom: .75rem; border-bottom: 1px solid #e5e5e5;
  }
  .nb-catmod.list-view.main-stream .mod-articles-items > li:last-child {
    margin-bottom: 0; padding-bottom: 0; border-bottom: 0;
  }
}

/* Tools-Grid */
body.tools-grid .items-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
body.tools-grid .item.column-1,
body.tools-grid .item {
  float: none; width: auto; background: #fff; border: 1px solid #e0e0e0;
  border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex; flex-direction: column;
}
body.tools-grid .item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.14); }
body.tools-grid .item img { width: 100%; height: 180px; object-fit: cover; }

/* =====================================================
   14) AUTOREN-LISTING  (.nb-authors-page)
   Aktivierung: com_content Kategorie → Layout "authors"
   ===================================================== */

/* Seiten-Wrapper */
.nb-authors-page {
  max-width: var(--nbi-max-width, 1260px);
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

/* Kopfzeile der Kategorieseite */
.nb-authors-header {
  margin-bottom: 2.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--nbi-color-border, #e4e8ef);
}
.nb-authors-title {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  font-weight: 800;
  color: var(--nbi-color-primary, #0a3d6b);
  letter-spacing: -.3px;
  margin: 0 0 .5rem;
}
.nb-authors-lead {
  font-size: 1.05rem;
  color: var(--nbi-color-muted, #6b7280);
  line-height: 1.6;
  margin: 0;
  max-width: 680px;
}

/* Grid */
.nb-authors-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 991.98px) {
  .nb-authors-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (max-width: 575.98px) {
  .nb-authors-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* Karte */
.nb-author-card {
  background: var(--nbi-color-surface, #ffffff);
  border-radius: var(--nbi-radius-lg, 14px);
  border: 1px solid var(--nbi-color-border, #e4e8ef);
  box-shadow: var(--nbi-shadow-sm, 0 1px 3px rgba(10,61,107,.08));
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.nb-author-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--nbi-shadow, 0 4px 16px rgba(10,61,107,.10));
}

/* Inner Link (gesamte Karte klickbar) */
.nb-author-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.nb-author-card__inner:hover,
.nb-author-card__inner:focus { text-decoration: none; color: inherit; }
.nb-author-card__inner:focus-visible {
  outline: 2px solid var(--nbi-color-primary-mid, #1a5fa8);
  outline-offset: 2px;
  border-radius: var(--nbi-radius-lg, 14px);
}

/* Foto-Bereich */
.nb-author-card__photo-wrap {
  position: relative;
  background: var(--nbi-color-bg, #f4f6fb);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.nb-author-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(8%);
  transition: filter .3s ease, transform .35s ease;
}
.nb-author-card:hover .nb-author-card__photo {
  filter: grayscale(0%);
  transform: scale(1.03);
}

/* Fallback: Initialen-Platzhalter */
.nb-author-card__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--nbi-color-primary-mid, #1a5fa8);
  background: var(--nbi-color-primary-light, #e8f0fb);
  letter-spacing: -.02em;
  user-select: none;
}

/* Textbereich */
.nb-author-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.25rem 1.25rem;
}

.nb-author-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--nbi-color-text, #1a1d23);
  margin: 0 0 .2rem;
  line-height: 1.25;
  -webkit-hyphens: none;
  hyphens: none;
}
.nb-author-card:hover .nb-author-card__name {
  color: var(--nbi-color-primary-mid, #1a5fa8);
}

.nb-author-card__role {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--nbi-color-primary-mid, #1a5fa8);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 .6rem;
  line-height: 1.3;
}

.nb-author-card__bio {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--nbi-color-muted, #6b7280);
  margin: 0 0 .85rem;
  flex: 1 1 auto;
}

.nb-author-card__cta {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--nbi-color-primary-mid, #1a5fa8);
  border-bottom: 1px solid transparent;
  transition: border-color .15s, color .15s;
  align-self: flex-start;
  margin-top: auto;
}
.nb-author-card__cta::after {
  content: '↗';
  font-size: .75em;
}
.nb-author-card:hover .nb-author-card__cta {
  border-color: var(--nbi-color-primary-mid, #1a5fa8);
  color: var(--nbi-color-primary, #0a3d6b);
}
