/* =========================================================
   Dein Selbstversorger Header
   ========================================================= */

.ds-site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;

    background:
        radial-gradient(circle at 12% 20%, rgba(255, 247, 232, 0.88), transparent 28%),
        linear-gradient(135deg, #f8efe0 0%, #ece1cd 100%);

    border-bottom: 1px solid rgba(120, 95, 70, 0.14);

    box-shadow:
        0 8px 18px rgba(98, 75, 46, 0.08);

    padding: 14px 22px;

    box-sizing: border-box;
    backdrop-filter: blur(8px);
}

/* =========================================================
   Header Grundlayout
   ========================================================= */

.ds-header-inner {
    max-width: 1500px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;
    width: 100%;
}

/* =========================================================
   Logo
   ========================================================= */

.ds-header-logo {
    flex: 0 0 auto;
}

.ds-header-logo a {
    display: flex;
    align-items: center;
}

.ds-logo-desktop {
    display: block;
    width: 350px;
    max-width: 350px;
    height: auto;
    filter:
    saturate(0.96)
    brightness(1.01);
}

.ds-logo-mobile {
    display: none;
}

/* =========================================================
   Desktop Navigation
   ========================================================= */

.ds-header-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.ds-desktop-menu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;

    gap: 22px;

    list-style: none;
    margin: 0;
    padding: 0;
}

.ds-desktop-menu li {
    list-style: none;
    display: flex;
    align-items: center;
}

.ds-desktop-menu a {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 42px;

    text-decoration: none;

    color: #3f4b2f;

    font-weight: 600;
    line-height: 1.35;

    padding: 8px 2px;

    transition: opacity 0.25s ease;
}

.ds-desktop-menu a:hover {
    opacity: 0.75;
}

.ds-desktop-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;

    width: 0;
    height: 2px;

    background: #7a8f3a;
    border-radius: 999px;

    transition: width 0.25s ease;
}

.ds-desktop-menu a:hover::after,
.ds-desktop-menu .current-menu-item > a::after {
    width: 100%;
}

/* =========================================================
   Suche Icon
   ========================================================= */

.ds-header-search {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
}

.ds-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border: none;
    background: transparent;

    cursor: pointer;

    padding: 0;
}

.ds-search-icon {
    position: relative;
    display: block;

    width: 28px;
    height: 28px;
}

.ds-search-icon::before {
    content: "";
    position: absolute;

    width: 18px;
    height: 18px;

    border: 3px solid #355c3b;
    border-radius: 50%;

    top: 0;
    left: 0;
}

.ds-search-icon::after {
    content: "";
    position: absolute;

    width: 9px;
    height: 3px;

    background: #355c3b;
    border-radius: 999px;

    transform: rotate(45deg);

    left: 15px;
    top: 17px;
}

/* =========================================================
   Suchblase
   ========================================================= */

.ds-search-panel {
    display: none;

    max-width: 940px;
    margin: 12px auto 4px;

    background:
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.78), transparent 34%),
        linear-gradient(135deg, rgba(255,250,240,0.94) 0%, rgba(239,225,207,0.94) 100%);

    border: 1px solid rgba(91, 73, 49, 0.16);
    border-radius: 999px;

    padding: 12px;

    box-shadow:
        0 16px 34px rgba(62, 48, 31, 0.13),
        inset 0 1px 4px rgba(255,255,255,0.42);
}

.ds-search-panel.is-active {
    display: block;
    animation: dsSearchOpen 0.22s ease both;
}

.ds-search-panel form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ds-search-panel input {
    flex: 1;

    border: none;
    outline: none;
    background: rgba(255,255,255,0.34);

    border-radius: 999px;

    padding: 14px 18px;

    color: #3f4b2f;
    font-size: 1rem;
}

.ds-search-panel button {
    border: none;
    border-radius: 999px;

    background:
        linear-gradient(135deg, #6f775d 0%, #5d654d 100%);

    color: #fff;

    padding: 14px 24px;

    font-weight: 700;
    cursor: pointer;

    box-shadow:
        0 4px 10px rgba(62, 48, 31, 0.10);

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.ds-search-panel button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

@keyframes dsSearchOpen {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================================
   Mobiler Button
   ========================================================= */

.ds-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;

    margin-left: auto;

    width: 46px;
    height: 46px;

    border-radius: 50%;

    border: 1px solid rgba(164, 140, 92, 0.28);

    background:
        linear-gradient(
            135deg,
            #f5ead3 0%,
            #e9dbc0 100%
        );

    color: #6c745d;

    box-shadow:
        0 4px 10px rgba(80, 60, 35, 0.08),
        inset 0 1px 2px rgba(255,255,255,0.45);

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.ds-mobile-toggle:hover {
    transform: translateY(-1px);
    opacity: 0.94;
}
/* =========================================================
   Mobiles Menü
   ========================================================= */

.ds-mobile-menu {
    display: none;

    flex-direction: column;

    gap: 14px;

    padding-top: 18px;
    margin-top: 18px;

    border-top: 1px solid rgba(120,95,70,0.15);
}

.ds-mobile-menu.is-active {
    display: flex;
}

.ds-mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 14px;

    list-style: none;
    margin: 0;
    padding: 0;
}

.ds-mobile-menu-list li {
    list-style: none;
}

.ds-mobile-menu-list a {
    text-decoration: none;

    color: #5a4a3b;

    font-size: 1rem;
    font-weight: 600;
}

/* =========================================================
   Desktop / Mobile Suchfelder steuern
   ========================================================= */

@media (max-width: 900px) {
    .ds-search-panel-desktop {
        display: none !important;
    }
}

@media (min-width: 901px) {
    .ds-search-panel-mobile {
        display: none !important;
    }

    .ds-mobile-menu {
        display: none !important;
    }
}

/* =========================================================
   Mobile Layout
   ========================================================= */

@media (max-width: 900px) {

    .ds-site-header {
        padding: 14px 18px;
    }

    .ds-header-inner {
        max-width: none;

        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 16px;
    }

    .ds-header-nav,
    .ds-header-search {
        display: none;
    }

    .ds-logo-desktop {
        display: none;
    }

    .ds-logo-mobile {
        display: block;
        width: 170px;
        max-width: 170px;
        height: auto;
    }

    .ds-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: auto;

    width: 44px;
    height: 44px;

    border-radius: 50%;

    border: 1px solid rgba(120, 110, 85, 0.18);

    font-size: 1.45rem;
    font-weight: 600;

    background:
        linear-gradient(
            135deg,
            #f5ead3 0%,
            #e9dbc0 100%
        );

    color: #6c745d;

    box-shadow:
        0 4px 10px rgba(80, 60, 35, 0.08),
        inset 0 1px 2px rgba(255,255,255,0.45);
}

    .ds-mobile-menu .ds-search-panel-mobile {
        display: none;

        margin-top: 18px;
        border-radius: 22px;
    }

    .ds-mobile-menu.is-active .ds-search-panel-mobile {
        display: block;
    }

    .ds-search-panel form {
        flex-direction: column;
        align-items: stretch;

        width: 100%;
    }

    .ds-search-panel button {
        width: 100%;
    }

}

/* =========================================================
   Astra Header ausblenden
   Testphase Custom Header
   ========================================================= */

.site-header,
#masthead {
    display: none !important;
}