/* SMG Footer Styles */

/* Vollständiger Footer - Neutraler Grau-Gradient (statt dunkles Rot) */
.smg-footer-widget {
    background: linear-gradient(135deg,
        var(--footer-bg-start, var(--smg-gray-900, #111827)) 0%,
        var(--footer-bg-end, var(--smg-gray-800, #1f2937)) 100%) !important;
    color: white !important;
    padding: 3rem 0 2rem 0 !important;
    margin-top: auto !important;
    position: relative !important;
    z-index: 10 !important;
}

/* ✅ FOOTER LOGO - Weißes Logo für dunklen Hintergrund */
.footer-brand .footer-logo {
    margin-bottom: 1.5rem !important;
}

.footer-brand .footer-logo .footer-logo-image,
.footer-brand .footer-logo img.footer-logo-image {
    height: 50px !important;
    width: auto !important;
    max-width: 200px !important;
    filter: brightness(0) invert(1) !important; /* Macht Logo weiß */
    opacity: 0.95 !important;
    transition: opacity 0.3s ease !important;
}

.footer-brand .footer-logo .footer-logo-image:hover,
.footer-brand .footer-logo img.footer-logo-image:hover {
    opacity: 1 !important;
}

/* SVG Logos - Alternative Methode */
.footer-brand .footer-logo .footer-logo-svg,
.footer-brand .footer-logo img.footer-logo-svg {
    filter: brightness(0) invert(1) !important;
}

/* Fallback: Text-Logo wenn kein Bild vorhanden */
.footer-logo-text h3 {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: var(--smg-white, #ffffff) !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 1.5rem 0 !important;
}

.footer-container {
    max-width: var(--widget-max-width, 1400px) !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

.footer-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 2rem !important;
    margin-bottom: 2rem !important;
}

/* Footer Columns */
.footer-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

.footer-column-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: var(--footer-accent, var(--smg-400, #f87171)) !important;
    margin-bottom: 1rem !important;
    border-bottom: 2px solid var(--footer-accent, var(--smg-400, #f87171)) !important;
    padding-bottom: 0.5rem !important;
}

/* Brand Column */
.footer-brand .footer-logo-text h3 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: white !important;
    margin-bottom: 1rem !important;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.7 !important;
    margin-bottom: 1.5rem !important;
    font-size: 0.95rem !important;
    max-width: 400px !important;
}

/* Social Media - Analog zu Header Design */
.footer-social {
    display: flex !important;
    gap: 0.75rem !important;
}

.footer-social-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important; /* Kein Kreis - wie im Header */
    color: rgba(255, 255, 255, 0.7) !important; /* Weiß mit Transparenz */
    background: transparent !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.footer-social-link svg {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 2 !important;
    transition: transform 0.2s ease !important;
}

/* Default Hover */
.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px) !important;
}

.footer-social-link:hover svg {
    transform: scale(1.1) !important;
}

/* Platform-Specific Hover Colors - Original Brand Colors */
.footer-social-facebook:hover {
    background: rgba(24, 119, 242, 0.15) !important;
    color: #1877f2 !important;
}

.footer-social-instagram:hover {
    background: rgba(225, 48, 108, 0.15) !important;
    color: #e1306c !important;
}

.footer-social-twitter:hover {
    background: rgba(29, 161, 242, 0.15) !important;
    color: #1da1f2 !important;
}

.footer-social-youtube:hover {
    background: rgba(255, 0, 0, 0.15) !important;
    color: #ff0000 !important;
}

.footer-social-linkedin:hover {
    background: rgba(0, 119, 181, 0.15) !important;
    color: #0077b5 !important;
}

.footer-social-tiktok:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

/* Contact Column */
.footer-contact-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    margin-bottom: 1rem !important;
}

.footer-contact-icon {
    width: 24px !important;
    height: 24px !important;
    color: var(--footer-accent, var(--smg-400, #f87171)) !important;
    flex-shrink: 0 !important;
}

.footer-contact-icon svg {
    width: 100% !important;
    height: 100% !important;
}

.footer-contact-content {
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.5 !important;
}

.footer-contact-content a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.footer-contact-content a:hover {
    color: var(--footer-hover, var(--smg-300, #fca5a5)) !important;
}

/* Opening Hours */
.footer-hours-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.footer-hours-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Kompakte Darstellung (neue intelligente Gruppierung) */
.footer-hours-item.footer-hours-compact {
    justify-content: flex-start !important;
    border-bottom: none !important;
}

.footer-hours-item.footer-hours-compact .footer-hours-text {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    font-size: 0.95rem !important;
}

/* Abweichende Öffnungszeiten - Kompakt */
.footer-hours-divider {
    height: 1px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    margin: 0.75rem 0 !important;
}

.footer-hours-different {
    margin-top: 0.5rem !important;
}

.footer-hours-different-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.625rem 0.75rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 6px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.footer-hours-different-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--footer-hover, var(--smg-300, #fca5a5)) !important;
    transform: translateX(2px) !important;
}

.footer-hours-different-icon {
    flex-shrink: 0 !important;
    opacity: 0.7 !important;
}

.footer-hours-different-link:hover .footer-hours-different-icon {
    opacity: 1 !important;
}

.footer-hours-different-link span {
    flex: 1 !important;
}

.footer-hours-different-arrow {
    flex-shrink: 0 !important;
    opacity: 0.5 !important;
    transition: transform 0.2s ease !important;
}

.footer-hours-different-link:hover .footer-hours-different-arrow {
    opacity: 1 !important;
    transform: translateX(3px) !important;
}

/* Alte Darstellung (Fallback) */
.footer-hours-day {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500 !important;
}

.footer-hours-time {
    color: var(--footer-accent, var(--smg-400, #f87171)) !important;
    font-weight: 600 !important;
}

/* Links Column */
.footer-links-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.footer-link-item {
    margin: 0 !important;
}

/* 2025 MODERNE FOOTER LINKS */
.footer-link {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: block !important;
    padding: clamp(0.5rem, 2vw, 0.75rem) clamp(0.75rem, 3vw, 1rem) !important;
    border-radius: clamp(8px, 2vw, 12px) !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(10px) !important;
}

.footer-link::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 0 !important;
    height: 100% !important;
    background: linear-gradient(135deg,
        rgba(var(--footer-accent-rgb, var(--smg-400-rgb, 248, 113, 113)), 0.15) 0%,
        rgba(var(--footer-accent-rgb, var(--smg-400-rgb, 248, 113, 113)), 0.08) 100%) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: -1 !important;
}

.footer-link::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent) !important;
    transition: left 0.6s ease !important;
    z-index: 1 !important;
}

.footer-link:hover {
    color: var(--footer-hover, var(--smg-400, #fd6c70)) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateX(6px) scale(1.02) !important;
    box-shadow: 0 4px 12px rgba(var(--footer-accent-rgb, var(--smg-500-rgb, 227, 30, 36)), 0.3) !important;
}

.footer-link:hover::before {
    width: 100% !important;
}

.footer-link:hover::after {
    left: 100% !important;
}

/* Copyright Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 2rem !important;
    text-align: center !important;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.5) !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
}

/* ✅ MODERNER STICKY FOOTER - Neutraler Grau-Gradient mit frischem Rot-Akzent */
.sticky-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: linear-gradient(135deg,
        rgba(31, 41, 55, 0.98) 0%,
        rgba(17, 24, 39, 0.98) 100%) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    color: white !important;
    padding: 1rem 0 !important;
    z-index: 999999 !important;
    transform: translateY(0) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-top: 1px solid rgba(var(--smg-500-rgb, 227, 30, 36), 0.4) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3) !important;
}

.sticky-footer.hidden {
    transform: translateY(100%) !important;
}

/* Überschreibe alle möglichen CSS-Konflikte */
.sticky-footer {
    top: auto !important;
    position: fixed !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    float: none !important;
    clear: none !important;
    overflow: visible !important;
}

/* Verhindere, dass andere CSS-Regeln das Layout stören */
body .sticky-footer,
html .sticky-footer,
* .sticky-footer {
    position: fixed !important;
    bottom: 0 !important;
    z-index: 999999 !important;
}

/* ✅ INTELLIGENTER CONTENT-CONTAINER */
.sticky-footer-content {
    max-width: var(--widget-max-width, 1400px) !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important; /* Reduziertes Padding */
    display: flex !important; /* Flexbox statt Grid für bessere Kontrolle */
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1rem !important;
    min-height: 50px !important; /* Feste Mindesthöhe */
}

/* ✅ MODERNE FOOTER-ITEMS - KOMPAKT & SMART */
.sticky-footer-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.8rem !important; /* Kleinere Schrift für Kompaktheit */
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.2s ease !important;
    flex-shrink: 1 !important; /* Erlaubt Schrumpfen */
    min-width: 0 !important; /* Wichtig für text-overflow */
}

.sticky-footer-item:hover {
    color: rgba(255, 255, 255, 1) !important;
}

.sticky-footer-icon {
    width: 20px !important;
    height: 20px !important;
    color: var(--footer-accent, var(--smg-500, #e31e24)) !important;
    flex-shrink: 0 !important;
    opacity: 0.9 !important;
}

.sticky-footer-icon svg {
    width: 100% !important;
    height: 100% !important;
}

.sticky-footer-text {
    color: rgba(255, 255, 255, 0.9) !important; /* Helleres Weiß */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important; /* Kompaktere Zeilenhöhe */
}

.sticky-footer-link {
    color: inherit !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease !important;
}

.sticky-footer-link:hover {
    opacity: 0.8 !important;
}

/* ✅ INTELLIGENTE MOBILE OPTIMIERUNG */
@media (max-width: 768px) {
    /* Sticky Footer wird noch kompakter */
    .sticky-footer {
        padding: 0.5rem 0 !important; /* Noch weniger Padding */
    }

    .sticky-footer-content {
        flex-direction: row !important; /* Horizontal Layout beibehalten */
        justify-content: space-around !important; /* Gleichmäßige Verteilung */
        padding: 0 1rem !important;
        gap: 0.5rem !important;
        min-height: 56px !important; /* Größere Touch-freundliche Höhe */
    }

    .sticky-footer-item {
        flex-direction: column !important; /* Icon über Text */
        text-align: center !important;
        gap: 0.25rem !important;
        font-size: 0.7rem !important; /* Noch kleinere Schrift */
        flex: 1 !important; /* Gleichmäßige Breite */
        min-width: 0 !important;
    }

    .sticky-footer-icon {
        width: 18px !important; /* Größere Icons auch auf Mobile */
        height: 18px !important;
    }

    .sticky-footer-text {
        font-size: 0.65rem !important; /* Sehr kleine Schrift */
        max-width: 80px !important; /* Begrenzte Breite */
    }

    /* Footer Grid für Hauptfooter */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .footer-hours-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.25rem !important;
    }
}

/* ✅ EXTRA KLEINE BILDSCHIRME */
@media (max-width: 480px) {
    .sticky-footer {
        padding: 0.4rem 0 !important; /* Minimal Padding */
    }

    .sticky-footer-content {
        padding: 0 0.75rem !important;
        min-height: 50px !important; /* Größere Mindesthöhe */
    }

    .sticky-footer-item {
        font-size: 0.65rem !important;
    }

    .sticky-footer-text {
        font-size: 0.6rem !important;
        max-width: 70px !important;
    }

    .sticky-footer-icon {
        width: 16px !important; /* Auch auf sehr kleinen Bildschirmen lesbar */
        height: 16px !important;
    }
}

/* ✅ RESPONSIVE TEXT-VARIANTEN - DESKTOP VS MOBILE */
.desktop-text {
    display: inline !important;
}

.mobile-text {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-text {
        display: none !important;
    }

    .mobile-text {
        display: inline !important;
    }
}

/* ✅ OPTIMIERTE STICKY FOOTER ACTIONS */
.sticky-footer-link {
    color: inherit !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
}

.sticky-footer-link:hover {
    opacity: 0.8 !important;
    transform: translateY(-1px) !important;
}

/* ✅ CALL-TO-ACTION STYLING - Frisches Rot für Icons */
.sticky-footer-item:first-child .sticky-footer-icon {
    color: var(--footer-accent, var(--smg-500, #e31e24)) !important;
}

.sticky-footer-item:nth-child(2) .sticky-footer-icon {
    color: var(--footer-hover, var(--smg-500, #f63d43)) !important;
}

.sticky-footer-item:nth-child(3) .sticky-footer-icon {
    color: var(--footer-accent, var(--smg-500, #e31e24)) !important;
}

/* ✅ RESPONSIVE TEXT-VARIANTEN */
.desktop-text {
    display: inline !important;
}

.mobile-text {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-text {
        display: none !important;
    }

    .mobile-text {
        display: inline !important;
    }
}

/* Intelligente Öffnungszeiten-Status - Frische Farben */
.opening-status {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.opening-status.closed {
    color: var(--footer-accent, var(--smg-500, #e31e24));
}

.opening-status.closing-soon {
    color: var(--footer-hover, var(--smg-500, #f63d43));
    animation: pulse 2s infinite;
}

.footer-hours-current .footer-hours-time {
    font-weight: 600;
}

.footer-hours-current .footer-hours-time.closed {
    color: var(--footer-accent, var(--smg-500, #e31e24));
}

.footer-hours-current .footer-hours-time.closing-soon {
    color: var(--footer-hover, var(--smg-500, #f63d43));
}

/* ✅ OPTIMIERTE BODY PADDING - ANGEPASST AN NEUE FOOTER-HÖHE */
body:not(.sticky-footer-hidden) {
    padding-bottom: 70px !important; /* Angepasst an größere Icons */
}

/* Wenn Sticky Footer versteckt ist, kein Padding */
body.sticky-footer-hidden {
    padding-bottom: 0 !important;
}

/* ✅ MOBILE BODY PADDING - ANGEPASST */
@media (max-width: 768px) {
    body:not(.sticky-footer-hidden) {
        padding-bottom: 60px !important; /* Angepasst an größere Mobile-Icons */
    }
}

@media (max-width: 480px) {
    body:not(.sticky-footer-hidden) {
        padding-bottom: 55px !important; /* Angepasst an sehr kleine Bildschirme */
    }
}
