/* ============================================================
   A&M Footer Block — 1:1-Port von Startseite.html .footer
   ============================================================ */

.ams-footer {
    box-sizing: border-box;
    background: var(--ink, #1a1a1a);
    color: #fff;
    padding: 64px 48px 32px;
}
.ams-footer *,
.ams-footer *::before,
.ams-footer *::after { box-sizing: border-box; }

/* ── TOP (Brand + Spalten als Grid) ────────────────────── */
.ams-footer__top {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    /* grid-template-columns kommt als inline-style vom Template
       (dynamisch je nach Anzahl aktiver Columns) */
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 32px;
}

/* Brand-Spalte */
.ams-footer__brand img {
    height: 36px;
    width: auto;
    display: block;
    /* Logo aus dem Repo ist dunkel → auf Dark-BG invertieren */
    filter: invert(1) brightness(2);
    margin-bottom: 16px;
}
.ams-footer__brand p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 280px;
    margin: 0;
}
.ams-footer__brand p a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 200ms var(--ease-out, cubic-bezier(0.22, 0.61, 0.36, 1));
}
.ams-footer__brand p a:hover { color: #fff; }

/* Link-Columns */
.ams-footer__col-title {
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 14px;
}
.ams-footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ams-footer__links a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 200ms var(--ease-out, cubic-bezier(0.22, 0.61, 0.36, 1));
}
.ams-footer__links a:hover { color: #fff; }

/* ── BOTTOM (Copyright + Seals) ────────────────────────── */
.ams-footer__bottom {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    flex-wrap: wrap;
    gap: 16px;
}

.ams-footer__seals {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.ams-footer__seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 6px 12px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
    text-decoration: none;
}
.ams-footer__seal:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}
.ams-footer__seal img {
    display: block;
    height: 100%;
    width: auto;
    max-width: 220px;
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
    /* Inline-Grid vom Template überschreiben: 3 Spalten (Brand + 2) */
    .ams-footer__top { grid-template-columns: 1.6fr 1fr 1fr !important; }
}
@media (max-width: 800px) {
    .ams-footer { padding: 48px 24px 24px; }
    .ams-footer__top { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 540px) {
    .ams-footer__top { grid-template-columns: 1fr !important; }
    .ams-footer__bottom { justify-content: flex-start; }
}
