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

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

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

div.form-group {
    margin-bottom: 15px;
}

section.dark {
    background-color: #11b3d5;
}

section.bright {
    background-color: #ededed;
}

section.dark * {
    color: #fff;
}

div.footer-copyright2 {
    padding-top: 4rem;
    padding-bottom: 4rem;
    text-align: center;
}

div.trenner:before {
    content: '';
    width: 16vw;
    height: 1px;
    background: #323c3d;
    position: absolute;
    right: 150%;
    top: calc(50% - 0.5px);
    border-radius: 1px;
}

a.btn-secondary {
    color: #fff;
    background: #28355F;
    border-color: #28355F;
}

a.btn-secondary:hover {
    color: #fff;
    background: #304073;
    border-color: #304073;    
}

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

/*  SPRECHZEITEN ANFANG  -----------------------------------------------------------------------------------------------------------  */

div.sprechzeiten.flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 4rem;
}

section .sprechzeiten p {
    display: table;
    width: 100%;
}

.sprechzeiten p > span {
    float: right;
}

footer div.sprechzeiten > div, aside div.sprechzeiten > div {
    width: 100%;
}

@media (min-width: 1400px) {

    div.sprechzeiten > div {
        width: calc(100%/4);            
    } 

    section .sprechzeiten p {
        font-size: 1.6rem;
    }

}

@media (max-width: 1399px) {

    section .sprechzeiten p {
        font-size: 1.6rem;
    }

}

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

    div.sprechzeiten > div {
        width: calc(100%/2);            
    } 

}

@media (max-width: 767px) {

    div.sprechzeiten > div {
        width: 100%;            
    }

}

/*  SPRECHZEITEN 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  ---------------------------------------------------------------------------------------------------------------------  */

/*  PARALLAX ANFANG  ----------------------------------------------------------------------------------------------------  */

section.parallax {
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: 45% 50%;
    height: 175vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-line-pack: center;
    align-content: center;
    background-image: url(/wp-content/uploads/2022/07/parallax.jpg);
    background-position: 0 50%;
}

section.parallax > div {
    padding: 10vh 5vw 10vh 5vw;
    background: rgb(238 238 238 / 90%);
    text-align: center;
    position: relative;
    align-self: flex-end;
    border: 2px solid #fff;
    max-width: 800px;
}

@media (max-width: 991px) {

    section.parallax.one {
        background-position: 45% 50%;
        background-attachment: scroll;
    }

    section.parallax > div {
        padding: 5vh 5vw 5vh 5vw;
    }

}

/*  PARALLAX ENDE  ----------------------------------------------------------------------------------------------------  */

/*  TEAM-SEITE ANFANG  ----------------------------------------------------------------------------------------------------  */

.flex-team {
    display: flex;
    flex-wrap: wrap;
    --gap-size: 3rem;
}

.flex-team figure img {
    width: 100%;
    max-width: 800px;
}

.flex-team figcaption {
    text-align: center;
    margin-top: 1rem;
}

@media (min-width: 1200px) {

    .flex-team figure {
        flex-basis: calc(25% - var(--gap-size)*3/4);
    }

}

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

    .flex-team figure {
        flex-basis: calc(100%/3 - var(--gap-size)*2/3);
    }    

}

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

    .flex-team figure {
        flex-basis: calc(50% - var(--gap-size)*1/2);
    }    

}

@media (min-width: 768px) {

    .flex-team {
        gap: var(--gap-size);
        flex-direction: row;
    }

}

@media (max-width: 767px) {

    .flex-team {
        gap: 15px;
        flex-direction: column;
    }

    .flex-team figure {
        flex-basis: 100%;
    }

}

/*  TEAM-SEITE ENDE  ----------------------------------------------------------------------------------------------------  */

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

div.panel-body {
    padding: 2rem;
	background:#ededed;
}

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

b, strong {
  font-weight: bold;
	color: #28355F;
}


/* Trenner Anfang ----------------------------------------------------------------------------------------------------------------------------------------------*/
div.trenner {
    width: 60px;
    position: relative;
    margin: 1rem auto 5rem auto;
}

@media (max-width:991px){
div.trenner {
    margin: 3.5rem auto 4rem;
}
}

div.trenner:before {
    content: '';
    width: 200px;
    height: 1px;
    background: #28355F;
    position: absolute;
    right: 150%;
    top: 29px;
    border-radius: 1px;
}
    
div.trenner:after {
    content: '';
    width: 200px;
    height: 1px;
    background: #28355F;
    position: absolute;
    left: 150%;
    top: 29px;
    border-radius: 1px;
}
    
.trenner img {
    width: 100%;
}

@media (max-width: 991px) {
    div.trenner:before {
        width: 80px;
}
    
    div.trenner:after {
        width: 80px;
}
}

/* Trenner Ende ----------------------------------------------------------------------------------*/