/**
 * CockpitOS CM-Immo Theme - Footer Widget Styles
 * 
 * CM-Immo Style Design based on https://kitpro.site/coobite/template-kit/contact-us/
 * Logo oben + Social Icons + Multi-Column Menu + Copyright
 * 
 * @package CockpitOS_CM_Immo_Theme
 * @version 1.4.6
 */

/* ============================================
   Footer Container
   ============================================ */

.cockpit-footer {
    position: relative;
    width: 100%;
}

/* ============================================
   Main Footer
   ============================================ */

.cockpit-footer__main {
    background-color: var(--color-primary, #da2032);
    color: #ffffff;
    padding: 60px 0 40px;
}

/* ============================================
   Contact Info Bar
   ============================================ */

.cockpit-footer__contact-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.cockpit-footer__contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cockpit-footer__contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 18px;
    color: var(--color-secondary, #F25363);
}

.cockpit-footer__contact-text {
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cockpit-footer__contact-text:hover {
    color: var(--color-secondary, #F25363);
}

/* ============================================
   Content Grid
   ============================================ */

.cockpit-footer__content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

/* ============================================
   Branding Section
   ============================================ */

.cockpit-footer__branding {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cockpit-footer__logo img {
    max-width: 200px;
    height: auto;
    display: block;
}

.cockpit-footer__description {
    font-size: 14px;
    line-height: 1.7;
    color: #ffffff;
    opacity: 0.9;
}

.cockpit-footer__description p {
    margin: 0;
}

/* Social Icons */
.cockpit-footer__social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cockpit-footer__social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--color-secondary, #F25363);
    color: var(--color-primary, #da2032);
    font-size: 16px;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cockpit-footer__social-icon:hover {
    background-color: #ffffff;
    color: var(--color-primary, #da2032);
    transform: translateY(-3px);
}

.cockpit-footer__social-icon i,
.cockpit-footer__social-icon svg {
    width: 1em;
    height: 1em;
}

/* ============================================
   Menu Columns
   ============================================ */

.cockpit-footer__menu-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.cockpit-footer__menu-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cockpit-footer__column-title {
    font-family: var(--font-family-heading, 'Baloo 2', cursive);
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid rgba(242, 83, 99, 0.3);
    letter-spacing: 0.02em;
}

/* Menu */
.cockpit-footer__menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cockpit-footer__menu li {
    margin: 0;
}

.cockpit-footer__menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.2s ease;
    display: inline-block;
}

.cockpit-footer__menu a:hover {
    color: var(--color-secondary, #F25363);
    padding-left: 5px;
}

/* ============================================
   Bottom Bar
   ============================================ */

.cockpit-footer__bottom-bar {
    background-color: var(--color-accent-beige, #fef3c7);
    color: var(--color-gray-800, #1f2937);
    padding: 25px 0;
    border-top: 1px solid rgba(218, 32, 50, 0.1);
}

.cockpit-footer__bottom-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cockpit-footer__credits,
.cockpit-footer__copyright {
    font-size: 14px;
    color: var(--cm-immo-primary, var(--color-primary, #da2032));
    font-weight: 500;
}

.cockpit-footer__credits a,
.cockpit-footer__copyright a {
    color: var(--cm-immo-primary, var(--color-primary, #da2032));
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cockpit-footer__credits a:hover,
.cockpit-footer__copyright a:hover {
    color: var(--cm-immo-primary-hover, var(--color-primary-light, #e04451));
}

/* ============================================
   Back to Top Button
   ============================================ */

.cockpit-footer__back-to-top {
    position: fixed;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary, #da2032);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(218, 32, 50, 0.3);
}

.cockpit-footer__back-to-top.position-left {
    left: 30px;
}

.cockpit-footer__back-to-top.position-right {
    right: 30px;
}

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

.cockpit-footer__back-to-top:hover {
    background-color: var(--color-primary-light, #e04451);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(218, 32, 50, 0.4);
}

.cockpit-footer__back-to-top:active {
    transform: translateY(-2px);
}

.cockpit-footer__back-to-top i,
.cockpit-footer__back-to-top svg {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* ============================================
   Responsive - Tablet
   ============================================ */

@media (max-width: 1024px) {
    .cockpit-footer__main {
        padding: 50px 0 35px;
    }
    
    .cockpit-footer__content-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .cockpit-footer__branding {
        align-items: center;
        text-align: center;
    }
    
    .cockpit-footer__logo img {
        margin: 0 auto;
    }
    
    .cockpit-footer__menu-columns {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .cockpit-footer__contact-bar {
        gap: 40px;
        margin-bottom: 40px;
    }
}

/* ============================================
   Responsive - Mobile
   ============================================ */

@media (max-width: 768px) {
    .cockpit-footer__main {
        padding: 40px 20px 30px;
    }
    
    .cockpit-footer__contact-bar {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 35px;
    }
    
    .cockpit-footer__contact-item {
        width: 100%;
        justify-content: center;
    }
    
    .cockpit-footer__content-grid {
        gap: 40px;
    }
    
    .cockpit-footer__menu-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cockpit-footer__menu-column {
        text-align: center;
    }
    
    .cockpit-footer__column-title {
        font-size: 16px;
    }
    
    .cockpit-footer__bottom-bar {
        padding: 15px 20px;
    }
    
    .cockpit-footer__bottom-bar-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .cockpit-footer__back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
    }
    
    .cockpit-footer__back-to-top.position-left {
        left: 20px;
    }
    
    .cockpit-footer__back-to-top.position-right {
        right: 20px;
    }
    
    .cockpit-footer__back-to-top i,
    .cockpit-footer__back-to-top svg {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .cockpit-footer__main {
        padding: 30px 15px 25px;
    }
    
    .cockpit-footer__logo img {
        max-width: 150px;
    }
    
    .cockpit-footer__description {
        font-size: 13px;
    }
    
    .cockpit-footer__contact-icon {
        font-size: 16px;
        width: 20px;
        height: 20px;
    }
    
    .cockpit-footer__contact-text {
        font-size: 14px;
    }
    
    .cockpit-footer__social-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .cockpit-footer__back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
    }
    
    .cockpit-footer__back-to-top.position-left {
        left: 15px;
    }
    
    .cockpit-footer__back-to-top.position-right {
        right: 15px;
    }
}

/* ============================================
   Accessibility
   ============================================ */

.cockpit-footer__back-to-top:focus {
    outline: 2px solid var(--color-primary, #da2032);
    outline-offset: 2px;
}

.cockpit-footer__contact-text:focus,
.cockpit-footer__menu a:focus {
    outline: 2px solid var(--color-secondary, #F25363);
    outline-offset: 2px;
}

.cockpit-footer__social-icon:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .cockpit-footer__back-to-top,
    .cockpit-footer__social-icons {
        display: none;
    }
    
    .cockpit-footer__main {
        background-color: #ffffff;
        color: #000000;
    }
    
    .cockpit-footer__bottom-bar {
        background-color: var(--color-gray-100, #f5f5f5);
    }
}
