/*  ALLGEMEIN ANFANG  -----------------------------------------------------------------------------------------------------------  */

section.dark {
    background: #eee;
}

*:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

*:first-child {
    margin-top: 0;
}

h1 + span {
    font-size: 3rem;
    color: #555;
    text-align: center;
    display: block;    
    margin-bottom: 3rem;
}

nav .btn {
    padding: 0;
}

nav .btn a {
    color: #fff;
    padding: 5px 10px;
}

.home h1 {
    text-align: center;
}

@media (min-width: 992px) {

    .home .content p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        width: 65%;
        line-height: 2;
    }

    .home h2 {
        text-align: center;
    }

    .home h1 {
        font-size: 4rem;
        text-transform: uppercase;
        letter-spacing: 4px;
    }

}

/*  ALLGEMEIN ENDE  -----------------------------------------------------------------------------------------------------------  */

/*  PRAXISGALERIE ANFANG  -----------------------------------------------------------------------------------------------------------------  */

.flex-galerie {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    row-gap: 3rem;
    margin-bottom: 5rem;
}

.flex-galerie img {
    width: 100%;
    max-width: 1200px;
}

.flex-galerie figcaption {
    text-align: center;
    padding-top: 1rem;
}

@media (min-width: 992px) {

    .flex-galerie > * {
        flex-basis: 45%;
    }

}

/*  PRAXISGALERIE ENDE  -----------------------------------------------------------------------------------------------------------------  */

/*  LEISTUNGSBOXEN ANFANG  --------------------------------------------  */

section.leistungen > div:nth-child(1) {
    padding-top: 0;
}

section.leistungen > div:nth-last-child(1) {
    padding-bottom: 0;
}

.leistungsboxen > .box {
    margin: 0 auto;
    width: 100%;
    max-width: 1400px;
    padding: 0 15px;
    position: relative; 
}

.leistungsboxen > .box img {
    width: 100%;
}

section.leistungen .text {
    background: #008499de;
    text-align: justify;
}

section.leistungen .text > * {
    color: #fff;
    text-align: left;
}

section.leistungen .text h3 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
}

a.leistung-button {
    color: #fff;
}

a.leistung-button:before {
    content: "";
    display: inline-block;
    border-bottom: 3px solid #fff;
    width: 75px;
    margin-right: 20px;
    -webkit-transform: translate(0,-0.2em);
    -ms-transform: translate(0,-0.2em);
    transform: translate(0,-0.2em);
    -webkit-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
}

a.leistung-button:hover:before {
    width: 85px;
}

