/**** News-Liste als Karten (Partial news/List/Rh-Item-List-2.html, templateLayout 2) ****/
.nw-list {
  --nw-navy: #000F42;
  --nw-green: #a4c339;
  --nw-muted: #5c6670;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.25rem 0 1.75rem;
}
.nw-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 15, 66, .08), 0 4px 16px rgba(0, 15, 66, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.nw-card:hover,
.nw-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 2px 6px rgba(0, 15, 66, .1), 0 14px 32px rgba(0, 15, 66, .14);
}
.nw-card:focus-within { outline: 3px solid #4c7dc2; outline-offset: 2px; }
.nw-card--top { outline: 3px solid var(--nw-green); outline-offset: -3px; }
.nw-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #eef2f6;
  overflow: hidden;
}
.nw-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.nw-card:hover .nw-card__img { transform: scale(1.05); }
.nw-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 3rem;
  color: rgba(255, 255, 255, .8);
  background: linear-gradient(135deg, var(--nw-navy), #4c7dc2);
}
.nw-flag {
  position: absolute;
  top: .75rem;
  left: .75rem;
  padding: .25rem .65rem;
  border-radius: 999px;
  background: var(--nw-green);
  color: var(--nw-navy);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.nw-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 1rem 1.25rem 1.25rem;
}
.nw-card__date {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .45rem;
  font-size: .85rem;
  color: var(--nw-muted);
}
.nw-card__date i { color: var(--nw-green); }
.nw-card__title {
  margin: 0 0 .6rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}
.nw-card__title a,
.nw-card__title a:visited {
  color: var(--nw-navy);
  text-decoration: none;
}
.nw-card__title a:focus-visible { outline: none; }
.nw-card__teaser {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 1rem;
  font-size: .95rem;
  line-height: 1.6;
  color: #343a40;
}
.nw-card__more {
  margin-top: auto;
  font-size: .875rem;
  font-weight: 700;
  color: var(--nw-navy);
}
.nw-card__more i { margin-left: .3rem; transition: transform .2s ease; }
.nw-card:hover .nw-card__more i { transform: translateX(4px); }

