/**
 * Cookie Consent Banner - Vereinfachte Styles
 * Ohne komplexe Animationen, fokussiert auf Funktionalität
 */

/* Cookie Banner Container */
.cookie-consent-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #f8f8f8;
    border-top: 3px solid #9c0000;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: bottom 0.4s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Banner sichtbar machen */
.cookie-consent-banner.visible {
    bottom: 0;
}

/* Banner Wrapper */
.cookie-banner-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Cookie Content */
.cookie-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

/* Cookie Icon */
.cookie-icon {
    flex-shrink: 0;
    color: #9c0000;
    margin-top: 3px;
}

.cookie-icon svg {
    display: block;
    width: 32px;
    height: 32px;
}

/* Cookie Text */
.cookie-text h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #262626;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #5a5a5a;
}

/* Privacy Link */
.cookie-privacy-link {
    color: #9c0000;
    text-decoration: underline;
    transition: color 0.2s;
    font-weight: 500;
}

.cookie-privacy-link:hover {
    color: #c20000;
}

/* Cookie Actions */
.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Cookie Buttons */
.cookie-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Accept Button */
.cookie-accept {
    /* background: linear-gradient(90deg, rgba(88, 0, 0, 1) 0%, rgba(156, 0, 0, 1) 100%); */
    background: #9c0000;
    color: #ffffff;
    font-weight: 600;
}

.cookie-accept:hover {
    background: linear-gradient(90deg, rgba(156, 0, 0, 1) 0%, rgba(194, 0, 0, 1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 0, 0, 0.4);
}

.cookie-accept:active {
    transform: translateY(0);
}

/* Decline Button */
.cookie-decline {
    background: #ffffff;
    color: #262626;
    border: 2px solid #b3b2b2;
    font-weight: 500;
}

.cookie-decline:hover {
    background: #f8f8f8;
    border-color: #5a5a5a;
    color: #5a5a5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cookie-decline:active {
    transform: translateY(0);
}

/* Focus States für Barrierefreiheit */
.cookie-btn:focus {
    outline: 3px solid #9c0000;
    outline-offset: 2px;
}

/* Responsive: Tablet */
@media (max-width: 768px) {
    .cookie-banner-wrapper {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 20px;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 14px;
    }
    
    .cookie-text h4 {
        font-size: 16px;
    }
    
    .cookie-text p {
        font-size: 13px;
    }
}

/* Responsive: Mobile */
@media (max-width: 480px) {
    .cookie-banner-wrapper {
        padding: 15px;
    }
    
    .cookie-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .cookie-text h4 {
        font-size: 15px;
    }
    
    .cookie-text p {
        font-size: 12px;
    }
    
    .cookie-btn {
        font-size: 14px;
        padding: 12px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .cookie-consent-banner {
        background: #262626;
        border-top-color: #c20000;
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.5);
    }

    .cookie-text h4 {
        color: #f8f8f8;
    }

    .cookie-text p {
        color: #b3b2b2;
    }

    .cookie-privacy-link {
        color: #c20000;
    }

    .cookie-privacy-link:hover {
        color: #ff0000;
    }

    .cookie-decline {
        background: #333333;
        color: #f8f8f8;
        border-color: #5a5a5a;
    }

    .cookie-decline:hover {
        background: #444444;
        border-color: #b3b2b2;
    }
}

/* Print: Banner verstecken */
@media print {
    .cookie-consent-banner {
        display: none !important;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner {
        transition: none;
    }
    
    .cookie-btn {
        transition: none;
    }
    
    .cookie-btn:hover {
        transform: none;
    }
}
