/**
 * Footer CSS - Mobile-First Responsive Design (011-ui-mobile.mdc Regel 007)
 * Standard-Footer: Spalten mit Überschrift und vertikal gestapelten Links
 * Footer max-width 1600px = Content-Breite (011-ui-footer.mdc Regel 003)
 */

.base-footer {
    border-top: 1px solid rgba(26, 121, 125, 0.14);
    padding: 2.5rem 20px 1.5rem;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    background-color: var(--color-bg-light);
    overflow-x: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-shadow: none;
}

.base-footer-grid {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background-color: transparent;
}

@media (min-width: 600px) {
    .base-footer {
        padding: 3rem 40px 1.5rem;
    }

    .base-footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem 3rem;
        margin-bottom: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .base-footer {
        padding: 3.5rem 40px 2rem;
    }

    .base-footer-grid {
        gap: 3rem;
        margin-bottom: 3rem;
    }
}

.base-footer-links-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

#baseFooterGrid .base-headline-h4 {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 100%;
}

#baseFooterGrid .base-headline-h4 h4,
#baseFooterGrid h4.base-headline-h4 {
    margin: 0 0 1rem;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    white-space: normal;
    letter-spacing: 0.02em;
}

#baseFooterGrid .base-footer-link {
    display: block;
    margin-bottom: 0.625rem;
    font-size: var(--font-size-sm);
    white-space: normal;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

#baseFooterGrid .base-footer-link:hover {
    color: var(--color-primary);
}

#baseFooterGrid .base-footer-link:last-child {
    margin-bottom: 0;
}

.base-footer-headline {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    color: var(--color-text);
}

#baseFooterBottom.base-footer-bottom {
    width: 100%;
    max-width: 1600px;
    margin: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(26, 121, 125, 0.14);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    box-sizing: border-box;
    background-color: transparent;
    box-shadow: none;
}

#baseFooterBottom .base-content-text-small {
    width: 100%;
    margin: 0;
    text-align: center;
    font-size: var(--font-size-sm);
    line-height: 1.5;
    color: var(--color-text-muted);
}
