/* 2023 styling */
.news .news-list-view-6 .article {
  padding-bottom: 0px;
  margin-bottom: 30px;
  margin-right: 15px;
  float: left;
  width: calc((100% / 3) - 30px);
  margin-left: 15px;
  min-height: 550px;
}

.news .news-list-view-6 {
  width: calc(100% - 30px);
  float: left;
  margin-right: 15px;
  margin-left: 15px;
  margin-top: 30px;
}

.news .news-list-view-6 .article h3 {
  line-height: 24px;
  font-size: 18px;
}

.news .news-list-view-6 .article .header {
  position: relative;
}

.news .news-list-view-6 .article h3 {
  margin-right: 60px;
}

.news .news-list-view-6 .filmtext p {
  margin-bottom: 10px;
}

.news .news-list-view-6 .article .news-img-wrap img:hover {
  opacity: 0.5;
}

.news .news-list-view-6 .news-single .article .news-img-wrap {
  width: 282px;
}

/* General styling for movies, attractions and guests */
div.news-detail-text span.news-list-date time {
  display: none;
}

a {
  color: black;
}

.news .news-detail-text .header h3,
.fancybox-inner .news-detail-text h3 {
  font-size: 18px;
  line-height: 24px;
  margin: 22px 0;
  font-weight: bold;
  padding-top: 20px;
}

.fancybox-inner .news-detail-text h3 {
  padding-left: 0;
}

.fancybox-inner .news-detail-text {
  margin: 0 30px 30px 30px;
}

.news-single {
  /* margin: 0 15px; */
}

.news-single .news-detail-wrap .news-detail-text .news-text-wrap p,
.fancybox-inner .news-detail-wrap .news-detail-text .news-text-wrap p {
  font-size: 16px;
  line-height: 26px;
}

.news-single .regie,
.news-single .auszeichnung,
.fancybox-inner .auszeichnung,
.fancybox-inner .regie {
  font-size: 14px;
  line-height: 20px;
}

.news-single .times,
.fancybox-inner .times {
  margin-top: 40px;
}

.news-single .news-detail-text p,
.fancybox-inner .news-detail-text p {
  margin-bottom: 15px;
}

.news-detail-wrap .news-detail-text .news-text-wrap p {
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 20px;
}

.news-detail-wrap .mediaelement-video.cookies-accepted {
 background-color: rgb(19, 81, 170); 
}

.fancybox-content div.news-detail-wrap div.news-detail-bild,
.news-single-4 .news-detail-bild {
  background-color: black;
  width: 100%;
  padding-top: 56.25%;
  /* 1:1 Aspect Ratio */
  position: relative;
  /* If you want text inside of it */
}

.fancybox-content div.news-detail-wrap div.news-detail-bild div.news-img-wrap,
.news-single-4 .article .news-img-wrap {
  position: absolute !important;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.fancybox-content div.news-detail-wrap div.news-detail-bild div.news-img-wrap div.outer div.mediaelement div.mediaelement-video,
.news-single-4 .mediaelement-video,
.fancybox-content div.news-detail-wrap div.news-detail-bild div.news-img-wrap div.outer div.mediaelement div.mediaelement-video iframe,
.fancybox-content div.news-detail-wrap div.news-detail-bild div.news-img-wrap div.outer div.mediaelement div.mediaelement-video video,
.news-single-4 .mediaelement-video iframe {
  width: 100% !important;
  height: 100% !important;
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
}

/* Film-Popup: weitere Bilder unterhalb des Textes, siehe newsDetailGalleries() in main.js */
.news-detail-wrap .news-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin: 30px 0 20px;
}

.news-detail-wrap .news-detail-gallery--single {
  grid-template-columns: minmax(0, 1fr);
}

.news-detail-wrap .news-detail-gallery-item {
  display: block;
  background: none;
}

.news-detail-wrap .news-detail-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  float: none;
  margin: 0;
  padding: 0;
}

