/* ==========================================================================
   Ausmalfotos Gallery / Beispiele Page
   ========================================================================== */

/* ---------- Beispiele Grid ---------- */
.ausmal-beispiele__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.ausmal-beispiel {
    position: relative;
}

.ausmal-beispiel__label {
    display: inline-block;
    background: var(--wp--preset--color--accent-1, #2e7d32);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* ---------- Slider Comparison ---------- */
.ausmal-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #f5f5f5;
    aspect-ratio: 3 / 2;
    user-select: none;
    -webkit-user-select: none;
}

.ausmal-slider__before,
.ausmal-slider__after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ausmal-slider__after {
    z-index: 1;
    background: #fff;
}

.ausmal-slider__before {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.ausmal-slider__before img,
.ausmal-slider__after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Handle */
.ausmal-slider__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transform: translateX(-50%);
}

.ausmal-slider__handle-line {
    width: 3px;
    flex: 1;
    background: #fff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.ausmal-slider__handle-circle {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-shrink: 0;
}

.ausmal-slider__handle-circle svg {
    width: 14px;
    height: 14px;
    color: var(--wp--preset--color--accent-1, #2e7d32);
}

/* Range input (invisible, covers entire slider) */
.ausmal-slider__range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    opacity: 0;
    cursor: col-resize;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

/* Tags */
.ausmal-slider__tag {
    position: absolute;
    bottom: 12px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
}

.ausmal-slider__tag--foto {
    left: 12px;
}

.ausmal-slider__tag--ausmalbild {
    right: 12px;
}

/* ---------- How it works ---------- */
.ausmal-wie__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.ausmal-wie__step {
    text-align: center;
}

.ausmal-wie__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--wp--preset--color--accent-1, #2e7d32);
    color: #fff;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.ausmal-wie__step h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--wp--preset--color--contrast, #1a1a1a);
    margin-bottom: 8px;
}

.ausmal-wie__step p {
    font-size: 15px;
    color: var(--wp--preset--color--accent-4, #666);
    line-height: 1.7;
}

/* ---------- Gallery Hero variant ---------- */
.ausmal-hero--gallery {
    padding: 80px 24px 60px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .ausmal-beispiele__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ausmal-wie__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ausmal-hero--gallery {
        padding: 60px 20px 40px;
    }
}
