/*
    
## ## ## ## ##  ##              ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##  ## ## ## ## ##
##              ##              ##          ##  ##          ##  ## ##       ##  ##                    ##
##              ##              ##          ##  ##          ##  ##  ##      ##  ##                    ##
##    ## ## ##  ##              ##          ##  ## ## ## ##     ##    ##    ##  ## ## ## ## ##        ##
##          ##  ##              ##          ##  ##          ##  ##      ##  ##  ##                    ##
##          ##  ##              ##          ##  ##          ##  ##        ##    ##                    ##
## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##        ##
*/

/**** BURGER MENU ****/
@media all and (max-width: 1200px) {
    .bottommenu nav {
        visibility: hidden;
        position: absolute;
        padding: 2rem 0;
        top: 100%;
        right: 0;
        width: 100%;
        opacity: 1;
    }
    .bottommenu nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0;
    }
    .menuitem {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .bottommenu .topmenu-link {
        padding: .6rem 0;
    }
    .bottommenu nav .menuitem.vertical > .dropdown.vertical,
    .bottommenu nav .menuitem.vertical:hover > .dropdown.vertical {
        display: none;
        visibility: hidden;
        opacity: 0;
        height: 0;
        overflow: hidden;
        padding: 0;
        margin: 0;
        gap: 0;
        border: 0;
    }
    .bottommenu nav .menuitem > .topmenu-link > i {
        display: none;
    }
    #burgermenu {
        display: block;
        flex-shrink: 0;
        margin-left: auto;
    }
    .dropdown {
        position: relative;
        padding: 0 1rem;
        margin: 0;
        top: 0;
    }
    .bottommenu {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    nav li {
        height: fit-content;
    }
    .bottommenu nav li {
        width: 100%;
    }
    .bottommenu nav li a {
        width: 100%;
        justify-content: center;
    }
    .bottommenu:has(#burgermenu[data-open="true"]) .logo {
        display: none;
    }
    .bottommenu nav.visible > ul.nav-list > li.menuitem {
        align-self: stretch;
        justify-content: flex-start;
        height: auto;
        margin: 0;
        border-top: 1px solid var(--grey);
    }
    .bottommenu nav.visible > ul.nav-list > li.menuitem > a {
        justify-content: flex-start;
        text-align: left;
        white-space: nowrap;
        padding: .6rem 1rem;
    }
    .bottommenu nav.visible > ul.nav-list > li.menuitem:hover {
        background-color: var(--grey);
    }
    #hero .content {
        padding-left: 10rem;
        padding-top: 20rem;
    }
}

@media (min-width: 1200px) {
    #nav {
        margin-top: 1.5rem;
        margin-right: 3.5rem;
    }
}

/**** LAPTOP ****/
#topfooter .inner {
    gap: clamp(3rem, 8vw, 18rem);
}
#rightfooter-box {
    padding-right: clamp(0rem, 6vw, 11rem);
}

@media all and (max-width: 1300px) {
    #hero h1 {
        width: 100%;
    }
    .content.flex {
        gap: 3em;
    }
    #all {
        grid-column: 1 / 3;
    }
    .box:nth-child(1) {
        grid-row: 1;
    }
    .box:nth-child(2) {
        grid-row: 1;
    }
    .box:nth-child(3) {
        grid-row: 2;
    }
    .box:nth-child(4) {
        grid-row: 2;
    }
    .grid {
        justify-content: normal;
    }
}

/**** TABLET *****/
@media all and (max-width: 1000px) {
    .info.flex {
        flex-direction: row;
        gap: .5rem;
    }
    .right img {
        display: none;
    }
    .flex:not(.option) {
        flex-direction: column;
        gap: 1em;
    }
    .select {
        flex-direction: row;
    }
    #popup .select {
        flex-direction: row;
    }
    .teaser div {
        margin: auto;
        text-align: center;
        width: 100%;
        margin: auto;
    }
    .teaser div:nth-of-type(1) {
        grid-row: 1;
        grid-column: 1;
    }
    .teaser div:nth-of-type(2) {
        grid-row: 2;
        grid-column: 1;
    }
    .teaser div:nth-of-type(3) {
        grid-row: 3;
        grid-column: 1;
    }
    .teaser i {
        margin: auto;
    }
    .content {
        padding: calc(1rem + 5vw) calc(1rem + 3vw);
    }
    #popup {
        left: calc(1rem + 3vw);
        width: calc(100% - calc(calc(1rem + 3vw) * 2));
        transform: translateY(-50%);
        max-width: none;
    }
    #popup .select {
        flex-direction: row;
    }
}