/* Fallback-Link hinter dem Video (wird vom geladenen iframe verdeckt), siehe newsDetailVideoLinks() in main.js */
.news-detail-wrap .news-detail-bild .news-detail-video-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: rgb(19, 81, 170);
  color: white;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  text-decoration: underline;
}

/* Vor dem Akzeptieren liegt das Cookie-Banner ueber dem Video */
.news-detail-wrap .outer:has(.mediaelement-video:not(.cookies-accepted)) > .news-detail-video-link {
  display: none;
}

.news-icon:after,
div.quadrat:after {
  content: "";
  background-size: 58px 40px;
  width: 58px;
  height: 40px;
  position: absolute;
  right: 0;
  top: -10px;
  z-index: 200;
  opacity: 0.7;
  display: block;
  background-repeat: no-repeat;
}

.news-icon.icon-quadrat:after,
div.quadrat:after {
  background-image: url(/fileadmin/templates/img/news/zett.png);
}

.news-icon.Gemischtes\%20Doppel:after {
  background-image: url(/fileadmin/templates/img/news/gemischtes-doppel.png);
}

.news-icon.Themenblock\%20Heimat\%20und\%20Reisen:after {
  background-image: url(/fileadmin/templates/img/news/themenblock-heimat-reisen.png);
}

.news-icon.Kinderprogramm:after {
  background-image: url(/fileadmin/templates/img/news/kinderprogramm.png);
}

.news-icon.Kleine\%20Werkschau\%20B\%C3\%B6ller\%20und\%20Brot:after {
  background-image: url(/fileadmin/templates/img/news/kleine-werkschau-boeller-und-brot.png);
}

.news-icon.Tschechisches\%20Filmfenster:after {
  background-image: url(/fileadmin/templates/img/news/tschechisches-filmfenster.png);
}

.news-icon.Ausrei\%C3\%9Fer:after {
  background-image: url(/fileadmin/templates/img/news/ausreißer.png);
}

/* 2023 */
.news-icon.Themenblock\%20\%E2\%80\%9EFreiheit\%E2\%80\%9C:after,
.news-icon.Bayerischer\%20Dokumentarfilmpreis\%20ZETT:after,
.news-icon.Kleine\%20Werkschau:after,
.news-icon.ZWICKERL:after,
.news-icon.Regul\%C3\%A4rprogramm:after {
  background-size: 45px 45px;
  width: 45px;
  height: 45px;
}

.news-icon.Themenblock\%20\%E2\%80\%9EFreiheit\%E2\%80\%9C:after {
  background-image: url(/fileadmin/templates/img/news/2023/themenblock-freiheit.png);
}

.news-icon.Bayerischer\%20Dokumentarfilmpreis\%20ZETT:after {
  background-image: url(/fileadmin/templates/img/news/2023/zett.png);
  background-size: 36px 40px;
  width: 36px;
  height: 40px;
}

.news-icon.Kleine\%20Werkschau:after {
  background-image: url(/fileadmin/templates/img/news/2023/werkschau.png);
}

.news-icon.Regul\%C3\%A4rprogramm:after {
  background-image: url(/fileadmin/templates/img/news/2023/regulär.png);
}

.news-icon.ZWICKERL:after {
  background-image: url(/fileadmin/templates/img/news/2023/zwickerl.png);
}

/* 2025 */
.news-icon.\32 025\%20Zett\%20Preistr\%C3\%A4gerfilm:after {
//  background: #0000009c;
  background-image: url(/fileadmin/templates/img/news/2025/zett-filmpreistraeger.png);
  opacity: 1;
  top: 25px;
  right: 0;
  background-size: 170px 72px;
  width: 170px;
  height: 72px;
  padding: 5px;
  background-repeat: no-repeat;
  background-position: center;
}

/* 2026: Logos rechts neben dem Filmtitel (Item.html, .news-logos).
   Logos ragen 18px ueber die Titelzeile, nach unten bekommt der Titel Platz. */
