/* ============================================================================
   FOOTER CSS - höchstmass staff GmbH
   ============================================================================
   
   Styles für:
   - Footer Layout & Grid
   - Footer Links
   - Footer Bottom (Legal)
   - Mobile FAB Buttons
   
   ============================================================================ */

/* ============================================
   FOOTER
============================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 90px 0 44px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 70px;
    margin-bottom: 70px;
}

/* ============================================
   FOOTER BRAND
============================================ */
.footer-brand p {
    margin-top: 24px;
    font-size: 15px;
    line-height: 1.75;
}

.footer-brand .logo img {
    height: 44px;
}

.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: var(--gray-800);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--white);
}

/* ============================================
   FOOTER COLUMNS
============================================ */
.footer h4 {
    color: var(--white);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 28px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

/* ============================================
   FOOTER CONTACT
============================================ */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 15px;
}

.footer-contact-item i {
    color: var(--accent);
    margin-top: 4px;
}

.footer-contact-item a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-item a:hover {
    color: var(--white);
}

/* ============================================
   FOOTER BOTTOM
============================================ */
.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 32px;
}

.footer-legal a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--white);
}

/* ============================================
   EXTENDED FOOTER LOCATIONS (optional)
============================================ */
.footer-locations {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-locations h4 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-locations-subtitle {
    margin-top: 24px;
}

.footer-locations-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px 32px;
}

.footer-location-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-city-link {
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.footer-city-link:hover {
    color: var(--accent);
}

.footer-location-col a:not(.footer-city-link) {
    color: var(--gray-400);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-location-col a:not(.footer-city-link):hover {
    color: var(--accent-light);
}

.footer-location-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.footer-location-links a {
    color: var(--gray-300);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-location-links a:hover {
    color: var(--accent-light);
}

.footer-hub-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-hub-link:hover {
    color: var(--accent-light);
}

/* ============================================
   MOBILE FAB BUTTONS
============================================ */
.mobile-fab-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: none;
    flex-direction: column;
    gap: 14px;
    z-index: 998;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    box-shadow: var(--shadow-xl);
    transition: transform 0.2s;
}

.fab:hover {
    transform: scale(1.12);
    color: var(--white);
}

.fab-phone {
    background: var(--primary);
}

.fab-whatsapp {
    background: #25d366;
}

/* ============================================
   BACK TO TOP BUTTON
============================================ */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    z-index: 997;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    transform: scale(1.08);
}

.back-to-top:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ============================================
   RESPONSIVE FOOTER
============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 40px;
    }

    .footer-locations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 70px 0 36px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .footer-locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .mobile-fab-container {
        display: flex;
    }

    /* Position back-to-top above FAB on mobile */
    .back-to-top {
        bottom: 102px; /* 28px + 60px FAB + 14px gap */
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 60px 0 100px; /* Extra padding for FAB */
    }
}
