/* Site-Footer im Papier-Look — für schlanke Seiten ohne styles.css.

   main.js hängt den gemeinsamen Footer (footer.html) an jede Seite an. Die
   Grundgestaltung dafür steht in styles.css; Seiten, die styles.css bewusst
   nicht laden (expert.html, cashflow-uebersicht.html), zeigten ihn deshalb
   als ungestylte Textliste. Diese Datei bringt Layout und Hauptbuch-Look
   mit, wie auf den Wissensseiten: Papier, kräftige Linie, Mono-Labels. */

.site-footer {
    margin-top: 56px;
    padding: 44px 28px 32px;
    border-top: 2px solid #1A1A17;
    background: #F4F1E8;
    font-family: 'Lora', 'Source Serif 4', Georgia, serif;
}

.site-footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(240px, 1.3fr) minmax(0, 2fr);
    gap: 28px;
    align-items: start;
}

.site-footer-inner > *,
.site-footer-links > * {
    min-width: 0;
}

.site-footer-logo {
    display: inline-flex;
    margin: 0 0 12px;
}

.site-footer-logo img {
    display: block;
    width: min(210px, 100%);
    height: auto;
    filter: brightness(0) opacity(0.82);
}

.site-footer-copy,
.site-footer-support {
    max-width: 42ch;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #5F5848;
}

.site-footer-support {
    margin-top: 12px;
    font-size: 13px;
}

.site-footer-support a {
    color: #1A1A17;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.site-footer-column h2 {
    margin: 0 0 14px;
    font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #8F5F3C;
}

.site-footer-column a {
    display: block;
    margin: 7px 0 0;
    font-size: 14px;
    color: #3D3A33;
    text-decoration: none;
}

.site-footer-column a:hover,
.site-footer-bottom a:hover {
    color: #B0492C;
}

.site-footer-bottom {
    max-width: 1240px;
    margin: 24px auto 0;
    padding-top: 14px;
    border-top: 1px solid #DAD3C2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #736B5B;
}

.site-footer-bottom a {
    color: #736B5B;
    text-decoration: none;
}

@media (max-width: 720px) {
    .site-footer {
        padding: 32px 16px 24px;
    }

    .site-footer-inner,
    .site-footer-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-footer-column a {
        padding: 6px 0;
    }

    .site-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
