/* Cookie Consent Banner Styles */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
    border-top: 3px solid #3498db;
}

.cookie-consent-banner[style*="display: block"] {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h3 {
    margin: 0 0 12px 0;
    font-size: 1.4em;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.cookie-consent-text h3::before {
    content: "🍪";
    font-size: 1.3em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.cookie-consent-text p {
    margin: 8px 0;
    line-height: 1.6;
    color: #ecf0f1;
    font-size: 0.95em;
}

.cookie-consent-links {
    margin-top: 12px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-consent-links a {
    color: #64b5f6;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    position: relative;
}

.cookie-consent-links a:hover {
    color: #90caf9;
    text-decoration: underline;
}

.cookie-consent-links a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #90caf9;
    transition: width 0.3s ease;
}

.cookie-consent-links a:hover::after {
    width: 100%;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-consent-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.cookie-consent-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cookie-consent-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cookie-consent-btn:active {
    transform: scale(0.98);
}

.cookie-consent-btn-reject {
    background: #fff;
    color: #2c3e50;
    border: 2px solid transparent;
}

.cookie-consent-btn-reject:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.cookie-consent-btn-accept {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border: 2px solid transparent;
}

.cookie-consent-btn-accept:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f6fb2 100%);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
}

.cookie-consent-btn span {
    position: relative;
    z-index: 1;
}

/* Dark Mode Support */
.dark-mode .cookie-consent-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top-color: #64b5f6;
}

.dark-mode .cookie-consent-text h3 {
    color: #fff;
}

.dark-mode .cookie-consent-text p {
    color: #e0e0e0;
}

.dark-mode .cookie-consent-links a {
    color: #90caf9;
}

.dark-mode .cookie-consent-links a:hover {
    color: #b3e5fc;
}

.dark-mode .cookie-consent-btn-reject {
    background: #444;
    color: #fff;
    border-color: #666;
}

.dark-mode .cookie-consent-btn-reject:hover {
    background: #555;
}

.dark-mode .cookie-consent-btn-accept {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
}

.dark-mode .cookie-consent-btn-accept:hover {
    background: linear-gradient(135deg, #42a5f5 0%, #2196f3 100%);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .cookie-consent-banner {
        padding: 16px;
        border-top-width: 2px;
    }

    .cookie-consent-content {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .cookie-consent-text {
        min-width: 100%;
    }

    .cookie-consent-text h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    .cookie-consent-text p {
        font-size: 0.9em;
        margin: 6px 0;
    }

    .cookie-consent-links {
        gap: 10px;
        margin-top: 10px;
    }

    .cookie-consent-links a {
        font-size: 0.85em;
    }

    .cookie-consent-buttons {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .cookie-consent-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1em;
    }
}

@media screen and (max-width: 480px) {
    .cookie-consent-banner {
        padding: 14px;
    }

    .cookie-consent-text h3 {
        font-size: 1.1em;
        flex-wrap: wrap;
    }

    .cookie-consent-text p {
        font-size: 0.85em;
    }

    .cookie-consent-links {
        flex-direction: column;
        gap: 8px;
    }

    .cookie-consent-btn {
        padding: 12px 18px;
        font-size: 0.95em;
    }
}

/* Animation für das Erscheinen */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-banner[style*="display: block"] {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Body Padding wenn Banner sichtbar ist */
body.cookie-banner-visible {
    padding-bottom: 0;
}

/* Verbesserte Lesbarkeit */
.cookie-consent-text p:first-of-type {
    font-weight: 500;
}

/* Accessibility */
.cookie-consent-btn:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

.dark-mode .cookie-consent-btn:focus {
    outline-color: #64b5f6;
}

/* Smooth Scroll für Banner */
html {
    scroll-behavior: smooth;
}

