/* Footer CSS - Optimierte Version */

/* ===== FOOTER GRUNDLAYOUT ===== */
.footer {
    background-color: white !important;
    padding: 15px 0 8px 0 !important; /* Reduziert von 20px/10px */
    margin-top: 30px !important; /* Reduziert von 40px */
    border-top: 1px solid #e9ecef;
}

.footer .container {
    max-width: 1200px;
}

/* Footer Spalten - noch kompaktere Abstände */
.footer .row {
    margin-bottom: 0 !important;
}

.footer .col-lg-6,
.footer .col-lg-3 {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ===== FOOTER LOGOS - LINKSBÜNDIG ===== */

/* Alles im Logo-Bereich zurücksetzen und neu aufbauen */
.footer #c194 * {
    float: none !important;
    clear: none !important;
}

/* Gallery Row als Flex Container */
.footer #c194 .gallery-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 8px !important;
}

/* Gallery Items - ALLE width-Regeln überschreiben */
.footer #c194 .gallery-item,
.footer #c194 .gallery-item-size-3,
.footer #c194 .gallery-item-size-1,
.footer #c194 .gallery-item-size-2,
.footer #c194 .gallery-item-size-4,
.footer #c194 .gallery-item-size-5,
.footer #c194 .gallery-item-size-6 {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* Sicherstellen dass figure und picture auch funktionieren */
.footer #c194 figure,
.footer #c194 figure.image,
.footer #c194 picture {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

/* Logos auf 50px Höhe */
.footer #c194 img {
    height: 50px !important;
    width: auto !important;
    max-height: 50px !important;
    display: block !important;
    margin: 0 !important;
}