.filmbox .filmtext .header:has(.news-logo) {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.filmbox .filmtext .header:has(.news-logo) h3 {
  flex: 1 1 auto;
  min-width: 0;
}

.filmbox .filmtext .header .news-logos {
  display: flex;
  flex: none;
  gap: 10px;
  margin: -18px 0 10px;
}

.filmbox .filmtext .header .news-logo {
  display: block;
  width: auto;
  height: 56px;
}

.filmbox {
  width: 100%;
  float: left;
}

.news .filmbox .filmtext .header a {
  margin-bottom: 10px;
  line-height: 20px;
  font-weight: bold;
  font-size: 14px;
  color: black;
}

.filmbild {
  width: 100%;
  float: left;
  position: relative;
  display: block;
}

.zentriert {
  width: calc(100% - 40px);
  float: left;
  position: absolute;
  display: block;
  color: #3a3a3a;
  font-weight: normal;
  font-style: normal;
  text-decoration: none;
  padding: 20px;
  line-height: 24px;
}

.news-list-view div.article.articletype-0 a.btn.btn-primary div.filmbox div.filmbild div.news-img-wrap span.news-list-date time,
.news-list-view div.article.articletype-0 div.filmbox div.filmbild div.news-img-wrap a span.news-list-date time {
  width: 100%;
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  text-align: center;
  color: black;
}

.filmtext {
  width: 100%;
  float: left;
  margin-top: 26px;
  font-size: 14px;
  line-height: 20px;
}

.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: left;
  margin: 0;
  position: relative;
}

.news-list-view div.article.articletype-0 a.btn.btn-primary div.filmbox div.filmtext {
  color: black;
}

.news .article .news-img-wrap a {
  display: block;
  float: left;
  padding: 0px;
  background: #1351aa;
}

.news .article .news-img-wrap img {
  /*float: left;*/
  height: auto;
  width: 100%;
  position: relative;
  transition: 0.2s;
  opacity: 1;
}

div#news-container-28.news-list-view div.article.articletype-0 a.btn.btn-primary div.filmbox div.filmbild div.news-img-wrap span.news-list-date {
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  position: absolute;
  text-align: center;
  color: white;
  font-size: 14px;
  line-height: 20px;
}

.news .article .news-img-wrap img:hover {
  float: left;
  height: auto;
  width: 100%;
  opacity: 0.05;
}

.news .article .teaser-text {
  margin: 0 0 20px;
  -moz-hyphens: auto;
  -o-hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

div.kategorie span.news-list-category {
  border-bottom: 0px solid black;
  padding-bottom: 3px;
  margin-right: 15px;
  color: black;
}

div.teaser-text a.more {
  font-weight: normal;
  font-style: normal;
  text-decoration: none;
  color: black;
}

.news .article h3 {
  margin-bottom: 10px;
  line-height: 20px;
  font-weight: bold;
  font-size: 18px;
}

.kategorie {
  float: left;
  width: 100%;
  font-size: 14px;
  line-height: 20px;
}

div.header h3 a {
  text-decoration: none;
  color: black;
}

.news .footer {
  clear: both;
  padding: 10px 0 0 0;
  border-top: 1px solid #EEE;
  margin-top: 15px;
  color: #888;
}

.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;
}

/* 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: 1px solid #EEE;
  border-bottom: 1px solid #EEE;
}

.news-category-view .category-desc {
  padding-left: 10px;
  margin-left: 10px;
  border-left: 1px solid #DDD;
}

/* 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: 100%;
  margin: 0 0 0 25px;
}

.news-single .article .news-img-wrap img {
  float: none;
  vertical-align: bottom;
}

.news-single .teaser-text {
  font-size: 15px;
  color: #888;
}

.news-single-4 .article {
  width: 100% !important;
  margin: 0 !important;
}

.news-single-4 .article .news-img-wrap {
  float: none;
  background: none !important;
  width: 100%;
  margin: 0;
}

.news-single-4 .article .news-detail-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.news-text-wrap {
  margin-bottom: 10px;
}

.news-img-caption {
  color: #888;
  /*+placement: ;*/
  position: relative;
  left: 0;
  top: 0;
  margin-right: 0;
  margin-left: 0;
