body.isoli-page #content-main-area .ce {
  margin-right: 20px;
}

body.isoli-page header > h1 {
  font-family: MetaWeb;
  font-weight: bold;
}

li.tramline-logo, li.busline-logo, li.nightline-logo {
  background-color: initial !important;
}

.tramline-logo > p, .busline-logo > p, .nightline-logo > p {
  display: none;
}

.tramline-logo:before, .busline-logo:before, .nightline-logo:before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  margin-top: 3px;
  background-image: url(/fileadmin/public/assets/icons/linienfahrplaene_icons.svg);
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #3e4d53;
  /* background-color: #ff0000; */
}

.tramline-logo:before {
  background-position-x: -2px;
}

.busline-logo:before {
  background-position-y: -65px;
}

.nightline-logo:before {
  background-position-y: -130px;
}

.timetables-accordion {
  margin-bottom: 20px !important;
}

.timetables-accordion .ui-widget-header {
  height: 86px;
}

h3.ui-accordion-header {
  font-size: 16px !important;
  font-weight: bold !important;
  letter-spacing: 0.4px;
  padding-top: 7px !important;
  padding-bottom: 3px !important;
  background-color: #e2e5e6 !important;
  color: #32474f !important;
}

h3.ui-accordion-header.ui-state-active {
  background-color: #32474f !important;
  color: #e2e5e6 !important;
}

.timetables-content .endstations p {
  padding-top: 4px;
}

.timetables-content.timetables-linename .endstations .startstation {
  margin-bottom: 0;
  border-bottom: 1px solid;
}
.timetables-content.timetables-linename .endstations .endstation {
  margin-top: 0;
  border-top: 1px solid;
}

.timetables-busline .linename {
  margin-top: 8px;
  position: relative;
}

.timetables-busline .timetables-linename .startstation {
  margin-left: -20px !important;
}
.timetables-busline .timetables-linename .endstation {
  margin-left: -20px !important;
}

.timetables-accordion .linename {
  margin-top: 0px;
  min-height: 40px !important;
  height: 40px;
  margin-right: 3px !important;
}

.timetables-accordion .startstation {
  margin-top: 0px;
}

.timetables-accordion .timetables-timespan {
  display: inline-table;
  vertical-align: middle;
  font-size: 11pt !important;
  line-height: 1.5;
  position: relative;
  width: 100%;
}

.timetables-accordion .scrollContent td {
  padding-top: 3px;
  background-color: #FFFFFF !important;
}

.timetables-accordion .ui-tabs-anchor {
  height: 77px !important;
  max-height: 77px !important;
}

.timetables-accordion .ui-state-active .ui-tabs-anchor {
  height: 80px !important;
  max-height: 80px !important;
}

.timetables-accordion .ui-tabs-nav li.ui-tabs-active.ui-state-active {
  background-color: #FFFFFF !important;
  /*max-width: initial !important;*/
}

.timetables-accordion .ui-tabs-nav li.ui-state-default {
  background-color: #6F7E84 !important;
  background-image: none !important;
  margin-right: 22px;
}

.timetables-accordion .ui-widget-header {
  background-color: #32474F !important;
}

.timetables-accordion .ui-tabs-nav li.ui-state-active .timetables-description {
  color: #32474F !important;
}

.timetables-accordion .ui-widget-content .ui-state-default a .timetables-description {
  font-size: 16pt !important; /* According to the design */
  font-size: 14pt !important;
}

.timetables-accordion .ui-tabs-anchor {
  padding: 6px 9px !important;
}

.timetables-accordion thead.fixedHeader tr {
  background-color: #FFFFFF;
  padding-top: 9px;
  padding-bottom: 2px;
}

.timetables-accordion .timetables-panel {
  padding-top: 0px !important;
}

.timetables-accordion .timetables-header {
  font-size: 11pt !important;
}

.timetables-accordion .timetables-stationplan, .timetables-accordion .timetables-route, .substitute-show {
  font-size: 16px;
  font-weight: bold;
}

.timetables-accordion .timetables-stationplan > a, .substitute-show {
  color: #32474F !important;
}

.substitute-show {
  padding-left: 10px;
  width: 100%;
  height: 100%;
  position: absolute;
  padding-top: 7px;
}

.substitute-span {
  cursor: pointer;
}

.substitute-span:hover .substitute-show {
  text-decoration: underline;
}

.timetables-accordion table td {
  vertical-align: middle !important;
}

