/**
 * Cookie Banner Styling mit Seitenblockierung
 */

/* Overlay für Seitensperrung */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    transition: opacity 0.3s ease;
}

/* Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 20px;
    animation: slideUp 0.4s ease-out;
    transition: opacity 0.3s ease;
}

/* Banner im Blocking-Modus zentriert */
.cookie-banner-blocking {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: auto;
    max-width: 600px;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-banner-blocking .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-blocking .cookie-banner-text {
    min-width: 100%;
    text-align: center;
}

.cookie-banner-text h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.cookie-banner-blocking .cookie-banner-text h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.cookie-banner-text p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.cookie-banner-blocking .cookie-banner-text p {
    font-size: 15px;
    line-height: 1.6;
}

.cookie-banner-text a {
    color: #0066cc;
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: #0052a3;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-banner-blocking .cookie-banner-buttons {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.cookie-btn {
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-banner-blocking .cookie-btn {
    padding: 14px 40px;
    font-size: 16px;
}

.cookie-accept {
    background-color: #28a745;
    color: #ffffff;
}

.cookie-accept:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.cookie-accept:active {
    transform: translateY(0);
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-banner-blocking {
        width: 95%;
        max-width: 500px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-banner-text {
        min-width: 100%;
    }
    
    .cookie-banner-text h3 {
        font-size: 16px;
    }
    
    .cookie-banner-blocking .cookie-banner-text h3 {
        font-size: 20px;
    }
    
    .cookie-banner-text p {
        font-size: 13px;
    }
    
    .cookie-banner-blocking .cookie-banner-text p {
        font-size: 14px;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        justify-content: stretch;
    }
    
    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 12px;
    }
    
    .cookie-banner-blocking {
        width: 90%;
        padding: 18px;
    }
    
    .cookie-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .cookie-banner-blocking .cookie-btn {
        padding: 12px 30px;
        font-size: 15px;
    }
}
