/* ============================================
   B2B-Datenbank - New Footer Styles
   ============================================ */

.new-footer {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #212529;
    border-top: 1px solid #dee2e6;
    margin-top: 3rem;
}

/* Header Section - Simple Layout */
.footer-header-section {
    position: relative;
    padding-top: 0.5rem;
}

.footer-header-section .row {
    position: relative;
}

.footer-logo-simple {
    height: 132px;
    width: auto;
    position: relative;
    z-index: 2;
}

.footer-headline {
    color: #212529;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.3;
    text-align: center;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

/* Trust Row */
.footer-trust-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-trust-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 550;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.footer-trust-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #212529;
    font-size: 0.7rem;
    overflow: hidden;
}

.footer-trust-divider {
    width: 1px;
    height: 20px;
    background: #e5e7eb;
    display: inline-block;
}

.footer-trust-callout {
    position: relative;
    background: #fafbfc;
    border: 1px solid #eff1f3;
    border-radius: 12px;
    padding: 0.55rem 0.75rem;
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: 400;
    max-width: 460px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.footer-trust-callout-arrow {
    position: absolute;
    top: -6px;
    left: 28px;
    width: 12px;
    height: 12px;
    background: #fafbfc;
    border-left: 1px solid #eff1f3;
    border-top: 1px solid #eff1f3;
    transform: rotate(45deg);
}

.footer-trust-callout-title {
    color: #4b5563;
    font-weight: 500;
}

.footer-trust-flag {
    padding: 0;
    border-radius: 6px;
}

.footer-trust-flag .flag-stripe {
    display: block;
    width: 100%;
    height: 33.33%;
}

.footer-trust-flag .flag-stripe-black {
    background: #000000;
}

.footer-trust-flag .flag-stripe-red {
    background: #dd0000;
}

.footer-trust-flag .flag-stripe-gold {
    background: #ffce00;
}

/* Headings */
.footer-heading {
    color: #212529;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: none;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}

.footer-heading-secondary {
    color: #212529;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: none;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}

/* Contact Section */
.footer-contact p {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.footer-contact p strong {
    font-weight: 600;
}

.footer-phone-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
}

.footer-phone-link:hover {
    color: #3b31c8;
    text-decoration: none;
}

.footer-email-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
}

.footer-email-link:hover {
    color: #3b31c8;
    text-decoration: underline;
}

/* Links */
.footer-links {
    padding-left: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.2s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.footer-link:hover {
    color: #3b31c8;
    text-decoration: none;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    color: #212529;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.75rem;
}

.social-icon:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #3b31c8;
    transform: translateY(-2px);
}

.social-icon i {
    line-height: 1;
    color: inherit;
}

/* Force all social icons to be black */
.new-footer .social-icons .social-icon,
.new-footer .social-icon {
    color: #212529 !important;
}

.new-footer .social-icons .social-icon i,
.new-footer .social-icon i,
.new-footer .social-icons .social-icon i.fab,
.new-footer .social-icon i.fab {
    color: #212529 !important;
}

.new-footer .social-icons .social-icon:hover,
.new-footer .social-icon:hover {
    color: #3b31c8 !important;
}

.new-footer .social-icons .social-icon:hover i,
.new-footer .social-icon:hover i {
    color: #3b31c8 !important;
}

/* Hiring Badge */
.hiring-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.6rem;
    font-weight: 700;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

/* Trust Badges - Horizontal Layout with Modern Forms */
.trust-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0;
}

.trust-badge-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.6rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1;
    position: relative;
}

