@import url("../../../global/css/main.css");

@media 
screen and (max-width: 672px) {
    .header-section {
        position: relative;
        top: 4rem;
        text-align: center;
        line-height: 30rem;
        width: 100%;
        height: 15rem;
        color: var(--primary);
        overflow: hidden;
        display: flex;
        align-content: center;
        justify-content: center;
    }
    
    .header-section img {
        width: 100%;
        z-index: 5;
    }
    
    .benefits-section {
        position: relative;
        top: 2rem;
        width: 100%;
        height: 62rem;
        z-index: 15;
    }
    
    .benefits-section .headline {
        position: relative;
        top: 2rem;
        text-align: center;
        color: var(--primary);
        font-size: 2rem;
    }
    
    .benefits-section .card-area {
        position: absolute;
        top: 7rem;
        left: 10%;
        width: 80%;
        height: 50rem;
    }
    
    .benefits-section .card-area .benefit-card {
        position: relative;
        left: 10%;
        float: none;
        text-align: center;
        margin-bottom: 1rem;
        width: 80%;
        height: 18rem;
        background-color: var(--page-white);
        color: var(--primary);
        border-radius: 12px;
        box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    }
    
    .benefits-section .card-area .benefit-card .icon {
        position: relative;
        top: 2rem;
        left: 0;
        width: 50%;
    }
    
    .benefits-section .card-area .benefit-card .details {
        position: relative;
        top: 6rem;
        font-size: 1.1rem;
    }
    
    .service-section {
        position: relative;
        top: 7rem;
        width: 100%;
        height: 80rem;
        text-align: center;
    }
    
    .service-section .headline {
        position: relative;
        top: 2rem;
        text-align: center;
        color: var(--primary);
        font-size: 2rem;
    }
    
    .service-section .service-list {
        position: absolute;
        top: 7rem;
        left: 5%;
        width: 90%;
        height: 60rem;
    }
    
    .service-section .service-list .left-colum {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        text-align: start;
    }
    
    .service-section .service-list .right-colum {
        position: absolute;
        top: 28rem;
        left: 0;
        width: 100%;
        height: 100%;
        text-align: start;
    }
    
    .service-section .service-list a {
        text-decoration: none;
        color: var(--text-grey);
    }
    
    .service-section .service-list a .service-card {
        position: relative;
        width: 100%;
        height: 6rem;
        margin-bottom: 1rem;
        border-radius: 12px;
        background-color: white;
        box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
        transition: .3s ease;
    }
    
    .service-section .service-list a .service-card:hover {
        background-color: #fff8f3;
    }
    
    .service-section .service-list a .service-card .service-icon {
        position: relative;
        top: 1rem;
        left: 1rem;
        height: 4rem;
    }
    
    .service-section .service-list a .service-card .service-name {
        position: relative;
        top: -.75rem;
        left: 1.5rem;
        width: 60%;
        font-size: 1rem;
        font-weight: 500;
    }

    .service-section .service-info {
        position: absolute;
        top: 0rem;
        left: 0%;
        width: 90%;
        height: 58rem;
        border-radius: 7px;
        -webkit-border-radius: 7px;
        -moz-border-radius: 7px;
        -ms-border-radius: 7px;
        -o-border-radius: 7px;
        box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
        background-color: white;
        overflow: hidden;
        display: none;
        z-index: 450;
        animation: openServiceInfo .5s forwards;
        -webkit-animation: openServiceInfo .5s forwards;
}

    @keyframes openServiceInfo {
        100% {
            top: 6rem;
            left: 5%;
        }
    }
    
    .service-section .service-info .close-btn {
        position: absolute;
        top: 0;
        right: 0;
        padding: 1rem;
        font-size: 2rem;
        transition: .2s;
        -webkit-transition: .2s;
        -moz-transition: .2s;
        -ms-transition: .2s;
        -o-transition: .2s;
    }
    
    .service-section .service-info .close-btn:hover {
        cursor: pointer;
        color: var(--primary);
    }
    
    .service-section .service-info .headline {
        position: relative;
        text-align: start;
        top: 3rem;
        left: 2rem;
        max-width: 90%;
        font-size: 1.5rem;
    }
    
    .service-section .service-info .text-box {
        position: relative;
        text-align: justify;
        top: 5rem;
        left: 5%;
        max-width: 90%;
        height: 25rem;
        border-radius: 7px;
        overflow-y: scroll;
        overflow-x: hidden;
        box-shadow: inset rgba(0, 0, 0, 0.16) 0px -2px 2px;
        -webkit-border-radius: 7px;
        -moz-border-radius: 7px;
        -ms-border-radius: 7px;
        -o-border-radius: 7px;
}
    
    .service-section .service-info .text-box .sub-headline {
        position: relative;
        left: 1rem;
        max-width: 90%;
        margin-top: 2rem;
        margin-bottom: 1rem;
        color: var(--secondary);
    }
    
    .service-section .service-info .text-box .third-headline {
        position: relative;
        left: 1rem;
        max-width: 90%;
        margin-top: 1.5rem;
        margin-bottom: .5rem;
    }
    
    .service-section .service-info .text-box .underline { margin-top: 1rem; text-decoration: underline;}
    
    .service-section .service-info .text-box .paragraph {
        position: relative;
        left: 1rem;
        max-width: 90%;
        font-size: 1.3rem;
    }
    
    .service-section .service-info .text-box .sport-liste {
        position: relative;
        left: 1rem;
        list-style: disc;
    }
    
    .service-section .service-info .text-box .sport-liste li {
        position: relative;
        left: 2rem;
        font-size: 1.3rem;
        padding: .3rem;
    }
    
    .service-section .service-info .image-box {
        position: relative;
        top: 3rem;
        left: 5%;
        width: 90%;
        height: 15rem;
        overflow: hidden;
        display: flex;
        justify-content: center;
    }
    
    .service-section .service-info .image-box img {
        position: relative;
        top: 3rem;
        height: 100%;
    }
    
    .service-section .termin-link {
        position: relative;
        top: 70rem;
        padding-top: 12px;
        padding-bottom: 12px;
        padding-left: 22px;
        padding-right: 22px;
        border-radius: 10px;
        text-decoration: none;
        font-size: 1.2rem;
        background-color: var(--primary);
        color: var(--page-white);
        box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    }
}