.timetables-stationplan::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin-top: -4px;
  margin-right: 10px;
  background-image: url(/fileadmin/public/assets/icons/linienfahrplaene_icons.svg);
  background-position-y: -85px;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #FFFFFF;
  float: left;
}

.timetables-alternatives .endstations > p > a, .timetables-alternatives .startstation::before, .timetables-alternatives .endstation::before  {
  font-size: 11pt !important;
}

.timetables-alternatives p.startstation {
  margin-bottom: 0 !important;
}

.timetables-alternatives p.endstation {
  margin-top: -2px !important;
}

.timetables-panel a {
  color: #32474F !important;
}

.timetables-route {
  font-size: 17px;
}

.timetables-panel tr:not(:first-child) td {
  border-top: 1px dotted #666 !important;
}


/* /auskunft/infos-plaene/linien-und-fahrplaene/ */

.timetables-rightcol .timetables-stations {
  flex: 1;
}

.timetables-rightcol .timetables-stations td:last-child {
  padding-left: 5px !important;
}

.timetables-rightcol {
  padding-right: 10px;
}

.timetables-rightcol td {
  padding: 0 !important;
}

.timetables-wrap .timetables-extlinename {
}

.timetables-line-footer img {
  display: none;
}

.timetables-line-footer > a {
  margin-left: 2px;
}

.timetables-line-footer a:before {
  content: '\e801';
  font-family: "bsag_icons";
  font-style: normal;
  font-weight: normal;
  color: #ffffff;
  speak: none;

  display: inline-block;
  text-decoration: inherit;
  position: relative;
  margin-right: 8px;
  width: 0.5em;
  text-align: center;
  font-variant: normal;
  text-transform: none;
  line-height: 1em;
  font-size: 16px;
  top: -1px;
}

.timetables-accordion .table-responsive {
  overflow-x: overlay;
}

.timetables-accordion .scrollContent {
  background-color: #cacfd1;
}

#c675 .tramline-logo, #c675 .busline-logo, #c675 .nightline-logo {
  margin-right: 30px !important;
}

#c675 .ui-tabs-nav li + li {
  width: 190px;
}



@media (max-width: 991px) {
  .timetables-accordion {
    display: none;
  }


  /* >>> timetables-accordion-mobile >>> */

  h3.linetype, .schedules > li {
    margin-bottom: 8px;
  }

  h3.linetype,
  .timetables-header,
  .timetables-content .timetables-stationplan a,
  .line-timetable .endstations,
  .timetables-route,
  .substitute-show,
  .timetables-linelist-show div {
    position: relative;
    border: 1px solid #32474f;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.2px;
    background-color: #e2e5e6;
    color: #32474f;
    padding: 7px 7px 3px 10px;
    transition: 0.2s;
  }

  .timetables-header {
    height: 78px;
    border-left: 15px solid;
  }

  h3.linetype {
    height: 78px;
    padding-top: 28px;
  }

  .linetype-close h3.linetype {
    font-size: 21px;
  }

  .timetables-content .endstations p.startstation, .timetables-content .endstations p.endstation {
    text-align: left;
    padding: 4px 7px 1.5px 10px;
  }

  h3.linetype.active {
    border: 1px solid #e2e5e6;
    background-color: #32474f;
    color: #e2e5e6;
  }

  .linetype-open h3.linetype {
    height: 34px;
    padding-top: 7px;
  }

  .timetables-content .timetables-stationplan a,
  .line-timetable .endstations,
  .line-timetable .endstations a,
  .timetables-content a.timetables-route,
  .substitute-show  {
    border: none;
    color: #32474f;
  }

  h3.linetype.bus, h3.linetype.night {
    margin-top: initial;
  }

  .schedules.tram, .schedules.bus {
    margin-bottom: 32px;
  }

  .timetables-accordion-mobile .ui-icon {
    position: absolute;
    top: 50%;
    margin-top: -8px;
  }

  .timetables-accordion-mobile .substitute-icon,
  .timetables-accordion-mobile .timetables-stationplan::before {
    display: none;
  }

  .substitute-link-wraper::before, .timetables-stationplan-wraper::before {
    display: block;
    position: absolute;
    border: 3px solid;
    height: 32px;
    width: 34px;
    text-align: center;
    padding-top: 5px;
    font-weight: bold;
    left: 12px;
  }

  .substitute-link-wraper, .timetables-stationplan-wraper {
    position: relative;
  }

  .substitute-link-wraper::before {
    content: "i";
    color: #e30513;
    border-color: #e30513;
  }

  .substitute-link::before {
    content: "";
    border: 2px solid #e30513;
    height: 3px;
    width: 14px;
    float: left;
    left: 46px;
    top: 14px;
    position: absolute;
  }

  .timetables-stationplan-wraper::before {
    content: "H";
  }

  .schedules {
    padding-left: 0;
    margin-top: 0;
    display: none;
  }

  .schedules > li, .lines > li {
    list-style-type: none !important;
  }

  .timetables-header.active {
    /*height: 56px;*/
    background-color: white;
    color: #32474f;
  }

  .schedules .lines {
    padding-left: 0;
  }

  .lines > li {
    background-color: initial;
    margin-top: 15px;
  }

  .lines .timetables-content .endstations,
  .timetables-stationplan a,
  .line-timetable .endstations,
  .timetables-route,
  .substitute-show {
    float: right;
    max-width: none;
    width: calc(100% - 60px);
  }

  .timetables-content::after {
    content: "";
    clear: both;
    display: table;
  }

  .lines .timetables-content .linename {
    width: 58px;
    height: 58px;
    max-width: none;
    max-height: none;
    min-height: initial;
    min-width: initial;
    margin-right: 0;
    color: white;
    font-family: MetaWeb;
    font-weight: bold;
    font-size: 25px;
    line-height: 2.5;
    text-align: center;
  }

  .lines .timetables-content .endstations p {
    padding-top: 3px;
    font-size: 17px;
    letter-spacing: 0.2px;
  }

  .startstation {
    margin-top: 0;
  }

  .timetables-content {
    margin-top: 15px;
  }
  .timetables-content-wraper {
    display: none;
  }

  .schedules .lines {
    display: none;
    margin-bottom: 22px;
  }

  .timetables-description {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
  }

  h3.linetype, .timetables-header, .timetables-linename {
    cursor: pointer;
  }

  .substitute-show:hover, .substitute-show:active {
    text-decoration: underline;
    cursor: pointer;
  }
  /* <<< timetables-accordion-mobile <<< */

  body.isoli-page #content-main-area .ce {
    margin-right: 5px;
  }

}

