/* ==========================================
   DSGVO Cookie-Consent Styling
   für Modellmoment.com
   ========================================== */

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Cookie Banner Container */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 20px;
    animation: slideUp 0.4s ease-out;
    border-top: 3px solid #597588;
}

/* Banner Content */
.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text h3 {
    margin: 0 0 10px 0;
    color: #173950;
    font-size: 1.3em;
    font-family: 'Maven Pro', sans-serif;
    text-shadow: none;
}

.cookie-banner-text p {
    margin: 0 0 8px 0;
    color: #173950;
    font-size: 0.95em;
    line-height: 1.6;
}

.cookie-banner-links {
    font-size: 0.85em !important;
    margin-top: 10px !important;
}

.cookie-banner-links a {
    color: #597588;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.cookie-banner-links a:hover {
    color: #173950;
    text-decoration: underline;
}

/* Banner Buttons */
.cookie-banner-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 220px;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Maven Pro', sans-serif;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #597588 0%, #173950 100%);
    color: white;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #173950 0%, #597588 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(89, 117, 136, 0.4);
}

.cookie-btn-essential {
    background: #e0ddd9;
    color: #173950;
    border: 2px solid #597588;
}

.cookie-btn-essential:hover {
    background: #d4d0cb;
    transform: translateY(-2px);
}

.cookie-btn-settings {
    background: transparent;
    color: #597588;
    border: 2px solid #597588;
}

.cookie-btn-settings:hover {
    background: #597588;
    color: white;
    transform: translateY(-2px);
}

.cookie-btn-back {
    background: #e0ddd9;
    color: #173950;
}

.cookie-btn-back:hover {
    background: #d4d0cb;
}

/* Cookie Details Section */
.cookie-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
}

.cookie-category {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #597588;
}

.cookie-category-header {
    margin-bottom: 12px;
}

.cookie-switch-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 12px;
}

.cookie-switch-label input[type="checkbox"] {
    position: relative;
    width: 50px;
    height: 26px;
    -webkit-appearance: none;
    appearance: none;
    background: #ccc;
    border-radius: 26px;
    outline: none;
    cursor: pointer;
    transition: background 0.3s;
}

.cookie-switch-label input[type="checkbox"]:checked {
    background: #597588;
}

.cookie-switch-label input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-switch-label input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
}

.cookie-switch-label input[type="checkbox"]:checked::before {
    transform: translateX(24px);
}

.cookie-category-title {
    font-weight: 700;
    font-size: 1.05em;
    color: #173950;
    flex: 1;
}

.cookie-required {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
}

.cookie-category-description {
    margin: 10px 0 8px 0;
    color: #173950;
    font-size: 0.9em;
    line-height: 1.6;
}

.cookie-category-items {
    margin: 8px 0 0 0;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 4px;
    font-size: 0.85em;
    color: #555;
    line-height: 1.6;
}

.cookie-category-items strong {
    color: #173950;
}

.cookie-details-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.cookie-details-buttons .cookie-btn {
    min-width: 200px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        min-width: unset;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-banner-text h3 {
        font-size: 1.1em;
    }
    
    .cookie-banner-text p {
        font-size: 0.9em;
    }
    
    .cookie-category {
        padding: 15px;
    }
    
    .cookie-details-buttons {
        flex-direction: column;
    }
    
    .cookie-details-buttons .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 12px;
    }
    
    .cookie-banner-text h3 {
        font-size: 1em;
    }
    
    .cookie-banner-text p {
        font-size: 0.85em;
    }
    
    .cookie-btn {
        padding: 10px 18px;
        font-size: 0.9em;
    }
    
    .cookie-switch-label {
        flex-wrap: wrap;
    }
    
    .cookie-category-title {
        font-size: 0.95em;
    }
}

/* Accessibility */
.cookie-btn:focus,
.cookie-switch-label input[type="checkbox"]:focus {
    outline: 3px solid #597588;
    outline-offset: 2px;
}

/* Print */
@media print {
    .cookie-banner {
        display: none;
    }
}

