﻿
@media all and (max-width: 1500px) {
    .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%;
    }

    .menuitem {
        flex-direction: column;
        align-items: center;
    }

    #burgermenu {
        display: block;
    }

    .dropdown {
        position: relative;
        padding: 0 1rem;
        margin: 0;
        top: 0;
    }

    .bottommenu {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    nav li {
        height: fit-content;
    }

    .mega-dropdown-menu {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: #FFFFFF !important;

        overflow: hidden !important;
        transition: all 0.3s ease !important;
    }

    .mega-dropdown-wrapper.active .mega-dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
        padding: 1rem 0 !important;
        margin-top: 0.5rem !important;
    }

    .bottommenu .mega-dropdown-menu .mega-dropdown-grid,
    .mega-dropdown-menu .mega-dropdown-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 1.5rem !important;
        margin: 0 !important;
    }

    .mega-col,
    .mega-group {
        padding: 0 !important;
        border-right: none !important;
        margin-bottom: 1.5rem !important;
    }

    .mega-col:last-child,
    .mega-group:last-child {
        margin-bottom: 0 !important;
    }

    .mega-dropdown-title {
        color: #16324F !important;
        font-size: 16px !important;
        padding: 0 1.5rem 0.5rem 1.5rem !important;
        margin-bottom: 0.5rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        text-align: left !important;
    }

    .mega-dropdown-menu h4.mega-group-title,
    .mega-group-title {
        color: #16324F !important;
        font-size: 15px !important;
        margin-bottom: 0.2rem !important;
        margin-top: 0 !important;
    }

    .bottommenu #nav.visible .mega-list a {
        color: #16324F !important;
        font-size: 14px !important;
        padding: 0.5rem 0 !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }

    .bottommenu #nav.visible .mega-list a i {
        color: #16324F !important;
    }

    .mega-dropdown-footer {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1rem 1.5rem 0 1.5rem !important;
        margin-top: 1rem !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
        align-items: flex-start !important;
    }

    .bottommenu #nav.visible .mega-footer-link {
        color: #16324F !important;
        font-size: 15px !important;
    }
}

@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;
    }
}

@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;
    }
}

@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;
    }
}

@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%;
    }
}

html,
body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

@media screen and (max-width: 992px) {
    header {
        width: 100% !important;
        max-width: 100vw !important;

        overflow: visible !important;
    }

    .logo img {
        margin-left: 0 !important;
        margin-top: 0 !important;
        width: 130px !important;
        height: auto !important;
    }

    .bottommenu {
        padding: 0.8rem 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .bottommenu .nav-list {
        margin-left: 0 !important;
        width: 100% !important;
        gap: 0.8rem !important;
    }

    .bottommenu .menuitem.button {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 10px 14px !important;
    }

    .bottommenu .menuitem.button a {
        font-size: 14px !important;
    }
}

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

    #hero {
        padding: 2.5rem 1rem 3rem 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    #hero h1 {
        font-size: 1.85rem !important;
        line-height: 1.25 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem !important;
        word-wrap: break-word !important;
    }

    #hero p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 0.5rem !important;
        margin-bottom: 1.5rem !important;
        box-sizing: border-box !important;
    }

    .hero-buttons-container {
        flex-direction: column !important;
        gap: 0.8rem !important;
        width: 100% !important;
        align-items: center !important;
    }

    .hero-buttons-container .button {
        width: 100% !important;
        max-width: 280px !important;
        text-align: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .hero-video-wrapper {
        width: 100% !important;
        max-width: 340px !important;
        margin: 2rem auto 0 auto !important;
    }

    .hero-mascot-benno {
        display: none !important;
    }

    #teaserbox {
        padding: 3rem 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .teaser-header h2 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
    }

    .teaser-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }

    .teaser-card {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #topfooter {
        padding: 2.5rem 1.2rem 1.5rem 1.2rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .footer-5-col {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        transform: none !important;
        width: 100% !important;
    }

    .footer-5-col>.box {
        margin-bottom: 2rem !important;
    }

    .footer-5-col>.box:nth-child(4) {
        margin-bottom: 0.5rem !important;
    }

    .footer-5-col>.box:nth-child(5) {
        margin-bottom: 0 !important;
    }

    .newsletter-input-link {
        width: 100% !important;
        max-width: 100% !important;
    }

    #midfooter {
        padding: 1.8rem 1.2rem !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        text-align: center !important;
        align-items: center !important;
    }

    .social-links {
        justify-content: center !important;
        width: 100% !important;
        transform: none !important;
    }

    .support-info {
        text-align: center !important;
        width: 100% !important;
        transform: none !important;
    }

    #bottomfooter {
        padding: 1.2rem 1rem !important;
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
        align-items: center !important;
    }

    #bottomfooter p {
        text-align: center !important;
    }
}