.trust-badge-wrapper:hover {
    transform: translateY(-2px) scale(1.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.trust-badge-image {
    width: auto;
    height: 45px;
    object-fit: contain;
    display: block;
}

/* Circular wrapper for IITR badges */
.trust-badge-wrapper-circle {
    border-radius: 50%;
    padding: 0.6rem;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px solid #d1d5db;
    cursor: pointer;
    z-index: 1;
    position: relative;
}

.trust-badge-wrapper-circle:hover {
    transform: translateY(-2px) scale(1.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.trust-badge-wrapper-circle .trust-badge-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Payment Methods */
.payment-methods {
    padding-left: 0;
    list-style: none;
}

.payment-methods li {
    margin-bottom: 0.65rem;
}

.payment-icon {
    width: 36px;
    height: auto;
    object-fit: contain;
}

.payment-methods span {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* B2B Notice */
.footer-b2b-notice p {
    color: #6c757d;
    font-size: 0.65rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-weight: 400;
}

/* Copyright */
.footer-copyright {
    background-color: transparent;
}

.footer-copyright p {
    color: #6c757d;
    font-size: 0.65rem;
    margin: 0;
    font-weight: 400;
}

/* Responsive Adjustments */

@media (max-width: 991px) {
    .footer-headline {
        font-size: 1.15rem;
        text-align: center;
        position: static;
        transform: none;
        margin-top: 1.5rem;
        pointer-events: auto;
    }
    
    .footer-logo-simple {
        display: block;
        margin: 0 auto;
    }
    
    .footer-header-section .col-md-3 {
        text-align: center;
    }
}

@media (max-width: 767px) {
    .new-footer {
        padding: 2rem 0 !important;
    }
    
    .footer-logo-simple {
        height: 108px;
        display: block;
        margin: 0 auto;
    }
    
    .footer-headline {
        font-size: 0.9rem;
        text-align: center;
        position: static;
        transform: none;
        margin-top: 1rem;
        pointer-events: auto;
    }
    
    /* Abstand zwischen Sections verringern */
    .footer-main-section {
        margin-bottom: 2rem !important;
    }
    
    /* Alle Texte kleiner für Mobile */
    .footer-heading,
    .footer-heading-secondary {
        font-size: 0.85rem !important;
        margin-top: 0 !important;
    }
    
    .footer-contact p {
        font-size: 0.8rem !important;
    }
    
    .footer-phone-link,
    .footer-email-link {
        font-size: 0.8rem !important;
    }
    
    .footer-link {
        font-size: 0.8rem !important;
    }
    
    .payment-methods span {
        font-size: 0.8rem !important;
    }
    
    .footer-b2b-notice p {
        font-size: 0.7rem !important;
    }
    
    .footer-copyright p {
        font-size: 0.7rem !important;
    }
    
    .trust-badges-container {
        gap: 0.4rem;
    }
    
    .trust-badge-wrapper {
        padding: 0.3rem 0.5rem;
    }
    
    .trust-badge-image {
        height: 38px;
    }
    
    .trust-badge-wrapper-circle {
        width: 55px;
        height: 55px;
        padding: 0.5rem;
    }

    .footer-trust-top {
        gap: 0.75rem;
    }

    .footer-trust-divider {
        display: none;
    }

    .footer-trust-item {
        font-size: 0.72rem;
    }

    .footer-trust-callout {
        font-size: 0.68rem;
        max-width: 100%;
    }
}


@media (max-width: 576px) {
    /* Noch weniger Abstand zwischen Sections auf kleinen Handys */
    .footer-main-section {
        margin-bottom: 1.5rem !important;
    }
    
    .footer-heading,
    .footer-heading-secondary {
        font-size: 0.8rem !important;
        margin-top: 1rem !important;
    }
    
    /* Erste Heading in jeder Column hat keinen top-margin */
    .col-lg-3:first-child .footer-heading,
    .col-lg-3:first-child .footer-heading-secondary,
    .col-md-6:first-child .footer-heading,
    .col-md-6:first-child .footer-heading-secondary {
        margin-top: 0 !important;
    }
    
    .footer-contact p {
        font-size: 0.75rem !important;
    }
    
    .footer-phone-link,
    .footer-email-link {
        font-size: 0.75rem !important;
    }
    
    .footer-link {
        font-size: 0.75rem !important;
    }
    
    .payment-methods span {
        font-size: 0.75rem !important;
    }
    
    .footer-b2b-notice p {
        font-size: 0.65rem !important;
    }
    
    .footer-copyright p {
        font-size: 0.65rem !important;
    }
    
    .social-icon {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .payment-icon {
        width: 35px;
    }
}


/* Modal Styling - CI Identity */
.livechat-modal {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.livechat-modal-header {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border: none;
    padding: 1.5rem 2rem;
}

.livechat-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.livechat-icon-wrapper i {
    color: #ffffff;
}

.btn-livechat-close {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    border: none;
    padding: 0.75rem 2.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-livechat-close:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Border Utilities - explizit um Dashboard-Overrides zu ueberschreiben */
.new-footer .border-bottom {
    border-bottom: 1px solid #dee2e6 !important;
}

.new-footer .border-top {
    border-top: 1px solid #dee2e6 !important;
}

/* Ensure consistent spacing */
.new-footer .row {
    margin-left: -12px;
    margin-right: -12px;
}

.new-footer .row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
}

/* Print styles */
@media print {
    .new-footer {
        display: none;
    }
}

/* ============================================
   Dashboard / Bootstrap-4 Kompatibilitaet
   Der Footer wurde fuer Bootstrap 5 gebaut.
   Diese Regeln stellen BS5-Utility-Klassen
   innerhalb von .new-footer bereit, damit der
   Footer auch im Dashboard (BS4) korrekt
   dargestellt wird.
   ============================================ */

/* --- Fehlende Bootstrap 5 Utility-Klassen --- */

/* BS5: .gap-2 (Social Icons Abstand) */
.new-footer .gap-2 {
    gap: 0.5rem !important;
}

/* BS5: .me-2 (margin-end, Payment Icons) */
.new-footer .me-2 {
    margin-right: 0.5rem !important;
}

/* BS5: .text-start */
.new-footer .text-start {
    text-align: left !important;
}

/* BS5: .fw-bold */
.new-footer + .modal .fw-bold,
.new-footer .fw-bold {
    font-weight: 700 !important;
}

/* --- Footer-interne Overrides --- */

/* Reset dashboard heading color overrides within footer */
.new-footer h1, .new-footer h2, .new-footer h3,
.new-footer h4, .new-footer h5, .new-footer h6 {
    color: #212529 !important;
}

.new-footer .footer-heading {
    font-weight: 600 !important;
}

.new-footer .footer-heading-secondary {
    font-weight: 600 !important;
}

.new-footer .footer-headline {
    font-weight: 400 !important;
}

/* Reset dashboard text color overrides within footer */
.new-footer .text-muted {
    color: #6c757d !important;
}

.new-footer .text-secondary {
    color: #6c757d !important;
}

/* Ensure footer links are unstyled by dashboard CSS */
.new-footer a {
    text-decoration: none;
}

/* Ensure modal next to footer renders correctly */
.new-footer + .modal .modal-content {
    background-color: #ffffff !important;
    color: #212529 !important;
}
