/**
 * KOYA Cookie Consent Styles
 * Elegant, DSGVO-konform, responsiv
 */

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
   .cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.98) 0%, rgba(30, 25, 35, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
    box-shadow: 0 -10px 40px rgba(212, 175, 55, 0.15);
    border-top: 2px solid rgba(212, 175, 55, 0.3);
    z-index: 999999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

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

.cookie-consent-text h3 {
    color: #d4af37;
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.cookie-consent-text p {
    color: #f5f5f5;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
}

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

/* Cookie Buttons */
.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.cookie-btn-accept-all {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.cookie-btn-accept-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.cookie-btn-necessary {
    background: rgba(255, 255, 255, 0.1);
    color: #f5f5f5;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.cookie-btn-necessary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(212, 175, 55, 0.5);
}

.cookie-btn-settings {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.cookie-btn-settings:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
}

.cookie-btn-reject {
    background: transparent;
    color: #999;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
}

/* ============================================
   COOKIE SETTINGS MODAL
   ============================================ */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-settings-modal.show {
    opacity: 1;
}

.cookie-settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.cookie-settings-content {
    position: relative;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.98) 0%, rgba(30, 25, 35, 0.98) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.1);
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.cookie-settings-header h2 {
    color: #d4af37;
    font-size: 1.8rem;
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.cookie-settings-close {
    background: none;
    border: none;
    color: #999;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cookie-settings-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f5f5f5;
}

.cookie-settings-body {
    padding: 20px 30px;
    overflow-y: auto;
    flex: 1;
}

/* Cookie Categories */
.cookie-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.25);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}

.cookie-category-header h3 {
    color: #d4af37;
    font-size: 1.2rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.cookie-category-header p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.cookie-category-details {
    color: #999;
    font-size: 0.85rem;
    line-height: 1.8;
    padding-top: 10px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.cookie-category-details strong {
    color: #d4af37;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 28px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #999;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border-color: #d4af37;
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(26px);
    background-color: #1a1a2e;
}

.cookie-switch input:disabled + .cookie-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-switch input:disabled + .cookie-slider:before {
    background-color: #d4af37;
}

/* Settings Footer */
.cookie-settings-footer {
    display: flex;
    gap: 12px;
    padding: 20px 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    flex-wrap: wrap;
}

.cookie-settings-footer .cookie-btn {
    flex: 1;
    min-width: 150px;
}

.cookie-settings-links {
    text-align: center;
    padding: 15px 30px 25px;
    font-size: 0.9rem;
}

.cookie-settings-links a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cookie-settings-links a:hover {
    color: #f4d03f;
    text-decoration: underline;
}

/* ============================================
   COOKIE SETTINGS TRIGGER BUTTON
   ============================================ */
.cookie-settings-trigger {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    z-index: 999998;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-trigger:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* ============================================
   BLOCKED CONTENT PLACEHOLDERS
   ============================================ */
.google-map-placeholder,
.youtube-placeholder {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.95) 0%, rgba(30, 25, 35, 0.95) 100%);
    border: 2px dashed rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.map-blocked-message,
.video-blocked-message {
    text-align: center;
    padding: 40px;
    max-width: 400px;
}

.map-blocked-icon,
.video-blocked-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.map-blocked-message h3,
.video-blocked-message h3 {
    color: #d4af37;
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    font-family: 'Playfair Display', serif;
}

.map-blocked-message p,
.video-blocked-message p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-buttons {
        flex-wrap: wrap;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: calc(50% - 6px);
    }
    
    .cookie-settings-content {
        max-height: 90vh;
        width: 95%;
    }
    
    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .cookie-category-header {
        flex-direction: column;
    }
    
    .cookie-switch {
        align-self: flex-start;
    }
}

@media (max-width: 600px) {
    .cookie-consent-banner {
        padding: 15px;
    }
    
    .cookie-consent-text h3 {
        font-size: 1.1rem;
    }
    
    .cookie-consent-text p {
        font-size: 0.85rem;
    }
    
    .cookie-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-width: 100%;
    }
    
    .cookie-settings-header h2 {
        font-size: 1.4rem;
    }
    
    .cookie-category {
        padding: 15px;
    }
    
    .cookie-category-header h3 {
        font-size: 1.05rem;
    }
    
    .cookie-settings-trigger {
        bottom: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .cookie-settings-footer .cookie-btn {
        min-width: 100%;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Smooth Scrollbar für Modal */
.cookie-settings-body::-webkit-scrollbar {
    width: 8px;
}

.cookie-settings-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.cookie-settings-body::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}

.cookie-settings-body::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.5);
}