@media screen and (max-width: 767px) {

    #teaserbox {
        padding: 2rem 1rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .teaser-cards-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.2rem !important;
        width: 100% !important;
        align-items: center !important;
    }

    .teaser-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #midfooter {
        padding: 1.5rem 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.2rem !important;
        text-align: center !important;
    }

    #midfooter .flex-between,
    #midfooter .inner {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    .social-links {
        transform: none !important;
        justify-content: center !important;
        gap: 1rem !important;
    }

    .social-links a {
        font-size: 32px !important;
    }

    .support-info {
        transform: none !important;
        text-align: center !important;
    }

    .support-phone {
        font-size: 1.4rem !important;
    }

    .support-hours {
        font-size: 0.9rem !important;
    }

    #bottomfooter {
        padding: 1rem !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
        text-align: center !important;
    }

    #bottomfooter .inner,
    #bottomfooter .flex-between {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
        width: 100% !important;
        text-align: center !important;
    }

    #bottomfooter p,
    #bottomfooter a,
    #bottomfooter span {
        font-size: 0.8rem !important;
        text-align: center !important;
    }

    .swiss-made-logo {
        margin: 0 auto !important;
    }
}

@media all and (max-width: 1500px) {

    .bottommenu {
        position: relative !important;
    }

    .bottommenu #nav {
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 99999 !important;
        background: #16324F !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .bottommenu #nav.visible {
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
        padding: 1.5rem 0 2rem 0 !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        background: #16324F !important;
    }

    .bottommenu #nav.visible .nav-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin-left: 0 !important;
        width: 100% !important;
        gap: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .bottommenu #nav.visible .menuitem {
        width: 100% !important;
        height: auto !important;
        justify-content: center !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding: 0 !important;
        flex-direction: column !important;
    }

    .bottommenu #nav.visible .menuitem>a {
        color: #FFFFFF !important;
        font-size: 18px !important;
        padding: 1rem 1.5rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: 100% !important;
        text-align: right !important;
        box-sizing: border-box !important;
    }

    .bottommenu #nav.visible .menuitem.button {
        display: none !important;
    }

    .bottommenu #nav.visible .menuitem.button a {
        text-align: center !important;
        padding: 0.6rem 1.2rem !important;
        justify-content: center !important;
    }

    .mega-dropdown-menu {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: #FFFFFF !important;

        overflow: hidden !important;
        transition: all 0.3s ease !important;
    }

    .mega-dropdown-wrapper.active .mega-dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
        padding: 1rem 0 !important;
        margin-top: 0 !important;
    }

    .bottommenu .mega-dropdown-menu .mega-dropdown-grid,
    .mega-dropdown-menu .mega-dropdown-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 1.5rem !important;
        margin: 0 !important;
    }

    .mega-col,
    .mega-group {
        padding: 0 !important;
        border-right: none !important;
        margin-bottom: 1.5rem !important;
    }

    .mega-col:last-child,
    .mega-group:last-child {
        margin-bottom: 0 !important;
    }

    .mega-dropdown-title {
        color: #16324F !important;
        font-size: 16px !important;
        padding: 0 1.5rem 0.5rem 1.5rem !important;
        margin-bottom: 0.5rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        text-align: left !important;
    }

    .mega-dropdown-menu h4.mega-group-title,
    .mega-group-title {
        color: #16324F !important;
        font-size: 15px !important;
        margin-bottom: 0.2rem !important;
        margin-top: 0 !important;
    }

    .bottommenu #nav.visible .mega-list a {
        color: #16324F !important;
        font-size: 14px !important;
        padding: 0.5rem 0 !important;
        justify-content: flex-start !important;
        border: none !important;
    }

    .bottommenu #nav.visible .mega-list a i {
        color: #16324F !important;
        margin-right: 0.8rem !important;
    }

    .mega-dropdown-footer {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1rem 1.5rem 0 1.5rem !important;
        margin-top: 1rem !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
        align-items: flex-start !important;
    }

    .bottommenu #nav.visible .mega-footer-link {
        color: #16324F !important;
        font-size: 15px !important;
        border: none !important;
        padding: 0 !important;
    }
}

@media all and (max-width: 1200px) and (min-width: 993px) {
    .teaser-cards-grid {
        gap: 1rem !important;
    }
    .teaser-card {
        padding: 20px 15px !important;
    }
    .teaser-card h3 {
        font-size: 20px !important;
    }
    .teaser-card p {
        font-size: 14px !important;
    }
}