/**
 * Aura Footer Styles
 * Extracted from footer.php for better performance
 * Version: 1.0.0
 */

/* HIDE SHOPTIMIZER DEFAULT FOOTER */
.site-footer,
#colophon,
.footer-widgets,
.below-content,
.copyright {
    display: none !important;
}

/* CUSTOM FOOTER STYLES - EXACT FROM HEADLESS */
.aura-custom-footer {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    color: #1f2937;
    background-color: #fff;
}

/* TOP SECTION - FEATURE BOXES */
.aura-footer-features {
    background-color: #f3f4f6;
}

.aura-footer-features-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    min-height: 120px;
}

/* Mobile specific padding */
@media (max-width: 767px) {
    .aura-footer-features-container {
        padding: 2.5rem 1rem;
    }
}

.aura-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 768px) {
    .aura-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.aura-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.aura-feature-icon {
    width: 2rem;
    height: 2rem;
    background-color: #3f880b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aura-feature-icon svg {
    width: 1rem;
    height: 1rem;
    color: white;
}

.aura-feature-content h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
}

.aura-feature-content p {
    font-size: 0.75rem;
    color: #4b5563;
    line-height: 1.4;
    margin: 0;
}

/* MAIN FOOTER - BLACK BACKGROUND */
.aura-footer-main {
    background-color: #000000;
    border-top: 1px solid #4b5563;
    padding: 3rem 0;
}

.aura-footer-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.aura-footer-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .aura-footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .aura-footer-columns {
        grid-template-columns: repeat(4, 1fr);
    }
}

.aura-footer-column h3 {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    color: white;
    text-transform: uppercase;
}

.aura-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aura-footer-column ul li {
    margin-bottom: 0.5rem;
}

.aura-footer-column ul li a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.aura-footer-column ul li a:hover {
    color: white;
}

.aura-footer-company-info {
    line-height: 1.3;
}

.aura-footer-company-info > div {
    margin-bottom: 1rem;
}

.aura-footer-company-info .company-name {
    font-weight: 500;
    color: #d1d5db;
    font-size: 0.875rem;
}

.aura-footer-company-info .company-details {
    color: #d1d5db;
    font-size: 0.875rem;
}

.aura-footer-company-info .company-contact a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-block;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.aura-footer-company-info .company-contact a:hover {
    color: white;
}

.aura-footer-company-info .company-bank {
    font-family: monospace;
    color: #d1d5db;
    font-size: 0.875rem;
}

.aura-footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.aura-footer-social a {
    color: #d1d5db;
    transition: color 0.2s ease;
}

.aura-footer-social a:hover {
    color: white;
}

.aura-footer-social svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* BOTTOM SECTION - PAYMENT & COPYRIGHT */
.aura-footer-bottom {
    background-color: #000000;
    border-top: 1px solid #2a2a2a;
    padding: 1.5rem 0;
}

.aura-footer-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.aura-footer-bottom-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 1024px) {
    .aura-footer-bottom-content {
        flex-direction: row;
    }
}

.aura-payment-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 100%;
}

.aura-payment-icons::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1024px) {
    .aura-payment-icons {
        overflow: visible;
    }
}

.aura-payment-icons img {
    height: 1.25rem;
    width: auto;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .aura-payment-icons img {
        height: 1.5rem;
    }
}

.aura-footer-copyright {
    text-align: center;
    font-size: 0.75rem;
    color: #d1d5db;
}

@media (min-width: 1024px) {
    .aura-footer-copyright {
        text-align: right;
    }
}

/* CHAT WIDGET - Move below mobile menu when menu is open */
@media (max-width: 767px) {
    /* When mobile menu is toggled (common class used by themes) */
    body.mobile-toggled #button[data-testid="widgetButton"],
    body.mobile-menu-open #button[data-testid="widgetButton"],
    body.nav-open #button[data-testid="widgetButton"],
    /* When col-full-nav is visible (from CSS we found) */
    body:has(.col-full-nav:not([style*="left: -300px"])) #button[data-testid="widgetButton"] {
        bottom: 80px !important;
        z-index: 100 !important;
    }

    /* Additional fallback for when overlay is visible */
    body:has(.mobile-overlay[style*="visible"]) #button[data-testid="widgetButton"],
    body:has(.mobile-overlay[style*="opacity: 1"]) #button[data-testid="widgetButton"] {
        bottom: 80px !important;
        z-index: 100 !important;
    }
}

