/* teaser-boxes.css -- Teaserboxen unten links auf Übersichtsseiten, animiert mit carouFredsel */


  /* Teaserboxen */

.caroufredsel_wrapper {
  height: 179px !important;
  
  /* Commented to replace original pagination */
  /* margin-bottom: 14px !important; */
  
  /* Added to replace original pagination */
  margin-bottom: 8px !important;
}

#teaser-boxes {
  margin-top: 15px;
  height: 100%;
}
.teaser-row {
  margin: 0px 0px 15px;
  height: 100% !important;
}
.teaser-box-wrap {
  display: inline;
  float: left;
  width: 50%;
}
.teaser-box {
  position: relative;
  /* width: 375px; */
  height: 100%;
  padding: 6px 0px 20px 26px;
  margin: 0px 15px 0px 0px;
  background-color: #ccc;
}
.teaser-box-header {
  margin-top: 5px;
  margin-right: 10px;
  margin-bottom: 12px;
  height: 22px !important;
  display: table-cell;
  /*vertical-align: middle;*/
  padding:3px 0px 4px 0px;
}
.teaser-box-header, .teaser-box-header > a {
  height: 1em;
  color: #32474f;
  font-size: 19px;
  text-decoration: none;
}
.teaser-box-image img {
  width: 100%;
  height: auto;
}
.teaser-box-image > a {
  display: block;
}
.teaser-box > p {
  margin-top: 1px;
  margin-right: 10px;
  margin-bottom: 0px;
  font-size: 15px;
  color: #32474f;
}
.teaser-box-link {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24px;
  height: 24px;
  background-color: #aaa;
}
.teaser-box-link > a {
  color: white;
  font-size: 19px;
  text-decoration: none;
}
.teaser-box-link > a > span:before {
  left: 3px;
  top: 2px;
  transform: scaleY(0.8);
}

.teaser-box p:last-of-type:empty {
  display: none;
}

  /* Scrollbar / Pagination */

#teaser-scrollbar {
  width: calc(100% - 15px);
  
  /* Commented to replace original pagination */
  /* background-color: #f2f3f4; */
}
#teaser-scrollbar > a {
  color: white;
  font-size: 19px;
  text-decoration: none;
}
#teaser-scrollbar > a, #teaser-scrollbar > div > a {
  height: 24px;
}
#teaser_prev {
  float: left;
  padding-right: 5px;
  width: 24px;
  text-align: right;
  outline: none;
  background-color: #95a2a6;
}
#teaser_next {
  float: right;
  padding-left: 5px;
  width: 24px;
  text-align: left;
  outline: none;
  background-color: #95a2a6;
}
#teaser_prev > span:before {
  left: 2px;
}
#teaser_next > span:before {
  right: 2px;
}
#teaser-scrollbar > a > span:before {
  top: 2px;
  transform: scaleY(0.8);
}
#teaser-pagination {
  overflow: hidden;
  float: left;
  
  /* Commented to replace original pagination */
  /* margin-right: 4px;
  margin-left: 4px; */
  
  /* Added to replace original pagination */
  width: 100%;
  text-align: center;
}
#teaser-pagination > a {
  /* Commented to replace original pagination */
  /* display: block;
  float: left;
  margin-right: 23px;
  width: 69px;
  text-indent: 55555em;
  outline: none;
  color: transparent; */
  
  /* Added to replace original pagination */
  background-color: transparent;
  color: transparent;
  background-image: url(/fileadmin/user_upload/icons/owl/owl_dot.png);
  background-repeat: no-repeat;
  border: none !important;
  width: 21px;
  height: 25px;
  display: inline-block;
  background-position: center center;
  padding: 13px;
  margin: 0;
  background-size: 15px;
  outline: none;
}

/*
.many-elements #teaser-scrollbar {
  display: flex;
}
*/

/*
.many-elements #teaser-prev, .many-elements #teaser_next {
  flex-grow: 0;
}
*/

/*
.many-elements #teaser-pagination {
  flex-grow: 1;
  display: flex;
}
*/

/*
.many-elements #teaser-pagination > a {
  flex-grow: 1;
  flex-shrink: 1;
  display: initial;
  float: initial;
  text-indent: initial;
}
*/

@media (min-width: 992px) {

.teaser-box-wrap {
  height: 100%;
}
#teaser-boxes .mobile-teaser-row {
  display: none !important;
}

}


/* Teaserboxen werden für kleinsten Bootstrap-Viewport komplettbreit */

@media (max-width: 991px) {  /* md */

.teaser-box-wrap {
  width: 33.33%;
}

/* << Platz schaffen für Fahrplaner und Störmeldungen */
body:not(.area-aktuelles) .teaser-box-wrap:nth-child(2n + 1) {
  clear: both;
}
body:not(.area-aktuelles) .teaser-box-wrap:nth-child(n + 10) {
  clear: none;
}
body.area-aktuelles .teaser-box-wrap:nth-child(3n) {
  clear: both;
}

/*.area-aktuelles.pagelayout-overview .teaser-box-wrap:nth-child(5), .area-aktuelles.pagelayout-overview .teaser-box-wrap:nth-child(7)  {*/
  /*clear: none;*/
/*}*/
.teaser-box {
  margin-bottom: 15px;
}
.teaser-box-text {
  height: 3em;
}
#teaser-scrollbar, #teaser-boxes .caroufredsel_wrapper, #teaser-boxes .teaser-row {
  display: none !important;
}

}

@media (max-width: 767px) {  /* sm (small) + below */

#teaser-boxes {
}
.teaser-box-wrap {
  width: 100%;
}
}


@media (min-width: 1350px) {
  #content-teaser-area > .row > .col-lg-9 {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    max-width: calc(75% + 28px);
  }
}

@media (min-width: 1118px) and (max-width: 1349px) {
  #content-teaser-area > .row > .col-lg-9 {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    max-width: calc(75% + 15px);
  }
}

/* Added to replace original pagination */
#teaser_prev,
#teaser_next {
    display: none !important;
}
#teaser-pagination > a.visible {
    background-color: transparent !important;
    background-image: url(/fileadmin/user_upload/icons/owl/owl_dot_active.png);
}