/*
    
## ## ## ## ##  ##              ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##  ## ## ## ## ##
##              ##              ##          ##  ##          ##  ##          ##  ## ##       ##  ##                    ##
##              ##              ##          ##  ##          ##  ##          ##  ##  ##      ##  ##                    ##
##    ## ## ##  ##              ##          ##  ## ## ## ##     ##          ##  ##    ##    ##  ## ## ## ## ##        ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##      ##  ##  ##                    ##
##          ##  ##              ##          ##  ##          ##  ##          ##  ##        ##    ##                    ##
## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ## ## ## ## ##  ##          ##  ## ## ## ## ##        ##

/**** BURGER MENU ****/
@media all and (max-width: 1400px) {
    .bottommenu nav {
        background-color: #15181D !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 20px;
        top: calc(100% + 10px) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .bottommenu nav .menuitem a,
    .bottommenu nav .menuitem i {
        color: #fff !important;
        font-size: 1.2rem;
        padding: 10px 0;
    }

    #topfooter .box:nth-child(1) p:last-child {
        white-space: normal !important;
    }

    .bottommenu .btn-yellow {
        display: none !important;
    }

    h1,
    h2,
    h3,
    h4,
    p,
    a {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .bottommenu .inner,
    .topmenu .inner {
        box-sizing: border-box !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 5px 15px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative !important;
    }

    .bottommenu,
    .topmenu {
        padding: 10px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    #burgermenu {
        display: block !important;
        width: 2rem !important;
        height: 1.5rem !important;
        background: transparent !important;
        border: none !important;
    }

    #topfooter .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    #topfooter .box {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    #stats .inner {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem !important;
        padding: 0 1rem;
    }

    #stats .stat {
        min-width: unset;
        margin: 0;
    }

    #stats h3 {
        font-size: 1.5rem;
    }

    #stats p {
        font-size: 0.9rem;
    }

    #topfooter .box:nth-child(1) {
        margin-left: 0;
    }

    .bottommenu .inner,
    .topmenu .inner {
        box-sizing: border-box !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 10px 16px !important;
        justify-content: space-between !important;
    }

    .bottommenu,
    .topmenu {
        padding: 10px !important;
    }

    .bottommenu nav {
        visibility: hidden;
        position: absolute;
        padding: 1rem;
        max-height: calc(100dvh - 100px);
        overflow-y: auto;
        top: 100%;
        right: 0;
        width: 100%;
        opacity: 1;
    }

    .bottommenu nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .menuitem {
        flex-direction: column;
        align-items: center;
    }

    #burgermenu {
        display: block;
    }

    .dropdown {
        display: none !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        padding: 10px 0 0 20px !important;
        margin: 0 auto !important;
        background: transparent !important;
        box-shadow: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .menuitem.vertical.open .dropdown,
    .menuitem.vertical:focus-within .dropdown,
    .menuitem.vertical:active .dropdown {
        display: flex !important;
    }

    .menuitem.vertical>a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .bottommenu {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    nav li {
        height: fit-content;
    }
}

/**** LAPTOP ****/
@media all and (max-width: 1400px) {
    #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;
    }
}

/**** 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;
    }

    .select.flex {
        flex-direction: column;
    }

    .flex {
        flex-direction: column;
    }

    .option {
        align-items: start;
    }

    #popup .select {
        flex-direction: column;
    }

    #popup button {
        width: 100%;
    }
}

/* MOBILE TEASERBOX OVERRIDES */
@media all and (max-width: 1000px) {
    #teaserbox .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media all and (max-width: 600px) {
    #teaserbox .grid {
        grid-template-columns: 1fr !important;
    }
}
@media all and (max-width: 1400px) {
    #burgermenu {
        transform: scale(0.8) !important;
        margin-right: 1.5rem !important;
    }
}

/* Tablet: give text, feature lists and service cards enough room. */
@media all and (max-width: 1200px) {
    #about .inner.flex,
    main > .content > .inner.flex {
        flex-direction: column;
    }

    #teaserbox .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #about .left img {
        max-width: 700px;
        margin: auto;
    }
}

@media all and (max-width: 600px) {
    #hero .content {
        padding: 110px 24px 48px;
    }

    #hero p br {
        display: none;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    #about .right h2 {
        font-size: 28px;
    }
}