/**************************************/
/* Default styles for news extension */
/**************************************/
.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 {
  margin-bottom: var(--base-size);
}
.news .article:last-child {
  margin-bottom: 0;
}
.news .article:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}
.news .article .news-img-wrap {
  float: left;
  margin: 0 var(--gutter) var(--base-size-half) 0;
  background: #fff;
}
.news .article .news-img-wrap a {
  width: 100%;
}
.news .article .news-img-wrap img {
  float: left;
  height: auto;
  width: auto;
}
.news .footer {
  clear: both;
  padding: var(--base-size-quarter) 0 0 0;
  border-top: var(--border-width, 1px) solid var(--border-color);
  margin-top: var(--base-size-half);
  color: var(--font-color-light);
  font-size: var(--font-size-small);
  line-height: var(--line-height-small);
}
.news .footer p {
  margin-bottom: 0;
}
.news .footer span {
  display: inline-block;
  padding-right: var(--gutter-half);
  margin-right: var(--gutter-half);
  border-right: var(--border-width) solid var(--border-color);
}
.news .footer span:last-child {
  border-right: 0;
}
.news .footer .news-category a {
  text-transform: uppercase;
}
.news .no-news-found {
  color: var(--error, #ba0202);
}
.news .page-navigation p {
  float: left;
}
.news .page-navigation ul {
  float: right;
}
.news .page-navigation ul li {
  float: left;
  display: block;
}
.news .page-navigation ul li a {
  display: block;
}

/* category menu view */
.news-category-view ul li {
  padding: 5px 8px;
}
.news-category-view ul li li {
  padding: 2px 8px 2px 12px;
}
.news-category-view > ul > li:nth-child(even) {
  background: #f9f9f9;
  border-top: var(--border-width, 1px) solid var(--border-color);
  border-bottom: var(--border-width, 1px) solid var(--border-color);
}
.news-category-view .category-desc {
  padding-left: 10px;
  margin-left: 10px;
  border-left: var(--border-width, 1px) solid var(--border-color);
}

/* single view */
.news-single .footer {
  margin-bottom: var(--base-size);
  margin-top: var(--base-size-half);
  padding: var(--base-size-half) 0 0 0;
  border-bottom: 0;
  border-top: var(--border-width) solid var(--border-color);
}
.news-single .teaser-text p {
  font-size: var(--font-size4);
  line-height: var(--line-height4);
}
.news-single .article .news-img-wrap {
  float: right;
  width: 100%;
  margin: 0 0 var(--base-size) var(--gutter);
}
@media (min-width: 481px) {
  .news-single .article .news-img-wrap {
    width: 50%;
  }
}
.news-single .article .news-img-wrap .outer {
  margin-bottom: var(--base-size);
}
.news-single .article .news-img-wrap img {
  float: none;
}

/* related news + files */
.news-related-wrap {
  margin-top: var(--base-size);
  border-top: var(--border-width) solid var(--border-color);
  clear: both;
}

.news-related {
  padding: var(--base-size) 0;
  border-bottom: var(--border-width) solid var(--border-color);
}
.news-related ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.news-related ul li span {
  border-right: var(--border-width, 1px) solid var(--border-color);
  margin-right: var(--gutter-half);
  padding-right: var(--gutter-half);
  color: var(--font-color-light);
}
.news-related ul li span:last-child {
  border-right: 0;
  padding-right: 0;
}
.news-related-files .news-related-files-link .jpg {
  background-position: 0 0;
}

.news-related-links a {
  display: inline-block;
}

.news-clear {
  clear: both;
}

.news-list-view {
  margin-bottom: var(--base-size);
}
.news-list-view a h3 {
  color: var(--body-link-color);
}
.news-list-view a h3:focus, .news-list-view a h3:hover {
  color: var(--body-link-hover-color);
}
.news-list-view h3 {
  margin: 0 0 var(--base-size-quarter) 0;
}
.news-list-view .teaser-text p:last-child {
  margin-bottom: 0;
}

.news-list-view.layout-2 {
  box-sizing: border-box;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  justify-content: center;
}
.news-list-view.layout-2 > div {
  margin-bottom: var(--base-size);
}
@media (min-width: 481px) {
  .news-list-view.layout-2 {
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
  }
  .news-list-view.layout-2 > div {
    -moz-box-flex: 0 0 50%;
    -webkit-flex: 0 0 50%;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    position: relative;
    min-height: 1px;
    padding-right: var(--gutter);
    padding-left: var(--gutter);
    min-width: 50%;
  }
}
@media (min-width: 1025px) {
  .news-list-view.layout-2 > div {
    -moz-box-flex: 0 0 25%;
    -webkit-flex: 0 0 25%;
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    position: relative;
    min-height: 1px;
    padding-right: var(--gutter);
    padding-left: var(--gutter);
    min-width: 25%;
  }
}
.news-list-view.layout-2 .f3-widget-paginator {
  width: 100%;
  padding: 0 var(--gutter);
}

/** News as Cards Liste View */
/* Layout 3: Latest Cards (Vorlage: Abschnitt "Aktuelles" auf sw-bb.de) */
.frame-type-news_newsliststicky {
    h1 {
        font-family: "Ubuntu", Helvetica, sans-serif;
        font-weight: bolder;
    }
}
.news-list-view.layout-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}
.news-list-view.layout-3 > .latest-card {
  flex: 0 0 100%;
}
@media (min-width: 769px) {
  .news-list-view.layout-3 > .latest-card {
    flex: 0 0 calc((100% - 3rem) / 2);
  }
}
/* first row: 3 cards, all following rows: 4 cards */
@media (min-width: 1025px) {
  .news-list-view.layout-3 > .latest-card {
    flex: 0 0 calc((100% - 9rem) / 4);
  }
  .news-list-view.layout-3 > .latest-card:nth-of-type(-n+3) {
    flex: 0 0 calc((100% - 6rem) / 3);
  }
}
.news-list-view.layout-3 .f3-widget-paginator {
  flex: 0 0 100%;
}
.latest-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 5px 10px rgba(0, 106, 179, 0.1);
  color: #333;
  transition: transform 0.3s ease-in-out;
}
/* hover and focus: the card lifts up a few pixels */
.latest-card:hover,
.latest-card:focus-within {
  transform: translateY(-6px);
}
@media (prefers-reduced-motion: reduce) {
  .latest-card {
    transition: none;
  }
}
/* All card images (also dummy image and video) in 3:2, like the crop variant "newsCard" */
.latest-card__image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  line-height: 0;
}
.latest-card__image a {
  display: block;
  height: 100%;
}
.latest-card__image img,
.latest-card__image iframe,
.latest-card__image video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.latest-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.5em;
}
.latest-card__meta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  margin: 0 0 1em;
  padding: 0 0.5rem;
  background: rgba(0, 92, 169, 0.15);
  border-radius: 0.25rem;
  color: var(--blue);
  font-size: 0.875em;
  font-weight: 400;
  line-height: 1.7777777778;
}
.latest-card__separator {
  align-self: stretch;
  margin: 0.4em 0;
  border-left: 1px solid currentColor;
}
.latest-card__title {
  margin: 0 0 0.5em;
  color: #333;
  font-size: var(--font-size4);
  line-height: 1.3;
  hyphens: auto;
}
.latest-card__teaser {
  margin: 0 0 1.5em;
  color: #333;
}
.latest-card__link,
.latest-card__link:visited {
  position: relative;
  align-self: center;
  margin-top: auto;
  margin-right: 25px;
  padding: 0.875em 0 0.875em 1.5em;
  background: none;
  border: 0;
  color: #333;
  font-size: 0.875em;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.latest-card__link::before,
.latest-card__link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -25px;
}
.latest-card__link::before {
  width: 8px;
  height: 14px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg width='8' height='14' viewBox='0 0 8 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 1.98682L6.83457 7.32182L1.5 12.6568' stroke='%23F07E26' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat;
  transition: transform 0.3s ease-in-out;
}
.latest-card__link::after {
  width: 15px;
  height: 2px;
  margin-top: 0.5px;
  transform: translateY(-50%);
  background-color: #f07e26;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, right 0.3s ease-in-out;
}
.latest-card:hover .latest-card__link,
.latest-card:focus-within .latest-card__link,
.latest-card__link:hover,
.latest-card__link:focus {
  color: #f07e26;
  transform: translateX(4px);
}
.latest-card:hover .latest-card__link::before,
.latest-card:focus-within .latest-card__link::before,
.latest-card__link:hover::before,
.latest-card__link:focus::before {
  transform: translate(13px, -50%);
}
.latest-card:hover .latest-card__link::after,
.latest-card:focus-within .latest-card__link::after,
.latest-card__link:hover::after,
.latest-card__link:focus::after {
  right: -35px;
  opacity: 1;
}
.latest-cards-all {
  margin: 2em 0 0;
  text-align: center;
}
.latest-cards-all__link,
.latest-cards-all__link:visited {
  display: inline-block;
  padding: 1em 1.875em;
  background-color: rgba(255, 255, 255, 0.8);
  border: 2px solid #f07e26;
  border-radius: 50px;
  color: #333;
  font-size: 0.875em;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
}
.latest-cards-all__link:hover,
.latest-cards-all__link:focus {
  background-color: #f07e26;
  color: #000;
}

/* Layout 4: archive list, one line per news item "DD.MM.YYYY | Title" */
.news-list-view.layout-4 .news-archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.news-archive-item {
  position: relative;
  margin: 0;
  padding: 0.35em 0 0.35em 1.85em;
}
.news-archive-item.article {
    margin-bottom: 0;
}
/* list bullet: glyph "circle" of the icon font evu, it sits on the character " (U+0022) */
.news-archive-item::before {
  content: '"';
  position: absolute;
  left: 0;
  top: 0.35em;
  font-family: "evu";
  font-weight: normal;
  font-size: calc(1em - 3px);
  line-height: var(--base-size);
  color: var(--blue);
}
.news-archive-item a {
  display: inline-block;
  text-decoration: none;
}
.news-archive-date {
  font-variant-numeric: tabular-nums;
}
.news-archive-separator {
  margin: 0 0.5em;
}
.news-archive-item a:hover .news-archive-title,
.news-archive-item a:focus-visible .news-archive-title {
  text-decoration: underline;
}