/* ============================================
   PRE-FOOTER: Newsletter + TrustMate + Kategorie
   Inserted between .aura-footer-features and .aura-footer-main
   ============================================ */

.aura-prefooter {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
}

.aura-prefooter-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- ROW A: Newsletter + TrustMate --- */

.aura-prefooter-row-a {
    background: #ffffff;
    padding: 2.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.aura-prefooter-newsletter-trust {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 1023px) {
    .aura-prefooter-newsletter-trust {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Newsletter block */

.aura-prefooter-newsletter {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.aura-prefooter-newsletter-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.aura-prefooter-newsletter-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3f880b;
}

.aura-prefooter-newsletter-icon svg {
    width: 20px;
    height: 20px;
}

.aura-prefooter-newsletter-header h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.125rem 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.aura-prefooter-newsletter-header p {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Input group */

.aura-prefooter-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.aura-prefooter-newsletter-input-group {
    display: flex;
    max-width: 480px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    border-radius: 10px;
}

.aura-prefooter-newsletter-input-group input[type="email"] {
    flex: 1;
    padding: 0.8125rem 1rem;
    font-size: 0.875rem;
    border: 1px solid #e5e7eb;
    border-right: none;
    border-radius: 10px 0 0 10px;
    font-family: inherit;
    color: #1f2937;
    background: #fff;
    min-width: 0;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.aura-prefooter-newsletter-input-group input[type="email"]::placeholder {
    color: #9ca3af;
}

.aura-prefooter-newsletter-input-group input[type="email"]:focus {
    border-color: #3f880b;
    box-shadow: 0 0 0 3px rgba(63, 136, 11, 0.1);
    z-index: 1;
    position: relative;
}

.aura-prefooter-newsletter-input-group button {
    padding: 0.8125rem 1.5rem;
    background-color: #3f880b;
    color: #fff;
    border: 1px solid #3f880b;
    border-radius: 0 10px 10px 0;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.01em;
    transition: background-color 0.2s, transform 0.1s;
}

.aura-prefooter-newsletter-input-group button:hover {
    background-color: #357509;
    border-color: #357509;
}

.aura-prefooter-newsletter-input-group button:active {
    transform: scale(0.98);
}

@media (max-width: 480px) {
    .aura-prefooter-newsletter-input-group {
        flex-direction: column;
        max-width: 100%;
        box-shadow: none;
    }
    .aura-prefooter-newsletter-input-group input[type="email"] {
        border-right: 1px solid #e5e7eb;
        border-radius: 10px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }
    .aura-prefooter-newsletter-input-group input[type="email"]:focus {
        border-color: #3f880b;
    }
    .aura-prefooter-newsletter-input-group button {
        border-radius: 10px;
        margin-top: 0.5rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }
}

/* Consent checkbox */

.aura-prefooter-newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    max-width: 480px;
}

.aura-prefooter-newsletter-consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-top: 1px;
    accent-color: #3f880b;
    cursor: pointer;
}

.aura-prefooter-newsletter-consent span {
    font-size: 0.6875rem;
    color: #9ca3af;
    line-height: 1.45;
}

.aura-prefooter-newsletter-consent a {
    color: #6b7280;
    text-decoration: underline;
    text-underline-offset: 1px;
}

.aura-prefooter-newsletter-consent a:hover {
    color: #3f880b;
}

/* MailerLite integration overrides */

.aura-prefooter-newsletter .ml-form-embedWrapper {
    max-width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.aura-prefooter-newsletter .ml-form-embedBody {
    padding: 0;
    background: transparent;
}

.aura-prefooter-newsletter .ml-form-embedContent {
    display: none; /* Custom header replaces MailerLite default */
}

.aura-prefooter-newsletter .ml-form-embedSubmit,
.aura-prefooter-newsletter .ml-field-group {
    display: contents; /* Let ML JS find these wrappers; children flow into parent flex */
}

.aura-prefooter-newsletter .ml-form-formContent {
    padding: 0;
    margin: 0;
}

.aura-prefooter-newsletter .loading {
    display: none !important;
}

/* Success state */

.aura-prefooter-newsletter-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    text-align: center;
}

.aura-prefooter-newsletter-success h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.aura-prefooter-newsletter-success p {
    font-size: 0.875rem;
    color: #4b5563;
    margin: 0;
}

/* TrustMate card */

.aura-prefooter-trustmate {
    display: flex;
    justify-content: center;
}

@media (max-width: 1023px) {
    .aura-prefooter-trustmate {
        justify-content: flex-start;
    }
}

.aura-prefooter-trustmate-card {
    background: #faf7f5;
    border: 1px solid #e8e4e1;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    width: 100%;
    max-width: 340px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (max-width: 1023px) {
    .aura-prefooter-trustmate-card {
        max-width: 100%;
        padding: 1rem 1.25rem;
        min-height: auto;
    }
}

/* TrustMate dodo2 widget overrides (real widget loaded via script) */

#aura-footer-tm .tm-dodo2 {
    display: block !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    width: 100% !important;
}

#aura-footer-tm .tm-dodo2__sticker {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: 2px 12px !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    grid-template-areas:
        "grade logo"
        "grade text" !important;
}

#aura-footer-tm .tm-dodo2__grade {
    font-size: 48px !important;
    font-weight: 600 !important;
    color: #000 !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: center !important;
    grid-area: grade !important;
    font-family: 'Inter', system-ui, sans-serif !important;
}

#aura-footer-tm .tm-dodo2__logo {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    align-self: end !important;
    justify-self: start !important;
    grid-area: logo !important;
}

