/**
 * WP Cookie Consent Modern CSS
 * 
 * Modernes Design für das Cookie-Banner und Modal.
 * 
 * @package WP_Cookie_Consent
 * @since 2.0.0
 */

:root {
    --wp-cookie-consent-primary: #0073aa;
    --wp-cookie-consent-text: #ffffff;
    --wp-cookie-consent-bg: #ffffff;
    --wp-cookie-consent-dark: #333333;
    --wp-cookie-consent-light: #f0f0f0;
    --wp-cookie-consent-border: #dddddd;
    --wp-cookie-consent-shadow: rgba(0, 0, 0, 0.1);
    --wp-cookie-consent-overlay: rgba(0, 0, 0, 0.5);
}

/* Banner */
.wp-cookie-consent-banner {
    position: fixed;
    z-index: 999999;
    width: 100%;
    background-color: var(--wp-cookie-consent-bg);
    box-shadow: 0 -2px 10px var(--wp-cookie-consent-shadow);
    padding: 15px;
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--wp-cookie-consent-dark);
}

.wp-cookie-consent-position-bottom {
    bottom: 0;
    left: 0;
}

.wp-cookie-consent-position-top {
    top: 0;
    left: 0;
}

.wp-cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

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

.wp-cookie-consent-text {
    flex: 1 1 60%;
    padding-right: 20px;
}

.wp-cookie-consent-actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wp-cookie-consent-privacy {
    margin-top: 10px;
    margin-bottom: 0;
}

.wp-cookie-consent-privacy a {
    color: var(--wp-cookie-consent-primary);
    text-decoration: underline;
}

/* Buttons */
.wp-cookie-consent-btn {
    display: inline-block;
    background-color: var(--wp-cookie-consent-primary);
    color: var(--wp-cookie-consent-text);
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.wp-cookie-consent-btn:hover {
    background-color: var(--wp-cookie-consent-primary);
    opacity: 0.9;
}

.wp-cookie-consent-btn-reject {
    background-color: transparent;
    color: var(--wp-cookie-consent-dark);
    border: 1px solid var(--wp-cookie-consent-border);
}

.wp-cookie-consent-btn-settings {
    background-color: transparent;
    color: var(--wp-cookie-consent-dark);
    border: 1px solid var(--wp-cookie-consent-border);
}

/* Modal */
.wp-cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--wp-cookie-consent-overlay);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-cookie-consent-modal-container {
    background-color: var(--wp-cookie-consent-bg);
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px var(--wp-cookie-consent-shadow);
}

.wp-cookie-consent-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--wp-cookie-consent-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wp-cookie-consent-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.wp-cookie-consent-modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--wp-cookie-consent-dark);
    line-height: 1;
}

.wp-cookie-consent-modal-content {
    padding: 20px;
}

.wp-cookie-consent-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--wp-cookie-consent-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Categories */
.wp-cookie-consent-categories {
    margin-top: 20px;
}

.wp-cookie-consent-category {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--wp-cookie-consent-border);
}

.wp-cookie-consent-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

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

.wp-cookie-consent-category-header h3 {
    margin: 0 0 0 10px;
    font-size: 16px;
    font-weight: 600;
}

.wp-cookie-consent-category-description p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.wp-cookie-consent-required {
    display: inline-block;
    background-color: var(--wp-cookie-consent-light);
    color: var(--wp-cookie-consent-dark);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    margin-top: 5px;
}

/* Cookie Details */
.wp-cookie-consent-category-cookies {
    margin-top: 10px;
}

.wp-cookie-consent-show-cookies {
    display: inline-block;
    color: var(--wp-cookie-consent-primary);
    text-decoration: none;
    font-size: 13px;
    margin-top: 5px;
    cursor: pointer;
}

.wp-cookie-consent-show-cookies:hover {
    text-decoration: underline;
}

.wp-cookie-consent-cookies-table {
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--wp-cookie-consent-border);
    border-radius: 4px;
    background-color: #f9f9f9;
    padding: 5px;
}

.wp-cookie-consent-modal .wp-cookie-consent-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.wp-cookie-consent-modal .wp-cookie-consent-table th,
.wp-cookie-consent-modal .wp-cookie-consent-table td {
    padding: 6px 8px;
    text-align: left;
    border: 1px solid var(--wp-cookie-consent-border);
}

.wp-cookie-consent-modal .wp-cookie-consent-table th {
    background-color: var(--wp-cookie-consent-light);
    font-weight: 600;
}

.wp-cookie-consent-modal .wp-cookie-consent-table tr:nth-child(even) {
    background-color: #fff;
}

/* Switch */
.wp-cookie-consent-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

.wp-cookie-consent-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

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

.wp-cookie-consent-switch input:checked + .wp-cookie-consent-slider {
    background-color: var(--wp-cookie-consent-primary);
}

.wp-cookie-consent-switch input:focus + .wp-cookie-consent-slider {
    box-shadow: 0 0 1px var(--wp-cookie-consent-primary);
}

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

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

/* Cookie Table */
.wp-cookie-consent-table-container {
    margin: 20px 0;
}

.wp-cookie-consent-category-title {
    margin: 20px 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.wp-cookie-consent-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.wp-cookie-consent-table th, 
.wp-cookie-consent-table td {
    padding: 8px 12px;
    text-align: left;
    border: 1px solid var(--wp-cookie-consent-border);
}

.wp-cookie-consent-table th {
    background-color: var(--wp-cookie-consent-light);
    font-weight: 600;
}

.wp-cookie-consent-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Settings Button */
.wp-cookie-consent-settings-button {
    display: inline-block;
    background-color: var(--wp-cookie-consent-primary);
    color: var(--wp-cookie-consent-text);
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.wp-cookie-consent-settings-button:hover {
    background-color: var(--wp-cookie-consent-primary);
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .wp-cookie-consent-content {
        flex-direction: column;
    }
    
    .wp-cookie-consent-text {
        flex: 1 1 100%;
        padding-right: 0;
        margin-bottom: 15px;
    }
    
    .wp-cookie-consent-actions {
        flex: 1 1 100%;
        justify-content: flex-start;
    }
} 