.footer {
    background: var(--color-ink);
    color: var(--color-white);
    padding: 56px 0 28px;
}

.footer__grid {
    display: grid;
    gap: 28px;
    grid-template-columns: 1.4fr repeat(3, 1fr);
}

.footer__logo {
    color: var(--color-white);
    display: inline-block;
    margin-bottom: 14px;
}

/* Wortmarke ohne Klammern (components/logo.html) */
.footer__logo .logo {
    display: block;
    height: 26px;
    width: auto;
}

.footer__tagline,
.footer__contact,
.footer__bottom,
.footer__links a {
    color: rgba(255, 255, 255, 0.72);
}

.footer__heading {
    color: var(--color-white);
    font-size: 0.78rem;
    margin: 0 0 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.footer__links {
    display: grid;
    gap: 9px;
    list-style: none;
}

.footer__links a {
    text-decoration: none;
}

.footer__links a:hover {
    color: var(--color-lime);
}

.footer__social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer__social-link {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-sm);
    display: inline-flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.footer__contact {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 24px;
    padding-top: 20px;
}

.footer__newsletter {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin: 28px 0;
    padding-top: 24px;
    text-align: center;
}

.footer__newsletter-title {
    color: var(--color-white);
    font-size: 1.05rem;
    margin: 0 0 8px;
}

.footer__newsletter-text,
.footer__newsletter-message {
    color: rgba(255, 255, 255, 0.72);
    margin: 0 auto 14px;
    max-width: 520px;
}

.footer__newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 0 auto;
    max-width: 520px;
}

.footer__newsletter-form input[type="email"] {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    flex: 1 1 220px;
    min-height: 46px;
    min-width: 0;
    padding: 0.72rem 0.9rem;
}

/* Status after "Anmelden" (role="status", below the privacy note); empty until a submit (W-01). */
.footer__newsletter-message {
    font-weight: 700;
    margin-top: 12px;
}

.footer__newsletter-message:empty {
    margin: 0 auto;
}

.footer__newsletter-message[data-state="success"] {
    color: var(--color-lime);
}

.footer__newsletter-message[data-state="error"] {
    color: #ff8a8a;
}

/* Address rejected by the server (422, E2E R3 N-02): the field is marked until it is changed. */
.footer__newsletter-form input[aria-invalid="true"] {
    border-color: #ff8a8a;
    box-shadow: 0 0 0 1px #ff8a8a;
}

.footer__bottom,
.footer__legal,
.footer__legal-links,
.footer__lang-links {
    align-items: center;
    display: flex;
    gap: 16px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
}

.footer__legal-links a,
.footer__lang-link,
.footer__consent-link {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.footer__legal-links a:hover,
.footer__lang-link:hover,
.footer__consent-link:hover,
.footer__contact a:hover {
    color: var(--color-lime);
    text-decoration: underline;
}

/* "Cookie-Einstellungen" is a button (it opens the settings dialog) styled like the legal links. */
.footer__consent-link {
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.footer__contact a {
    color: inherit;
}

.footer__newsletter-note {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    margin: 12px auto 0;
    max-width: 520px;
}

.footer__newsletter-note a {
    color: var(--color-lime);
}

.footer__lang-link--active {
    color: var(--color-lime);
}

@media (max-width: 760px) {
    .footer__grid,
    .footer__bottom,
    .footer__legal,
    .footer__legal-links,
    .footer__lang-links {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__newsletter-form {
        align-items: stretch;
        flex-direction: column;
    }

    /* In the column layout the 220px flex basis became the field's height (W-02/B-05). */
    .footer__newsletter-form input[type="email"] {
        flex: 0 0 auto;
    }
}