#aura-footer-tm .tm-dodo2__logo img {
    max-width: 110px !important;
    height: auto !important;
}

#aura-footer-tm .tm-dodo2__text {
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #505050 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    align-self: start !important;
    justify-self: start !important;
    grid-area: text !important;
    display: block !important;
    width: 100% !important;
    font-family: 'Inter', system-ui, sans-serif !important;
}

#aura-footer-tm .tm-dodo2__text span {
    color: #505050 !important;
    font-weight: 400 !important;
    font-family: 'Inter', system-ui, sans-serif !important;
}

#aura-footer-tm .tm-dodo2__text--color {
    color: #505050 !important;
    font-weight: 400 !important;
    text-decoration: underline !important;
    font-family: 'Inter', system-ui, sans-serif !important;
}

/* Loading state */

.aura-footer-tm-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 80px;
}

.aura-footer-tm-loading span {
    display: block;
    width: 24px;
    height: 24px;
    border: 2px solid #e8e4e1;
    border-top-color: #397d16;
    border-radius: 50%;
    animation: aura-tm-spin 0.8s linear infinite;
}

@keyframes aura-tm-spin {
    to { transform: rotate(360deg); }
}

/* Error/fallback link */

#aura-footer-tm > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 60px;
}

/* --- ROW B: Kategorie --- */

.aura-prefooter-row-b {
    background: #f9fafb;
    padding: 2.5rem 0 3rem;
}

.aura-prefooter-categories-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin: 0 0 1.5rem 0;
}

.aura-prefooter-categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.75rem 2rem;
}

@media (max-width: 1199px) {
    .aura-prefooter-categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1023px) {
    .aura-prefooter-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 639px) {
    .aura-prefooter-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem 1.5rem;
    }
}

@media (max-width: 479px) {
    .aura-prefooter-categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem 1.25rem;
    }
}

.aura-prefooter-cat-col h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
}

.aura-prefooter-cat-col h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.aura-prefooter-cat-col h4 a:hover {
    color: #3f880b !important;
}

.aura-prefooter-cat-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aura-prefooter-cat-col ul li {
    margin-bottom: 0.4rem;
}

.aura-prefooter-cat-col ul li a {
    font-size: 0.8125rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.5;
}

.aura-prefooter-cat-col ul li a:hover {
    color: #3f880b;
}
