/**
 * Cookie-/Consent-Banner + Video-Embed-Platzhalter.
 *
 * Banner: unten angedockte Karte (kein Vollbild-Modal), „Ablehnen" und
 * „Alle akzeptieren" gleich prominent (DSGVO). Embed-Platzhalter ersetzt
 * geblockte YouTube/Vimeo-iframes bis zur Einwilligung.
 */

/* ── Banner ───────────────────────────────────── */

.gfu-consent {
    position: fixed;
    inset: auto 0 0 0;
    z-index: var(--z-modal);
    display: flex;
    justify-content: center;
    padding: var(--space-4);
    pointer-events: none;
}

.gfu-consent[hidden] {
    display: none;
}

.gfu-consent__panel {
    pointer-events: auto;
    width: 100%;
    max-width: 720px;
    background-color: var(--color-white);
    border: 1px solid var(--color-dunkelbeige);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-deep-navy);
    padding: var(--space-6);
}

.gfu-consent__title {
    margin: 0 0 var(--space-2);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
    color: var(--color-text);
}

.gfu-consent__text {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: var(--lh-relaxed);
    color: var(--color-text);
}

.gfu-consent__link {
    color: var(--color-navy);
    text-decoration: underline;
}

/* ── Optionen (Einstellungen) ─────────────────── */

.gfu-consent__options {
    margin-top: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.gfu-consent__options[hidden] {
    display: none;
}

.gfu-consent__option {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3);
    background-color: var(--color-beige);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.gfu-consent__option--locked {
    cursor: default;
    opacity: 0.85;
}

.gfu-consent__option input {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--color-navy);
}

.gfu-consent__option-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: var(--text-sm);
    color: var(--color-text);
}

.gfu-consent__option-desc {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ── Aktionen ─────────────────────────────────── */

.gfu-consent__actions {
    margin-top: var(--space-5);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: flex-end;
    align-items: center;
}

.gfu-consent__btn[hidden] {
    display: none;
}

/* „Einstellungen"/„Speichern" links abgesetzt, Entscheidungs-Buttons rechts. */
.gfu-consent__btn[data-consent-action="settings"],
.gfu-consent__btn[data-consent-action="save"] {
    margin-right: auto;
}

@media (max-width: 600px) {
    .gfu-consent__actions {
        justify-content: stretch;
    }

    .gfu-consent__btn {
        flex: 1 1 auto;
    }

    .gfu-consent__btn[data-consent-action="settings"],
    .gfu-consent__btn[data-consent-action="save"] {
        margin-right: 0;
        flex-basis: 100%;
    }
}

/* ── Video-Embed-Platzhalter ──────────────────── */

.gfu-embed {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 180px;
    background-color: var(--color-navy);
    color: var(--color-text-on-navy);
}

/* Hintergrund-Embeds (Section): unsichtbarer Platzhalter — bis zur
 * Einwilligung greift der normale Section-Hintergrund. */
.gfu-embed[data-embed-bg] {
    min-height: 0;
    background: transparent;
}

.gfu-embed__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.gfu-embed__overlay {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    height: 100%;
    min-height: inherit;
    padding: var(--space-6);
    text-align: center;
}

.gfu-embed__notice {
    margin: 0;
    max-width: 36ch;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: var(--lh-relaxed);
    color: var(--color-text-on-navy);
}

.gfu-embed__remember {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-text-on-navy-soft, var(--color-text-on-navy));
    cursor: pointer;
}

.gfu-embed__remember input {
    accent-color: var(--color-white);
}

.gfu-embed__legal {
    margin: 0;
    font-size: var(--text-xs);
}

.gfu-embed__legal a {
    color: var(--color-text-on-navy);
    text-decoration: underline;
}

/* ── Footer-Re-Open-Link ──────────────────────── */

.site-footer__cookie-link {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.site-footer__cookie-link:hover,
.site-footer__cookie-link:focus-visible {
    opacity: 0.75;
}
