/* ========================================
   EWANTO FOOTER PLUGIN - ALLE FIXES
   ======================================== */

/* ===== TRUSTAMI BEWERTUNGSLEISTE - WEIßER HINTERGRUND ===== */
.ewanto-trustami-bar {
    background: #ffffff;
    padding: 30px 0;
    border-top: 3px solid #D9400B;
    border-bottom: 2px solid #f0f0f0;
}

.trustami-container {
    display: flex;
    align-items: stretch;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: flex-start;
}

/* ===== BADGE - IDEALO-STYLE (HELLGRAU) ===== */
.trustami-badge-box {
    background: #F5F5F5;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    padding: 20px 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    min-height: 145px;
    max-height: 145px;
}

.trustami-badge-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #D0D0D0;
    text-decoration: none;
}

.badge-inner {
    display: flex;
    align-items: center;
    gap: 25px;
}

.badge-logo-wrapper {
    flex-shrink: 0;
    background: transparent;
}

.badge-logo {
    width: 85px;
    height: 85px;
    border-radius: 10px;
    display: block;
    background: transparent;
    object-fit: contain;
}

.badge-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* ===== TRUSTAMI LABEL + STERNE ===== */
.badge-label {
    color: #333333;
    font-size: 18px;
    font-weight: 600;
    text-transform: none;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2px;
}

/* 🔧 FIX: Trust ami OHNE Lücke */
.trustami-text {
    display: inline;
    font-size: 0;
}

.trust-blue {
    color: #00A8E1;
    font-size: 18px;
}

.trust-green {
    color: #7FBF3F;
    font-size: 18px;
}

/* ===== STERNE ===== */
.badge-stars {
    display: inline-flex;
    gap: 2px;
    align-items: center;
}

.badge-stars .star {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.2s ease;
    display: inline-block;
}

.star-filled {
    color: #FFB500;
}

.star-half {
    color: #FFB500;
    opacity: 0.6;
}

.star-empty {
    color: #D0D0D0;
}

.badge-stars .star:hover {
    transform: scale(1.15);
}

/* ===== RATING-ZAHLEN ===== */
.badge-rating {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 2px;
}

.rating-value {
    color: #FF6900;
}

.rating-separator {
    color: #666666;
    font-weight: normal;
    margin: 0 5px;
}

.rating-max {
    color: #666666;
    font-size: 22px;
}

/* BEWERTUNGEN TEXT */
.badge-reviews {
    line-height: 1.4;
    margin-top: 3px;
}

.badge-reviews .reviews-text-small {
    color: #666666;
    font-size: 12px;
    font-weight: 400;
}

.badge-reviews .reviews-number {
    color: #FF6900;
    font-weight: 700;
    font-size: 18px;
}

/* ===== REVIEW SLIDER - NAHTLOSE ENDLOS-SCHLEIFE ===== */
.trustami-reviews-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 145px;
    display: flex;
    align-items: center;
    padding: 20px 0;
    max-width: calc(290px * 3 + 20px * 2);
}

.reviews-track {
    display: flex;
    gap: 20px;
    animation: infiniteSlide 60s linear infinite;
    will-change: transform;
}
/* 🆕 PERFEKTE ENDLOS-ANIMATION - Gleichmäßige Geschwindigkeit */
@keyframes infiniteSlide {
  0%, 8%    { transform: translateX(0); }
  12%, 20%  { transform: translateX(-310px); }
  24%, 32%  { transform: translateX(-620px); }
  36%, 44%  { transform: translateX(-930px); }
  48%, 56%  { transform: translateX(-1240px); }
  60%, 68%  { transform: translateX(-1550px); }
  72%, 80%  { transform: translateX(-1860px); }
  84%, 92%  { transform: translateX(-2170px); }
  96%, 100% { transform: translateX(-2480px); } /* bis zu den Duplikaten */
}

.reviews-track:hover {
    animation-play-state: paused;
}

/* ===== REVIEW-KARTEN - WEIß MIT RAND ===== */
.review-item {
    flex-shrink: 0;
    width: 290px;
    min-height: 105px;
    max-width: 290px;
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    border-left: 3px solid #D9400B;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-item:hover {
    background: #fafafa;
    box-shadow: 0 4px 12px rgba(217, 64, 11, 0.15);
    transform: translateY(-2px);
    border-color: #D9400B;
}

