@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

.pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideInRight 0.5s ease-out forwards;
}

.banner-item {
    opacity: 0;
    animation-play-state: paused;
}

.banner-item.show {
    opacity: 1;
    animation: none;
}

.banner-item:nth-child(1) { animation-delay: 0.7s; animation-play-state: paused; }
.banner-item:nth-child(2) { animation-delay: 0.8s; animation-play-state: paused; }
.banner-item:nth-child(3) { animation-delay: 0.9s; animation-play-state: paused; }
.banner-item:nth-child(4) { animation-delay: 1s; animation-play-state: paused; }
.banner-item:nth-child(5) { animation-delay: 1.1s; animation-play-state: paused; }
.banner-item:nth-child(6) { animation-delay: 1.2s; animation-play-state: paused; }
.banner-item:nth-child(7) { animation-delay: 1.3s; animation-play-state: paused; }
.banner-item:nth-child(8) { animation-delay: 1.4s; animation-play-state: paused; }
.banner-item:nth-child(9) { animation-delay: 1.5s; animation-play-state: paused; }

/* --- Neue Animationen --- */

/* --- Banner: von rechts reinfaden --- */
@keyframes fadeInFromRight {
    from {
        opacity: 0;
        transform: translateX(80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#bannerContainerWide {
    opacity: 0;
    pointer-events: none; /* Keine Interaktion während unsichtbar */
    animation: fadeInFromRight 0.5s ease-out forwards;
    animation-delay: 0.4s;
    animation-play-state: paused;
}

#bannerContainerMedium {
    opacity: 0;
    pointer-events: none; /* Keine Interaktion während unsichtbar */
    animation: fadeInFromRight 0.5s ease-out forwards;
    animation-delay: 0.4s;
    animation-play-state: paused;
}

#bannerContainerSmall {
    opacity: 0;
    pointer-events: none; /* Keine Interaktion während unsichtbar */
    animation: fadeInFromRight 0.5s ease-out forwards;
    animation-delay: 0.4s;
    animation-play-state: paused;
}

#bannerContainerTiny {
    opacity: 0;
    pointer-events: none; /* Keine Interaktion während unsichtbar */
    animation: fadeInFromRight 0.5s ease-out forwards;
    animation-delay: 0.4s;
    animation-play-state: paused;
}

/* banner-items aktiv, wenn sichtbar */
.banner-item.active {
    animation: slideInRight 0.6s ease-out forwards;
    animation-play-state: paused;
}

/* --- Fade-Out Animation --- */
@keyframes fadeOutToRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(80px);
    }
}

/* Wird aktiviert, wenn man auf das X klickt */
.fade-out {
    animation: none; /* alte Animationen deaktivieren */
    animation: fadeOutToRight 0.5s ease-in forwards !important;
}

/* Basis: Nur für sehr große Screens (ab 2200px Breite) */
.banner-full {
    display: none;
}

/* Kompakte Version: Icons mit ausklappbarem Text (1920px - 2199px) */
.banner-compact {
    display: none;
}

/* Icon-Only Version: Nur Icons (1600px - 1919px) */
.banner-icons {
    display: none;
}

/* Media Queries */
@media (min-width: 2200px) {
    .banner-full {
        display: block;
    }
}

@media (min-width: 1920px) and (max-width: 2199px) {
    .banner-compact {
        display: block;
    }
}

@media (min-width: 1600px) and (max-width: 1919px) {
    .banner-icons {
        display: block;
    }
}

/* Animations */
@keyframes fadeInFromRight {
    from {
        opacity: 0;
        transform: translateX(80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.banner-container {
    opacity: 0;
    pointer-events: none;
    animation: fadeInFromRight 0.5s ease-out forwards;
    animation-delay: 0.4s;
    animation-play-state: paused;
}

.banner-item {
    opacity: 0;
    animation: slideInRight 0.5s ease-out forwards;
    animation-play-state: paused;
}

.banner-item:nth-child(1) { animation-delay: 0.7s; }
.banner-item:nth-child(2) { animation-delay: 0.8s; }
.banner-item:nth-child(3) { animation-delay: 0.9s; }
.banner-item:nth-child(4) { animation-delay: 1s; }
.banner-item:nth-child(5) { animation-delay: 1.1s; }

/* Compact banner expand animation */
.banner-compact .banner-item .item-content {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.banner-compact .banner-item:hover .item-content,
.banner-compact .banner-item.expanded .item-content {
    max-width: 250px;
    opacity: 1;
    margin-left: 12px;
}

.banner-item-svg {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.banner-item:hover .banner-item-svg {
    background: rgba(20, 184, 166, 0.2);
}

.banner-item.active .banner-item-svg {
    background: rgba(20, 184, 166, 0.2);
}

.banner-item {
    display: block;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(20, 184, 166, 0.2);
    transition: all 0.3s;
    cursor: pointer;
}

html.dark .banner-item {
    background: #171717;
    border: 1px solid #2e2e2e;
}

html.dark .banner-item:hover {
    border-color: rgba(20, 184, 166, 0.6);
}

html.dark .banner-item-svg {
    background: rgba(0, 128, 128, 0.2);
}

.banner-item:hover {
    border-color: rgba(20, 184, 166, 0.5);
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

html.dark .banner-item.active {
    border-color: rgba(20, 184, 166, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

html.dark .banner-item.active .banner-item-svg {
    background: rgba(20, 184, 166, 0.2);
}

.banner-item-text {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    transition: color 0.3s;
}