/* --------------------------------------------------
   Footer
-------------------------------------------------- */

.site-footer {
    margin-top: 80px;
    padding: 50px 0 24px;

    background: var(--footer-background);
    color: var(--footer-color);
}


/* --------------------------------------------------
   Footer Spalten
-------------------------------------------------- */

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
    align-items: start;

    width: 100%;
    gap: 40px;
}

.footer-column {
    min-width: 0;
    text-align: left;
}


/* Erste Spalte ganz links */

.footer-column:first-child {
    justify-self: start;
}


/* Letzte Spalte ganz rechts */

.footer-column:last-child {
    justify-self: end;
}


/* --------------------------------------------------
   Überschriften
-------------------------------------------------- */

.footer-column h3 {
    margin: 0 0 16px;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}


/* --------------------------------------------------
   Texte
-------------------------------------------------- */

.footer-column p {
    margin: 0 0 8px;
    line-height: 1.6;
}


/* --------------------------------------------------
   Links
-------------------------------------------------- */

.footer-column a {
    color: inherit;
    text-decoration: none;

    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--color-primary);
}


/* --------------------------------------------------
   Footer Navigation
-------------------------------------------------- */

.footer-navigation {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}


/* --------------------------------------------------
   Copyright
-------------------------------------------------- */

.footer-bottom {
    margin-top: 45px;
    padding-top: 18px;

    border-top: 1px solid var(--color-border);

    font-size: 13px;
    color: var(--color-text-muted);
    text-align: left;
}


/* --------------------------------------------------
   Tablet
-------------------------------------------------- */

@media (max-width: 900px) {

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        justify-content: normal;
        gap: 35px 50px;
    }

    .footer-column:first-child,
    .footer-column:last-child {
        justify-self: start;
    }
}


/* --------------------------------------------------
   Mobile
-------------------------------------------------- */

@media (max-width: 600px) {

    .site-footer {
        margin-top: 60px;
        padding: 40px 0 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-column,
    .footer-column:first-child,
    .footer-column:last-child {
        justify-self: start;
    }

    .footer-bottom {
        margin-top: 35px;
    }
}