/* Ab genug Platz in der Spalte: Bild links */
@container (min-width: 560px) {
  .nw-card { flex-direction: row; }
  .nw-card__media {
    flex: 0 0 38%;
    aspect-ratio: auto;
    min-height: 210px;
  }
  .nw-card__img { position: absolute; inset: 0; }
  .nw-card__body { padding: 1.25rem 1.5rem; }
  .nw-card__title { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nw-card, .nw-card__img, .nw-card__more i { transition: none; }
  .nw-card:hover, .nw-card:hover .nw-card__img { transform: none; }
}


/**** Seitennavigation (news und events2, .f3-widget-paginator) ****/
.f3-widget-paginator {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.f3-widget-paginator > li { display: block; }
.f3-widget-paginator > li > a,
.f3-widget-paginator > li.current,
.f3-widget-paginator > li:not([class]):not(:has(a)) {
  float: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0 .9rem;
  border: 1px solid #d5dbe1;
  border-radius: 999px;
  background: #fff;
  color: #000F42;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.f3-widget-paginator > li:not([class]):not(:has(a)) { border-color: transparent; }
.f3-widget-paginator > li > a:visited { color: #000F42; }
.f3-widget-paginator > li > a:hover,
.f3-widget-paginator > li > a:focus-visible {
  border-color: #000F42;
  background: #000F42;
  color: #fff;
}
.f3-widget-paginator > li.current {
  border-color: #000F42;
  background: #000F42;
  color: #fff;
}


/**** News-Detailansicht (Templates/News/Detail.html, Section content-60) ****/
.nw-detail {
  --nw-navy: #000F42;
  --nw-green: #a4c339;
  --nw-muted: #5c6670;
  max-width: 860px;
  margin: .5rem auto 2.5rem;
}
.nw-back,
.nw-back:visited {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1.25rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--nw-navy);
  text-decoration: none;
}
.nw-back i { transition: transform .2s ease; }
.nw-back:hover i { transform: translateX(-3px); }
.nw-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
  margin: 0 0 .6rem;
  font-size: .9rem;
  color: var(--nw-muted);
}
.nw-detail__meta i { margin-right: .3rem; color: var(--nw-green); }
.nw-detail__title {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--nw-navy);
}
.nw-detail__lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #3b4550;
}
.nw-detail__lead p:last-child { margin-bottom: 0; }
.nw-detail__head { margin-bottom: 1.75rem; }
.nw-detail__hero {
  margin: 0 0 2rem;
}
.nw-detail__hero a,
.nw-detail__hero > img {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #eef2f6;
  box-shadow: 0 1px 3px rgba(0, 15, 66, .08), 0 4px 16px rgba(0, 15, 66, .06);
}
.nw-detail__hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  margin: 0 auto;
}
.nw-detail__hero figcaption,
.nw-gallery figcaption {
  margin-top: .5rem;
  font-size: .85rem;
  color: var(--nw-muted);
}
.nw-detail__text {
  font-size: 1.075rem;
  line-height: 1.75;
  color: #212529;
}
.nw-detail__text > *:first-child { margin-top: 0; }
.nw-detail__text p { margin-bottom: 1.1em; }
.nw-detail__text h2,
.nw-detail__text h3,
.nw-detail__text h4 { margin: 1.6em 0 .5em; color: var(--nw-navy); font-weight: 700; }
.nw-detail__text img { max-width: 100%; height: auto; border-radius: 10px; }
.nw-detail__text a,
.nw-detail__text a:visited {
  color: var(--nw-navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--nw-green);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.nw-detail__text a:hover { text-decoration-color: var(--nw-navy); }
.nw-detail__text blockquote {
  margin: 1.5em 0;
  padding: .75rem 1.25rem;
  border-left: 4px solid var(--nw-green);
  background: #f6f9ee;
  border-radius: 0 10px 10px 0;
}
.nw-detail__content {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  background: #f7f9fb;
}
.nw-detail__video { margin: 2rem 0; }
.nw-detail__video iframe,
.nw-detail__video video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; }
.nw-detail__section { margin-top: 2.5rem; }
.nw-detail__subtitle {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--nw-navy);
}
.nw-detail__subtitle::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--nw-green), transparent);
}
.nw-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .9rem;
}
.nw-gallery figure { margin: 0; }
.nw-gallery a { display: block; border-radius: 10px; overflow: hidden; }
.nw-gallery img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .3s ease;
}
.nw-gallery a:hover img { transform: scale(1.04); }
.nw-attach {
  display: grid;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nw-attach__item,
.nw-attach__item:visited {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .8rem 1rem;
  border: 1px solid #e3e8ed;
  border-radius: 12px;
  background: #fff;
  color: var(--nw-navy);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nw-attach__item:hover,
.nw-attach__item:focus-visible {
  border-color: var(--nw-navy);
  box-shadow: 0 4px 14px rgba(0, 15, 66, .1);
}
.nw-attach__item > i:first-child {
  flex: 0 0 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f1f6e1;
  color: #4d6510;
  font-size: 1.1rem;
}
.nw-attach__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.nw-attach__title { font-weight: 700; overflow-wrap: anywhere; }
.nw-attach__text small { color: var(--nw-muted); }
.nw-attach__go { color: var(--nw-muted); transition: transform .2s ease; }
.nw-attach__item:hover .nw-attach__go { transform: translateX(3px); color: var(--nw-navy); }
.nw-detail__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #edf0f3;
}
.nw-detail__label {
  display: block;
  margin-bottom: .35rem;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--nw-muted);
}
.nw-btn,
.nw-btn:visited {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.1rem;
  border: 2px solid var(--nw-navy);
  border-radius: 10px;
  background: #fff;
  color: var(--nw-navy);
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.nw-btn:hover,
.nw-btn:focus-visible { background: var(--nw-navy); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .nw-gallery img, .nw-attach__go, .nw-back i { transition: none; }
}

/* Ende der Nachricht */
.nw-end {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0 2rem;
}
.nw-end::before,
.nw-end::after {
  content: "";
  flex: 1;
  height: 2px;
}
.nw-end::before { background: linear-gradient(90deg, transparent, var(--nw-green)); }
.nw-end::after { background: linear-gradient(90deg, var(--nw-green), transparent); }
.nw-end__mark { display: inline-flex; gap: .4rem; }
.nw-end__mark i {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--nw-green);
}
.nw-end__mark i:nth-child(2) { background: var(--nw-navy); }

/* Blättern: vorherige / nächste Nachricht */
.nw-pager {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 576px) {
  .nw-pager { grid-template-columns: 1fr 1fr; }
}
.nw-pager__item,
.nw-pager__item:visited {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1rem 1.25rem;
  border: 1px solid #e3e8ed;
  border-radius: 14px;
  background: #fff;
  color: var(--nw-navy);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 15, 66, .06);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.nw-pager__item:hover,
.nw-pager__item:focus-visible {
  border-color: var(--nw-navy);
  box-shadow: 0 8px 22px rgba(0, 15, 66, .12);
  transform: translateY(-2px);
}
.nw-pager__item--next { text-align: right; align-items: flex-end; }
.nw-pager__item--empty { border: 0; background: none; box-shadow: none; padding: 0; }
@media (max-width: 575.98px) {
  .nw-pager__item--empty { display: none; }
}
.nw-pager__dir {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #4d6510;
}
.nw-pager__dir i { transition: transform .2s ease; }
.nw-pager__item--prev:hover .nw-pager__dir i { transform: translateX(-3px); }
.nw-pager__item--next:hover .nw-pager__dir i { transform: translateX(3px); }
.nw-pager__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
  line-height: 1.35;
}
.nw-pager__date { font-size: .85rem; color: var(--nw-muted); }
@media (prefers-reduced-motion: reduce) {
  .nw-pager__item, .nw-pager__dir i { transition: none; }
  .nw-pager__item:hover { transform: none; }
}
