/* WordPress Playground — Click-to-load-Fassade (inc/playground.php) */
.pg-facade {
    margin: var(--space-l, 32px) 0 var(--space-xl, 48px);
    border: 1px solid color-mix(in srgb, var(--t1-color-text, #111) 12%, transparent);
    border-radius: var(--t1-radius-panel, 16px);
    overflow: hidden;
    background: var(--t1-color-surface, #f6f6f4);
}
.pg-facade__media img,
.pg-facade__poster {
    display: block;
    width: 100%;
    height: auto;
    border-bottom: 1px solid color-mix(in srgb, var(--t1-color-text, #111) 10%, transparent);
}
.pg-facade__body {
    padding: clamp(20px, 3vw, 32px);
}
.pg-facade__kicker {
    margin: 0 0 6px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--t1-color-muted, #666);
}
.pg-facade__title {
    margin: 0 0 8px;
    font-family: var(--t1-font-heading, inherit);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--t1-color-text, #111);
}
.pg-facade__note {
    margin: 0 0 18px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--t1-color-muted, #555);
    max-width: 62ch;
}
.pg-facade__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}
.pg-facade__start {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 12px 22px;
    border-radius: var(--t1-radius-button, 40px);
    background: var(--t1-color-text, #111);
    color: var(--t1-color-bg, #fff);
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.25s var(--t1-spring, ease), opacity 0.2s ease;
}
.pg-facade__start:hover { opacity: 0.88; }
.pg-facade__start:active { transform: scale(0.98); }
.pg-facade__start:focus-visible,
.pg-facade__reload:focus-visible,
.pg-facade__external:focus-visible {
    outline: 2px solid var(--t1-color-accent, #2563eb);
    outline-offset: 3px;
}
.pg-facade__external {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--t1-color-text, #111);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.pg-facade.is-live {
    background: #fff;
}
.pg-facade__bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 16px;
    padding: 10px 16px;
    font-size: 0.82rem;
    color: var(--t1-color-muted, #555);
    border-bottom: 1px solid color-mix(in srgb, var(--t1-color-text, #111) 10%, transparent);
    background: var(--t1-color-surface, #f6f6f4);
}
.pg-facade__bar-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}
.pg-facade__reload {
    appearance: none;
    border: 1px solid color-mix(in srgb, var(--t1-color-text, #111) 20%, transparent);
    background: transparent;
    border-radius: var(--t1-radius-button, 40px);
    padding: 5px 12px;
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--t1-color-text, #111);
}
@media (max-width: 640px) {
    .pg-facade iframe { height: 560px !important; }
}

/* ── Playground-Hero: volle Oberfläche statt Beitragsbild, randlos ─────────────────── */
.pg-hero {
    --pg-hero-height: clamp(600px, 78vh, 960px);
    position: relative;
    width: calc(100vw - var(--pg-scrollbar, 0px));
    max-width: 1800px;
    margin: var(--wp--preset--spacing--48, 48px) 0 0;
    /* Der Hero-Header ist eine zentrierte Flex-Spalte: ein breiteres Kind wird mittig ausgerichtet
       und ragt gleichmäßig über beide Seiten hinaus — ergibt exakt den randlosen Ausbruch. */
    align-self: center;
    flex-shrink: 0;
    text-align: left;
}
.pg-hero__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    padding: 10px clamp(16px, 2vw, 28px);
    border: 1px solid color-mix(in srgb, var(--t1-color-text, #111) 12%, transparent);
    border-bottom: 0;
    border-radius: var(--t1-radius-panel, 16px) var(--t1-radius-panel, 16px) 0 0;
    background: var(--t1-color-surface, #f6f6f4);
    font-size: 0.82rem;
    color: var(--t1-color-muted, #555);
}
.pg-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--t1-color-text, #111);
}
.pg-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
}
.pg-hero.is-live .pg-hero__dot {
    background: #16a34a;
    box-shadow: 0 0 0 4px color-mix(in srgb, #16a34a 18%, transparent);
}
.pg-hero__status { flex: 1 1 320px; min-width: 0; }
.pg-hero__actions {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.pg-hero__reload,
.pg-hero__fullscreen {
    appearance: none;
    border: 1px solid color-mix(in srgb, var(--t1-color-text, #111) 20%, transparent);
    background: transparent;
    border-radius: var(--t1-radius-button, 40px);
    padding: 6px 12px;
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--t1-color-text, #111);
}
.pg-hero__reload:hover,
.pg-hero__fullscreen:hover { background: color-mix(in srgb, var(--t1-color-text, #111) 6%, transparent); }
.pg-hero__external {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--t1-color-text, #111);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.pg-hero__stage {
    position: relative;
    height: var(--pg-hero-height);
    border: 1px solid color-mix(in srgb, var(--t1-color-text, #111) 12%, transparent);
    border-radius: 0 0 var(--t1-radius-panel, 16px) var(--t1-radius-panel, 16px);
    overflow: hidden;
    background: #fff;
}
.pg-hero__stage:fullscreen { border: 0; border-radius: 0; height: 100vh; }
.pg-hero__frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}
.pg-hero__facade {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: var(--t1-color-surface, #f6f6f4);
}
.pg-hero__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    opacity: 0.35;
    filter: saturate(0.6);
}
.pg-hero__facade-body {
    position: relative;
    z-index: 1;
    max-width: 560px;
    padding: 32px;
    text-align: center;
    background: color-mix(in srgb, var(--t1-color-bg, #fff) 92%, transparent);
    border-radius: var(--t1-radius-panel, 16px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}
.pg-hero__facade-title {
    margin: 0 0 8px;
    font-family: var(--t1-font-heading, inherit);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--t1-color-text, #111);
}
.pg-hero__facade-note {
    margin: 0 0 18px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--t1-color-muted, #555);
}
.pg-hero__start {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 12px 24px;
    border-radius: var(--t1-radius-button, 40px);
    background: var(--t1-color-text, #111);
    color: var(--t1-color-bg, #fff);
    font: inherit;
    font-weight: 600;
}
.pg-hero__note {
    margin: 12px auto 0;
    max-width: 50rem;
    padding: 0 clamp(16px, 2vw, 28px);
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--t1-color-muted, #555);
    text-align: center;
}
@media (max-width: 1023px) {
    .pg-hero { --pg-hero-height: clamp(460px, 70vh, 720px); }
    .pg-hero__bar { border-radius: 0; border-left: 0; border-right: 0; }
    .pg-hero__stage { border-radius: 0; border-left: 0; border-right: 0; }
    .pg-hero__status { display: none; }
}

/* ── Vollbild: sichtbare Ecke auf der Fläche, Overlay-Leiste im Vollbild, iOS-Fallback ─────── */
.pg-hero__fs-corner {
    /* unten rechts: oben liegt die Navigation der Demo-Site, unten mittig Playgrounds Dock */
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 0;
    border-radius: var(--t1-radius-button, 40px);
    background: color-mix(in srgb, #111 84%, transparent);
    color: #fff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    transition: transform 0.25s var(--t1-spring, ease), background 0.2s ease, opacity 0.2s ease;
}
.pg-hero__fs-corner:hover { background: #111; transform: translateY(-1px); }
.pg-hero__fs-corner:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pg-hero:not(.is-live) .pg-hero__fs-corner { display: none; }
.pg-hero.is-full .pg-hero__fs-corner { display: none; }

.pg-hero__fs-controls {
    /* unten rechts — Playgrounds Dock sitzt unten mittig, die Demo-Navigation oben */
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--t1-radius-button, 40px);
    background: color-mix(in srgb, #111 88%, transparent);
    color: #fff;
    font-size: 0.82rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    opacity: 0.92;
    transition: opacity 0.2s ease;
}
.pg-hero__fs-controls:hover { opacity: 1; }
.pg-hero__fs-controls[hidden] { display: none; }
.pg-hero__fs-hint { color: #d1d5db; margin-right: 6px; }
.pg-hero__fs-reload,
.pg-hero__fs-exit {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    border-radius: var(--t1-radius-button, 40px);
    padding: 6px 12px;
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
}
.pg-hero__fs-exit { background: #fff; color: #111; border-color: #fff; font-weight: 600; }
.pg-hero__fs-exit kbd {
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 6px;
    background: #e5e7eb;
    color: #111;
    font: inherit;
    font-size: 0.72rem;
}
.pg-hero__fs-reload:focus-visible, .pg-hero__fs-exit:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Fallback ohne Fullscreen-API (iOS Safari): Bühne fixiert über allem */
.pg-hero.is-fixed-full .pg-hero__stage {
    position: fixed;
    inset: 0;
    z-index: 9999;
    height: 100vh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
}
html.pg-no-scroll, html.pg-no-scroll body { overflow: hidden; }
