.wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* NAV %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */

nav {
    height: 10vh;
    background-color: #77ba58;
}

.navbar {
    position: relative;
    z-index: 10000 !important;
}

.navbar-brand {
    display: none;
}

.navbar-collapse {
    background-color: #77ba58;
    padding-bottom: 1rem;
}

.navbar-nav .nav-link {
    color: white !important;
    padding: 12px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5) !important;
    margin: 10px;
}

.container {
    --bs-gutter-x: 0;
}

.navbar-nav {
    gap: 20px;
}

.navbar-nav a {
    color: #ffffff;
    font-size: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: #537e40;
    transition: 0.6s;
    transform: scale(1.5);
}

.navbar-nav .nav-link {
    border-bottom: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* HEADER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */

header {
    background-color: #ffffff;
    position: relative;
    padding-bottom: 2rem;
}

header h2 {
    padding-bottom: 1rem;
}

#headerbot {
    position: relative;
    margin-top: 1.5rem;
    width: 100%;
}

#links {
    padding-left: 0;
    padding-right: 0;
    justify-content: center;
    width: 100%;
}

.content-box2 {
    position: relative;
    width: 100%;
    margin: 0 auto;
    top: 0;
    background-color: #ffffff;
    padding: 2.5rem 1.5rem 0 1.5rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.content-box-button {
    position: relative;
    width: 200px;
    height: 65px;
    background-color: #77ba58;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin: 2rem auto 0 auto;
}

.content-box-button a {
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
    color: #ffffff;
    text-align: center;
    line-height: 65px;
}

#insta,
#facebook {
    color: #77ba58; 
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 9999;
}

#insta:hover,
#facebook:hover {
    transform: scale(2.5);
}

@media (min-width: 992px) {
    
    header {
        background-color: #77ba58;
    }

    #headerbot {
        position: absolute;
        bottom: 5px;
        left: 0;
        right: 0;
        margin-top: 0;
    }

    #links {
        padding-right: 110px;
        justify-content: flex-end;
    }

    #insta,
    #facebook {
        color: #ffffff;
    }

    .content-box {
        display: block;
        position: absolute;
        width: 40%;
        top: 40px;
        left: 57%;
        height: 400px;
        background-color: #77ba58;
        padding: 20px;
        z-index: 10;
        opacity: 0.8;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    }

    .content-box2 {
        position: absolute;
        width: 34%;
        top: 40px;
        left: 63%;
        height: 400px;
        margin: 0;
        padding: 20px;
    }

    .content-box-button {
        position: absolute;
        top: 390px;
        left: 71%;
        margin: 0;
    }

    .content-box-button:hover {
        background-color: #ffffff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
        transform: scale(1.1);
    }

    .content-box-button a:hover {
        color: #77ba58;
    }
}

.content-box,
.content-box-team,
.content-box-kontakt,
.content-box-links,
.content-box-links-heike,
.content-box-rechts,
.content-box-links-work,
.content-box-rechts-work,
.content-box-links-therapie,
.content-box-rechts-therapie,
.content-box-links-therapie2,
.content-box-rechts2-therapie {
    display: none;
}

.content-box2,
.content-box2-team,
.content-box2-links,
.content-box2-links-heike,
.content-box2-rechts,
.content-box2-links-work,
.content-box2-rechts-work,
.content-box2-links-therapie,
.content-box2-rechts-therapie,
.content-box2-links-therapie2,
.content-box2-rechts2-therapie {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    height: auto;
    background-color: white;
    padding: 2rem 1.5rem;
    z-index: 10;
}

.content-box-button {
    position: relative;
    width: 200px;
    height: 65px;
    top: 0;
    background-color: #77ba58;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    z-index: 10;
    transition: transform 0.3s ease, color 0.3s ease;
    display: block;
    margin: 2rem auto;
}

.content-box-button a {
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
    color: #ffffff;
    text-align: center;
    line-height: 65px;
}

#insta,
#facebook {
    color: #ffffff;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 9999;
}

#insta:hover,
#facebook:hover {
    transform: scale(2.5);
}