@media (min-width: 992px) {

div.leistungsboxen {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

section.leistungen .text {
    padding: 3rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

}

@media (max-width: 991px) {

div.leistungsboxen {
    padding-top: .75rem;
    padding-bottom: .75rem;
}

section.leistungen .text {
    padding: 1.5rem;
}

}

@media (min-width: 768px) {

    .leistungsboxen > .box {
        display: grid;
        grid-template-columns: repeat(3,1fr);
        grid-template-rows: repeat(3,auto); 
    }
    
    .leistungsboxen > .box > .bild {
        grid-row: 1 / 4;
    }
    
    .leistungsboxen > .box > .text {
        grid-row: 2 / 3;
    }
    
    section.leistungen > div:nth-child(2n-1) .bild {
        grid-column: 1 / 3; 
    }
    
    section.leistungen > div:nth-child(2n) .bild {
        grid-column: 2 / 4;
    }
    
    section.leistungen > div:nth-child(2n-1) .text {
        grid-column: 2 / 4;    
    }
    
    section.leistungen > div:nth-child(2n) .text {
        grid-column: 1 / 3;
    }

}

@media (max-width: 767px) {

    .leistungsboxen > .box {
        display: block; 
    }

}

/*  SLIDE-IN ANFANG  ------------------------------------------------------------------------------------------------------------------------  */

@media (min-width: 768px) {

    @keyframes come-in {
        to {                  
            transform: translateY(0);
            opacity: 1;
         }
    }
    
    .slide-in {
        opacity: 0;
    }
    
    .come-in {
        animation: come-in 2s cubic-bezier(0.11, 0.43, 0.29, 0.92) forwards;
    }
    
    .leistungsboxen:nth-of-type(odd) > .box > .text.come-in {
        animation-delay: 0s; 
        transform: translateX(-200px);
    }
    
    .leistungsboxen:nth-of-type(even) > .box > .text.come-in {
        animation-delay: 0s; 
        transform: translateX(200px);
    }

}

/*  SLIDE-IN ENDE  --------------------------------------------------------------------------------------------------------------------------  */

/*  LEISTUNGSBOXEN ENDE  --------------------------------------------  */

/*  SLIDERBOXEN ENDE  ---------------------------------------------------------------------------------------------------------------------  */

.slider-boxen {
    position: fixed;
    right: 0;
    z-index: 5000;
    display: flex;
    width:50px;
    flex-flow: column wrap;
    top: 50%;
    transform: translateY(-50%);
    justify-content: center;
}

.slider-boxen .box {
    background: #008499;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #fff;
    width: 300px;
    transform: translatex(5px);
    transition: all .2s ease-in;
}

.slider-boxen .box:hover {
    transform: translatex(-150px);
    transition: all .2s ease-in;
}

.slider-boxen .box a {
    color:#fff;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    column-gap: 1rem;
}

.slider-boxen .glyphicon {
    font-size: 2.5rem;
}

@media (max-width: 991px) {

    .slider-boxen {
        display: none;
    }
}

/*  SLIDERBOXEN ENDE  ---------------------------------------------------------------------------------------------------------------------  */

/*  FOOTER ANFANG  ---------------------------------------------------------------------------------------------------------------------  */

#spinit {
    margin-top: 5rem;
    width: 80px;
}

#spinit.spinspin {
animation: spinspinspin 2s linear 0s infinite;
}

@keyframes spin { 
100% { transform: rotate(360deg); } 
}

@keyframes spinspinspin { 
100% { transform: rotate(360deg); } 
}

@media (min-width: 992px) {

    footer > div > div > div:nth-of-type(2) .row > div:nth-of-type(odd) {
        text-align: left;
    } 
    
    footer > div > div > div:nth-of-type(2) .row > div:nth-of-type(even) {
        text-align: right;
    }
    
}

@media (max-width: 991px) {

    footer h3, footer > div > div > div:not(:nth-child(3)) p {
        text-align: center;    
    }

    #spinit {
        margin: 5rem auto;  
    }    
    
    footer > div > div > div:nth-of-type(3) .row > div:nth-of-type(odd) {
        text-align: right;
    } 
    
    footer > div > div > div:nth-of-type(3) .row > div:nth-of-type(even) {
        text-align: left;
    }
    
    footer > div > div > div:not(:last-child) {
        margin-bottom: 3rem;
    } 

}

/*  FOOTER ENDE  ---------------------------------------------------------------------------------------------------------------------  */

/*  SIDEBAR ANFANG  ------------------------------------------------------------------------------------------------------------------------  */

aside .accordion .panel {
    border: 1px solid #777;
    border-radius: 0;
}

.panel-body {
    padding: 8px;
}

aside p {
    margin-bottom: 2rem;
}

aside .panel-group > div:nth-child(2) .row > div:nth-child(even) {
    text-align: right;
} 

a.accordion-button.standart:after {
    content: "\e260";
    font-family: 'Glyphicons Halflings';
    font-size: 17px;
    float: right;  
    position: relative;  
    top: 0;
    right: 5px;
    -webkit-transition: all cubic-bezier(0.62, 0.03, 0.5, 1.15) .5s;
    -o-transition: all cubic-bezier(0.62, 0.03, 0.5, 1.15) .5s;
    transition: all cubic-bezier(0.62, 0.03, 0.5, 1.15) .5s;
}

