/* =========================================
   FOOTER BASE
   ========================================= */
.site-footer {
    margin-top: auto;
    font-size: 0.875rem;
}

/* =========================================
   FOOTER MAIN (Grüner Bereich)
   ========================================= */
.footer__main {
    background: var(--color-accent);
    color: var(--color-accent-text);
    padding-block: var(--space-xl) calc(var(--space-xl) * 0.75);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--space-xl) var(--space-lg);
    align-items: start;
}

.footer__col-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-accent-text);
    margin-bottom: var(--space-md);
}

/* Branding */
.footer__site-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-accent-text);
    margin-bottom: var(--space-sm);
}

.footer__tagline {
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* Branding-Logos im Footer
   - .custom-logo:        WordPress-Default (Header-Logo, von the_custom_logo())
   - .footer__custom-logo: Footer-spezifisches Logo aus dem Customizer
   - .footer__site-name:  Text-Fallback wenn kein Logo gesetzt ist
   Alle drei skalieren gleich, damit der Footer optisch konsistent bleibt. */
.footer__brand-default .custom-logo,
.footer__brand-default .footer__custom-logo {
    display: block;
    max-height: 48px;
    width: 100%;
    height: auto;
    margin-bottom: var(--space-sm);
    object-fit: contain;
}

.footer__brand-default .custom-logo-link,
.footer__brand-default .footer__custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.footer__site-name a {
    color: inherit;
    text-decoration: none;
}

.footer__site-name a:hover {
    opacity: 0.85;
}

.footer__address {
    font-style: normal;
    line-height: 1.7;
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.8);
}

/* Contact & Social */
.footer__contact-links {
    line-height: 1.9;
    margin-bottom: var(--space-md);
}

.footer__contact-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition), opacity var(--transition);
}

.footer__contact-links a:hover {
    color: var(--color-accent-text);
    opacity: 1;
}

.footer__contact-links small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-left: var(--space-xs);
}

.footer__social-links {
    list-style: none;
    padding: 0;
    margin: var(--space-sm) 0 0 -8px; /* Optischer Ausgleich nach links */
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.footer__social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition), transform var(--transition);
}

.footer__social-links a:hover,
.footer__social-links a:focus-visible {
    color: var(--color-accent-text);
    transform: translateY(-2px);
    opacity: 1;
}

.footer__social-links i {
    font-size: 1.25rem; /* Etwas präsenter */
    line-height: 1;
    text-align: center;
}

/* Navigation Lists */
.footer__nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__nav-list li { margin: 0; }

.footer__nav-list a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    transition: color var(--transition), opacity var(--transition);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.footer__nav-list a:hover,
.footer__nav-list a:focus-visible {
    color: var(--color-accent-text);
    opacity: 1;
}

.footer__nav-list a:focus-visible {
    outline: 2px solid var(--color-accent-text);
    outline-offset: 3px;
    border-radius: 2px;
}

/* =========================================
   FOOTER TRUST BAR (Zahlungsarten)
   ========================================= */
.footer__bar {
    background-color: var(--color-accent);
    /* Legt einen hauchzarten schwarzen Schleier (6%) über das Grün */
    background-image: linear-gradient(rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.06));
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-block: var(--space-md);
    min-height: 56px;
}

.footer__bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__payment-icons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__payment-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.9);
}

.footer__payment-icon-list {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer__trust-badge { display: contents; }

/* =========================================
   FOOTER LEGAL (Dunklerer grüner Bereich)
   ========================================= */
.footer__legal {
    background: var(--color-accent-hover); /* Dunkelstes Grün als Abschluss */
    padding-block: var(--space-md);
    color: rgba(255, 255, 255, 0.8);
}

/* 3-Spalten-Layout (Widerruf - Links - Copyright) */
.footer__legal-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-md);
}

/* 1. Links: Vertrag widerrufen */
.footer__revocation-action {
    justify-self: start;
}

.footer__revocation-action a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 0.8rem;
    transition: color var(--transition);
}

.footer__revocation-action a:hover {
    color: var(--color-accent-text);
}

/* 2. Mitte: Navigation */
.footer__legal-nav {
    justify-self: center;
}

.footer__legal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-xs) var(--space-md);
}

.footer__legal-list a {
    text-decoration: none;
    color: inherit;
    font-size: 0.8rem;
    transition: color var(--transition);
}

.footer__legal-list a:hover,
.footer__legal-list a:focus-visible {
    color: var(--color-accent-text);
}

.footer__legal-list li + li::before {
    content: '·';
    margin-right: var(--space-md);
    color: inherit;
    opacity: 0.4;
    pointer-events: none;
}

/* 3. Rechts: Copyright */
.footer__copyright {
    margin: 0;
    font-size: 0.8rem;
    justify-self: end;
    text-align: right;
}

.footer__copyright a { text-decoration: none; color: inherit; }
.footer__copyright a:hover { text-decoration: underline; color: var(--color-accent-text); }


/* =========================================
   RESPONSIVE FOOTER
   ========================================= */
@media (max-width: 900px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }

    .footer__legal-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .footer__revocation-action,
    .footer__copyright {
        justify-self: center;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer__col--brand {
        padding-bottom: var(--space-md);
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .footer__bar-inner {
        justify-content: flex-start;
    }

    .footer__legal-list {
        gap: var(--space-xs) var(--space-sm);
    }

    .footer__legal-list li + li::before {
        margin-right: var(--space-sm);
    }
}