/* MAIN %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */

main {
    background-color: #ffffff;
}

p {
    padding-bottom: 0;
    margin-bottom: 0;
}

h1 {
    color: #ffffff;
    font-size: 4rem;
    font-weight: 600;
    padding-left: 3rem;
    margin-bottom: -3rem;
}

/* ABOUT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */

#about {
    padding: 1rem 3rem;
}

#about h2 {
    padding: 3rem 0rem 0 0;
}

#about p {
    padding: 1rem 1rem 0 0;
}

.link {
    text-decoration: none;
    color: #77ba58;
}

.link:hover {
    color: #537e40;
}

.btn-zp {
    position: relative;
    width: 200px;
    height: 65px;
    top: 0;
    background-color: #77ba58;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    z-index: 10;
    transition: transform 0.3s ease, color 0.3s ease;
    display: block;
    margin: 2rem auto;
}

.btn-zp a {
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
    color: #ffffff;
    text-align: center;
    line-height: 65px;
}

/* TEAM %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */

section {
    position: relative;
}

#team {
    margin: 3rem 0 0 0;
}

#team h2 {
    padding: 0rem 2rem;
}

#team p {
    padding: 1rem 2rem;
}

.btn-zp22 {
    position: relative;
    width: 200px;
    height: 65px;
    top: 0;
    background-color: #77ba58;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    z-index: 10;
    transition: transform 0.3s ease, color 0.3s ease;
    display: block;
    margin: 2rem auto;
}

.btn-zp22 a {
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
    color: #ffffff;
    text-align: center;
    line-height: 65px;
}

/* WORK %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */

#work {
    margin: 2rem 0 3rem 0;
}

#work h2 {
    padding: 2rem 3rem;
}

#work p {
    padding: 1rem 3rem;
}

.btn-zp2 {
    display: none;
}

/* KONTAKT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */

#portrait {
    width: 100%;
    margin-top: 40px;
    max-height: 32vh;
    object-fit: cover;
    object-position: top;
}

#kontakt {
    margin: 2rem 0 0rem 0;
}

#kontakt h2 {
    padding: 1rem 2rem;
}

#kontakt table {
    padding: 0 1rem;
    width: 100%;
}

#map {
    width: 100%;
    object-fit: cover;
    max-height: 240px;
    margin-top: 1rem;
}

table a {
    text-decoration: none;
    color: #77ba58;
}

#kontakt h2,
#kontakt table {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: 100%;
}

/* FOOTER %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */

footer {
    background-color: #77ba58;
    padding: 2rem 1rem;
}

footer #insta,
footer #facebook {
    color: #ffffff;
    transition: transform 0.3s ease, color 0.3s ease;
}

footer #insta:hover,
#facebook:hover {
    transform: scale(2.5);
}

footer a:hover {
    color: #537e40;
}

.text-zw {
    color: #ffffff;
}

/* TEAM-PAGE UND UNTERSEITEN MOBIL-FALLBACK %%%%%%%%%%%%%%%%% */

#teampage {
    background-color: transparent;
    padding: 1rem 0;
    margin-top: 2rem;
}

.content-box2-links h2,
.content-box2-rechts h2 {
    margin-bottom: 1rem;
}

.lerntherapie-liste {
    padding-top: 1rem;
}

/* IMPRESSUM %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */

#impressum {
    margin: 2rem 0;
    padding: 1rem;
}

#download-link {
    display: inline-block;
    text-decoration: none;
    color: #77ba58;
}

#download-link:hover {
    color: #537e40;
}

/* CONTACT-FORMULAR MOBIL %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */

#cont-form {
    padding: 1rem;
    margin: 2rem 0;
}

#cont-form h2 {
    padding: 2rem 0;
}

#cont-form a {
    display: inline-block;
    text-decoration: none;
    color: #77ba58;
}

#cont-form a:hover {
    color: #537e40;
}

form {
    margin-top: 2rem;
    width: 100%;
    max-width: 600px;
}

h2 {
    margin-bottom: 20px;
}

