/* Footer: enqueue in functions.php */

/* GP */
.site-footer,
.site-info,
.site-content-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

html body footer#ff-footer {
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    border-top: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-style: normal !important;
    color: #000000 !important;
    float: none !important;
    clear: both !important;
}

html body footer#ff-footer * {
    box-sizing: border-box !important;
    font-style: normal !important;
}

/* Obere Linie: exakt wie Content-Grid / Beiträge / .ff-footer-center (kein Partner-Bleed) */
html body footer#ff-footer .ff-footer-rule-wrap {
    max-width: min(var(--ff-layout-max), calc(100% - 2 * var(--ff-layout-gutter))) !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

html body footer#ff-footer .ff-footer-section-rule {
    border: none !important;
    border-top: 1px solid var(--ff-partner-rule-color, #cbcbcb) !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    position: static !important;
    left: auto !important;
    transform: none !important;
    height: 0 !important;
}

html body footer#ff-footer .ff-footer-center {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 24px !important;
    max-width: min(var(--ff-layout-max), calc(100% - 2 * var(--ff-layout-gutter))) !important;
    margin: 0 auto !important;
    padding: clamp(28px, 4.5vw, 50px) 16px clamp(32px, 5vw, 56px) !important;
}

/* Logo */
html body footer#ff-footer .ff-footer-logo-link {
    display: inline-block !important;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
}

html body footer#ff-footer .ff-footer-logo {
    display: block !important;
    margin: 0 auto !important;
    width: 180px !important;
    height: auto !important;
}

/* Links-Wrapper: 2 Zeilen, 10px Abstand */
html body footer#ff-footer .ff-footer-links-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Einzelne Link-Zeile */
html body footer#ff-footer .ff-footer-links-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

html body footer#ff-footer .ff-footer-links-row li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body footer#ff-footer .ff-footer-links-row a,
html body footer#ff-footer .ff-footer-links-row a:link,
html body footer#ff-footer .ff-footer-links-row a:visited,
html body footer#ff-footer .ff-footer-links-row a:active,
html body footer#ff-footer .ff-footer-links-row a:focus {
    color: #000000 !important;
    text-decoration: none !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-style: normal !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 22px !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

html body footer#ff-footer .ff-footer-links-row a:hover {
    color: #B43526 !important;
}

/* Social Icons */
html body footer#ff-footer .ff-footer-social {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

html body footer#ff-footer .ff-footer-social a,
html body footer#ff-footer .ff-footer-social a:link,
html body footer#ff-footer .ff-footer-social a:visited,
html body footer#ff-footer .ff-footer-social a:active,
html body footer#ff-footer .ff-footer-social a:focus {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    line-height: 0 !important;
    font-size: 0 !important;
    color: #000000 !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

html body footer#ff-footer .ff-footer-social a:hover {
    color: #B43526 !important;
}

html body footer#ff-footer .ff-footer-social svg {
    display: block !important;
    flex-shrink: 0 !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    fill: currentColor !important;
}

/* Facebook: Kreis wirkt optisch kleiner als Instagram/X */
html body footer#ff-footer .ff-footer-social a.ff-footer-social-fb {
    overflow: visible !important;
}

html body footer#ff-footer .ff-footer-social a.ff-footer-social-fb svg {
    transform: scale(1.1) !important;
    transform-origin: center center !important;
}

/* Scroll-to-Top: rechts bündig mit rechter Kante der Footer-Trennlinie (= Content-Spalte) */
html body footer#ff-footer button.ff-scroll-top,
html body footer#ff-footer button#ff-scroll-top {
    position: absolute !important;
    top: 10px !important;
    right: clamp(
        12px,
        calc(50vw - min(var(--ff-layout-max), calc(100vw - 2 * var(--ff-layout-gutter))) / 2 + 14px),
        50vw
    ) !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #1d1b20 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding-left: 14px !important;
    z-index: 10 !important;
    font-size: 0 !important;
    line-height: 1 !important;
}

html body footer#ff-footer button.ff-scroll-top:hover,
html body footer#ff-footer button#ff-scroll-top:hover {
    color: #b43526 !important;
}

html body footer#ff-footer button.ff-scroll-top svg,
html body footer#ff-footer button#ff-scroll-top svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    fill: currentColor !important;
    stroke: none !important;
}

html body footer#ff-footer button.ff-scroll-top svg path,
html body footer#ff-footer button#ff-scroll-top svg path {
    fill: currentColor !important;
}

@media (max-width: 600px) {
    html body footer#ff-footer button.ff-scroll-top,
    html body footer#ff-footer button#ff-scroll-top {
        top: 8px !important;
    }
    html body footer#ff-footer .ff-footer-links-row {
        gap: 14px !important;
    }
}
