html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1000;
}

.nav a:hover,
.nav a:focus,
.nav-link:hover,
.nav-link:focus {
    color: #ffffff !important;
    transition: color 0.2s ease;

}

/* LINKS (Logo + Menü zusammen) */
.nav-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* LOGO + LINKS nebeneinander */
.nav-logo {
    margin-right: 30px;
}

/* RECHTS (Buttons) */
.nav-right {
    display: flex;
    gap: 10px;
}

/* Optional schöner Abstand */
.nav-link {
    white-space: normal;
}

.dropdown {
    position: relative;
    display: block;
    /* wichtig */
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    /* 👈 startet genau unter dem Text */




    background: #475a24;
    border-radius: 10px;
    padding: 10px 0;
    min-width: 200px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    pointer-events: none;

    /* 🔥 DAS FIXT DEIN PROBLEM */
    z-index: 9999;
}

/* Links im Dropdown */
.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #ffffff;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: rgba(224, 132, 12, 0.993);
}

.dropdown:hover .dropdown-menu {

    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* NAV TEXT FIX */
.nav-link,
.nav-link:visited,
.nav-link:active {
    color: #ffffff !important;
}

/* Hover */
.nav-link:hover {
    color: #ffffff !important;
    opacity: 0.8;
}

/* DESKTOP-DROPDOWN (.mega) SCHMALER + ZENTRIERT --
   überschreibt top.css bewusst hier, da nav.css nach top.css geladen
   wird (siehe <link>-Reihenfolge in index.html) und dieselbe
   Spezifität hat -- die spätere Regel gewinnt automatisch. */
.mega {
    width: 200px;
}

.mega a {
    text-align: center;
}

/* Letzter Menüpunkt (Rechtliches) hängt sonst über den rechten
   Bildschirmrand hinaus, weil .mega sich per "left" an den Trigger
   anhängt -- für den letzten Punkt stattdessen rechtsbündig öffnen. */
.nav-item:last-child .mega {
    left: auto;
    right: -14px;
}

/* MOBILE MENU */

.mobile-menu-toggle {
    display: none;
    background: #9fd0ff;
    color: #1c5f17;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

.nav-mobile-panel {
    display: none;
    flex-direction: column;
    background: #091343;
    border-radius: 0 0 28px 28px;
    padding: 8px 26px 26px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.nav-mobile-panel.open {
    display: flex;
}

.nav-mobile-panel .mp-group-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .5);
    margin: 18px 0 4px;
}

.mp-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 11px 4px;
    margin-top: 8px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .8);
}

.mp-accordion-toggle:hover {
    background: rgba(255, 255, 255, .06);
}

.mp-accordion-icon {
    font-size: 16px;
    font-weight: 400;
    color: #9fd0ff;
}

.mp-accordion-content {
    display: none;
    padding-left: 6px;
}

.mp-accordion-content.open {
    display: block;
}

.nav-mobile-panel a {
    display: block;
    padding: 11px 4px;
    font-size: 15px;
    color: #f2f2f2;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
}

.nav-mobile-panel a:hover {
    background: rgba(255, 255, 255, .09);
    padding-left: 10px;
}

.nav-mobile-panel .mp-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.nav-mobile-panel .mp-actions a {
    flex: 1;
    text-align: center;
    border-radius: 12px;
    padding: 13px 10px;
    font-weight: 700;
    border: none;
}

.nav-mobile-panel .mp-actions a.mp-buy {
    background: #9fd0ff;
    color: #17365f;
}

.nav-mobile-panel .mp-actions a.mp-demo {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .main-nav {
        gap: 16px;
    }

    .nav-item {
        font-size: 13px;
    }

    .nav-actions {
        min-width: auto;
        gap: 8px;
    }

    .btn-demo,
    .btn-buy {
        padding: 12px 16px;
    }

    .brand {
        min-width: auto;
    }

    .brand-logo {
        height: 82px;
    }

    .cards-3,
    .pricing,
    .faq,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .strip-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .workflow {
        grid-template-columns: 1fr;
    }

    .phone {
        position: relative;
        right: auto;
        bottom: auto;
        margin: 28px auto 0;
    }
}
