/**
 * TTG Cookie Consent - Isolierte Styles
 * Alle Styles unter #ttg-cmp Container - keine globalen Überschreibungen
 */

/* Container-Isolation */
#ttg-cmp, #ttg-cmp * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#ttg-cmp {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 99999;
    font: 14px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}

/* Modal Card */
#ttg-cmp .cmp-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    padding: 24px;
    max-width: 500px;
    margin: 0 auto;
}

/* Header */
#ttg-cmp .cmp-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

#ttg-cmp .cmp-icon {
    font-size: 24px;
    margin-right: 12px;
}

#ttg-cmp .cmp-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

/* Content */
#ttg-cmp .cmp-content {
    margin-bottom: 20px;
}

#ttg-cmp .cmp-text {
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 12px;
}

#ttg-cmp .cmp-link {
    color: #16a34a;
    text-decoration: underline;
}

#ttg-cmp .cmp-link:hover {
    color: #15803d;
}

/* Cookie Categories */
#ttg-cmp .cmp-categories {
    margin: 20px 0;
}

#ttg-cmp .cmp-category {
    margin-bottom: 16px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

#ttg-cmp .cmp-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

#ttg-cmp .cmp-category-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    margin: 0;
}

#ttg-cmp .cmp-category-description {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

/* Toggle Switch */
#ttg-cmp .cmp-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

#ttg-cmp .cmp-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

#ttg-cmp .cmp-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 24px;
}

#ttg-cmp .cmp-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

#ttg-cmp .cmp-toggle input:checked + .cmp-toggle-slider {
    background-color: #16a34a;
}

#ttg-cmp .cmp-toggle input:checked + .cmp-toggle-slider:before {
    transform: translateX(20px);
}

#ttg-cmp .cmp-toggle input:disabled + .cmp-toggle-slider {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* Buttons */
#ttg-cmp .cmp-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

#ttg-cmp .cmp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    min-width: 120px;
}

#ttg-cmp .cmp-btn:focus {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
}

#ttg-cmp .cmp-btn.primary {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

#ttg-cmp .cmp-btn.primary:hover {
    background: #15803d;
    border-color: #15803d;
}

#ttg-cmp .cmp-btn.secondary {
    background: #6b7280;
    color: #fff;
    border-color: #6b7280;
}

#ttg-cmp .cmp-btn.secondary:hover {
    background: #4b5563;
    border-color: #4b5563;
}

#ttg-cmp .cmp-btn.outline {
    background: transparent;
    color: #16a34a;
    border-color: #16a34a;
}

#ttg-cmp .cmp-btn.outline:hover {
    background: #16a34a;
    color: #fff;
}

#ttg-cmp .cmp-btn-icon {
    margin-right: 6px;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 640px) {
    #ttg-cmp {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }
    
    #ttg-cmp .cmp-card {
        padding: 20px;
    }
    
    #ttg-cmp .cmp-buttons {
        flex-direction: column;
    }
    
    #ttg-cmp .cmp-btn {
        width: 100%;
    }
}

/* Animation */
#ttg-cmp.show {
    animation: ttg-slide-up 0.3s ease-out;
}

@keyframes ttg-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

