/* Cookie Banner Styles - DSGVO Compliant */

/* Main Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    animation: fadeIn 0.3s ease-in-out;
}

.cookie-banner.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 34, 48, 0.8);
    backdrop-filter: blur(5px);
}

.cookie-banner-content {
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease-out;
}

/* Header */
.cookie-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e5e5e5;
    background: #1a4376;
    border-radius: 10px 10px 0 0;
}

.cookie-banner-header h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    font-family: 'Lato', sans-serif;
}

.cookie-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.cookie-close-btn:hover {
    transform: rotate(90deg);
}

/* Body */
.cookie-banner-body {
    padding: 30px;
}

.cookie-intro {
    color: #707876;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    font-family: 'Lato', sans-serif;
}

/* Cookie Categories */
.cookie-categories {
    margin-bottom: 25px;
}

.cookie-category {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: background 0.3s ease;
}

.cookie-category:hover {
    background: #f0f2f5;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-info {
    flex: 1;
    margin-left: 15px;
}

.cookie-category-info h4 {
    color: #1f2230;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    font-family: 'Lato', sans-serif;
}

.cookie-badge {
    display: inline-block;
    background: #a67e4e;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
}

.cookie-category-desc {
    color: #707876;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    font-family: 'Lato', sans-serif;
}

/* Cookie Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.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: #ccc;
    transition: 0.4s;
    border-radius: 26px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: #1a4376;
}

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

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

/* Footer */
.cookie-banner-footer {
    padding: 20px 30px;
    border-top: 1px solid #e5e5e5;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

.cookie-links {
    margin-bottom: 15px;
    text-align: center;
}

.cookie-links a {
    color: #1a4376;
    font-size: 13px;
    margin: 0 10px;
    text-decoration: underline;
    transition: color 0.3s ease;
    font-family: 'Lato', sans-serif;
}

.cookie-links a:hover {
    color: #a67e4e;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
}

.cookie-btn-secondary {
    background: #ffffff;
    color: #707876;
    border: 2px solid #e5e5e5;
}

.cookie-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #707876;
}

.cookie-btn-primary {
    background: #a67e4e;
    color: white;
}

.cookie-btn-primary:hover {
    background: #8f6b42;
}

.cookie-btn-accept {
    background: #1a4376;
    color: white;
}

.cookie-btn-accept:hover {
    background: #153661;
}

/* Cookie Notice (Minimal) */
.cookie-notice {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #1a4376;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 350px;
    animation: slideInLeft 0.4s ease-out;
}

.cookie-notice.show {
    display: block;
}

.cookie-notice-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-notice-content p {
    margin: 0;
    font-size: 14px;
    padding-right: 15px;
    font-family: 'Lato', sans-serif;
}

.cookie-notice-content a {
    color: #a67e4e;
    text-decoration: underline;
}

.cookie-notice-content a:hover {
    color: #fff;
}

.cookie-notice-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
}

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

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        width: 95%;
        max-height: 85vh;
        margin: 20px;
    }
    
    .cookie-banner-header {
        padding: 20px;
    }
    
    .cookie-banner-header h3 {
        font-size: 18px;
    }
    
    .cookie-banner-body {
        padding: 20px;
    }
    
    .cookie-intro {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .cookie-category {
        padding: 15px;
    }
    
    .cookie-category-info h4 {
        font-size: 15px;
    }
    
    .cookie-category-desc {
        font-size: 13px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 14px;
    }
    
    .cookie-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-links a {
        margin: 0;
    }
    
    .cookie-notice {
        left: 10px;
        right: 10px;
        max-width: none;
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .cookie-banner-content {
        border-radius: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        margin: 0;
    }
    
    .cookie-banner-header {
        border-radius: 0;
    }
    
    .cookie-banner-footer {
        border-radius: 0;
    }
    
    .cookie-switch {
        width: 44px;
        height: 24px;
    }
    
    .cookie-slider:before {
        height: 16px;
        width: 16px;
        left: 3px;
        bottom: 4px;
    }
    
    .cookie-switch input:checked + .cookie-slider:before {
        transform: translateX(20px);
    }
}