.history-wrapper{
    margin-bottom:  100px;
}

.history-wrapper > ul.history-nav {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0;
    margin: 32px 0;
}

.history-wrapper > ul.history-nav > li {
    display: block;
    margin-bottom: 4px;
}

.history-wrapper > ul.history-nav > li:not(:last-child) {
    margin-right: 4px;
}

.history-wrapper > ul.history-nav > li > span {
    display: block;
    height: 20px;
    width: 2px;
}

/*.history-wrapper > ul.history-nav > li > span,*/
.history-wrapper > ul.history-nav > li > a {
    display: flex;
    position: relative;
    height: 50px;
    width: 20px;
    font-style: normal;
    color: #fff;
    line-height: 0.7;
    font-size: 16px;
    justify-content: center;
    align-items: center;
}

.history-wrapper > ul.history-nav > li > a span {
    display: block;
    transform: rotate(-90deg);
}

.history-wrapper > ul.history-nav > li > span {
    background-color: #d0d0d0;
}

.history-wrapper > ul.history-nav > li > a {
    background-color: #c7c2a4;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.history-wrapper > ul.history-nav > li > a:hover,
.history-wrapper > ul.history-nav > li > a.history-active {
    background-color: #a89e62;
}

.history-event + .history-event {
    margin-top: 40px;
}

.history-events-year:not(.history-active) {
    display: none;
}

/* Site specific */
.gfitfw-theme-entry-content p img {
    max-width: 100%;
    height: auto;
}

.history-wrapper ~ h2 {
    display: block;
    position: relative;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    width: 100%;
    margin: 60px 0 10px;
    border-radius: 10px 0 10px 0;
    padding: 5px 15px;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    text-decoration: none;
    background-color: rgb(230, 230, 230);
}

/* Badge */
.history-badge {
    display: block;
    position: absolute;
    left: 50%;
    top: 450px;
    margin-left: 460px;
    height: 140px;
    width: 200px;
    background-image: url(/wp-content/plugins/history/modules/badge/30-jahr-logo.png);
    background-size: contain;
    background-position: center center;
    transform: rotateZ(10deg);
    z-index: 20;
}

.history-badge span {
    display: none;
}

@media only screen and (max-width:1340px){
    .history-badge {
        top: 140px;
        margin-left: 220px;
        height: 105px;
        width: 150px;
        transform: none;
    }
}


@media only screen and (max-width:560px){
    .history-empty{
        display: none !important;
    }

    .history-wrapper > ul.history-nav{
        justify-content: flex-start;
    }
}

@media only screen and (max-width:740px){
    .history-badge {
        top: 120px;
        margin-left: 0;
        left: auto;
        right: 20px;
        transform: none;
    }
}