/* ---------------------------------------------------------
   GLOBAL: Einheitliche Schrift für alle UI-Elemente im Overlay
--------------------------------------------------------- */
.ytb-overlay,
.ytb-overlay * {
    font-family: 'MuseoSans-500', Helvetica, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ---------------------------------------------------------
   WRAPPER: Container für Preview + Overlay
--------------------------------------------------------- */
.ytb-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}


/* ---------------------------------------------------------
   PREVIEW-IMAGE: Lokales Fallback-Bild
--------------------------------------------------------- */
.ytb-preview {
    width: 100%;
    height: auto;
    display: block;
}


/* ---------------------------------------------------------
   OVERLAY: DSGVO-Hinweis + Button + Checkbox
--------------------------------------------------------- */
.ytb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}


/* ---------------------------------------------------------
   TEXT: DSGVO-Hinweis
--------------------------------------------------------- */
.ytb-text {
    color: #fff;
    font-size: 15px !important;
    line-height: 1.4em;
    font-weight: 500 !important;
    max-width: 80%;
    margin-bottom: 2em;
}

.ytb-privacy-link {
    color: #fff !important;
    font-weight: 500 !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.ytb-privacy-link:hover {
    color: #fff !important;
    text-decoration: none;
}


/* ---------------------------------------------------------
   BUTTON: "Video laden"
--------------------------------------------------------- */
.ytb-load-btn {
    background: #fff;
    color: #333;
    padding: 14px 24px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500 !important;
    cursor: pointer;
    border: none;
    margin-bottom: 1.8em;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    letter-spacing: 0 !important;
}

/* Button Hover Effekt */
.ytb-load-btn:hover {
    background: #ED6A50;
    color: #fff;
}


/* ---------------------------------------------------------
   CHECKBOX: "YouTube immer entsperren"
--------------------------------------------------------- */
.ytb-optin-checkbox {
    width: 16px;
    height: 16px;
    margin: -2px 0 0 0;
    transform: translateY(0);
    cursor: pointer;
}

.ytb-optin {
    color: #fff;
    font-size: 15px !important;
    line-height: 1.4em;
    font-weight: 500 !important;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 0 !important;
}

/* Checkbox spacing (Fallback für ältere Browser) */
.ytb-optin input[type="checkbox"] {
    margin-right: 6px;
}


/* ---------------------------------------------------------
   MOBILE VERSION (unter 768px)
--------------------------------------------------------- */
@media (max-width: 768px) {

    /* Text etwas kleiner */
    .ytb-text {
        font-size: 14px !important;
        margin-bottom: 1.2em;
    }

    /* Button kompakter */
    .ytb-load-btn {
        padding: 10px 20px;
        font-size: 14px !important;
        margin-bottom: 1.2em;
    }

    /* Checkbox + Label etwas kleiner */
    .ytb-optin {
        font-size: 14px !important;
        gap: 4px;
        margin-top: 2px;
    }

    /* Checkbox leicht verkleinern */
    .ytb-optin-checkbox {
        width: 14px;
        height: 14px;
    }
}
