/* Footer (layout/_footer.php). Rahmen/Abstand von .footer und footer kommen aus style.css */

.ksk-footer {
    padding: 44px 0 34px;
    text-align: left;
}

.ksk-footer-grid {
    display: grid;
    /* Logo links, Linkspalten rechts zusammen statt über die ganze Breite verteilt */
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    column-gap: clamp(40px, 6vw, 90px);
    row-gap: 32px;
}

.ksk-footer .ksk-footer-brand {
    display: flex;
    align-self: start;
    align-items: center;
    gap: 18px;
    color: inherit;
}

.ksk-footer-brand img {
    flex: 0 0 auto;
    width: 84px;
    height: auto;
}

.ksk-footer-brand strong {
    display: block;
    margin-bottom: 4px;
    color: var(--template-color, #faffa9);
    font-size: 16px;
    line-height: 1.35;
}

.ksk-footer-tagline {
    display: block;
    color: #9a9a9a;
    font-size: 13px;
    line-height: 1.5;
}

.ksk-footer .ksk-footer-brand:hover strong,
.ksk-footer .ksk-footer-brand:focus strong {
    color: #fff;
}

.ksk-footer-title {
    margin: 0 0 14px;
    color: var(--template-color, #faffa9);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ksk-footer-title::after {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    margin-top: 8px;
    background-color: #505231;
}

.ksk-footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ksk-footer-links li {
    margin: 0 0 8px;
    line-height: 1.5;
}

.ksk-footer a {
    color: #cfcfcf;
    font-size: 13px;
    text-decoration: none;
}

.ksk-footer a:hover,
.ksk-footer a:focus {
    color: var(--template-color, #faffa9);
    text-decoration: none;
}

.ksk-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ksk-footer .ksk-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background-color: #252525;
    font-size: 16px;
    transition: background-color .2s, color .2s;
}

.ksk-footer .ksk-footer-social a:hover,
.ksk-footer .ksk-footer-social a:focus {
    background-color: var(--template-color, #faffa9);
    color: #131313;
}

/* ---------- Copyright-Leiste ---------- */
.ksk-footer-bottom .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.ksk-footer-bottom p.copp {
    margin: 0;
    padding: 0;
}

.ksk-footer-bottom .ksk-footer-top {
    color: #9a9a9a;
    font-size: 12px;
    text-transform: uppercase;
}

.ksk-footer-bottom .ksk-footer-top:hover,
.ksk-footer-bottom .ksk-footer-top:focus {
    color: var(--template-color, #faffa9);
    text-decoration: none;
}

/* ---------- Sprachauswahl ---------- */
.ksk-footer-lang {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 12px;
    color: #9a9a9a;
    font-size: 12px;
    text-transform: uppercase;
}

.ksk-footer-lang a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9a9a9a;
    border-bottom: 1px solid transparent;
}

.ksk-footer-lang a:hover,
.ksk-footer-lang a:focus,
.ksk-footer-lang a.is-active {
    color: var(--template-color, #faffa9);
    border-bottom-color: var(--template-color, #faffa9);
    text-decoration: none;
}

/* ---------- Tablet / Handy ---------- */
@media (max-width: 991px) {
    .ksk-footer-grid {
        grid-template-columns: repeat(3, auto);
        justify-content: start;
    }

    .ksk-footer .ksk-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575px) {
    .ksk-footer-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 20px;
    }

    .ksk-footer-community {
        grid-column: 1 / -1;
    }

    .ksk-footer-brand img {
        width: 64px;
    }

    .ksk-footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
}
