/**
 * DasSchmecktUns.de – Styling für DSGVO-konforme Video-Einbettung (Zwei-Klick)
 *
 * @since 2026-04-23
 */

.video-embed-card {
    /* nutzt bestehende .card – hier nur kleine Overrides */
}

.video-consent-shim {
    width: 100%;
    position: relative;
}

.video-consent-placeholder {
    position: relative;
    width: 100%;
    /* 16:9 durch aspect-ratio; padding-bottom-fallback für alte Browser */
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg,
        #3d0f24 0%,
        #591637 45%,
        #7a2249 100%);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #fff;
    text-align: center;
    box-sizing: border-box;
}

/* Fallback für Browser ohne aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
    .video-consent-placeholder {
        height: 0;
        padding-bottom: 56.25%;
    }
}

.video-consent-play {
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
    pointer-events: none;
    line-height: 0;
}

.video-consent-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    max-width: 640px;
}

.video-consent-info {
    max-width: 640px;
    margin: 6px 0 14px;
}

.video-consent-info strong {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
}

.video-consent-info p {
    font-size: 13px;
    line-height: 1.55;
    margin: 6px 0;
    color: rgba(255, 255, 255, 0.92);
}

.video-consent-info p.video-consent-legal {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
}

.video-consent-info a {
    color: #ffd9c4;
    text-decoration: underline;
}

.video-consent-info a:hover,
.video-consent-info a:focus {
    color: #fff;
}

.video-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
}

.video-consent-actions .btn--primary.video-consent-load {
    background: #fff;
    color: #591637;
    border: none;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: transform 0.15s ease, background-color 0.2s ease;
}

.video-consent-actions .btn--primary.video-consent-load:hover,
.video-consent-actions .btn--primary.video-consent-load:focus {
    background: #ffe8d4;
    transform: translateY(-1px);
    outline: none;
}

.video-consent-actions .btn--primary.video-consent-load:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.video-consent-remember {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    user-select: none;
}

.video-consent-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #fff;
}

/* Loaded State – iframe */
.video-embed-iframe-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

@supports not (aspect-ratio: 16 / 9) {
    .video-embed-iframe-wrapper {
        height: 0;
        padding-bottom: 56.25%;
    }
}

.video-embed-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
    .video-consent-placeholder {
        padding: 16px;
    }
    .video-consent-play svg {
        width: 56px;
        height: 56px;
    }
    .video-consent-info p {
        font-size: 12px;
    }
    .video-consent-info p.video-consent-legal {
        font-size: 11px;
    }
    .video-consent-actions {
        flex-direction: column;
        gap: 10px;
    }
}

/* =========================================================================
 * Tile-Variante (in Community-Video-Galerie)
 * ========================================================================= */

.video-consent-tile {
    width: 100%;
}

.video-consent-placeholder--tile {
    /* Überlagerung für bessere Lesbarkeit bei Thumbnail-Hintergrund */
    position: relative;
    padding: 14px;
}

.video-consent-placeholder--tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}

.video-consent-tile-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
}

.video-consent-tile-badge {
    position: absolute;
    top: 0;
    right: 0;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    letter-spacing: 0.3px;
}

.video-consent-tile-btn {
    font-size: 13px !important;
    padding: 8px 16px !important;
}

.video-consent-tile-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    margin: 0;
    max-width: 95%;
}

.video-consent-tile-note a {
    color: #ffd9c4;
    text-decoration: underline;
}
