/* Floating Land Notification - Zentriert oben */
.land-notification {
    position: fixed;
    top: 100px; /* Unterhalb der Navigation */
    left: 50%;
    transform: translateX(-50%) translateY(50px) scale(0.95);
    width: 380px;
    max-width: 90vw;
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid var(--accent-color);
    border-right: 5px solid var(--primary-color);
    overflow: hidden;
    cursor: pointer;
    text-align: center;
}

.land-notification.show {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Animationen */
.land-notification.slide-in {
    animation: slideInFromTop 0.6s ease forwards;
}

.land-notification.slide-out {
    animation: slideOutToTop 0.4s ease forwards;
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px) scale(0.9);
    }
    70% {
        opacity: 1;
        transform: translateX(-50%) translateY(10px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes slideOutToTop {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px);
    }
}

/* Schwimm-Effekt */
@keyframes floatSubtle {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.land-notification:hover {
    animation: floatSubtle 3s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Inhalt */
.notification-content {
    position: relative;
    padding-top: 10px;
}

.notification-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin: 0 auto 15px auto;
    box-shadow: 0 8px 20px rgba(42, 92, 61, 0.3);
    position: relative;
    z-index: 1;
}

/* Pulsierender Effekt um das Icon */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(42, 92, 61, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(42, 92, 61, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(42, 92, 61, 0);
    }
}

.notification-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: -1;
}

.notification-text h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
    line-height: 1.3;
}

.notification-text p {
    color: var(--gray-color);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.notification-cta {
    display: inline-block;
    background: var(--accent-color);
    color: var(--dark-color);
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 160, 23, 0.3);
}

.notification-cta:hover {
    background: #e6b413;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 160, 23, 0.4);
}

/* Schließen-Button */
.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    color: var(--gray-color);
    transition: all 0.3s ease;
    z-index: 2;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.15);
    color: var(--dark-color);
    transform: rotate(90deg);
}

/* Banner-Stil Linie oben */
.land-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 12px 12px 0 0;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .land-notification {
        top: 80px;
        width: 90%;
        max-width: 350px;
    }
    
    .notification-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .notification-text h4 {
        font-size: 1.1rem;
    }
}

/* Wenn Cookie-Banner sichtbar ist */
.cookie-banner.show ~ .land-notification.show {
    top: 180px; /* Weiter nach unten, wenn Cookie-Banner da ist */
}

@media (max-width: 480px) {
    .land-notification {
        top: 70px;
        padding: 15px;
        width: calc(100vw - 30px);
        max-width: none;
    }
    
    .notification-text p {
        font-size: 0.9rem;
    }
    
    .notification-cta {
        padding: 8px 20px;
        font-size: 0.95rem;
    }
}



/* Mobile-Optimierung: Unten statt oben auf sehr kleinen Screens */
@media (max-height: 600px) {
    .land-notification {
        top: auto;
        bottom: 80px;
        transform: translateX(-50%) translateY(50px) scale(0.95);
    }
    
    .land-notification.show {
        transform: translateX(-50%) translateY(0) scale(1);
    }
    
    @keyframes slideInFromTop {
        0% {
            opacity: 0;
            transform: translateX(-50%) translateY(50px) scale(0.9);
        }
        100% {
            opacity: 1;
            transform: translateX(-50%) translateY(0) scale(1);
        }
    }
    
    .cookie-banner.show ~ .land-notification.show {
        top: auto;
        bottom: 140px; /* Höher, wenn Cookie-Banner da ist */
    }
}