/*
 * Netzmal Designsystem: Fußzeile
 * ------------------------------
 * Vollständiges Layout der globalen Fußzeile einschließlich Projekt-Drop-up.
 * Farben, Schatten und Radien stammen ausschließlich aus colors.css.
 */

/* Grundfläche und obere Wellenkante */
.site-footer {
    position: relative;
    width: 100%;
    margin-top: calc(clamp(75px, 9vw, 125px) + 50px);
    background: var(--nm-color-footer);
    color: var(--nm-color-footer-text);
}

.site-footer-wave {
    position: absolute;
    right: 0;
    bottom: calc(100% - 1px);
    left: 0;
    height: clamp(58px, 6vw, 95px);
    background: var(--nm-color-footer);
    -webkit-mask: url('/images-netzmal/effects/hero-fray.svg') center bottom / 100% 100% no-repeat;
    mask: url('/images-netzmal/effects/hero-fray.svg') center bottom / 100% 100% no-repeat;
    pointer-events: none;
}

.site-footer-mobile {
    display: none;
}

/* Inhaltsraster */
.site-footer-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--nm-space-xl);
    align-items: flex-start;
    max-width: 1480px;
    margin: 0 auto;
    padding: clamp(52px, 6vw, 82px) clamp(24px, 5vw, 72px) clamp(38px, 4vw, 58px);
}

.site-footer-intro {
    flex: 0 0 370px;
    max-width: 370px;
}

.site-footer-right {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(2, max-content);
    gap: clamp(32px, 3vw, 48px);
    justify-content: end;
    width: auto;
    margin-left: auto;
}

.site-footer-services {
    display: grid;
    gap: var(--nm-space-xl);
}

.site-footer-address {
    justify-self: end;
    min-width: 240px;
}

.site-footer-address address {
    display: contents;
}

.site-footer-systemhaus,
.site-footer-digitalization {
    gap: 8px;
}

.site-footer-services a,
.site-footer-address a,
.site-footer-column h2 {
    white-space: nowrap;
}

/* Marke und direkter Kontakt */
.site-footer-logo {
    display: inline-block;
    width: min(220px, 68%);
    margin-bottom: 6px;
}

.site-footer-logo img {
    display: block;
    width: 100%;
}

.site-footer-statement {
    margin: 0 0 20px;
    color: var(--nm-color-footer-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.site-footer-contact-link {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    color: var(--nm-color-footer-text);
    font-weight: 700;
    text-decoration: none;
}

.site-footer-contact-link i {
    color: var(--nm-color-primary);
    transition: transform 0.25s ease;
}

.site-footer-contact-link:hover,
.site-footer-contact-link:focus-visible {
    color: var(--nm-color-footer-text);
}

.site-footer-contact-link:hover i,
.site-footer-contact-link:focus-visible i {
    transform: translateX(5px);
}

/* Linkspalten und Adresse */
.site-footer-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    font-style: normal;
}

.site-footer-column h2 {
    margin: 0 0 6px;
    color: var(--nm-color-footer-text);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.site-footer-column h3 {
    margin: 30px 0 13px;
    color: var(--nm-color-footer-text);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-footer-column a,
.site-footer-column p {
    margin: 0;
    color: var(--nm-color-footer-muted);
    text-decoration: none;
}

.site-footer-column a {
    line-height: 1.35;
}

.site-footer-column p {
    line-height: 1.5;
}

.site-footer-column a:hover,
.site-footer-column a:focus-visible {
    color: var(--nm-color-primary);
}

.site-footer-address p {
    margin-top: 5px;
}

.site-footer-address address > a {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.site-footer-address address > a i,
.site-footer-address address > a .svg-inline--fa {
    width: 1em;
    color: var(--nm-color-primary);
}

/* Untere Metazeile */
.site-footer-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    max-width: 1480px;
    margin: 0 auto;
    padding: 20px clamp(24px, 5vw, 72px) 25px;
    color: var(--nm-color-footer-subtle);
    font-size: 0.9rem;
}

.site-footer-meta p {
    margin: 0;
}

.site-footer-meta nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    align-items: flex-start;
}

/* Projektliste öffnet sich oberhalb der Metazeile */
.site-footer-projects {
    position: relative;
}

.site-footer-projects summary {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--nm-color-footer-muted);
    cursor: pointer;
    list-style: none;
}

.site-footer-projects summary::-webkit-details-marker {
    display: none;
}

.site-footer-projects summary i {
    font-size: 0.67rem;
    transition: transform 180ms ease;
}

.site-footer-projects[open] summary,
.site-footer-projects summary:hover,
.site-footer-projects summary:focus-visible {
    color: var(--nm-color-primary);
}

.site-footer-projects[open] summary i {
    transform: rotate(180deg);
}

.site-footer-projects-panel {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: calc(100% + 18px);
    display: grid;
    width: 290px;
    padding: 10px;
    border: 1px solid var(--nm-color-footer-line);
    border-radius: var(--nm-radius);
    background: var(--nm-color-footer-surface);
    box-shadow: var(--nm-shadow-soft);
}

.site-footer-projects-panel::after {
    position: absolute;
    top: 100%;
    right: 24px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-top-color: var(--nm-color-footer-surface);
    content: '';
}

.site-footer-projects-panel .site-footer-project {
    display: grid;
    justify-items: start;
    padding: 11px 13px;
    border-radius: var(--nm-radius);
}

.site-footer-projects-panel a {
    color: var(--nm-color-footer-muted);
    text-decoration: none;
}

.site-footer-projects-panel strong {
    color: var(--nm-color-footer-text);
}

.site-footer-projects-panel span {
    margin-top: 3px;
    color: var(--nm-color-footer-subtle);
    font-size: 0.76rem;
}

.site-footer-meta a,
.site-footer-meta button {
    appearance: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--nm-color-footer-muted);
    font: inherit;
    text-decoration: none;
}

