/*
 * Walt Deko Header – Premium Safe Version
 * Schönere Optik wie erste Version, aber ohne Amasty/PageBuilder-Menü intern zu verändern.
 */

#wd-header-top,
#header.wd-header-nav {
    --wd-primary: #B4232F;
    --wd-primary-hover: #D64A55;
    --wd-ink: #123D2B;
    --wd-soft: rgba(18, 61, 43, 0.72);
    --wd-line: rgba(18, 61, 43, 0.10);
    --wd-line-strong: rgba(18, 61, 43, 0.16);
    --wd-shadow-soft: 0 12px 26px -22px rgba(18, 61, 43, 0.42);
    --wd-shadow-menu: 0 14px 30px -24px rgba(18, 61, 43, 0.55);

    color: var(--wd-ink);
}
/*
 * Layering:
 * Cookie bar uses z-40, so header must stay below it.
 * Header still needs to be above wd-header-top for mobile menu.
 */
#wd-header-top {
    z-index: 10;
}

#header.wd-header-nav {
    position: relative;
    z-index: 30;
}
/* ===============================
   Top Header: Logo + Service
   =============================== */

#wd-header-top {
    background:
        radial-gradient(circle at 12% 0%,
            rgba(214, 74, 85, 0.13) 0%,
            rgba(214, 74, 85, 0.04) 34%,
            transparent 62%),
        linear-gradient(
            180deg,
            rgba(180, 35, 47, 0.06) 0%,
            rgba(255, 255, 255, 1) 78%
        );
    border-bottom: 1px solid var(--wd-line);
}

#wd-header-top .container {
    max-width: 1500px;
}

#wd-header-top .wd-header-top-row {
    min-height: 122px;
}

/*
 * Weihnachtsdeko XXL: bewusst breites Markenlogo.
 * Desktop: ca. 80 % der linken Header-Haelfte, ohne die Service-Chips zu verdraengen.
 */
#wd-header-top .wd-header-logo {
    width: clamp(480px, 40vw, 600px);
    max-width: 600px;
}

#wd-header-top .wd-header-logo a,
#wd-header-top .wd-header-logo .logo,
#wd-header-top .wd-header-logo img {
    display: block;
}

#wd-header-top .wd-header-logo a,
#wd-header-top .wd-header-logo .logo {
    width: 100%;
}

#wd-header-top .wd-header-logo img {
    width: 100%;
    max-width: none;
    max-height: 110px;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

/* ===============================
   Service Chips
   =============================== */

#wd-header-top .wd-header-services {
    gap: clamp(0.8rem, 1.4vw, 1.6rem);
}

#wd-header-top .wd-header-service-item {
    min-height: 56px;
    padding: 0.48rem 0.85rem;
    border: 1px solid rgba(18, 61, 43, 0.11);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84));
    box-shadow:
        0 10px 22px -18px rgba(18, 61, 43, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    color: var(--wd-ink);
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease;
}

#wd-header-top a.wd-header-service-item:hover {
    color: var(--wd-primary);
    border-color: rgba(180, 35, 47, 0.34);
    background: #ffffff;
    box-shadow:
        0 14px 26px -20px rgba(18, 61, 43, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

#wd-header-top .wd-header-service-icon {
    width: 46px;
    height: 46px;
    border-color: rgba(180, 35, 47, 0.18);
    background:
        linear-gradient(180deg,
            rgba(180, 35, 47, 0.10),
            rgba(255, 255, 255, 0.96)
        );
    color: var(--wd-primary);
}

#wd-header-top a.wd-header-service-item:hover .wd-header-service-icon {
    color: var(--wd-primary-hover);
    border-color: rgba(180, 35, 47, 0.36);
    background: rgba(180, 35, 47, 0.08);
}

#wd-header-top .wd-header-service-title {
    font-size: 0.9rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--wd-ink);
    white-space: nowrap;
}

#wd-header-top .wd-header-service-sub {
    margin-top: 0.15rem;
    font-size: 0.82rem;
    line-height: 1.15;
    color: var(--wd-soft);
    white-space: nowrap;
}

/* ===============================
   Sticky Header Shell
   Nur äußerer Rahmen – kein Menü-Inhalt
   =============================== */

#header.wd-header-nav {
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.99),
            rgba(255, 255, 255, 0.96)
        );
    border-bottom: 1px solid var(--wd-line);
    box-shadow: var(--wd-shadow-menu);
}

#header.wd-header-nav .container {
    max-width: 1500px;
}

#header.wd-header-nav .wd-header-menu-row {
    min-height: 62px;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

#header.wd-header-nav .wd-header-menu {
    min-width: 0;
    flex: 1 1 auto;
}

/*
 * Wichtig:
 * Kein Styling für nav, nav a, .ammenu-link, .ammenu-item, .navigation a.
 * Dein Amasty/PageBuilder-Menü bleibt komplett eigenständig.
 */

/* ===============================
   Sticky Actions: Suche, Konto, Warenkorb
   =============================== */

#header.wd-header-nav .wd-header-actions {
    min-width: 140px;
    justify-content: flex-end;
    gap: 0.35rem;
    padding-left: 0.75rem;
    margin-left: 0.75rem;
    border-left: 1px solid rgba(18, 61, 43, 0.10);
}

