/*
 * Embed-Consent — DSGVO Click-to-Load Placeholder fuer Video/Map
 *
 * Wird vom Renderer (cms/Services/ContentRenderer.php, qr_solutions/Views/blocks/
 * public/{video,map}.php) ausgegeben. JS-Logik in uploads/js/embed-consent.js.
 *
 * Aspect-Ratio per padding-bottom-Hack (16:9 default, 4:3 ueber data-aspect).
 * Container ist position:relative; Cover-Bild und Overlay liegen absolute innen.
 */

.embed-consent {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 default */
    overflow: hidden;
    border-radius: 8px;
    background: #1f2937;
    color: #fff;
    cursor: pointer;
}

.embed-consent[data-aspect="4:3"] {
    padding-bottom: 75%;
}

.embed-consent[data-aspect="map"] {
    padding-bottom: 56.25%;
    min-height: 240px;
}

.embed-consent-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.embed-consent:hover .embed-consent-cover {
    opacity: 0.7;
}

.embed-consent-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.65) 100%);
}

.embed-consent-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.embed-consent-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
}

.embed-consent-text {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    line-height: 1.45;
    max-width: 32rem;
    opacity: 0.9;
}

.embed-consent-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    background: #fff;
    border: 0;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.embed-consent-button:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

.embed-consent-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.embed-consent--loaded {
    cursor: default;
    background: transparent;
}

.embed-consent--loaded:hover .embed-consent-cover {
    opacity: 0;
}
