/* ==========================================================================
   Projects
   ========================================================================== */

.c-flex-row {
    margin-right: -20px;
    margin-left: -20px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-flow: row wrap;
        -ms-flex-flow: row wrap;
            flex-flow: row wrap;
}

.c-flex-col-4,
.c-flex-col-6,
.c-flex-col-8{
    position: relative;
    min-height: 1px;
    padding-right: 20px;
    padding-left: 20px;
}

.c-flex-col-6 {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 50%;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
}

.c-flex-col-4 {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 33.33333%;
    -ms-flex: 0 0 33.33333%;
    flex: 0 0 33.33333%;
    max-width: 33.33333%;
}

.c-flex-col-8 {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 66.66667%;
    -ms-flex: 0 0 66.66667%;
    flex: 0 0 66.66667%;
    max-width: 66.66667%;
}


.c-title-project .c-lead {
    padding-bottom: 0.8em;
    margin-bottom: 3.5rem;
}

.c-box-status {
    position: relative;
    padding: 40px 34px 40px 27px;
    border: solid 2px #e5e5e5;
    text-align: center;
}

.c-box-status h3,
.c-box-status .c-keyfact-text {
    padding-left: 7px;
}

.c-project-status {
    position: relative;
    width: 185px;
    height: 90px;
    padding: 7px;
    margin: 0.5em auto 0 auto;
    border: solid 7px #e5e5e5;
    border-radius: 12px;
}

.c-project-status::after {
    content:'';
    position: absolute;
    top: 50%;
    margin-top: -24px;
    left: 100%;
    width: 21px;
    height: 48px;
    border-radius: 0 3px 3px 0;
    background-color: #e5e5e5;
}

.c-project-status-bar {
    display: block;
    height: 100%;
    width: 0;
    background-color: #ffb602;
    border-radius: 3px;
}

.c-timeline,
.c-container-medium.c-timeline {
    padding-left: calc(100px + 40px);
    padding-bottom: 0;
    margin-bottom: 3.5em;
}

.c-timeline::before {
    content:'';
    position: absolute;
    top: 0;
    left: 40px;
    width: 2px;
    height: calc(100% - 40px);
    background-color: #e5e5e5;
}

.c-timeline-year-container {
    position: relative;
}

.c-timeline-year-container + .c-timeline-year-container {
    margin-top: calc(3.5em - 40px);
}

.c-timeline-current-year,
.c-timeline-year-container + .c-timeline-current-year {
    margin-top: calc(7em - 40px);
}

.c-timeline-current-year::before {
    content:'';
    position: absolute;
    top: -3.5em;
    left: -100px;
    height: 1px;
    width: calc(100% + 100px);
    border-top: dotted 2px #e5e5e5;
}

.c-timeline-year,
.c-timeline-category {
    font-size: 14px;
    font-family: 'Akkurat-Bold', 'Arial', 'Helvetica', sans-serif;
    font-weight: normal;
}

.c-timeline-year {
    display: block;
    position: absolute;
    left: -100px;   
    top: -1px;
    padding-left: 20px;
    line-height: 1;
}

.c-timeline-year::before {
    content:'';
    position: absolute;
    top: 1px;
    left: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e5e5e5;
}

.c-timeline-current-year .c-timeline-year {
    color: #1994BE;
}

.c-timeline-current-year .c-timeline-year::before {
    background-color: #1994BE;
}

.c-timeline-item {
    padding-bottom: 40px;
}

.c-timeline-text {
    position: relative;
    padding: 40px 34px;
    border: solid 2px #e5e5e5;
}

.c-timeline-img {
    overflow: hidden;
}

.c-timeline-img + .c-timeline-text {
    border-top: none;
}

.c-timeline-milestone .c-timeline-text {
    background-color: #623985;
    border-color: #623985;
}

.c-timeline-milestone .c-timeline-text {
    font-size: 28px;
}

.c-timeline-milestone-icon {
    display: inline-block;
    padding-left: 30px;
}

.c-timeline-milestone-icon::before {
    left: 0;
    top: -0.5em;
    width: 18px;
    height:22px;
    background-position: 0 -1480px;
}

.c-timeline-item a {
    text-decoration: none;
    color: #000;
}

.c-timeline-item a .c-timeline-img img {
    -webkit-transition:transform 5s ease-out;
       -moz-transition:transform 5s ease-out;
        -ms-transition:transform 5s ease-out;
            transition:transform 5s ease-out;
}