.site-footer-meta button {
    cursor: pointer;
}

.site-footer-meta a:hover,
.site-footer-meta a:focus-visible,
.site-footer-meta button:hover,
.site-footer-meta button:focus-visible {
    color: var(--nm-color-primary);
}

@media (min-width: 1200px) {
    .site-footer-right,
    .site-footer-meta nav {
        width: min(100%, 590px);
    }

    .site-footer-right {
        grid-template-columns: minmax(0, 1fr) 240px;
    }

    .site-footer-meta nav {
        justify-content: flex-start;
    }
}

/* Tablet */
@media (max-width: 1199px) {
    .site-footer-inner {
        flex-direction: column;
    }

    .site-footer-intro {
        flex-basis: auto;
    }

    .site-footer-right {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
        justify-content: stretch;
        width: 100%;
        margin-left: 0;
    }

    .site-footer-address {
        justify-self: start;
        min-width: 0;
    }

}

/* Mobil */
@media (max-width: 1199px) {
    .site-footer {
        margin-top: 140px;
    }

    .site-footer-desktop {
        display: none;
    }

    .site-footer-mobile {
        display: block;
        padding: var(--nm-space-xl) var(--nm-space-lg) var(--nm-space-sm);
    }

    .site-footer-mobile-intro {
        margin-bottom: var(--nm-space-lg);
    }

    .site-footer-mobile .site-footer-logo {
        width: 180px;
    }

    .site-footer-mobile-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--nm-space-sm);
        margin-bottom: var(--nm-space-lg);
    }

    .site-footer-mobile-actions a {
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: center;
        min-height: 52px;
        border-radius: var(--nm-radius);
        background: var(--nm-color-footer-surface);
        color: var(--nm-color-footer-text);
        font-weight: 700;
        text-decoration: none;
    }

    .site-footer-mobile-actions i,
    .site-footer-mobile-actions .svg-inline--fa {
        color: var(--nm-color-primary);
    }

    .site-footer-mobile-navigation {
        border: 0;
    }

    .site-footer-mobile-navigation summary {
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: flex-start;
        min-height: 58px;
        padding-left: var(--nm-space-xs);
        color: var(--nm-color-footer-text);
        font-weight: 700;
        cursor: pointer;
        list-style: none;
    }

    .site-footer-mobile-navigation summary::-webkit-details-marker {
        display: none;
    }

    .site-footer-mobile-navigation summary i,
    .site-footer-mobile-navigation summary .svg-inline--fa {
        order: -1;
        color: var(--nm-color-footer-subtle);
        font-size: 0.72rem;
        transition: transform 180ms ease;
    }

    .site-footer-mobile-navigation details[open] summary i,
    .site-footer-mobile-navigation details[open] summary .svg-inline--fa {
        color: var(--nm-color-primary);
        transform: rotate(180deg);
    }

    .site-footer-mobile-navigation details > div {
        display: grid;
        gap: 4px;
        padding: 0 0 var(--nm-space-md);
    }

    .site-footer-mobile-navigation a,
    .site-footer-mobile-navigation .site-footer-project {
        padding: 5px 0 5px calc(var(--nm-space-xs) + 22px);
    }

    .site-footer-mobile-navigation a {
        display: block;
        color: var(--nm-color-footer-muted);
        line-height: 1.35;
        text-decoration: none;
    }

    .site-footer-mobile-navigation .site-footer-project a {
        display: inline-block;
        padding: 0;
    }

    .site-footer-mobile-navigation .site-footer-project span {
        display: block;
        margin-top: 2px;
        color: var(--nm-color-footer-subtle);
        font-size: 0.76rem;
    }

    .site-footer-mobile-legal {
        display: flex;
        flex-wrap: wrap;
        gap: 8px var(--nm-space-md);
        justify-content: center;
        padding: var(--nm-space-xl) 0 var(--nm-space-md);
        text-align: center;
    }

    .site-footer-mobile-legal a,
    .site-footer-mobile-legal button {
        appearance: none;
        margin: 0;
        padding: 0;
        border: 0;
        background: none;
        color: var(--nm-color-footer-muted);
        font: inherit;
        text-decoration: none;
    }

    .site-footer-mobile-legal button {
        cursor: pointer;
    }

    .site-footer-mobile-address {
        display: grid;
        gap: 2px;
        color: var(--nm-color-footer-subtle);
        font-size: 0.82rem;
        font-style: normal;
        line-height: 1.5;
    }

    .site-footer-mobile-meta {
        display: flex;
        gap: var(--nm-space-lg);
        align-items: start;
        justify-content: space-between;
        padding-top: var(--nm-space-sm);
    }

    .site-footer-mobile-copyright {
        margin: 0;
        color: var(--nm-color-footer-subtle);
        font-size: 0.82rem;
        text-align: right;
    }

    .site-footer-mobile-copyright .site-footer-copyright-separator {
        display: none;
    }

    .site-footer-mobile-copyright .site-footer-copyright-notice {
        display: block;
    }
}

@media (max-width: 600px) {
    .site-footer-mobile {
        padding-right: calc(var(--nm-space-md) + var(--nm-space-md));
        padding-left: calc(var(--nm-space-md) + var(--nm-space-md));
    }

    .site-footer-mobile-meta {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .site-footer-mobile-address,
    .site-footer-mobile-copyright {
        text-align: center;
    }
}

@media (max-width: 430px) {
    .site-footer-mobile-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer-mobile-actions a:nth-child(3) {
        display: none;
    }
}
