.referenzen-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.referenz {
    width: calc((100% - 30px) / 2); /* 60px = 2 * (10px margin + 20px padding) */
    margin-bottom: 1rem;
}

.referenz-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 10px;
}

.referenz img {
    width: 190px;
    height: 100px;
    margin-bottom: 2rem;
}

.referenz-content {
  display: none;
  position: relative;
  padding: 1rem;
  background: #E7EAF0;
border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.referenz-content:after {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  margin-left: -20px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 20px 20px 20px;
  border-color: transparent transparent #E7EAF0 transparent;
}

.referenz-content {
  display: none;
}

.referenz-content.show {
  display: block;
}

@media (min-width: 769px) {
    .referenz {
        flex-basis: calc((100% - 80px) / 4); /* 80px = 4 * (10px margin + 20px padding) */
    }

    .referenz:nth-child(4n-1),
    .referenz:nth-child(4n) {
        margin-right: 0;
    }

    .referenz:nth-child(4n-3),
    .referenz:nth-child(4n-2) {
        margin-right: 2%;
    }

    .referenz-content {
        width:300px;
        padding: 1em;
        margin-left: -2em;
        margin-right: -2em;
    }

    .referenz:after {
        margin-left: -30px; /* 15px + 2em */
    }
}


.referenz-content h3 {
    color: #5E6A71;
    font-family: "DIN Pro";
    font-size: 1rem;
    font-weight: bold;
}

.referenz-content p {
    color: #5E6A71;
    font-family: "DIN Pro";
    font-size: 1rem;
    font-weight: normal;
}

.referenz-content a {
    color: #5E6A71;
}

.referenz-logo {
    /* opacity: 0.1;*/
    transition: opacity 0.3s ease-in-out;
			border-bottom: 3px solid white!important;


	
}

.referenz-logo.active {
    opacity: 1;
}

.referenz-logo:hover {
    opacity: 1;
	border-bottom: 3px solid #7793c6!important;
}

img.referenz-logo {
    padding-bottom: 1em;
}