.site-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    flex-shrink: 0;
    min-height: 48px;
    position: relative;
}

.footer-left, .footer-right {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-socials-horizontal {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    filter: grayscale(1);
    transition: filter 0.2s, transform 0.1s;
}

.social-icon:hover {
    filter: grayscale(0);
    transform: scale(1.1);
}

.social-icon.youtube {
    background-image: url('../Img/Icons/Icon_Youtube.png');
}

.social-icon.twitch {
    background-image: url('../Img/Icons/Icon_Twitch.png');
}

.social-icon.discord {
    background-image: url('../Img/Icons/Icon_Discord.png');
}

.social-icon.mail {
    background-image: url('../Img/Icons/Icon_Mail.png');
}

footer {
    font-size: var(--font-size-small) !important;
}

.footer-links-vertical {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.imprint-privacy-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.privacy-links {
    display: flex;
    gap: 5px;
    align-items: center;
}

.separator {
    color: #888;
}

.footer-links-vertical a {
    color: #888;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.footer-links-vertical a:hover {
    color: #fff;
}

.footer-right {
    justify-content: flex-end;
}

.footer-text {
    color: #888;
    text-align: center;
    text-transform: uppercase;
    flex: 2;
}

.ui-icon-button {
    width: 32px;
    height: 32px;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ui-icon-button.toggle-show {
    background-image: url('../Img/UI_Button_Show_Normal.png');
}

.ui-icon-button.toggle-show:hover {
    background-image: url('../Img/UI_Button_Show_Hovered.png');
}

.ui-icon-button.toggle-show:active {
    background-image: url('../Img/UI_Button_Show_Pressed.png');
}

.ui-icon-button.toggle-hide {
    background-image: url('../Img/UI_Button_Hide_Normal.png');
}

.ui-icon-button.toggle-hide:hover {
    background-image: url('../Img/UI_Button_Hide_Hovered.png');
}

.ui-icon-button.toggle-hide:active {
    background-image: url('../Img/UI_Button_Hide_Pressed.png');
}

.font-selector-box {
    position: relative;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid #444;
}

.font-dropdown {
    position: relative;
    display: inline-block;
    min-width: 150px;
}

.font-dropdown-selected {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #444;
    padding: 4px 8px;
    cursor: pointer;
    font-size: calc(10px + (var(--font-offset) * 0.5));
    color: #ccc;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.font-dropdown-selected:hover {
    border-color: #888;
    color: #fff;
}

.font-dropdown-selected::after {
    content: '▲';
    font-size: calc(8px + (var(--font-offset) * 0.4));
    margin-left: 8px;
    transition: transform 0.2s;
}

.font-dropdown.active .font-dropdown-selected::after {
    transform: rotate(180deg);
}

.font-dropdown-options {
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    background: #111;
    border: 1px solid #444;
    display: none;
    flex-direction: column;
    z-index: 1000;
    margin-bottom: 2px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
}

.font-dropdown.active .font-dropdown-options {
    display: flex;
}

.font-dropdown-option {
    padding: 6px 8px;
    cursor: pointer;
    font-size: calc(10px + (var(--font-offset) * 0.5));
    color: #888;
    text-transform: uppercase;
}

.font-dropdown-option:hover {
    background: #222;
    color: #fff;
}

.font-dropdown-option.active {
    color: #fff;
    background: #1a1a1a;
}

@media (max-width: 768px) {
    .site-footer {
        flex-direction: column;
        height: auto;
        padding: 4px 4px 32px 4px;
        gap: 8px;
        min-height: 0;
    }

    #content-toggle-btn {
        display: none;
    }

    .footer-left {
        width: 100%;
        flex-direction: column;
        justify-content: center;
        flex: none;
        gap: 8px;
    }

    .footer-right {
        display: none;
    }

    .footer-links-vertical {
        align-items: center;
        text-align: center;
    }

    .font-selector-box {
        display: none;
    }

    .imprint-privacy-row {
        justify-content: center;
    }

    .privacy-links {
        justify-content: center;
    }

    .footer-socials-horizontal {
        justify-content: center;
        width: 100%;
        margin-bottom: 4px;
    }

    .footer-text {
        order: 3;
        width: 100%;
        flex: none;
    }
}
