/* DSGVO Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    z-index: 10000;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-consent-text h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #fff;
}

.cookie-consent-text p {
    margin: 0 0 20px 0;
    line-height: 1.5;
    color: #ccc;
}

.cookie-consent-details {
    margin: 20px 0;
    border-top: 1px solid #333;
    padding-top: 15px;
}

.cookie-category {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.cookie-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
}

.cookie-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.cookie-checkbox .checkmark {
    height: 20px;
    width: 20px;
    background-color: #333;
    border: 2px solid #666;
    border-radius: 3px;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
    position: relative;
}

.cookie-checkbox input:checked ~ .checkmark {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.cookie-checkbox input:disabled ~ .checkmark {
    background-color: #666;
    border-color: #888;
    cursor: not-allowed;
}

.cookie-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cookie-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.cookie-info strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
}

.cookie-info p {
    margin: 0;
    font-size: 0.9em;
    color: #ccc;
    line-height: 1.4;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0 15px 0;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 14px;
}

.cookie-btn-reject {
    background: #666;
    color: white;
}

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

.cookie-btn-accept {
    background: #2196F3;
    color: white;
}

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

.cookie-btn-accept-all {
    background: #4CAF50;
    color: white;
}

.cookie-btn-accept-all:hover {
    background: #45a049;
}

.cookie-consent-links {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 15px;
}

.cookie-consent-links a {
    color: #2196F3;
    text-decoration: none;
    font-size: 0.9em;
}

.cookie-consent-links a:hover {
    text-decoration: underline;
}

/* Cookie Settings Button für Footer */
.cookie-settings-btn {
    background: none;
    border: 1px solid #ccc;
    color: #666;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
    margin-left: 10px;
}

.cookie-settings-btn:hover {
    background: #f5f5f5;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 15px;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .cookie-checkbox {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-checkbox .checkmark {
        margin-bottom: 8px;
    }
}

/* Body Klasse wenn Banner offen ist */
body.cookie-banner-open {
    padding-bottom: 0;
}

/* Verhindere Scrollen wenn Banner da ist */
@media (max-height: 600px) {
    .cookie-consent-banner {
        max-height: 90vh;
    }
}