/* Real-work carousel for the Gartenbrunnen service page. */
:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork {
    --st-handwork-blue: #152b5b;
    --st-handwork-blue-soft: #25569f;
    --st-handwork-orange: #f17626;
    align-self: stretch;
    background: var(--st-handwork-blue);
    border-top: 6px solid var(--st-handwork-orange);
    box-sizing: border-box;
    color: #fff;
    margin-block: clamp(56px, 6vw, 88px);
    overflow: hidden;
    padding: clamp(30px, 4.5vw, 64px) 0 clamp(34px, 5vw, 72px);
    position: relative;
    width: 100%;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork::before {
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 44px);
    content: "";
    height: 8px;
    left: 0;
    opacity: 0.55;
    position: absolute;
    right: 0;
    top: 0;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__header,
:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__controls,
:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__rail {
    margin-inline: clamp(20px, 4.5vw, 64px);
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__header {
    display: block;
    margin-bottom: 34px;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__eyebrow {
    color: var(--st-handwork-orange);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork h2 {
    color: #fff;
    font-family: "Kanit", sans-serif;
    font-size: clamp(34px, 3.25vw, 52px);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.04;
    margin: 0;
    max-width: 900px;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__intro {
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(17px, 1.2vw, 20px);
    line-height: 1.55;
    margin: 20px 0 0;
    max-width: 780px;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__intro strong {
    color: #fff;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__viewport {
    overflow: hidden;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__rail {
    cursor: grab;
    display: flex;
    gap: clamp(14px, 1.7vw, 24px);
    list-style: none;
    margin-bottom: 0;
    margin-top: 0;
    overflow-x: auto;
    padding: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: none;
    user-select: none;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__rail::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__rail.is-dragging {
    cursor: grabbing;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__item {
    flex: 0 0 clamp(248px, 27vw, 370px);
    margin: 0;
    scroll-snap-align: start;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__open {
    background: transparent;
    border: 0;
    color: #fff;
    cursor: grab;
    display: block;
    font: inherit;
    padding: 0;
    text-align: left;
    width: 100%;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__rail.is-dragging .st-handwork__open {
    cursor: grabbing;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__media {
    aspect-ratio: 3 / 4;
    background: #0d1d3d;
    display: block;
    overflow: hidden;
    position: relative;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__media::after {
    background: linear-gradient(180deg, transparent 58%, rgba(5, 17, 39, 0.58));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__media img {
    display: block;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__open:hover .st-handwork__media img,
:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__open:focus-visible .st-handwork__media img {
    transform: scale(1.035);
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__open:focus-visible {
    outline: 3px solid var(--st-handwork-orange);
    outline-offset: 4px;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__badge,
:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__play {
    align-items: center;
    backdrop-filter: blur(8px);
    background: rgba(10, 31, 68, 0.78);
    display: inline-flex;
    position: absolute;
    z-index: 2;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__badge {
    display: none;
    left: 14px;
    min-height: 32px;
    padding: 6px 10px;
    top: 14px;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__badge span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__play {
    background: var(--st-handwork-orange);
    border-radius: 50%;
    bottom: 16px;
    height: 58px;
    justify-content: center;
    right: 16px;
    width: 58px;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__play::before {
    border-bottom: 8px solid transparent;
    border-left: 13px solid #fff;
    border-top: 8px solid transparent;
    content: "";
    margin-left: 4px;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__caption {
    display: none;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__number {
    color: var(--st-handwork-orange);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__caption strong {
    color: #fff;
    font-size: clamp(16px, 1.2vw, 19px);
    line-height: 1.25;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__controls {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: auto minmax(100px, 1fr) auto;
    margin-top: 18px;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__nav-group {
    display: flex;
    gap: 8px;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__nav {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 24px;
    height: 50px;
    justify-content: center;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
    width: 50px;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__nav:hover,
:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__nav:focus-visible {
    background: var(--st-handwork-orange);
    border-color: var(--st-handwork-orange);
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__nav:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__nav:disabled {
    cursor: default;
    opacity: 0.32;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__progress {
    background: rgba(255, 255, 255, 0.2);
    height: 2px;
    overflow: hidden;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__progress-bar {
    background: var(--st-handwork-orange);
    display: block;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 220ms ease;
}

:is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__count {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    min-width: 74px;
    text-align: right;
}

body.st-handwork-lightbox-open {
    overflow: hidden;
}

.st-handwork-lightbox[hidden] {
    display: none !important;
}

.st-handwork-lightbox {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding: clamp(12px, 3vw, 44px);
    position: fixed;
    transition: opacity 220ms ease;
    z-index: 100000;
}

.st-handwork-lightbox.is-open {
    opacity: 1;
}

.st-handwork-lightbox__backdrop {
    background: rgba(5, 14, 32, 0.95);
    inset: 0;
    position: absolute;
}

.st-handwork-lightbox__dialog {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    grid-template-rows: minmax(0, 1fr) auto;
    max-height: calc(100vh - 24px);
    max-width: 980px;
    position: relative;
    width: 100%;
}

.st-handwork-lightbox__stage {
    align-items: center;
    display: flex;
    grid-column: 2;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}

.st-handwork-lightbox__stage [hidden] {
    display: none !important;
}

.st-handwork-lightbox__stage img,
.st-handwork-lightbox__stage video {
    background: #09172f;
    display: block;
    max-height: calc(100vh - 24px);
    max-width: 100%;
    object-fit: contain;
}

.st-handwork-lightbox__stage video {
    height: min(78vh, 900px);
    width: auto;
}

.st-handwork-lightbox__info {
    align-items: start;
    background: #fff;
    color: #152b5b;
    display: none;
    gap: 10px 24px;
    grid-column: 2;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 18px 20px;
}

.st-handwork-lightbox__title {
    color: #152b5b;
    font-size: clamp(18px, 1.5vw, 23px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.st-handwork-lightbox__caption {
    display: none;
}

.st-handwork-lightbox__counter {
    color: #f17626;
    font-size: 13px;
    font-weight: 800;
    grid-column: 2;
    grid-row: 1;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.st-handwork-lightbox__close,
.st-handwork-lightbox__nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 26px;
    justify-content: center;
}

.st-handwork-lightbox__close:hover,
.st-handwork-lightbox__close:focus-visible,
.st-handwork-lightbox__nav:hover,
.st-handwork-lightbox__nav:focus-visible {
    background: #f17626;
    border-color: #f17626;
}

.st-handwork-lightbox__close:focus-visible,
.st-handwork-lightbox__nav:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.st-handwork-lightbox__close {
    height: 50px;
    position: absolute;
    right: 8px;
    top: 8px;
    width: 50px;
    z-index: 3;
}

.st-handwork-lightbox__nav {
    align-self: center;
    height: 56px;
    position: relative;
    width: 56px;
    z-index: 1;
}

.st-handwork-lightbox__nav--prev {
    grid-column: 1;
    grid-row: 1;
}

.st-handwork-lightbox__nav--next {
    grid-column: 3;
    grid-row: 1;
}

@media (max-width: 767px) {
    :is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__header {
        align-items: start;
        grid-template-columns: 1fr;
    }

    :is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__item {
        flex-basis: min(78vw, 330px);
    }

    :is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__controls {
        grid-template-columns: auto minmax(60px, 1fr) auto;
    }

    .st-handwork-lightbox {
        padding: 64px 10px 10px;
    }

    .st-handwork-lightbox__dialog {
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        max-height: calc(100vh - 74px);
    }

    .st-handwork-lightbox__nav {
        background: rgba(5, 14, 32, 0.76);
        height: 46px;
        width: 46px;
    }

    .st-handwork-lightbox__stage img,
    .st-handwork-lightbox__stage video {
        max-height: calc(100vh - 84px);
    }

    .st-handwork-lightbox__stage video {
        height: auto;
        width: 100%;
    }

    .st-handwork-lightbox__info {
        gap: 7px 14px;
        padding: 14px;
    }

    .st-handwork-lightbox__caption {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    :is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork {
        margin-block: 44px;
    }

    :is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__header,
    :is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__controls,
    :is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__rail {
        margin-inline: 20px;
    }

    :is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork h2 {
        font-size: 32px;
    }

    :is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__count {
        min-width: 62px;
    }

    .st-handwork-lightbox__dialog {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
    }

    .st-handwork-lightbox__nav {
        height: 42px;
        width: 42px;
    }

    .st-handwork-lightbox__nav--prev {
        transform: translateX(4px);
    }

    .st-handwork-lightbox__nav--next {
        transform: translateX(-4px);
    }

    .st-handwork-lightbox__counter {
        align-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    :is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__media img,
    :is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__progress-bar,
    .st-handwork-lightbox {
        transition: none;
    }

    :is(body.st-service-gartenbrunnen, body.st-service-geothermie) .st-handwork__rail {
        scroll-behavior: auto;
    }
}