a.accordion-button.standart.collapsed:after {
    transform: rotateZ(180deg);    
}

@media (max-width: 991px) {

aside.willkommen {
    display: none;
}

}

/*  SIDEBAR ENDE  --------------------------------------------------------------------------------------------------------------------------  */

/*  TEAMSEITE ANFANG  --------------------------------------------------------------------------------------------------------------------------  */

div.flex-team {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

div.flex-team > .flex-pic {
    flex-basis: 35%;
}

div.flex-team > .flex-text {
    flex-basis: 60%;
}

div.flex-team img {
    width: 100%;
    max-width: 900px;
}

@media (min-width: 992px) {

    div.flex-team {
        flex-wrap: nowrap;
        flex-direction: row;
    }    

}

@media (max-width: 991px) {

    div.flex-team {
        flex-wrap: wrap;
        flex-direction: column;
        row-gap: 3rem;
    }    

}

/*  TEAMSEITE ENDE  --------------------------------------------------------------------------------------------------------------------------  */

/*  ANFAHRTSEITE ENDE  --------------------------------------------------------------------------------------------------------------------------  */

.not-home:before, .not-home:after {
    display: none;
}

.not-home {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
}

@media (min-width: 992px) {

    .not-home > h1, .not-home > h2 {
        flex-basis: 40%;
    }
    
    .not-home > div {
        flex-basis: 55%;
    }

}

@media (min-width: 768px) and (max-width: 991px) {

    .not-home > h1, .not-home > h2 {
        flex-basis: 35%;
    }
    
    .not-home > div {
        flex-basis: 60%;
    }

}

@media (min-width: 768px) {

    .not-home > div {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .not-home > div > * {
        flex-basis: auto;
    }

}

@media (max-width: 767px) {

    .not-home > * {
        flex-basis: 100%;
    }    

}

/*  ANFAHRTSEITE ENDE  --------------------------------------------------------------------------------------------------------------------------  */

/*  Trenner ANFANG  --------------------------------------------------------------------------------------------------  */

div.trenner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: relative;
    margin: 0 0 2rem 0;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;    
}

div.trenner #elem {
    width: 80px;
}

div.trenner:before {
    content: '';
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #008499 100%);
    position: relative;
    right: 4rem;
}

div.trenner:after {
    content: '';
    width: 200px;
    height: 3px;
    background: linear-gradient( -90deg, transparent 0%, #008499 100%);
    position: relative;
    left: 4rem;  
}


@media (max-width: 991px) {

    div.trenner:before {
        right: 2.5rem;
        width: 100px;    
    }

    div.trenner:after {
        left: 2.5rem;
        width: 100px;    
    }

}

/*  Trenner ENDE  ------------------------------------------------------------------------------------------------------  */

/*  HOME-TEASER ANFANG  ---------------------------------------------------------------------------------------------------------------------  */

.grid.container:before, .grid.container:after  {
    display: none;
}

.home-teaser-box {
    max-width: 630px;
    padding: 1.5rem;
    background: #fff;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;            
}

.home-teaser-box .btn {
    margin-top: 2rem;
    margin-bottom: 0;
    font-size: inherit;
}

.home-teaser-box img {
    width: 100%;
    max-width: 600px;
}

.home-teaser-box h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color:#555;
} 

.home-teaser-box h3:after {
    content: "";
    position: relative;
    background: #11b3d5;
    height: 2px;
    width: 100px;
    display: block;
    margin: 0 auto; 
    margin-top: 1.5rem;
}

.home-teaser-box p {
    text-align: center;
}       

.home-teaser-box:before {
    content: "";
    position: absolute;
    left: 51%;
    right: 51%;
    top: 0;
    background: #11b3d5;
    height: 2px;
    -webkit-transition-property: left, right;
    transition-property: left, right;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}