//  padding-left: 30px;
  font-size: 12px;
  padding-top: 5px;
  line-height: 24px;
}

/* 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;
}

/* @group Anpassungen se */
.news-list-view a.btn.btn-primary div.article.articletype-0 div.filmbox {
  color: rgba(0, 0, 0, 1);
  -webkit-transition: all 0.2s ease-in, all 0.5s ease-out;
  /* Safari / Chrome */
  -moz-transition: all 0.2s ease-in, all 0.5s ease-out;
  /* Firefox */
  -o-transition: all 0.2s ease-in, all 0.5s ease-out;
  /* Opera */
  transition: all 0.2s ease-in, all 0.5s ease-out;
  /* Standard */
}

.news-list-view a.btn.btn-primary div.article.articletype-0 div.filmbox:hover {
  color: #e4e83b;
}

.p-5.fancybox-content div.news-detail-wrap div.news-detail-text div.news-text-wrap p a,
.news-list-view div.article.articletype-0 div.filmbox div.filmtext div.teaser-text div p a {
  border-bottom: 1px solid black;
  padding-bottom: 3px;
  margin-right: 15px;
//color: black;
  -webkit-transition: all 0.2s ease-in, all 0.5s ease-out;
  -moz-transition: all 0.2s ease-in, all 0.5s ease-out;
  -o-transition: all 0.2s ease-in, all 0.5s ease-out;
  transition: all 0.2s ease-in, all 0.5s ease-out;
  font-weight: normal;
  font-style: normal;
  text-decoration: none;
}

.news-list-view div.article.articletype-0 div.filmbox div.filmtext div.teaser-text div {
  padding-bottom: 10px;
}

.news-list-view div.article.articletype-0 div.filmbox div.filmtext div.teaser-text a.btn.btn-primary:hover,
.p-5.fancybox-content div.news-detail-wrap div.news-detail-text div.news-text-wrap p a:hover {
  color: #F3976C;
}

.news-list-view div.article.articletype-0 div.filmbox div.filmtext div.teaser-text div ul {
  padding-left: 30px;
  padding-bottom: 10px;
  padding-top: 10px;
}

.p-5.fancybox-content div.news-detail-wrap div.news-detail-text div.news-text-wrap ul {
  padding-left: 60px;
  padding-bottom: 20px;
  font-size: 14px;
  line-height: 20px;
}

.p-5.fancybox-content div.news-detail-wrap div.news-detail-text div.news-text-wrap ul li {
}

/* @end */
/* @group Anpassungen se (ergänzt) */
div#hello171.p-5.fancybox-content div.news-detail-wrap div.news-detail-bild img {
  margin-top: 0;
  padding-top: 0;
  float: left;
}

.fancybox-content div.news-detail-wrap div.news-detail-bild img {
  width: 100%;
  height: auto;
  float: left;
  position: relative;
  padding-top: 0;
}

.fancybox-content div.news-detail-wrap div.news-detail-bild div.news-img-wrap div.news-img-wrap div.outer div.mediaelement.mediaelement-image a.lightbox img {
  margin-bottom: 0;
  margin-top: 0;
}

/* @end */
@media only screen and (max-width: 780px) {
  .news .news-list-view-6 .article {
    padding-bottom: 30px;
    margin-bottom: 30px;
    margin-right: 15px;
    float: left;
    width: calc((100% / 2) - 30px);
    margin-left: 15px;
    min-height: 550px;
  }

  .news .news-list-view-6 > .article:nth-of-type(2n+1) {
    clear: both;
  }
}

@media only screen and (max-width: 560px) {
  .news .news-list-view-6 .article {
    padding-bottom: 10px;
    margin-bottom: 10px;
    margin-left: 0;
    margin-right: 0;
    float: left;
    width: calc((100% / 1) - 0px);
    min-height: 350px;
  }
}

@media only screen and (min-width: 781px) {
  .news .news-list-view-6 > .article:nth-of-type(2n+1) {
    clear: initial;
  }

  .news .news-list-view-6  > .article:nth-of-type(3n+1) {
    clear: both;
  }
}
