/* Sitewide footer ([ogp_footer]). */
.ogp-ft-wrap { margin-block-start: 0 !important; }
.ogp-ft-wrap p:empty { display: none; }

.ogp-ft {
    --ogp-ft-text: var(--wp--preset--color--text-on-dark, #f3f1ea);
    --ogp-ft-muted: rgba(243, 241, 234, 0.72);
    --ogp-ft-line: rgba(243, 241, 234, 0.16);
    max-width: 1300px;
    margin: 0 auto;
    padding: 3.5rem clamp(16px, 4vw, 48px) 1.75rem;
    color: var(--ogp-ft-text);
    font-size: 0.9rem;
    line-height: 1.5;
}
.ogp-ft a { color: inherit; text-decoration: none; }
.ogp-ft a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ogp-ft ul { list-style: none; margin: 0; padding: 0; }
.ogp-ft li { margin: 0 0 0.45rem; }
.ogp-ft li a { color: var(--ogp-ft-muted); }
.ogp-ft li a:hover { color: var(--ogp-ft-text); }

.ogp-ft-h {
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.9rem;
    color: var(--ogp-ft-text);
}

/* Row 1: one column per Hauptbereich with its sub-themes. */
.ogp-ft-themes {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--ogp-ft-line);
}
.ogp-ft-more a { color: var(--ogp-ft-text) !important; font-weight: 500; }

/* Row 2: brand + service + legal + contact. */
.ogp-ft-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1.5rem 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--ogp-ft-line);
}
.ogp-ft-logo {
    font-family: var(--wp--preset--font-family--heading, inherit);
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1;
}
.ogp-ft-brand p {
    color: var(--ogp-ft-muted);
    max-width: 34ch;
    margin: 0.75rem 0 1.25rem;
}
.ogp-ft-cta {
    display: inline-block;
    background: var(--ogp-ft-text);
    color: var(--wp--preset--color--bg-dark, #2c3329) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
}
.ogp-ft-cta:hover { text-decoration: none !important; opacity: 0.88; }
.ogp-ft-address {
    font-style: normal;
    color: var(--ogp-ft-muted);
    line-height: 1.7;
}

/* Bottom bar. */
.ogp-ft-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    padding-top: 1.5rem;
    font-size: 0.78rem;
    color: var(--ogp-ft-muted);
}
.ogp-ft-bottom p { margin: 0; }
.ogp-ft-affiliate { max-width: 70ch; }

@media (max-width: 1000px) {
    .ogp-ft-themes { grid-template-columns: repeat(3, 1fr); }
    .ogp-ft-main { grid-template-columns: 1fr 1fr; }
    .ogp-ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .ogp-ft { padding-top: 2.5rem; }
    .ogp-ft-themes { grid-template-columns: 1fr 1fr; }
}
