/* Klaro Cookie Consent - Putzwehr Design */

.klaro {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
}

/* Cookie Notice (Banner) */
.klaro .cookie-notice {
    background: linear-gradient(135deg, #1a365d 0%, #2d4a6f 100%);
    border: none;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    padding: 2rem;
}

.klaro .cookie-notice .cn-body p {
    color: #e9ecef;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.klaro .cookie-notice .cn-body a {
    color: #ffffff;
    text-decoration: underline;
}

.klaro .cookie-notice .cn-body a:hover {
    color: #c8102e;
}

/* Buttons */
.klaro .cookie-notice .cn-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.klaro .cookie-notice button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
}

.klaro .cookie-notice .cm-btn {
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

.klaro .cookie-notice .cm-btn:hover {
    background: #ffffff;
    color: #1a365d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.klaro .cookie-notice .cm-btn-success {
    background: #c8102e;
    border-color: #c8102e;
    color: #ffffff;
}

.klaro .cookie-notice .cm-btn-success:hover {
    background: #a00d25;
    border-color: #a00d25;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.klaro .cookie-notice .cm-btn-decline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.klaro .cookie-notice .cm-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* Cookie Modal */
.klaro .cookie-modal {
    background: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(10px);
}

.klaro .cookie-modal .cm-modal {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 2rem;
}

.klaro .cookie-modal .cm-header {
    background: linear-gradient(135deg, #1a365d 0%, #2d4a6f 100%);
    color: #ffffff;
    padding: 2rem;
    border-radius: 1.5rem 1.5rem 0 0;
}

.klaro .cookie-modal .cm-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.klaro .cookie-modal .cm-header .cm-description {
    color: #e9ecef;
    font-size: 0.95rem;
    line-height: 1.6;
}

.klaro .cookie-modal .cm-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* Services */
.klaro .cookie-modal .cm-service {
    background: #f1f3f5;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.klaro .cookie-modal .cm-service .cm-service-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a365d;
    margin-bottom: 0.5rem;
}

.klaro .cookie-modal .cm-service .cm-required {
    display: inline-block;
    background: #c8102e;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-left: 0.5rem;
}

/* Toggle Switch */
.klaro .cookie-modal .cm-list-input {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.klaro .cookie-modal .cm-list-input input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.klaro .cookie-modal .cm-list-input .cm-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ced4da;
    transition: 0.3s;
    border-radius: 28px;
}

.klaro .cookie-modal .cm-list-input .cm-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.klaro .cookie-modal .cm-list-input input:checked + .cm-slider {
    background-color: #c8102e;
}

.klaro .cookie-modal .cm-list-input input:checked + .cm-slider:before {
    transform: translateX(22px);
}

/* Footer */
.klaro .cookie-modal .cm-footer {
    background: #f1f3f5;
    padding: 1.5rem 2rem;
    border-radius: 0 0 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.klaro .cookie-modal .cm-footer button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
}

.klaro .cookie-modal .cm-btn-success {
    background: #c8102e;
    border-color: #c8102e;
    color: #ffffff;
}

.klaro .cookie-modal .cm-btn-success:hover {
    background: #a00d25;
    transform: translateY(-2px);
}

.klaro .cookie-modal .cm-btn-info {
    background: transparent;
    border-color: #1a365d;
    color: #1a365d;
}

.klaro .cookie-modal .cm-btn-info:hover {
    background: #1a365d;
    color: #ffffff;
}

/* Mobile */
@media (max-width: 767px) {
    .klaro .cookie-notice {
        padding: 1.5rem;
        border-radius: 0;
    }
    
    .klaro .cookie-notice .cn-buttons {
        flex-direction: column;
    }
    
    .klaro .cookie-notice button {
        width: 100%;
    }
    
    .klaro .cookie-modal .cm-modal {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
}

/* Accessibility */
.klaro button:focus-visible {
    outline: 3px solid #c8102e;
    outline-offset: 2px;
}