/**** HERO RESPONSIVE ****/
#hero .inner {
    position: relative;
    max-height: none;
    overflow: visible;
}
#hero .content {
    top: 50%;
    left: clamp(1rem, 10vw, 10rem);
    right: clamp(1rem, 5vw, 5rem);
    width: auto;
    max-width: 55rem;
    padding: 0;
    transform: translateY(-50%);
    box-sizing: border-box;
}
#hero .slide img,
#hero .slide video {
    height: 100%;
    object-fit: cover;
}

@media all and (max-width: 1200px) {
    #hero .slide {
        height: 75vh;
        min-height: 620px;
    }
    #hero .content {
        left: 2rem;
        right: 2rem;
        top: 50%;
        width: auto;
        max-width: none;
        padding: 0;
        box-sizing: border-box;
    }
    #hero h1 {
        font-size: clamp(2rem, 5vw, 3.75rem);
        width: min(100%, 680px);
        max-width: 100%;
        min-width: 0;
        line-height: 1.1;
        overflow-wrap: anywhere;
        word-break: normal;
        hyphens: auto;
    }
    #hero .button {
        display: inline-block;
        white-space: nowrap;
    }
}

@media all and (max-width: 700px) {
    #hero .slide {
        height: 70svh;
        min-height: 500px;
    }
    #hero .slide img,
    #hero .slide video {
        height: 100%;
    }
    header {
        padding-left: .75rem;
        padding-right: .75rem;
    }
    .bottommenu,
    .topmenu {
        padding-left: 0;
        padding-right: 0;
    }
    .bottommenu .inner,
    .topmenu .inner {
        gap: .25rem;
    }
    .logo {
        width: 8.5rem;
        min-width: 8.5rem;
    }
    .logo img {
        width: 100%;
        height: auto;
        display: block;
    }
    #burgermenu {
        margin-right: 0;
    }
    #hero .content {
        left: 1.25rem;
        right: 1.25rem;
        top: 50%;
        transform: translateY(-50%);
        padding: 0;
        box-sizing: border-box;
    }
    #hero h1 {
        font-size: clamp(1.7rem, 5.5vw, 2.4rem);
        max-width: 100%;
        width: 100%;
    }
    #hero .button {
        margin-top: .5rem;
    }
}

@media all and (max-width: 500px) {
    #hero .slide {
        min-height: 480px;
    }
    #hero .content {
        padding: 0;
    }
    #hero h1 {
        font-size: clamp(1.35rem, 5.5vw, 1.8rem);
    }
}

/**** ABOUT SECTION RESPONSIVE ****/
#about .right h2 {
    font-size: clamp(2rem, 2.8vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}
#about .right p {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.7;
    max-width: 100%;
}

@media all and (max-width: 980px) {
    #about .inner.flex {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    #about .left,
    #about .right {
        width: 100%;
        max-width: 100%;
    }
    #about .left {
        order: 1;
        display: flex;
        justify-content: center;
    }
    #about .right {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    #about-img {
        display: block;
        width: min(100%, 420px);
        height: auto;
        margin: 0 auto;
    }
    #about .right p,
    #about .right h2 {
        text-align: center;
        width: 100%;
    }
    #about .right > div {
        display: flex;
        justify-content: center;
    }
}

/**** SMARTPHONE ****/
@media all and (max-width: 600px) {
    .info.flex {
        flex-direction: column;
    }
    input {
        padding: .5rem 0rem;
        text-align: center;
    }
    textarea::placeholder {
        text-align: center;
    }
    nav,
    .menuitem a {
        transition: none;
    }
    #all {
        grid-column: 1 / 2;
    }
    .box:nth-child(1) {
        grid-row: 1;
    }
    .box:nth-child(2) {
        grid-row: 2;
    }
    .box:nth-child(3) {
        grid-row: 3;
    }
    .box:nth-child(4) {
        grid-row: 4;
    }
    .all a span {
        display: none;
    }
    #recaptcha {
        flex-direction: column;
        align-items: start;
        gap: 1rem;
    }
    #popup {
        top: auto;
        bottom: 0;
        left: 0;
        margin: 0;
        padding: 2rem 1.5rem;
        width: 100%;
        transform: none;
        border-radius: 0;
    }
}

/**** MOBILE ****/
@media all and (max-width: 450px) {
    .topmenu {
        display: none;
    }
    #bottomfooter .inner {
        flex-direction: column;
        align-items: center;
        gap: .75rem;
    }
    #bottomfooter-text-left {
        width: 100%;
        text-align: center;
    }
    #bottomfooter-social {
        justify-content: center;
    }
    .select.flex {
        flex-direction: column;
    }
    .flex {
        flex-direction: column;
    }
    .option {
        align-items: start;
    }
    #popup .select {
        flex-direction: column;
    }
    #popup button {
        width: 100%;
    }
}