.home-teaser-box:hover:before {
    left: 0;
    right: 0;
}

.home-teaser-box > h3 + div {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
}

.home-thumbnail {
    height: 100%;
    display: flex;
    flex-direction: row;
    align-content: flex-start;
    flex-wrap: wrap;
    justify-content: center;
}

.home-thumbnail > *:not(:last-child) {
    flex-basis: 100%;
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (min-width: 1200px) {   

.home-teaser.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    grid-gap: 30px;
}

.home-teaser.grid > *:nth-child(3n-2) {
     grid-column: 1 / 2;    
}

.home-teaser.grid > *:nth-child(3n-1) {
     grid-column: 2 / 3;    
}

.home-teaser.grid > *:nth-child(3n) {
     grid-column: 3 / 4;    
}

.home-teaser.grid > *:nth-child(-n+3) {
     grid-row: 1 / 2;    
}

.home-teaser.grid > *:nth-child(n+4):nth-child(-n+6) {
    grid-row: 2 / 3;    
}

}

@media (min-width: 992px) and (max-width: 1199px) {

    .home-teaser.grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
        grid-gap: 30px;
    }

    .home-teaser.grid > *:nth-child(2n-1) {
        grid-column: 1 / 2;    
    }

    .home-teaser.grid > *:nth-child(2n) {
        grid-column: 2 / 3;    
    }

    .home-teaser.grid > *:nth-child(-n+2) {
        grid-row: 1 / 2;    
    }

    .home-teaser.grid > *:nth-child(n+3):nth-child(-n+4) {
        grid-row: 2 / 3;    
    }

    .home-teaser.grid > *:nth-child(n+5):nth-child(-n+6) {
        grid-row: 3 / 4;    
    }

}

@media (max-width: 991px) {

.home-teaser.grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, auto);
    justify-items: center;
    grid-gap: 15px;
}

.home-teaser.grid > * {
    grid-column: 1 / 2;
}     

.home-teaser.grid > *:nth-child(1) {
    grid-row: 1 / 2;
}

.home-teaser.grid > *:nth-child(2) {
    grid-row: 2 / 3;
}

.home-teaser.grid > *:nth-child(3) {
    grid-row: 3 / 4;
}

.home-teaser.grid > *:nth-child(4) {
    grid-row: 4 / 5;
}

.home-teaser.grid > *:nth-child(5) {
    grid-row: 5 / 6;
}

.home-teaser.grid > *:nth-child(6) {
    grid-row: 6 / 7;
}

}

/*  HOME-TEASER ENDE  ---------------------------------------------------------------------------------------------------------------------  */

/* Pop Up ANFANG */

#myModal {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;   
    z-index: 6000;        
}

.modal-body {
    padding: 0rem 2.5rem;
}

.modal-header .close {
 position:relative;
 width:20px;
    height: 30px;
    font-size: 30px;
 z-index:5000;
 
 }

.modal-title {
	text-align: center;
}

#myModal p:empty { 
    display: none;   
}

.modal-content {
    background: #fff;    
}

.content h2.modal-title {
    text-align:center;
    color: #2d8e9d;
    padding-bottom: 2rem;
}     

.modal-body > p {
    text-align: center;
    color: #555;;
}

.modal-body a {
    white-space: nowrap;
}

.modal-content .modal-header {
    padding: 15px;}

.modal-body a:hover {
    color: rgba(45, 142, 157, 0.7);
    text-decoration: underline;
}

.modal-body .pfeifercolor {
    color: #2d8e9d !important;
}

.modal-body > ul {
    text-align: left !important;
}

@media (min-width: 992px) {   
.modal-dialog {
    width: 100%;
    max-width: 900px;
}   
}

@media (max-width: 767px) {
#myModal {
   display:block;
}   
.content h2.modal-title {
   font-size:2rem;
}
}

/* Pop Up ENDE */
