/* ==============================
   epcan TopBar
   ============================== */

.epcan-topbar-v2 {
    background: #122538;
    color: #fff;
    font-family: "Lato", Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1;
    position: relative;
    z-index: 10000;
}

.epcan-topbar-v2 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.epcan-topbar-v2 a:hover {
    color: #f1800e;
}

/* Inner container */
.epcan-topbar-v2__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
}

/* --- Left side --- */
.epcan-topbar-v2__left {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
}

/* Privat / Business switch */
.epcan-topbar-v2__switch {
    display: flex;
    align-items: center;
    padding: 0 18px;
    height: 100%;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
}

.epcan-topbar-v2__switch:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05);
}

.epcan-topbar-v2__switch--active {
    color: #fff !important;
    font-weight: 600;
}

.epcan-topbar-v2__switch--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: #f1800e;
    border-radius: 2px 2px 0 0;
}

/* --- epnox trigger --- */
.epcan-topbar-v2__epnox {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.epcan-topbar-v2__epnox-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 100%;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease, background 0.2s ease;
}

.epcan-topbar-v2__epnox--active .epcan-topbar-v2__epnox-link,
.epcan-topbar-v2__epnox-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

/* Green dot */
.epcan-topbar-v2__epnox-dot {
    width: 7px;
    height: 7px;
    background: #f1800e;
    border-radius: 50%;
    flex-shrink: 0;
}

.epcan-topbar-v2__epnox-lock {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Chevron */
.epcan-topbar-v2__epnox-chevron {
    transition: transform 0.25s ease;
    opacity: 0.6;
    flex-shrink: 0;
}

.epcan-topbar-v2__epnox--active .epcan-topbar-v2__epnox-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* --- Right side --- */
.epcan-topbar-v2__right {
    display: flex;
    align-items: center;
    gap: 0;
}

.epcan-topbar-v2__right a {
    padding: 0 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7) !important;
}

.epcan-topbar-v2__right a:hover {
    color: #fff !important;
}

.epcan-topbar-v2__sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 12px;
    user-select: none;
}


/* ==============================
   Mega Menu
   ============================== */

.epcan-topbar-v2__mega {
    position: absolute;
    top: 100%;
    left: -18px;
    width: 780px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 10001;
    padding-top: 0;
}

.epcan-topbar-v2__mega--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.epcan-topbar-v2__mega-inner {
    display: flex;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 40px rgba(18, 37, 56, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border-top: 3px solid #f1800e;
}

/* --- Left column (services) --- */
.epcan-topbar-v2__mega-left {
    flex: 1;
    padding: 28px 30px;
}

.epcan-topbar-v2__mega-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}

.epcan-topbar-v2__mega-brand {
    font-size: 18px;
    font-weight: 700;
    color: #264462;
}

.epcan-topbar-v2__mega-subtitle {
    font-size: 14px;
    color: #888;
    font-weight: 400;
}

/* Service rows */
.epcan-topbar-v2__mega-services {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.epcan-topbar-v2__mega-service {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    transition: background 0.15s ease;
    color: #333 !important;
}

.epcan-topbar-v2__mega-service:hover {
    background: #f5f8fb;
    color: #333 !important;
}

.epcan-topbar-v2__mega-icon {
    width: 42px;
    height: 42px;
    background: #f0f4f8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.epcan-topbar-v2__mega-service:hover .epcan-topbar-v2__mega-icon {
    background: #e6edf4;
}

.epcan-topbar-v2__mega-service-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.epcan-topbar-v2__mega-service-text strong {
    font-size: 14px;
    font-weight: 600;
    color: #122538;
}

.epcan-topbar-v2__mega-service-text span {
    font-size: 12.5px;
    color: #777;
}

.epcan-topbar-v2__mega-price {
    font-size: 13px;
    font-weight: 600;
    color: #f1800e;
    white-space: nowrap;
    flex-shrink: 0;
}

.epcan-topbar-v2__mega-price--request {
    color: #264462;
    font-weight: 500;
}

/* --- Right column (CTA) --- */
.epcan-topbar-v2__mega-right {
    width: 260px;
    background: linear-gradient(160deg, #264462 0%, #1b3550 100%);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.epcan-topbar-v2__mega-cta-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #f1800e;
    margin: 0 0 10px 0;
}

.epcan-topbar-v2__mega-cta-text {
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 16px 0;
}

/* Badges */
.epcan-topbar-v2__mega-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.epcan-topbar-v2__mega-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

/* CTA Button */
.epcan-topbar-v2__mega-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1800e;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.15s ease;
    margin-top: auto;
    text-align: center;
}

.epcan-topbar-v2__mega-cta-btn:hover {
    background: #d66f0c;
    color: #fff !important;
    transform: translateY(-1px);
}

/* ==============================
   Responsive
   ============================== */

@media (max-width: 900px) {
    .epcan-topbar-v2__mega {
        width: calc(100vw - 20px);
        left: 0;
    }

    .epcan-topbar-v2__mega-inner {
        flex-direction: column;
    }

    .epcan-topbar-v2__mega-right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .epcan-topbar-v2__inner {
        height: auto;
        flex-wrap: wrap;
        padding: 0;
    }

    .epcan-topbar-v2__left {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .epcan-topbar-v2__switch {
        padding: 12px 14px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .epcan-topbar-v2__epnox {
        margin-left: 0;
        flex-shrink: 0;
    }

    .epcan-topbar-v2__epnox-link {
        padding: 12px 14px;
        font-size: 12px;
        white-space: nowrap;
    }

    .epcan-topbar-v2__right {
        width: 100%;
        justify-content: center;
        padding: 14px 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .epcan-topbar-v2__right a {
        font-size: 12px;
        padding: 0 8px;
    }

    /* Mobile: kein Mega-Menü, nur direkter Link */
    .epcan-topbar-v2__mega {
        display: none !important;
    }

    .epcan-topbar-v2__epnox-chevron {
        display: none;
    }
}
