/* ==========================================================================
   GP 21.10.2026 (Zentrale) — Consent-Platzhalter vor Videos, www
   Grossthema 16, Schritt 4 — Nachbesserung nach Markos Sichtprüfung.

   EIGENE Datei (nicht style.css), eingebunden in functions.php als
   'child-consent-placeholder' mit Abhaengigkeit ['child'] und filemtime-
   Version. Grund: WP Fastest Cache haelt in
   wp-content/cache/wpfc-minified/<hash>/*.css eine ALTE Kopie von style.css,
   die NACH der echten style.css geladen wird und deren
   .wbn-iframe-consent-Regeln (hellgrau #f8f8f8, padding 1rem, kein Rahmen)
   wieder durchdrueckt. Darum hier:
     - doppelte Klasse .wbn-iframe-consent.wbn-iframe-consent--video
       (Spezifitaet 0,2,0 schlaegt .wbn-iframe-consent 0,1,0 unabhaengig
       von der Ladereihenfolge)
     - !important genau auf den Eigenschaften, die die Alt-Kopie bzw.
       Flatsome global setzt (background/border/padding/margin/font/button).
   Werte 1:1 aus dem Shop-Platzhalter vom 17.10.2026
   (_Dokumente/Consent-Platzhalter/deploy/twoclicksolution_2026-10-17_APPEND.less),
   Groessen nach Markos Vorgabe (Kreis ~110 px, Ueberschrift ~28 px,
   Karte ~430 px hoch, volle Textbreite).

   REINE OPTIK. Die Consent-Logik (consentGiven / updateConsent /
   unblockIframes / Cookie iframeConsent / CookieScript) ist unberuehrt.
   KEIN Thumbnail, KEIN Autoplay: vor der Freigabe geht kein Request an
   YouTube/Google; der Play-Kreis ist ein Inline-SVG aus dem eigenen Markup.
   ========================================================================== */

/* (1) Der geblockte Rahmen darf keine Leerflaeche reservieren. */
iframe.wbn-iframe-consent-blocked,
embed.wbn-iframe-consent-blocked,
object.wbn-iframe-consent-blocked {
    max-height: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
    border: 0 !important;
}

/* (2) Die Karte — Optik des Shop-Platzhalters, volle Inhaltsbreite,
       natuerliche Hoehe (~430 px). KEIN 16:9-Spacer, keine Mindesthoehe. */
.wbn-iframe-consent.wbn-iframe-consent--video {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    margin: 16px 0 24px !important;
    padding: 40px 24px !important;
    background-color: #f4f7ef !important;
    background-image: none !important;
    border: 2px solid #6a9a3c !important;
    border-radius: 6px !important;
    color: #333 !important;
    font-size: 15px !important;
    text-align: center !important;
    cursor: pointer;
}

/* (3) Play-Kreis — Inline-SVG, kein externes Bild.
       Das SVG traegt zusaetzlich width/height/fill als Attribut (aus dem JS),
       damit es selbst ohne diese CSS niemals riesig wird. */
.wbn-iframe-consent.wbn-iframe-consent--video .wbn-consent-play {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 110px !important;
    height: 110px !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background-color: #7fa833 !important;
    box-shadow: 0 0 0 10px rgba(127, 168, 51, .18);
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease;
}

.wbn-iframe-consent.wbn-iframe-consent--video .wbn-consent-play svg {
    display: block !important;
    flex: 0 0 auto;
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    margin: 0 0 0 5px !important;   /* optischer Ausgleich des Dreiecks */
    fill: #ffffff !important;
}

/* (4) Ueberschrift */
.wbn-iframe-consent.wbn-iframe-consent--video .wbn-consent-title {
    display: block !important;
    max-width: 100%;
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: #4d7a1f !important;
    font-family: inherit;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0;
    text-transform: none !important;
}

/* (5) Hinweissatz — volle Textbreite */
.wbn-iframe-consent.wbn-iframe-consent--video .wbn-consent-hint {
    max-width: 820px;
    margin: 0 0 22px !important;
    padding: 0 !important;
    color: #5a5a5a !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    text-transform: none !important;
    overflow-wrap: anywhere;
}

/* (6) EIN Button: gruene Pille, Versalien (Flatsome setzt Buttons global,
       darum !important auf allem Sichtbaren). */
.wbn-iframe-consent.wbn-iframe-consent--video .wbn-consent-btn {
    display: inline-block !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 14px 32px 13px !important;
    border: 0 !important;
    border-radius: 24px !important;
    background-color: #7fa833 !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-family: "Open Sans", Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: .04em;
    text-align: center !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .15s ease;
}

.wbn-iframe-consent.wbn-iframe-consent--video .wbn-consent-btn:hover,
.wbn-iframe-consent.wbn-iframe-consent--video .wbn-consent-btn:focus {
    background-color: #4d7a1f !important;
    color: #ffffff !important;
}

.wbn-iframe-consent.wbn-iframe-consent--video:hover .wbn-consent-play,
.wbn-iframe-consent.wbn-iframe-consent--video:focus-within .wbn-consent-play {
    background-color: #4d7a1f !important;
    box-shadow: 0 0 0 13px rgba(127, 168, 51, .26);
}

/* (7) Mobil kompakter */
@media only screen and (max-width: 48em) {

    .wbn-iframe-consent.wbn-iframe-consent--video {
        padding: 26px 16px !important;
        font-size: 13px !important;
    }

    .wbn-iframe-consent.wbn-iframe-consent--video .wbn-consent-play {
        width: 72px !important;
        height: 72px !important;
        margin: 0 0 14px !important;
        box-shadow: 0 0 0 7px rgba(127, 168, 51, .18);
    }

    .wbn-iframe-consent.wbn-iframe-consent--video .wbn-consent-play svg {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        margin-left: 3px !important;
    }

    .wbn-iframe-consent.wbn-iframe-consent--video .wbn-consent-title {
        font-size: 20px !important;
    }

    .wbn-iframe-consent.wbn-iframe-consent--video .wbn-consent-hint {
        margin: 0 0 16px !important;
        font-size: 13px !important;
    }

    .wbn-iframe-consent.wbn-iframe-consent--video .wbn-consent-btn {
        padding: 12px 22px 11px !important;
        font-size: 13px !important;
    }
}