@media (max-width: 767px) {
  .timetables-extlinename {
    height: 58px;
    width: 58px;
    text-align: center;
    font-size: 25px !important;
    line-height: 2.5 !important;
  }

  .timetables-stations td:first-child {
    width: 58px;
  }

  table.timetables-stations {
    max-width: none;
    width: calc(100% + 10px) !important;
    margin-top: 30px;
  }

  .timetables-destination {
    height: 58px;
  }
  .timetables-linelist {
    width: initial !important;
    padding-top: initial !important;
    display: none;
  }

  .timetables-linelist-show td, .timetables-linelist-show+tr td {
    border-top: none !important;
  }

  .timetables-wrap {
    background-color: initial !important;
  }

  .timetables-wrap-title p, .endstations-wraper, .timetables-info-help {
    display: none;
  }

  .linetype-title, .timetables-info-description {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.2px;
    padding: 6px 7px 4px 10px;
    border: 1px solid #32474f;
  }

  .linetype-title {
    color: #e2e5e6;
  }

  .timetables-info-description {
    margin-top: 20px !important;
    /*margin-bottom: 20px !important;*/
    margin-bottom: initial !important;
    background-color: white;
    color: #32474f;
    max-width: 100% !important;
  }

  .timetables-line-infocol {
    max-width: none !important;
    float: none !important;
    margin-left: initial !important;
  }

  .timetables-linelist-show div {
    border: none;
    background-color: #e2e5e6 !important;
  }

  .timetables-stations td {
    background-color: white !important;
  }

  .timetables-destination .destination-caption {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    font-size: 25px !important;
  }

  .timetables-line-footer {
    margin-top: 40px;
    padding: 0 !important;
    height: 34px;
    width: 100%;
  }

  .timetables-line-footer a {
    display: block;
    height: 100%;
    width: 100%;
    padding: 8px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.2px;
  }
}

@media (min-width: 768px) {
  .timetables-rightcol {
    float:left;
  }

  .linetype-title, .timetables-linelist-show {
    display: none;
  }

  .timetables-rightcol > table:last-child {
    margin-left: 50px;
  }

  .timetables-linelist {
    display: initial !important;
  }
}

@media (min-width: 992px) {
  .timetables-accordion-mobile {
    display: none;
  }

  .timetables-rightcol {
    display: flex;
  }
}
