

.mega-menu-root {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* Links der 1. Ebene */
.mega-menu-root > li > a {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 17px;
    font-weight: 600;
    padding: 10px 0;
    transition: color 0.3s ease;
}

/* Unterstreichungs-Effekt (falls gewünscht) */
.mega-menu-root > li > a span {
    position: relative;
}
.mega-menu-root > li > a span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #b5cc02;
    transition: width 0.3s ease;
}
.mega-menu-root > li.active > a span::after,
.mega-menu-root > li:hover > a span::after {
    width: 100%;
}

/* Pfeile (Chevrons) in Ebene 1 */
.mega-menu-root > li.parent > a::after {
    content: '';
    display: inline-block;
    margin-left: 8px;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #666;
    border-bottom: 1.5px solid #666;
    transform: rotate(45deg);
    transition: transform 0.3s ease, margin-top 0.3s ease;
    vertical-align: middle;
    margin-top: -3px;
}

.mega-menu-root > li.parent:hover > a::after {
    transform: rotate(-135deg);
    margin-top: 3px;
    border-color: #0056b3;
}

/* 2. DROPDOWN WRAPPER & CONTAINER */
.mega-dropdown-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    border-top: 1px solid #f0f0f0;
}

.mega-menu-root li.parent:hover > .mega-dropdown-wrapper {
    display: block;
    animation: megaFadeIn 0.25s ease-out;
}

@keyframes megaFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mega-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    padding: 60px 40px;
    gap: 100px;
}

/* 3. INFO-SPALTE (LINKS) */
.mega-info-col {
    flex: 0 0 320px;
}

.mega-info-col h2 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 25px 0;
    color: #1a1a1a;
}

.mega-info-col p {
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 35px;
}

/* NEU: Styling für das Menü-Bild */
.mega-menu-image {
    width: 100%;
}

.mega-menu-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Etwas runder für modernen Look */
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mega-menu-image a:hover img {
    transform: scale(1.03);
}

/* NEU: Flexibler Button (angepasst an deinen Stil) */
.farbezusatz-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #1a1a1a !important;
    text-decoration: none !important;
    font-size: 16px;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 4px;
    transition: all 0.2s ease;
}

.farbezusatz-button:hover {
    color: #b5cc02 !important;
    border-color: #b5cc02;
}

/* 4. MENÜ-GRID (RECHTS) */
.mega-nav-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Headline-Stil (Ebene 2) */
.mega-nav-grid > li > span,
.mega-nav-grid > li > a {
    font-size: 14px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: none;
    border-bottom: 1px solid #e5e7eb;
    display: block;
    padding-bottom: 12px;
    margin-bottom: 20px;
    text-decoration: none;
}

/* 5. EBENE 3: LINKS MIT PFEIL-ANIMATION */
.nav-child {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-child li a {
    display: flex;
    align-items: center;
    padding: 10px 0;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-child li a::before {
    content: "→";
    display: inline-block;
    margin-right: 12px;
    color: #b5cc02;
    font-size: 18px;
    font-weight: 800;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-child li a:hover {
    color: #b5cc02;
}

.nav-child li a:hover::before {
    transform: translateX(8px);
}

/* Responsive Fix */
@media (max-width: 1024px) {
    .mega-container {
        gap: 40px;
        padding: 40px 20px;
    }
    .mega-info-col {
        flex: 0 0 250px;
    }
    .mega-info-col h2 {
        font-size: 32px;
    }
}