:root {
    --consent-color: #000;
    --consent-checkbox-color: #000;
    --consent-checkbox-color-hover: #444;
}

#cookie-consent-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    font-family: "sans", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--col-darkgrey, #444);
    background-color: rgba(0, 0, 0, 0.5);
}

#cookie-consent {
    width: 50%;
    padding: 20px 40px 15px;
    border-radius: 0;
    background-color: white;
}

#cookie-consent label {
    margin-right: 20px;
}

#cookie-consent button,
.cookie-consent-activate-wrapper button {
    margin-right: 20px;
    margin-bottom: 20px;
    padding: 10px 20px;
    border: 2px solid var(--consent-color);
    border-radius: 0;
    color: var(--consent-color);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.7px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.cookie-consent-activate-wrapper button {
    margin-bottom: 0;
}

#cookie-consent button.consent-selection {
    color: var(--consent-color);
    background-color: white;
}

#cookie-consent button.consent-all {
    color: white;
    background-color: var(--consent-color);
}

#cookie-consent button:hover,
.cookie-consent-activate-wrapper button:hover {
    color: white;
    background-color: var(--consent-color);
    transform: scale(1.1);
}

#cookie-consent-overlay a {
    color: var(--consent-color);
    letter-spacing: 0.7px;
    text-decoration: none;
}

#cookie-consent .checkbox-wrapper {
    display: inline-flex;
    margin: 20px 0 30px;
    align-items: center;
}

#cookie-consent .checkbox-wrapper span {
    margin-left: 5px;
}

#cookie-consent .checkbox-switch {
    position: relative;
    flex-shrink: 0;
    width: 30px;
    height: 20px;
    margin: 0;
    border: 0;
    border-radius: 72px;
    appearance: none;
    background-color: #ddd;
}

#cookie-consent .checkbox-switch::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    content: "";
    background-color: white;
    transition: all 100ms ease-out;
}

#cookie-consent .checkbox-switch:checked {
    background-color: var(--consent-checkbox-color);
}

#cookie-consent .checkbox-switch:checked::after {
    left: 13px;
}

#cookie-consent .checkbox-switch:checked:hover {
    background-color: var(--consent-checkbox-color-hover);
}

.cookie-consent-activate-wrapper {
    padding: 40px;
    border: 2px dashed var(--consent-color);
    text-align: center;
    background-color: rgba(255, 255, 255, 0.5);
}

.cookie-consent-activate-wrapper p {
    margin-top: 1.5em;
    font-size: 12px;
}

@media (max-width: 768px) {
    #cookie-consent {
        width: 100%;
    }
}

/* Globale Button-Styles der Seite (rot) ueberschreiben */
#cookie-consent-overlay #cookie-consent button,
.cookie-consent-activate-wrapper button {
    appearance: none;
    font-family: inherit;
    text-transform: none;
    border: 2px solid var(--consent-color);
    border-radius: 0;
    box-shadow: none;
}

#cookie-consent-overlay #cookie-consent button.consent-selection {
    color: var(--consent-color);
    background: white;
}

#cookie-consent-overlay #cookie-consent button.consent-all,
.cookie-consent-activate-wrapper button.consent-all {
    color: white;
    background: var(--consent-color);
}

#cookie-consent-overlay #cookie-consent button:hover,
.cookie-consent-activate-wrapper button:hover {
    color: white;
    background: var(--consent-checkbox-color-hover);
    border-color: var(--consent-checkbox-color-hover);
}

.sedcard_video_container .cookie-consent-activate-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Banner-Ecken im globalen Radius der Seite */
#cookie-consent {
    border-radius: var(--radius, 15px);
}

/* Globaler Checkbox-Stil der Seite (Haken-Icon, 38px, schwarzer Rahmen) darf
   den Schalter nicht beeinflussen - sonst scheint der Haken durch. */
#cookie-consent .checkbox-switch,
#cookie-consent .checkbox-switch:checked {
    width: 30px;
    height: 20px;
    margin: 0;
    border: 0;
    background-image: none;
}

#cookie-consent .checkbox-switch:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Buttons mit dem globalen Radius der Seite */
#cookie-consent-overlay #cookie-consent button,
.cookie-consent-activate-wrapper button {
    border-radius: var(--radius, 15px);
}

/* Blocker: ueberall identisch (Video-Rahmen, Hero, Instagram-Bereich, Startseite) */
.cookie-consent-activate-wrapper {
    box-sizing: border-box;
    border-radius: var(--radius, 15px);
    background-color: var(--col-lightgrey, #f9f9f9);
}

.sedcard_video_container .cookie-consent-activate-wrapper {
    border-radius: var(--radius, 15px);
}
