/**
 * Global footer — one type scale, one spacing rhythm, a defined form.
 * Loaded after the Vite bundle so Local picks up source CSS without a rebuild.
 */

.site-footer .ft-unified {
    padding: var(--wp--preset--spacing--48, 48px) 0 var(--wp--preset--spacing--32, 32px);
}

.site-footer .ft-unified__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.8fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: var(--wp--preset--spacing--32, 32px) var(--wp--preset--spacing--24, 24px);
    align-items: start;
    padding-bottom: var(--wp--preset--spacing--32, 32px);
    border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--text-main) 10%, transparent);
}

.site-footer .ft-unified__col {
    min-width: 0;
    box-sizing: border-box;
}

.site-footer .ft-col__title {
    margin: 0 0 var(--wp--preset--spacing--16, 16px);
    padding-bottom: var(--wp--preset--spacing--8, 8px);
    border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--text-main) 10%, transparent);
    color: var(--wp--preset--color--text-muted);
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.site-footer .ft-nav--agency a,
.site-footer .ft-nav--services a,
.site-footer .ft-nav--resources a,
.site-footer .ft-legal__list a {
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
    color: inherit;
    font-family: var(--wp--preset--font-family--body);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: color 0.2s ease, background-size 0.25s ease;
}

.site-footer .ft-nav--agency .menu,
.site-footer .ft-nav--services .menu,
.site-footer .ft-nav--resources .menu {
    display: grid;
    gap: var(--wp--preset--spacing--8, 8px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer .ft-nav--agency .menu > li,
.site-footer .ft-nav--services .menu > li,
.site-footer .ft-nav--resources .menu > li {
    margin: 0;
}

.site-footer .ft-nav--agency .menu > li > a,
.site-footer .ft-nav--services .menu > li > a,
.site-footer .ft-nav--resources .menu > li > a {
    display: inline-block;
    margin: 0;
    color: var(--wp--preset--color--text-main);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 600;
    line-height: 1.35;
}

.site-footer .ft-nav--services .menu {
    gap: var(--wp--preset--spacing--16, 16px);
}

.site-footer .ft-nav--services .menu > li + li {
    margin-top: 0;
}

.site-footer .ft-nav--services .sub-menu {
    display: grid;
    gap: 2px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
}

.site-footer .ft-nav--agency .sub-menu > li > a,
.site-footer .ft-nav--services .sub-menu > li > a,
.site-footer .ft-nav--resources .sub-menu > li > a,
.site-footer .ft-legal__list a {
    color: var(--wp--preset--color--text-muted);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 400;
    line-height: 1.4;
}

@media (hover: hover) and (pointer: fine) {
    .site-footer .ft-nav--agency a:hover,
    .site-footer .ft-nav--services a:hover,
    .site-footer .ft-nav--resources a:hover,
    .site-footer .ft-legal__list a:hover {
        color: var(--wp--preset--color--text-main);
        background-size: 100% 1px;
    }
}

.site-footer .ft-nav--agency a:focus-visible,
.site-footer .ft-nav--services a:focus-visible,
.site-footer .ft-nav--resources a:focus-visible,
.site-footer .ft-legal__list a:focus-visible {
    color: var(--wp--preset--color--text-main);
    background-size: 100% 1px;
    outline: 2px solid var(--wp--preset--color--text-main);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .site-footer .ft-nav--agency a,
    .site-footer .ft-nav--services a,
    .site-footer .ft-nav--resources a,
    .site-footer .ft-legal__list a {
        transition: none;
    }
}

/* ── Newsletter form: same header, a readable field ───────── */
.site-footer .ft-newsletter {
    width: 100%;
    min-width: 0;
}

.site-footer .ft-newsletter .t1-form-container,
.site-footer .ft-newsletter .t1-form-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.site-footer .ft-newsletter .t1-form-header {
    margin: 0 0 var(--wp--preset--spacing--16, 16px);
}

.site-footer .ft-newsletter .t1-form-title {
    display: none;
}

.site-footer .ft-newsletter .t1-form-subtitle {
    margin: 0;
    color: var(--wp--preset--color--text-muted);
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--sm);
    line-height: 1.45;
}

.site-footer .ft-newsletter .t1-form-group {
    margin-bottom: var(--wp--preset--spacing--12, 12px);
}

.site-footer .ft-newsletter .t1-form input[type="email"],
.site-footer .ft-newsletter .t1-form input[type="text"] {
    min-height: 48px;
    padding: 12px 14px;
    background: var(--wp--preset--color--card);
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--text-main) 22%, transparent);
    color: var(--wp--preset--color--text-main);
}

