/**
 * KiroTools Cookie Consent – Styles
 * Prefix: kt-cc--
 * Overlay-Darstellung (kein CLS)
 */

/* Overlay – blockiert Interaktion bis Consent erteilt */
.kt-cc--overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.kt-cc--overlay.kt-cc--visible {
    opacity: 1;
    visibility: visible;
}

/* Banner */
.kt-cc--banner {
    width: 100%;
    max-width: 42rem;
    margin: 1rem;
}

.kt-cc--container {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    max-height: 90vh;
    overflow-y: auto;
}

/* Header */
.kt-cc--header {
    margin-bottom: 1rem;
}

.kt-cc--title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

/* Body */
.kt-cc--description {
    margin: 0 0 1.25rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4b5563;
}

/* Categories */
.kt-cc--categories {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.kt-cc--category {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}

.kt-cc--category-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    color: #1f2937;
}

.kt-cc--checkbox {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: #2563eb;
}

.kt-cc--checkbox:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.kt-cc--category-desc {
    margin: 0.375rem 0 0 1.625rem;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Footer / Buttons */
.kt-cc--footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.kt-cc--btn {
    padding: 0.625rem 1.25rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    min-height: 2.75rem;
}

.kt-cc--btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.kt-cc--btn-reject {
    background: #ffffff;
    color: #374151;
}

.kt-cc--btn-reject:hover {
    background: #f3f4f6;
}

.kt-cc--btn-selected {
    background: #ffffff;
    color: #2563eb;
    border-color: #2563eb;
}

.kt-cc--btn-selected:hover {
    background: #eff6ff;
}

.kt-cc--btn-accept {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.kt-cc--btn-accept:hover {
    background: #1d4ed8;
}

/* Responsive */
@media (max-width: 480px) {
    .kt-cc--banner {
        margin: 0.5rem;
    }

    .kt-cc--container {
        padding: 1rem;
    }

    .kt-cc--footer {
        flex-direction: column;
    }

    .kt-cc--btn {
        width: 100%;
        text-align: center;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .kt-cc--overlay {
        transition: none;
    }
}

/* Print */
@media print {
    .kt-cc--overlay {
        display: none;
    }
}
