/* ============================================================
   WeBeckIT CMP – CSS Isolation Namespace
============================================================ */

.WeBeckIT-CMP {
    font-family: Arial, sans-serif;
    color: #2d2d2d;
}

/* Global reset inside CMP, but SAFE (NICHT all: unset!) */
.WeBeckIT-CMP * {
    box-sizing: border-box;
    font-family: inherit;
}

/* ============================================================
   COOKIE BANNER
============================================================ */

.WeBeckIT-CMP .cookie-container {
    position: fixed;
    bottom: 30px;
    left: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    max-width: 360px;
    width: calc(100% - 40px);
    box-shadow: 0px 0px 12px rgba(0,0,0,0.25);
    z-index: 999999;
}

.WeBeckIT-CMP .cookie-container p {
    margin-bottom: 14px;
    font-size: 15px;
}

/* ============================================================
   BANNER BUTTONS
============================================================ */

.WeBeckIT-CMP .cookie-button {
    display: inline-block;
    padding: 10px 16px;
    margin-right: 8px;
    margin-top: 8px;
    background-color: #2196F3;
    color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    border: none;
}

.WeBeckIT-CMP .cookie-button:nth-child(3) {
    background-color: #eaeaea;
    color: #333;
}

/* ============================================================
   COOKIE ICON (BOTTOM LEFT)
============================================================ */

.WeBeckIT-CMP #cmp-edit-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    cursor: pointer;
    z-index: 999999;

    width: 48px;
    height: 48px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.WeBeckIT-CMP #cmp-edit-button svg {
    width: 28px;
    height: 28px;
    fill: #000000;
}

/* ============================================================
   PREFERENCE OVERLAY
============================================================ */

.WeBeckIT-CMP .cM-preference-Overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

/* Modal Container */

.WeBeckIT-CMP .cM-preference-Content {
    background-color: #ffffff;
    width: 90%;
    max-width: 650px;
    max-height: 80vh;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* HEADER */

.WeBeckIT-CMP .cM-preference-header {
    padding: 16px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.WeBeckIT-CMP .cM-preference-header p {
    font-size: 19px;
    font-weight: bold;
}

.WeBeckIT-CMP .cM-close {
    font-size: 26px;
    cursor: pointer;
}

/* BODY */

.WeBeckIT-CMP .cM-preference-body {
    padding: 14px 22px;
    overflow-y: auto;
    flex: 1;
}

.WeBeckIT-CMP .cM-preference-body-desc p {
    border-bottom: 1px solid #ddd;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

/* CATEGORY LIST */

.WeBeckIT-CMP .cM-preference-body-items {
    margin-top: 10px;
}

.WeBeckIT-CMP .cM-preference-body-item {
    margin-bottom: 14px;
}

.WeBeckIT-CMP .cM-preference-body-item summary {
    cursor: pointer;
    margin-bottom: 10px;
}

.WeBeckIT-CMP .misc-bold {
    font-weight: bold;
}

.WeBeckIT-CMP .misc-green {
    font-weight: bold;
    color: #0A8A0A;
    margin-left: 6px;
}

/* SWITCHES */

.WeBeckIT-CMP .misc-utility-switch {
    position: relative;
    width: 42px;
    height: 22px;
    display: inline-block;
}

.WeBeckIT-CMP .misc-utility-switch input {
    display: none;
}

.WeBeckIT-CMP .misc-utility-slider {
    position: absolute;
    inset: 0;
    background-color: #ccc;
    border-radius: 22px;
    transition: 0.3s;
}

.WeBeckIT-CMP .misc-utility-slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.WeBeckIT-CMP .misc-input:checked + .misc-utility-slider {
    background-color: #2196F3;
}

.WeBeckIT-CMP .misc-input:checked + .misc-utility-slider::before {
    transform: translateX(20px);
}

/* FOOTER BUTTONS */

.WeBeckIT-CMP .cM-preference-footer {
    padding: 16px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.WeBeckIT-CMP .cM-preference-footer button {
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid #2196F3;
    font-size: 14px;
    background-color: #ffffff;
}

.WeBeckIT-CMP .cM-preference-footer button:hover {
    opacity: 0.8;
}

.WeBeckIT-CMP .cM-preference-footer #cM-accept-all {
    background-color: #2196F3;
    color: white;
    font-weight: bold;
}

.WeBeckIT-CMP .cmp-service-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.WeBeckIT-CMP .cmp-service-item {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #e0e0e0;
}

.WeBeckIT-CMP .cmp-service-item strong {
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.WeBeckIT-CMP .cmp-service-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.WeBeckIT-CMP .cmp-cookie-info {
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}

.cmp-service-disabled {
    opacity: 0.6;
}

/* reCAPTCHA standardmäßig versteckt */
#recaptcha-widget {
    display: none;
}

/* Blocker standardmäßig sichtbar */
#recaptcha-blocked {
    display: block;
}