.site-footer .ft-newsletter .t1-form input[type="email"]:focus,
.site-footer .ft-newsletter .t1-form input[type="text"]:focus {
    border-color: var(--wp--preset--color--text-main);
    box-shadow: 0 0 0 1px var(--wp--preset--color--text-main);
}

.site-footer .ft-newsletter .t1-form-submit {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    margin-top: var(--wp--preset--spacing--12, 12px);
    box-sizing: border-box;
}

.site-footer .ft-newsletter .t1-form-security {
    margin-top: var(--wp--preset--spacing--8, 8px);
    text-align: left;
    color: var(--wp--preset--color--text-muted);
}

/* ── Ressourcen: compact index, same type as nav ──────────── */
.site-footer .ft-unified__col--resources .ft-nav--resources {
    margin-bottom: var(--wp--preset--spacing--20, 20px);
}

.site-footer .ft-col__subtitle {
    margin: 0 0 var(--wp--preset--spacing--8, 8px);
    padding-bottom: var(--wp--preset--spacing--8, 8px);
    border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--text-main) 8%, transparent);
    color: var(--wp--preset--color--text-muted);
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.site-footer .ft-index-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer .ft-index-list__item,
.site-footer .ft-index-list__link {
    background-image: none;
    transition: none;
}

.site-footer .ft-index-list__item {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: var(--wp--preset--spacing--8, 8px);
    align-items: baseline;
    padding: 7px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--text-main) 7%, transparent);
}

.site-footer .ft-index-list__item:last-child {
    border-bottom: 0;
}

.site-footer .ft-index-list__num {
    color: var(--wp--preset--color--text-muted);
    font-size: var(--wp--preset--font-size--xs);
    font-variant-numeric: tabular-nums;
}

.site-footer .ft-index-list__link,
.site-footer .ft-index-list__link:hover {
    color: var(--wp--preset--color--text-main);
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 400;
    line-height: 1.35;
    text-decoration: none;
}

.site-footer .ft-index-list__link:focus-visible {
    outline: 2px solid var(--wp--preset--color--text-main);
    outline-offset: 3px;
}

.site-footer .ft-index-all {
    display: inline-flex;
    align-items: center;
    gap: var(--wp--preset--spacing--8, 8px);
    margin-top: var(--wp--preset--spacing--12, 12px);
    color: var(--wp--preset--color--text-main);
    font-family: var(--wp--preset--font-family--body);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 600;
    letter-spacing: 0;
    text-decoration: none;
}

.site-footer .ft-index-all:hover,
.site-footer .ft-index-all:focus-visible {
    color: var(--wp--preset--color--text-main);
}

.site-footer .ft-index-all:focus-visible {
    outline: 2px solid var(--wp--preset--color--text-main);
    outline-offset: 3px;
}

.site-footer .ft-index-all .arrow-icon {
    width: 14px;
    height: 14px;
    color: currentColor;
}

@media (max-width: 1100px) {
    .site-footer .ft-unified__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: var(--wp--preset--spacing--32, 32px);
    }
}

@media (max-width: 700px) {
    .site-footer .ft-unified__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--wp--preset--spacing--32, 32px);
    }
}