.c-timeline-item a:focus .c-timeline-img img,
.c-timeline-item a:hover .c-timeline-img img {
    -webkit-transform:scale(1.1);
       -moz-transform:scale(1.1);
        -ms-transform:scale(1.1);
            transform:scale(1.1);
}

.c-project-overview-name {
    position: relative;
    color: #1994BE;
    
}

.c-date-overview {
    position: relative;
    display:inline-block;
    padding-right: 0.9em;
    margin-right: 0.5em;
}

.c-date-overview::before {
    content:'\007C';
    position: absolute;
    right: 0;
    top: 0;
    color: #000;
    opacity: 0.5;
}

.c-project-nav-list {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.c-project-nav-list > li {
    padding-bottom: 20px;
}

.c-project-nav .c-btn {
    display: block;
    text-align: left;
}

/* ==========================================================================
   Project responsive styles
   ========================================================================== */

@media only screen and (max-width:1500px) {  
    .c-timeline-item {
        font-size: 16px;
    }
    
    .c-timeline-milestone .c-timeline-text {
        font-size: 22px;
    }
}

@media only screen and (max-width:1319px) { 
    .c-box-status,
    .c-timeline-text {
        padding: 20px;
    }
}


@media only screen and (max-width:1200px) {  
    .c-flex-row {
        margin-right: -10px;
        margin-left: -10px;
    }

    .c-flex-col-4,
    .c-flex-col-6,
    .c-flex-col-8 {
        padding-right: 10px;
        padding-left: 10px;
    }
    
    
    .c-timeline,
    .c-container-medium.c-timeline {
        padding-left: calc(100px + 20px);
    }
    
    .c-timeline::before {
        left: 20px;
        height: calc(100% - 20px);
    }
    
    .c-timeline-item {
        padding-bottom: 20px;
    }
    
    .c-timeline-year-container + .c-timeline-year-container {
        margin-top: calc(3.5em - 20px);
    }
    
    .c-timeline-current-year,
    .c-timeline-year-container + .c-timeline-current-year {
        margin-top: calc(7em - 20px);
    }
}


.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 0px;
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container iframe,
.video-container object,
.video-container embed,
.video-container video,
.video-container video-js,
.video-container .poster-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media only screen and (max-width:1100px) {  
    .c-timeline .c-flex-col-4 {
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 50%;
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .c-timeline .c-flex-col-8 {
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 100%;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media only screen and (max-width:960px) {  
    .c-title-project .c-col-8,
    .c-title-project .c-col-4 {
        width: 100%;
        float: none;
    }
    
    .c-title-project .c-col-4 {
        padding-top: 3.5em;
    }
}

@media only screen and (max-width:920px) {  
    .c-project-nav .c-flex-col-4 {
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 50%;
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media only screen and (max-width:780px) {  
    .c-timeline,
    .c-container-medium.c-timeline {
        padding-left: 40px;
    }
    
    .c-timeline-current-year::before {
        left: -20px;
        width: calc(100% + 20px);
    }
    
    .c-timeline-year-container {
        padding-top: 2em;
    }
    
    .c-timeline-year {
        left: -20px;
    }
}

@media only screen and (max-width:650px) {  
    .c-timeline .c-flex-col-4 {
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 100%;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media only screen and (min-width:601px) {  
    .c-project-nav-list > li {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .c-project-nav-list .c-btn {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
        align-items: center;
    }

    .c-project-nav .c-btn {
        /*display: block;*/
        text-align: left;
        min-height: 4.3em;
    }
}

@media only screen and (max-width:600px) {  
    .c-project-nav .c-flex-col-4 {
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 100%;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}


/* ==========================================================================
   Foerderbeitrag rechner
   ========================================================================== */

.c-content-small .c-calculator-funding .c-col-8 {
    width: 100%;
}

.c-offer-result {
    padding: 2.8em 40px;
    border: solid 4px #623985;
    color: #623985;
}

.c-offer-highlight-text {
    line-height: 1.15;
    font-size: 46px;
}

@media only screen and (max-width:1024px) {  
    .c-offer-highlight-text {
        font-size: 40px;
    }
}

@media only screen and (max-width:920px) {  
    .c-calculator-funding .c-col-8 {
        width: 100%;
    }
}

@media only screen and (max-width:600px) {  
    .c-offer-highlight-text {
        font-size: 36px;
    }
}