#header.wd-header-nav #menu-search-icon,
#header.wd-header-nav #menu-cart-icon {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--wd-ink);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(18, 61, 43, 0.10);
    border-radius: 999px;
    box-shadow: 0 10px 20px -18px rgba(18, 61, 43, 0.45);
    transition:
        color 150ms ease,
        background-color 150ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease;
}

#header.wd-header-nav #menu-search-icon:hover,
#header.wd-header-nav #menu-cart-icon:hover {
    color: var(--wd-primary);
    background: rgba(180, 35, 47, 0.07);
    border-color: rgba(180, 35, 47, 0.22);
    box-shadow: 0 14px 24px -18px rgba(180, 35, 47, 0.40);
}

/* Kundenkonto nur im Actions-Bereich sanft abrunden, Dropdown nicht anfassen */
#header.wd-header-nav .wd-header-actions > .customer-menu button,
#header.wd-header-nav .wd-header-actions > div > button {
    border-radius: 999px;
}

/* Warenkorb-Badge */
#header.wd-header-nav #menu-cart-icon span {
    box-shadow: 0 8px 16px -10px rgba(18, 61, 43, 0.5);
}

/* ===============================
   Search Dropdown
   =============================== */

#header.wd-header-nav #search-content {
    border-top: 1px solid var(--wd-line);
    box-shadow: 0 18px 34px -26px rgba(18, 61, 43, 0.52);
}

#header.wd-header-nav #search-content input[type="search"],
#header.wd-header-nav #search-content input[type="text"] {
    min-height: 46px;
    border-radius: 999px;
}

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

@media (max-width: 1279px) {
    /* Auf Tablet bleibt mehr Platz fuer die Marke; Service-Chips wandern aus dem Top-Header. */
    #wd-header-top .wd-header-service-wrap {
        display: none !important;
    }

    #wd-header-top .wd-header-top-row {
        min-height: 112px;
        justify-content: center;
    }

    #wd-header-top .wd-header-logo {
        width: min(78vw, 650px);
        max-width: 650px;
    }

    #wd-header-top .wd-header-logo img {
        width: 100%;
        max-height: 104px;
        object-position: center;
    }
}

@media (max-width: 1023px) {
    #wd-header-top .wd-header-top-row {
        justify-content: center;
    }

    #wd-header-top .wd-header-logo {
        width: min(88vw, 620px);
        max-width: 620px;
    }

    #header.wd-header-nav .wd-header-menu-row {
        min-height: 58px;
    }

    #header.wd-header-nav .wd-header-actions {
        border-left: 0;
        margin-left: 0.35rem;
        padding-left: 0.35rem;
    }
}

@media (max-width: 767px) {
    #wd-header-top .container,
    #header.wd-header-nav .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Mobile: Logo nutzt praktisch die gesamte Content-Breite. */
    #wd-header-top .wd-header-top-row {
        min-height: auto;
        width: 100%;
        justify-content: center;
    }

    #wd-header-top .wd-header-logo {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    #wd-header-top .wd-header-logo a,
    #wd-header-top .wd-header-logo .logo {
        width: 100%;
    }

    #wd-header-top .wd-header-logo img {
        width: 100%;
        max-width: 100%;
        max-height: none;
        height: auto;
        object-fit: contain;
        object-position: center;
    }

    #header.wd-header-nav .wd-header-actions {
        min-width: auto;
    }

    #header.wd-header-nav #menu-search-icon,
    #header.wd-header-nav #menu-cart-icon {
        min-width: 40px;
        min-height: 40px;
    }
}
/* ==========================================================
   WEIHNACHTSDEKO XXL - BREITES HEADER LOGO
   ========================================================== */

/* DESKTOP */
@media (min-width: 1024px) {
    #wd-header-top .wd-header-logo {
        flex: 0 0 min(42vw, 700px) !important;
        width: min(42vw, 700px) !important;
        max-width: 700px !important;
    }

    #wd-header-top .wd-header-logo a {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    #wd-header-top .wd-header-logo img {
        width: 100% !important;
        height: auto !important;
        max-width: 430px !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: left center !important;
    }
}


/* TABLET */
@media (min-width: 768px) and (max-width: 1023px) {
    #wd-header-top .wd-header-logo {
        width: 55vw !important;
        max-width: 560px !important;
        flex: 0 0 55vw !important;
    }

    #wd-header-top .wd-header-logo a {
        width: 100% !important;
        display: flex !important;
        justify-content: flex-start !important;
    }

    #wd-header-top .wd-header-logo img {
        width: 100% !important;
        height: auto !important;
        max-width: 560px !important;
        max-height: none !important;
        object-fit: contain !important;
    }
}


/* MOBILE */
@media (max-width: 767px) {
    #wd-header-top .wd-header-top-row {
        width: 100% !important;
    }

    #wd-header-top .wd-header-logo {
        width: 100% !important;
        max-width: none !important;
        flex: 1 1 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    #wd-header-top .wd-header-logo a {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #wd-header-top .wd-header-logo img {
        width: 100% !important;
        height: auto !important;
        max-width: calc(100vw - 32px) !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}