#checkmark-banner {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    z-index: 999999999 !important;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin: 0 !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

#checkmark-banner.closed {
    transform: translateY(-100%);
}

.checkmark-banner-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

#et-secondary-menu {
    float: right;
    margin-top: 10px;
}

/* Spezifische Anpassungen für Divi Theme */
body.has-checkmark-banner .et_menu_container {
    padding-top: 0 !important;
}

body.has-checkmark-banner .container.et_menu_container {
    padding-top: 20px !important;
}

/* Mobile Divi Anpassungen */
@media (max-width: 768px) {
    
    body.has-checkmark-banner #main-header {
        margin-top: 45px !important;
    }
    html, body {
        margin-top: 0px !important;
    }

    div#page-container {
        padding-top: 0px !important;
    }
    
    body.has-checkmark-banner .logo_container {
        padding-top: 5px !important;
    }
    
    body.has-checkmark-banner #et-top-navigation {
        margin-top: 5px !important;
    }
    
    /* Zusätzliche Sicherheit für Header-Positionierung */
    body.has-checkmark-banner .et_pb_section:first-child {
        margin-top: 0 !important;
        padding-top: 10px !important;
    }
    
    body.has-checkmark-banner #page-container {
        margin-top: 0 !important;
    }
}

.checkmark-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.checkmark-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    white-space: nowrap;
    transition: opacity 0.5s ease;
}

.checkmark {
    color: #4CAF50;
    font-weight: bold;
    font-size: 16px;
    display: inline-block;
    margin-right: 5px;
}

.checkmark-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    padding: 2px 8px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.checkmark-close:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    #checkmark-banner {
        padding: 8px 10px !important;
        font-size: 13px;
        min-height: 45px !important;
        height: auto !important;
    }
    
    .checkmark-banner-content {
        flex-direction: column;
        gap: 6px;
        padding: 0 5px;
        max-width: 100%;
    }
    
    .checkmark-items {
        gap: 15px;
        position: relative;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .checkmark-item {
        font-size: 13px;
        position: absolute;
        opacity: 0;
        transition: opacity 0.5s ease, transform 0.5s ease;
        transform: translateX(20px);
        width: calc(100% - 10px);
        max-width: 100%;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .checkmark-item.active {
        opacity: 1;
        transform: translateX(0);
    }
    
    .checkmark-item.prev {
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .checkmark-close {
        right: 8px;
        font-size: 18px;
        top: 8px;
        transform: none;
        position: absolute;
    }
    
    /* Slide Indikatoren */
    .slide-indicators {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 2px;
    }
    
    .slide-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.4);
        transition: background-color 0.3s ease;
        cursor: pointer;
    }
    
    .slide-dot.active {
        background-color: rgba(255, 255, 255, 0.9);
    }
}

@media (max-width: 480px) {
    #checkmark-banner {
        padding: 6px 8px !important;
        font-size: 12px;
        min-height: 42px !important;
    }
    
    .checkmark-banner-content {
        padding: 0 2px;
    }
    
    .checkmark-item {
        font-size: 12px;
        width: calc(100% - 5px);
    }
    
    .checkmark {
        font-size: 14px;
    }
    
    .checkmark-close {
        right: 5px;
        top: 5px;
        font-size: 16px;
    }
    
    .slide-indicators {
        margin-top: 1px;
    }
    
    .slide-dot {
        width: 5px;
        height: 5px;
    }
}

/* Animation für den Übergang */
.checkmark-item {
    animation: fadeIn 0.5s ease;
}

/* Desktop: Alle Items sichtbar */
@media (min-width: 769px) {
    .checkmark-item {
        position: relative !important;
        opacity: 1 !important;
        transform: none !important;
        width: auto !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spezielle Anpassungen für WordPress Admin Bar - Aber Banner bleibt immer ganz oben */
body.admin-bar #checkmark-banner {
    top: 0 !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar #checkmark-banner {
        top: 0 !important;
    }
}

/* Verhindere Layout-Sprünge */
body.has-checkmark-banner {
    margin-top: 50px !important;
    padding-top: 0 !important;
}

body.admin-bar.has-checkmark-banner {
    margin-top: 82px !important;
}

@media screen and (max-width: 782px) {
    body.has-checkmark-banner {
        margin-top: 45px !important;
    }
    
    body.admin-bar.has-checkmark-banner {
        margin-top: 91px !important;
    }
}

/* Smooth transitions */
* {
    transition: margin-top 0.3s ease;
}

/* Print Styles */
@media print {
    #checkmark-banner {
        display: none !important;
    }
    
    body.has-checkmark-banner {
        margin-top: 0 !important;
    }
} 
/* Fix 22.02.2026: Banner Text auf Mobile immer sichtbar (Issue #1) */
@media (max-width: 768px) {
    .checkmark-item:not(.active) {
        opacity: 0 !important;
        transform: translateX(20px) !important;
    }
}

/* Fix 22.02.2026: Banner z-index reduzieren damit Menü darüber liegt (Issue #2) */
#checkmark-banner {
    z-index: 9998 !important;
}

/* Fix 24.02.2026: Slide-Indicators auf Mobile ausblenden */
@media (max-width: 768px) {
    .slide-indicators {
        display: none !important;
    }
}
