/**
 * Werkking Custom Footer
 */

/* Hide Astra default footer on pages with our footer */
.wk-category-page ~ .site-footer,
body.tax-product_cat .site-footer#colophon {
    display: none !important;
}

/* === FOOTER === */
.wk-footer {
    flex-basis: 100%;
    width: 100%;
    flex-shrink: 0;
    background: #0f172a;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
}

.wk-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
}

.wk-footer a:hover {
    color: #ea580c;
}

/* Main footer */
.wk-footer-main {
    padding: 48px 0 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.wk-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

/* Category columns */
.wk-footer-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wk-footer-cat-link {
    font-size: 13px;
    padding: 2px 0;
}

.wk-footer-cat-link:first-child {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 14px;
    margin-bottom: 4px;
}

/* Info column */
.wk-footer-info {
    gap: 16px;
}

.wk-footer-logo {
    margin-bottom: 4px;
}

.wk-footer-logo img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.wk-footer-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.wk-footer-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #475569;
    display: block;
    margin-bottom: 6px;
}

.wk-footer-brand-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wk-footer-brand-links a {
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    font-size: 12px;
    color: #94a3b8;
}

.wk-footer-brand-links a:hover {
    border-color: #ea580c;
    color: #ea580c;
}

/* Bottom bar */
.wk-footer-bottom {
    padding: 20px 0;
}

.wk-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.wk-footer-legal {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.wk-footer-legal a {
    font-size: 12px;
    color: #64748b;
}

.wk-footer-legal a:hover {
    color: #ea580c;
}

.wk-footer-copy {
    text-align: right;
}

.wk-footer-copy p {
    margin: 0;
    font-size: 12px;
    color: #475569;
}

.wk-footer-affiliate {
    font-size: 11px !important;
    color: #374151 !important;
    margin-top: 4px !important;
    max-width: 500px;
    margin-left: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .wk-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wk-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .wk-footer-main {
        padding: 32px 0 24px;
    }
    .wk-footer-col {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px 12px;
    }
    .wk-footer-cat-link:first-child {
        width: 100%;
    }
    .wk-footer-info {
        flex-direction: column;
    }
    .wk-footer-bottom-inner {
        flex-direction: column;
        gap: 12px;
    }
    .wk-footer-copy {
        text-align: left;
    }
    .wk-footer-affiliate {
        margin-left: 0;
    }
}

/* Fix: Footer aus Astra Flex-Container befreien */
body.tax-product_cat .site-content > .ast-container {
    flex-wrap: wrap;
}
.wk-category-page {
    width: 100%;
    flex-basis: 100%;
}

/* Astra Flex-Layout deaktivieren - Werkking hat keine Sidebar */
body.tax-product_cat .site-content .ast-container {
    display: block !important;
}
