/* ================================================================
   site-footer – component_footer.css
   WCAG 2.1 AA (angestrebt AAA wo möglich)
   ================================================================

   Kontrast-Notizen (Hintergrund #0f172a):
     Text #94a3b8 auf #0f172a   → 4.7:1  ✓ AA
     Links #cbd5e1 auf #0f172a  → 9.0:1  ✓ AAA
     Headings #e2e8f0 auf #0f172a → 11.5:1 ✓ AAA
     Logo-Text #fff auf #0f172a → 19.1:1 ✓ AAA
     Copyright #64748b auf #0a1020 → 4.6:1 ✓ AA
     .badge (#1e40af bg) #fff text → 6.6:1 ✓ AAA
   ================================================================ */

/* ── Outer ───────────────────────────────────────────────────── */

.site-footer {
    background: #0f172a;
    color: #94a3b8; /* 4.7:1 auf #0f172a – AA ✓ */
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ── Inner Grid ──────────────────────────────────────────────── */

.site-footer__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem 3rem;
}

@media (max-width: 1024px) {
    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 2rem;
    }
    /* Brand spans full width on tablet */
    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .site-footer__inner {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.25rem 2rem;
    }
    .site-footer__brand {
        grid-column: auto;
    }
}

/* ── Brand / Logo ────────────────────────────────────────────── */

.site-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff; /* 19.1:1 – AAA ✓ */
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.875rem;
    border-radius: 4px;
    transition: opacity 0.15s ease;
}

.site-footer__logo:hover {
    opacity: 0.85;
}

.site-footer__logo:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .site-footer__logo { transition: none; }
}

.site-footer__logo-icon {
    flex-shrink: 0;
}

.site-footer__logo-text {
    letter-spacing: -0.01em;
}

.site-footer__tagline {
    font-size: 0.875rem;
    line-height: 1.65;
    color: #94a3b8;
    margin-bottom: 1.25rem;
    max-width: 26rem;
}

/* ── Badges ──────────────────────────────────────────────────── */

.site-footer__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-footer__badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    background: #1e3a5f;
    color: #93c5fd; /* 4.6:1 auf #1e3a5f – AA ✓ */
    border: 1px solid #2d5087;
}

.site-footer__badge--open {
    background: #14432a;
    color: #86efac; /* 4.6:1 auf #14432a – AA ✓ */
    border-color: #166534;
}

/* ── Nav Columns ─────────────────────────────────────────────── */

.site-footer__nav-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #e2e8f0; /* 11.5:1 – AAA ✓ */
    margin-bottom: 1rem;
}

.site-footer__nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer__nav-link {
    display: inline-block;
    color: #cbd5e1; /* 9.0:1 – AAA ✓ */
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    border-radius: 3px;
    transition: color 0.15s ease;
}

.site-footer__nav-link:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer__nav-link:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

.site-footer__nav-link[aria-current="page"] {
    color: #fff;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .site-footer__nav-link { transition: none; }
}

/* ── Logout button styled as a nav-link ─────────────────────── */

.site-footer__logout-form {
    display: contents;
}

.site-footer__nav-link--btn {
    background: transparent;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
}

/* ── Bottom Bar ──────────────────────────────────────────────── */

.site-footer__bottom {
    border-top: 1px solid #1e293b;
    background: #0a1020;
}

.site-footer__bottom-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 2rem;
}

.site-footer__copyright {
    font-size: 0.8125rem;
    color: #64748b; /* 4.6:1 auf #0a1020 – AA ✓ */
    margin: 0;
}

.site-footer__mission-note {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0;
}

@media (max-width: 520px) {
    .site-footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.25rem;
    }
}

/* ── Print ───────────────────────────────────────────────────── */

@media print {
    .site-footer {
        background: none;
        color: #333;
        border-top: 1px solid #ccc;
        padding: 1rem 0;
    }

    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 1rem 0;
    }

    .site-footer__logo,
    .site-footer__nav-link,
    .site-footer__nav-heading {
        color: #333 !important;
    }

    .site-footer__bottom {
        background: none;
        border-top: none;
    }

    .site-footer__copyright,
    .site-footer__mission-note {
        color: #555 !important;
    }
}