.review-text {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.review-platform {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.review-stars {
    color: #FFD700;
    font-size: 14px;
    letter-spacing: 1px;
    margin-right: 15px;
}

.platform-name {
    color: #D9400B;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ========================================
   BILDER RECHTS IM FOOTER POSITIONIEREN
   ======================================== */

/* Footer Container bekommt relative Position */
.footer-main,
.footer-navigation,
.footer-columns {
    position: relative;
}

/* Shopware Footer - Platz rechts schaffen */
.footer-columns .container {
    padding-right: 240px;
}

/* Badges aus dem Flow nehmen und RECHTS im Footer positionieren */
.ewanto-badges-section {
    position: absolute;
    right: 185px;
    top: 260px;
    width: 180px;
    background: transparent;
    padding: 0;
    margin: 0;
    border: none;
    z-index: 10;
}

.badges-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.badge-item {
    width: 100%;
    display: flex;
    justify-content: center;
}

.badge-item-single {
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.badge-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.badge-image {
    max-width: 140px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.badge-image:hover {
    transform: scale(1.05);
}

/* IDEALO BADGE */
.idealo-badge {
    max-width: 150px;
}

/* ISO BADGES - NEBENEINANDER */
.iso-badges {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.iso-badge {
    max-width: 70px;
}

/* ===== RESPONSIVE - GROSSE BILDSCHIRME ===== */
/* Ab 1700px: Bilder bei perfekter Position */
@media (min-width: 1700px) {
    .ewanto-badges-section {
        right: 185px;
    }
}

/* 1600-1700px: Bilder rutschen nach RECHTS */
@media (max-width: 1699px) and (min-width: 1600px) {
    .ewanto-badges-section {
        right: 150px;
    }
}

/* 1500-1600px: Bilder rutschen weiter nach RECHTS */
@media (max-width: 1599px) and (min-width: 1500px) {
    .ewanto-badges-section {
        right: 100px;
    }
}

/* 1200-1500px: Bilder gehen UNTER Kategorien, rechts ausgerichtet */
@media (max-width: 1499px) and (min-width: 1200px) {
    .ewanto-badges-section {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        margin-top: 30px;
        padding: 20px 0;
        background: transparent;
        border-top: 1px solid #e0e0e0;
    }
    
    .badges-wrapper {
        justify-content: flex-end;
        flex-direction: row;
        gap: 8px;
        padding-right: 20px;
    }
    
    .footer-columns .container {
        padding-right: 20px;
    }
    
    .badge-image {
        max-width: 120px;
    }
    
    .idealo-badge {
        max-width: 140px;
    }
    
    .iso-badges {
        gap: 5px;
    }
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 1199px) and (min-width: 992px) {
    .ewanto-badges-section {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        margin-top: 30px;
        padding: 20px 0;
        background: transparent;
        border-top: 1px solid #e0e0e0;
    }
    
    .badges-wrapper {
        justify-content: center;
        flex-direction: row;
        gap: 8px;
    }
    
    .footer-columns .container {
        padding-right: 20px;
    }
    
    .badge-image {
        max-width: 110px;
    }
    
    .idealo-badge {
        max-width: 130px;
    }
    
    .iso-badges {
        gap: 5px;
    }
}

/* ===== RESPONSIVE - MOBILE & TABLET ===== */
@media (max-width: 991px) {
    /* Badges NACH UNTEN verschieben auf Mobile */
    .ewanto-badges-section {
        position: relative;
        width: 100%;
        right: auto;
        top: auto;
        margin-top: 40px;
        padding: 40px 0;
        background: #f5f5f5;
        border-top: 1px solid #ddd;
    }
    
    .badges-wrapper {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .footer-columns .container {
        padding-right: 20px;
    }
    
    .iso-badges {
        flex-direction: row;
        gap: 5px;
    }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 770px) {
    .trustami-container {
        flex-direction: column;
        gap: 25px;
    }

    .trustami-badge-box {
        width: 100%;
        max-width: 400px;
        min-height: auto;
        max-height: none;
    }

    /* 🆕 NUR 1 REVIEW ANZEIGEN AUF MOBILE - KEINE HALBEN! */
    .trustami-reviews-slider {
        width: 100%;
        min-height: 100px;
        max-width: 290px; /* Genau 1 Review breit */
    }

    .review-item {
        width: 290px;
        max-width: 290px;
        min-height: 90px;
    }
    
    /* Badges VERTIKAL unter 770px */
    .badges-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .badge-item {
        justify-content: center;
    }
    
    /* Bilder werden kleiner */
    .badge-image {
        max-width: 110px;
    }
    
    .idealo-badge {
        max-width: 120px;
    }
    
    .iso-badge {
        max-width: 60px;
    }
}

@media (max-width: 480px) {
    .badge-inner {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }

    .badge-logo {
        width: 60px;
        height: 60px;
    }

    .badge-rating {
        font-size: 24px;
    }

    .rating-max {
        font-size: 18px;
    }

    .badge-label {
        font-size: 15px;
    }
    
    .trust-blue,
    .trust-green {
        font-size: 15px;
    }

    .badge-stars .star {
        font-size: 16px;
    }

    .badge-reviews .reviews-text-small {
        font-size: 11px;
    }

    .badge-reviews .reviews-number {
        font-size: 16px;
    }

    .trustami-badge-box {
        padding: 15px 20px;
    }

    .review-stars {
        font-size: 13px;
    }
    
    /* Bilder NOCH kleiner unter 480px */
    .badge-image {
        max-width: 90px;
    }
    
    .idealo-badge {
        max-width: 100px;
    }
    
    .iso-badge {
        max-width: 50px;
    }
}

@media (max-width: 380px) {
    .badge-inner {
        gap: 12px;
    }

    .badge-logo {
        width: 50px;
        height: 50px;
    }

    .badge-rating {
        font-size: 22px;
    }

    .rating-max {
        font-size: 16px;
    }

    .badge-label {
        font-size: 14px;
    }
    
    .trust-blue,
    .trust-green {
        font-size: 14px;
    }

    .badge-stars .star {
        font-size: 15px;
    }

    .badge-reviews .reviews-text-small {
        font-size: 10px;
    }

    .badge-reviews .reviews-number {
        font-size: 15px;
    }

    .trustami-badge-box {
        padding: 12px 15px;
    }

    .review-stars {
        font-size: 12px;
    }
    
    /* Bilder sehr klein auf winzigen Handys */
    .badge-image {
        max-width: 70px;
    }
    
    .idealo-badge {
        max-width: 80px;
    }
    
    .iso-badge {
        max-width: 40px;
    }
}