.form-control {
    border-radius: 5px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #77ba58;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.btn-primary {
    margin: 2rem auto;
    width: 200px;
    height: 65px;
    background-color: #77ba58;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, color 0.3s ease;
    border-radius: 0;
    border: none;
    display: block;
}

.btn-primary:hover {
    background-color: #ffffff;
    color: #77ba58;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
    border: none;
}

.form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: auto;
}

/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   DESKTOP RESPONSIVE CODE (AB 992px EXKLUSIV)
   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */

@media (min-width: 992px) {

    nav {
        height: 20vh;
    }

    .navbar-brand {
        background-color: #ffffff;
        height: 20vh;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 50px;
        display: block;
    }

    .content-box,
    .content-box-team,
    .content-box-kontakt,
    .content-box-links,
    .content-box-links-heike,
    .content-box-rechts,
    .content-box-links-work,
    .content-box-rechts-work,
    .content-box-links-therapie,
    .content-box-rechts-therapie,
    .content-box-links-therapie2,
    .content-box-rechts2-therapie {
        display: block;
    }

    .content-box {
        position: absolute;
        width: 40%;
        top: 40px;
        left: 57%;
        height: 400px;
        background-color: #77ba58;
        padding: 20px;
        z-index: 10;
        opacity: 0.8;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    }

    .content-box2 {
        position: absolute;
        width: 34%;
        top: 40px;
        left: 63%;
        height: 400px;
    }

    .content-box-button {
        position: absolute;
        top: 390px;
        left: 71%;
        margin: 0;
    }

    .content-box-button:hover {
        background-color: #ffffff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
        transform: scale(1.1);
    }

    .content-box-button a:hover {
        color: #77ba58;
    }

    #about {
        padding: 4rem 0;
    }
    
    #about h2 {
        padding: 2rem 1rem;
    }
    
    #about p {
        padding: 1rem 1rem 0 1rem;
    }

    .btn-zp {
        margin-left: 35px;
        border-radius: 0;
        color: #ffffff;
    }

    .btn-zp:hover {
        background-color: #ffffff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
        transform: scale(1.1);
        color: #77ba58;
    }

    .btn-zp a:hover {
        color: #77ba58;
    }

    #team {
        background-color: #77ba58;
    }

    #team h2 {
        padding: 0rem 0rem;
    }
    
    #team p {
        padding: 1rem 0rem;
    }

    .content-box-team {
        position: absolute;
        width: 40%;
        top: 100px;
        left: 57%;
        height: 320px;
        background-color: #77ba58;
        padding: 20px;
        z-index: 10;
        opacity: 0.8;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    }

    .content-box2-team {
        position: absolute;
        width: 34%;
        top: 100px;
        left: 63%;
        height: 320px;
    }

    .btn-zp22 {
        display: none;
    }

    .btn-zp2 {
        display: block;
        width: 200px;
        height: 65px;
        background-color: #77ba58;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        margin-left: 35px;
        margin-top: 1rem;
        border-radius: 0;
        color: #ffffff;
    }

    .btn-zp2:hover {
        background-color: #ffffff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
        transform: scale(1.1);
        color: #77ba58;
    }

    .btn-zp2 a {
        display: block;
        height: 100%;
        width: 100%;
        text-decoration: none;
        color: #ffffff;
        text-align: center;
        line-height: 65px;
    }

    .btn-zp2 a:hover {
        color: #77ba58;
    }

    #kontakt {
        background-color: #77ba58;
        margin-top: 14rem;
        position: relative;
    }

    #portrait {
        position: absolute;
        left: 0;
        width: 50%;
        margin-top: -10px;
        margin-left: -100px;
        height: 55vh;
        max-height: 55vh;
        z-index: 5;
    }

    .content-box-kontakt {
        position: absolute;
        width: 70%;
        top: 25px;
        left: 27%;
        height: 430px;
        background-color: #77ba58;
        padding: 20px;
        z-index: 10;
        opacity: 0.8;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
    }

    .content-box2-kontakt {
        position: absolute;
        width: 64%;
        top: 25px;
        left: 33%;
        height: 430px;
        background-color: #ffffff;
        z-index: 20;
        padding: 40px 30px;
    }

    table {
        line-height: 2.5rem;
    }

    table a:hover {
        color: #537e40;
    }

    #map {
        position: absolute;
        right: 40px;
        top: 50%;
        transform: translateY(-50%);
        width: 40%;
        margin-top: 0;
        padding: 0;
    }

    .content-box2 a:hover {
        color: #537e40;
    }

    #kontakt table {
        border-collapse: separate;
        border-spacing: 40px 0;
    }

    #teampage {
        background-color: #77ba58;
        padding: 2rem 0 6rem 0;
        margin-top: 10rem;
    }

    .content-box2-links, .content-box2-links-heike, .content-box2-rechts, 
    .content-box2-links-work, .content-box2-rechts-work, .content-box2-links-therapie, 
    .content-box2-rechts-therapie, .content-box2-links-therapie2, .content-box2-rechts2-therapie {
        position: absolute;
        background-color: white;
        padding: 20px;
        z-index: 10;
    }

    .content-box-links, .content-box2-links { top: 70px; left: 3%; height: 460px; }
    .content-box-links { position: absolute; width: 50%; background-color: #77ba58; opacity: 0.8; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8); z-index: 10; }
    .content-box2-links { width: 44%; }

    .content-box-links-heike, .content-box2-links-heike { top: 30px; left: 3%; height: 540px; }
    .content-box-links-heike { position: absolute; width: 50%; background-color: #77ba58; opacity: 0.8; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8); z-index: 10; }
    .content-box2-links-heike { width: 44%; }

    .content-box-rechts, .content-box2-rechts { top: 70px; height: 460px; }
    .content-box-rechts { position: absolute; width: 50%; left: 47%; background-color: #77ba58; opacity: 0.8; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8); z-index: 10; }
    .content-box2-rechts { width: 44%; left: 53%; }

    .content-box-links-work, .content-box2-links-work { top: 30px; left: 3%; height: 540px; }
    .content-box-links-work { position: absolute; width: 50%; background-color: #77ba58; opacity: 0.8; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8); z-index: 10; }
    .content-box2-links-work { width: 44%; }

    .content-box-rechts-work, .content-box2-rechts-work { top: 30px; height: 540px; }
    .content-box-rechts-work { position: absolute; width: 50%; left: 47%; background-color: #77ba58; opacity: 0.8; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8); z-index: 10; }
    .content-box2-rechts-work { width: 44%; left: 53%; }

    .content-box-links-therapie, .content-box2-links-therapie { top: 30px; left: 3%; height: 720px; }
    .content-box-links-therapie { position: absolute; width: 50%; background-color: #77ba58; opacity: 0.8; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8); z-index: 10; }
    .content-box2-links-therapie { width: 44%; }

    .content-box-rechts-therapie, .content-box2-rechts-therapie { top: 55px; height: 670px; }
    .content-box-rechts-therapie { position: absolute; width: 50%; left: 47%; background-color: #77ba58; opacity: 0.8; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8); z-index: 10; }
    .content-box2-rechts-therapie { width: 44%; left: 53%; }

    .content-box-links-therapie2, .content-box2-links-therapie2 { top: 105px; left: 3%; height: 550px; }
    .content-box-links-therapie2 { position: absolute; width: 50%; background-color: #77ba58; opacity: 0.8; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8); z-index: 10; }
    .content-box2-links-therapie2 { width: 44%; }

    .content-box-rechts2-therapie, .content-box2-rechts2-therapie { top: 50px; height: 700px; }
    .content-box-rechts2-therapie { position: absolute; width: 50%; left: 47%; background-color: #77ba58; opacity: 0.8; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8); z-index: 10; }
    .content-box2-rechts2-therapie { width: 44%; left: 53%; }

    #impressum { margin: 2rem 0rem -8rem 0rem; }
    #cont-form { margin: 0rem 0 -8rem 0; }
    #cont-form h2 { padding: 6rem 4rem 4rem 0; }
    form { margin-top: 4rem; width: 600px; }
}