/* Interaktive Sauberkeits-Demo */

/* Handy: Mit dem Finger seitlich wischen reinigt das Bild; senkrechtes Wischen scrollt weiter die Seite. */
.pf-scene {
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.pf-scene .pf-scene-image {
    -webkit-user-drag: none;
    user-drag: none;
}

.pf-scene .pf-dirt-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Statt dauerndem Funkeln: Sterne direkt am Wischpunkt. */
.pf-gallery .pf-sparkles {
    display: none;
}

.pf-wipe-star {
    position: absolute;
    z-index: 4;
    width: var(--size);
    height: var(--size);
    margin-left: calc(var(--size) / -2);
    margin-top: calc(var(--size) / -2);
    pointer-events: none;
    background: #fff;
    filter: drop-shadow(0 0 4px rgba(255,255,230,.7));
    clip-path: polygon(
        50% 0%, 61% 37%, 100% 50%, 61% 62%,
        50% 100%, 38% 62%, 0% 50%, 38% 37%
    );
}

.pf-wipe-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
    margin-top: 13px;
    border-top: 1px solid #e8e8e0;
}

.pf-wipe-hint {
    margin: 0;
    max-width: 500px;
    color: #646e72;
    font-size: .79rem;
    line-height: 1.6;
}

.pf-wipe-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pf-wipe-actions button {
    padding: 9px 13px;
    border: 1px solid #d9dfe0;
    border-radius: 100px;
    color: #223a47;
    background: white;
    font-size: .75rem;
    font-weight: 500;
    cursor: pointer;
}

.pf-wipe-actions button:hover {
    background: #edf5f7;
}

.pf-wipe-actions button:first-child {
    border-color: #17374a;
    color: white;
    background: #17374a;
}

.pf-wipe-actions button:first-child:hover {
    background: #27566f;
}

/* Die Wischschicht bleibt bei aktivem Effekt mit dem Bild ausgerichtet. */
.pf-gallery .pf-scene .pf-scene-image {
    transform: scale(1.065);
}

html.pf-effects-paused .pf-wipe-star {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .pf-wipe-star {
        display: none;
    }
}