.org-list {
  margin-top: 2rem;
}

.org-list small {
  display: block;
  font-size: 0.688rem;
  margin: 0;
}

.org-list li button,
.org-list li span,
.org-list li .collapse {
  position: relative;
  z-index: 1;
}

.org-list li.main h2 {
  margin: 0;
}

.org-list ul {
  padding: 0;
  margin: 0;
  list-style: none;
  line-height: 1.2rem;
}

.org-list ul li {
  position: relative;
  padding: 0;
  margin-top: 1rem;
}

.org-list ul ul li:before {
  content: '' !important;
}

.org-list ul ul {
  margin-top: 1rem;
  margin-left: 1rem;
}

.org-list .horizontal-line.show,
.org-list .vertical-line.show {
  opacity: 1;
}


.org-list .horizontal-line {
  top: 0;
  position: absolute;
  width: 1rem;
  height: 1px;
  background: #4691af;
  left: -1rem;
  opacity: 0;
}

.org-list .vertical-line {
  position: absolute;
  width: 1px;
  height: 100%;
  background: #4691af;
  left: 1rem;
  opacity: 0;
}

.org-list ul ul {
  margin-top: 1rem;
  margin-left: 2rem;
}

.org-list ul li span,
.org-list ul li button {
  display: block;
  border: 1px solid #4691af;
  text-align: left;
  overflow: visible;
  text-decoration: none;
  color: #4691af;
  font-size: 0.75rem;
  -webkit-transition: all linear .1s;
  -moz-transition: all linear .1s;
  transition: all linear .1s;
  background: #ffffff;
  padding: 15px 1rem;
  word-wrap: break-word;
  vertical-align: middle;
  width: 100% !important;
}


.org-list li > button:after {
  display: block;
  content: "\e605";
  font-family: 'icomoon';
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: absolute;
  right: 1rem;
  top: 9px;
  font-size: 1.5rem;
}

.org-list li.main > button:after {
  top: 21px;
}

.org-list li > button[aria-expanded="true"]:after {
  content: "\e60c";
  font-weight: normal !important;
}

.org-list li > button[aria-expanded="true"] {
  border-width: 1px 1px 0 1px;
  font-weight: bold;
  font-size: 1.05rem;
}

.org-list .card-body h2 {
  margin-top: 0;
}

.org-list .card-body p {
  margin-bottom: 0;
}

.org-list .card {
  border: 0;
  border-radius: 0;
  padding: 1rem;
}


/* legend */
.content .legend {
  line-height: 1rem;
}

.content .legend li {
  padding: 10px;
  font-size: 0.75rem;
  font-weight: bold;
  display: inline-block;
}

.legend li:before {
  display: none;
}

.legend .legend-department {
  border: 1px solid #00506D;
  background: #00506D;
  color: #ffffff;
  width: 90px;
  text-align: center;
  margin-right: 1rem !important;
}

.org-list .department > button {
  background: #00506D;
  border-color: #00506D;
  color: #ffffff;
}

.org-list .department > .collapse > .card {
  background: #ffffff;
  color: #000;
  border: 1px solid #00506D;
}

.legend .legend-team {
  border: 1px solid #4691AF;
  color: #fff;
  background: #4691AF;
  width: 90px;
  text-align: center;
  margin-right: 1rem !important;
}

.org-list .team > button {
  background: #4691AF;
  color: #fff;
  border: 1px solid #4691AF;
}

.org-list .team > .collapse > .card {
  border-color: #4691AF;
  border-style: solid;
  border-width: 0 1px 1px 1px;
}

.legend .legend-stabstelle {
  border: 1px solid #A2C8D7;
  background: #A2C8D7;
  color: #000;
  width: 90px;
  text-align: center;
}

.org-list .stabstelle > button {
  background: #A2C8D7;
  color: #000;
  border: 1px solid #A2C8D7;
}

.org-list .stabstelle > button:after {
  color: #fff;
}

.org-list .stabstelle .card {
  border: 1px solid #A2C8D7;
  border-width: 0 1px 1px 1px;
}

.org-list .dhk > button,
.org-list .corporate-services > button,
.org-list .corporate-services > span {

  background: #fff;
  color: #4691AF;
  border: 1px solid #4691AF;
}

.org-list .dhk .card {
  background: #ffffff;
  color: #000;
  border: 1px solid #4691AF;
  border-width: 0 1px 1px 1px;
}

.org-list .main > button {
  background: #fff;
  color: #4691af;
  border: 1px solid #4691af;
}

.org-list .main > .collapse > .card {
  background: #ffffff;
  color: #000;
  border: 1px solid #4691af;
  border-width: 0 1px 1px 1px;
}


@media all and (max-width: 767px) {

  .legend .legend-department,
  .legend .legend-team,
  .legend .legend-stabstelle {
    width: 100%;
    margin-right: 0;
  }

}
