/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(30, 30, 30, 0.1);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(30, 30, 30, 0.15);
    z-index: 1000;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner.hide {
    transform: translateY(120%);
    opacity: 0;
}

.cookie-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.cookie-icon {
    width: 28px;
    height: 28px;
    background: #c96442;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 14px;
    flex-shrink: 0;
}

.cookie-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0;
}

.cookie-text {
    font-size: 13px;
    color: #1e1e1e;
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 0.8;
}

.cookie-link {
    color: #c96442;
    text-decoration: none;
    font-weight: 500;
}

.cookie-link:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-btn-accept {
    background-color: #1e1e1e;
    color: #f0efed;
}

.cookie-btn-accept:hover {
    background-color: #2a2a2a;
}

.cookie-btn-decline {
    background-color: transparent;
    color: #1e1e1e;
    border: 1px solid rgba(30, 30, 30, 0.2);
}

.cookie-btn-decline:hover {
    background-color: rgba(30, 30, 30, 0.05);
    border-color: rgba(30, 30, 30, 0.3);
}

.cookie-btn-settings {
    background-color: transparent;
    color: #c96442;
    border: 1px solid #c96442;
    flex: 0 0 auto;
    min-width: auto;
    padding: 10px 12px; /* Angepasst für Bild */
}

.cookie-btn-settings:hover {
    background-color: #c96442;
    color: #f0efed;
}

/* Styling für das Einstellungs-Icon im Cookie Button */
.cookie-btn-settings .settings-icon {
    width: 16px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    transition: all 0.2s ease;
    filter: brightness(1) contrast(1.1);
}

.cookie-btn-settings:hover .settings-icon {
    filter: brightness(1.2) contrast(1);
}

/* Settings Toggle */
.cookie-settings-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #1e1e1e;
    border: none;
    border-radius: 50%;
    color: #f0efed;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(30, 30, 30, 0.3);
    transition: all 0.3s ease;
    z-index: 1001;
    display: none;
}

.cookie-settings-toggle:hover {
    background-color: #2a2a2a;
    transform: scale(1.05);
}

.cookie-settings-toggle.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styling für das Einstellungs-Icon im Toggle Button */
.cookie-settings-toggle .settings-icon {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    transition: all 0.2s ease;
    filter: brightness(1.2) contrast(0.9);
}

.cookie-settings-toggle:hover .settings-icon {
    transform: scale(1.1);
    filter: brightness(1.4) contrast(0.8);
}

/* Fallback falls Bild nicht lädt */
.settings-icon {
    background: transparent;
    position: relative;
}

.settings-icon::before {
    content: "⚙️";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: transparent;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cookie-settings-toggle .settings-icon::before {
    font-size: 18px;
}

/* Zeige Fallback nur wenn Bild fehlschlägt */
.settings-icon:not([src]), 
.settings-icon[src=""] {
    background: rgba(201, 100, 66, 0.1);
}

.settings-icon:not([src])::before,
.settings-icon[src=""]::before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        flex: none;
    }
    
    .cookie-settings-toggle {
        bottom: 10px;
        right: 10px;
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    .cookie-settings-toggle .settings-icon {
        width: 20px;
        height: 20px;
    }
}

/* Animation für Cookie Icon */
@keyframes cookieBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

.cookie-banner.show .cookie-icon {
    animation: cookieBounce 0.6s ease-in-out 0.2s;
}