/* ===== ÜBERSCHRIFTEN ===== */
.footer h2,
.footer .element-header,
.footer .element-header span,
.footer h2 span {
    color: #333 !important;
    font-size: 14px !important;
    margin-bottom: 6px !important; /* Reduziert von 8px */
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

/* ===== MENÜ-LINKS ===== */
.footer ul li a,
.footer .footer ul li a:link,
.footer .footer ul li a:visited {
    color: #555 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    line-height: 1.3 !important; /* Reduziert */
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.footer ul li a:hover {
    color: #ab0033 !important;
    text-decoration: none !important;
}

/* ===== SOCIAL MEDIA ICONS ===== */
.footer .social-media-footer {
    margin: 6px 0 !important; /* Reduziert */
}

.footer .social-media-icons {
    display: flex !important;
    gap: 12px !important; /* Reduziert */
    justify-content: flex-start !important;
    align-items: center !important;
}

.footer .social-media-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    background-color: transparent !important;
    border-radius: 0 !important;
}

.footer .social-media-icon .bootstrappackageicon {
    font-size: 24px !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
}

.footer .social-media-icon:hover {
    background-color: #ab0033 !important;
    border-radius: 2px !important;
    transform: translateY(-2px) !important;
}

.footer .social-media-icon:hover .bootstrappackageicon {
    color: white !important;
}

/* ===== NEWSLETTER FORM - BUTTON NEBEN INPUT ===== */

/* Newsletter Container */
.footer .form-container {
    margin: 5px 0 !important;
}

/* Form Element flexbox für nebeneinander */
.footer .form-element-email {
    position: relative !important;
    margin-bottom: 0 !important;
}

/* Newsletter Form als Flexbox */
.footer form {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding-right: 20px;
}

/* Input Feld normal */
.footer .form-element-email .form-control {
    background-color: white !important;
    border: 2px solid #e9ecef !important;
    border-radius: 4px !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    width: 100% !important;
    height: 44px !important;
}

.footer .form-element-email .form-control:focus {
    border-color: #ab0033 !important;
    box-shadow: 0 0 0 0.2rem rgba(171, 0, 51, 0.25) !important;
    outline: none !important;
}

/* Form Element wrapper für volle Breite */
.footer .form-element-email {
    flex: 1 !important;
    min-width: 0 !important;
}

/* Form Actions neben dem Input */
.footer .form-actions {
    position: static !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* Button perfekt quadratisch mit SVG Pfeil */
.footer .btn-primary {
    background-color: #ab0033 !important;
    border: none !important;
    border-radius: 6px !important; /* Leicht abgerundet */
    padding: 0 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important; /* Sicherstellen dass er quadratisch bleibt */
    font-size: 0 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.footer .btn-primary:hover {
    background-color: #8a0029 !important;
    transform: scale(1.05) !important;
}

/* SVG Pfeil */
.footer .btn-primary::after {
    content: '' !important;
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' aria-hidden='true' role='img' class='iconify iconify--bx' width='100%25' height='100%25' preserveAspectRatio='xMidYMid meet' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='m11.293 17.293l1.414 1.414L19.414 12l-6.707-6.707l-1.414 1.414L15.586 11H6v2h9.586z'%3E%3C/path%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Button Text verstecken */
.footer .btn-primary * {
    display: none !important;
}

/* Fehlermeldung unter dem Input */
.footer .invalid-feedback,
.footer .valid-feedback {
    position: static !important;
    display: block !important;
    width: 100% !important;
    margin-top: 4px !important;
    font-size: 12px !important;
    color: #dc3545 !important;
}

/* Form-Text (Hinweis) unter dem Input */
.footer .form-text {
    font-size: 12px !important;
    color: #999 !important;
    margin-top: 4px !important;
    display: block !important;
}

/* Button Text verstecken */
.footer .btn-primary * {
    display: none !important;
}

/* Form-Text (Hinweis) unter dem Input */
.footer .form-text {
    font-size: 12px !important;
    color: #999 !important;
    margin-top: 4px !important;
    display: block !important;
    position: relative !important; /* Nicht absolut */
}

/* ===== ABSTÄNDE STARK REDUZIERT ===== */

/* Alle Frame-Container kompakter */
.footer .frame-inner {
    margin-bottom: 2px !important;
    padding-bottom: 0 !important;
}

.footer .frame-container {
    margin-bottom: 2px !important;
    padding-bottom: 0 !important;
}

.footer .frame {
    margin-bottom: 2px !important;
}

/* Copyright Section - minimaler Abstand */
.footer .copyright-section {
    margin-top: 8px !important; /* Stark reduziert */
    padding-top: 8px !important;
    border-top: 1px solid #e9ecef !important;
}

.footer .copyright-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

/* ===== TEXT UND ABSTÄNDE ===== */

.footer p {
    color: #666 !important;
    line-height: 1.4 !important; /* Reduziert */
    margin-bottom: 6px !important; /* Reduziert */
    font-size: 14px !important;
}

.footer ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer ul li {
    margin-bottom: 2px !important; /* Reduziert von 3px */
}

/* ===== LEGAL LINKS ===== */

.footer .legal-links {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}

.footer .legal-link {
    color: #666 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: color 0.3s ease !important;
}

.footer .legal-link:hover {
    color: #ab0033 !important;
    text-decoration: none !important;
}

.footer .legal-links span {
    color: #ccc !important;
    font-size: 14px !important;
}

.footer .copyright-text p {
    margin: 0 !important;
    color: #999 !important;
    font-size: 14px !important;
}

/* ===== NEWSLETTER LABEL VERSTECKEN ===== */
.footer .form-element-email .form-label {
    display: none !important;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .footer {
        padding: 12px 0 6px 0 !important;
        margin-top: 20px !important;
    }
    
    /* Logos auf Mobile kleiner */
    #c194 img,
    .footer img[src*="Brand_logos"] {
        height: 40px !important;
    }
    
    /* Social Media Icons auf Mobile */
    .footer .social-media-icon {
        width: 36px !important;
        height: 36px !important;
    }
    
    .footer .social-media-icon .bootstrappackageicon {
        font-size: 20px !important;
    }
    
    .footer .copyright-row {
        flex-direction: column !important;
        text-align: center !important;
        gap: 5px !important;
    }
    
    /* Newsletter Button auf Mobile */
    .footer .btn-primary {
        width: 40px !important;
        height: 40px !important;
    }
    
    .footer .form-element-email .form-control {
        height: 40px !important;
        padding: 8px 16px !important;
    }
}

/* ===== HOVER-EFFEKTE ===== */

.footer .gallery-item img:hover,
.footer figure.image img:hover {
    opacity: 0.8 !important;
    transition: opacity 0.3s ease !important;
}

/* Frame-Option Ruler After entfernen/minimieren */
.footer .frame-option-ruler-after::after {
    display: none !important;
}