.treatments-page {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    overflow: hidden;
    background: rgb(248 245 242);
}

.treatments-hero {
    position: relative;
    display: grid;
    min-height: 370px;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgb(17 12 11 / .94) 0%, rgb(30 18 15 / .78) 52%, rgb(30 18 15 / .38) 100%),
        url("../assets/images/hintergrund-blume-4.png") 78% 47% / cover no-repeat;
    color: rgb(255 255 255);
}

.treatments-hero::after {
    position: absolute;
    inset: 0 0 0 auto;
    width: 56%;
    background: url("../assets/images/hintergrund-blume-3.png") center / cover no-repeat;
    content: "";
    opacity: .16;
    mix-blend-mode: screen;
}

.treatments-hero-content {
    position: relative;
    z-index: 1;
}

.treatments-hero .section-kicker {
    color: var(--color-primary-light);
}

.treatments-hero h1 {
    max-width: 760px;
    font-size: clamp(42px, 5.2vw, 72px);
}

.treatments-hero .script-name {
    margin: 0;
    line-height: 0;
    vertical-align: baseline;
}

.treatment {
    position: relative;
    isolation: isolate;
    scroll-margin-top: 86px;
}

.treatment::after {
    position: absolute;
    z-index: -1;
    right: -145px;
    bottom: -170px;
    width: 470px;
    height: 470px;
    background: url("../assets/images/hintergrund-blume-1.png") center / contain no-repeat;
    content: "";
    opacity: .13;
    pointer-events: none;
}

.treatment-dark::after {
    right: auto;
    bottom: -190px;
    left: -155px;
    background-image: url("../assets/images/hintergrund-blume-2.png");
    opacity: .08;
}

.treatment-light {
    background: rgb(248 245 242);
    color: var(--color-text-dark);
}

.treatment-dark {
    background:
        linear-gradient(rgb(13 12 13 / .94), rgb(13 12 13 / .94)),
        url("../assets/images/hintergrund-blume-2.png") center / cover;
    color: rgb(255 255 255);
}

.treatment-grid {
    display: grid;
    width: min(1280px, calc(100% - 48px));
    min-height: 420px;
    grid-template-columns: minmax(300px, .8fr) minmax(0, 1.55fr);
    gap: clamp(38px, 4vw, 64px);
    align-items: center;
    padding-block: 48px;
}

.treatment-grid-reverse {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr);
}

.treatment-grid-reverse .treatment-image {
    grid-column: 2;
}

.treatment-grid-reverse .treatment-content {
    grid-row: 1;
    grid-column: 1;
}

.treatment-image {
    height: 330px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}

.treatment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.treatment-grid-reverse .treatment-image {
    height: 370px;
    margin-block: -48px;
    box-shadow: none;
}

.treatment-grid-reverse .treatment-image img {
    object-position: center;
}

.treatment-number {
    margin-bottom: 2px;
    color: var(--color-primary);
    font-family: "Playfair Display", serif;
    font-size: 18px;
}

.treatment-content h2 {
    margin-bottom: 12px;
    font-size: clamp(31px, 3vw, 45px);
}

.treatment-intro {
    max-width: 570px;
    margin-bottom: 22px;
    color: var(--color-text-medium);
    line-height: 1.55;
}

.treatment-dark .treatment-intro {
    color: rgb(221 214 210);
}

.price-list {
    display: grid;
    gap: 9px;
    list-style: none;
}

.price-list-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 42px;
}

.treatment-detail,
.price-item {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: baseline;
    padding: 3px 5px;
    border: 0;
    border-radius: 5px;
    background: rgb(0 0 0 / 0);
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    text-align: left;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease;
}

.treatment-detail:hover,
.price-item:hover {
    background: rgb(187 133 94 / .1);
    color: var(--color-primary-dark);
}

.treatment-dark .treatment-detail:hover,
.treatment-dark .price-item:hover {
    background: rgb(255 255 255 / .08);
    color: var(--color-primary-light);
}

.treatment-detail:focus-visible,
.price-item:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.treatment-detail span,
.price-item span {
    position: relative;
    min-width: 0;
    padding-left: 21px;
    overflow-wrap: anywhere;
}

.treatment-detail span::before,
.price-item span::before {
    position: absolute;
    top: .17em;
    left: 0;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    color: var(--color-primary);
    content: "✓";
    font-size: 16px;
    line-height: 1;
}

.price-list strong {
    font-weight: 400;
    white-space: nowrap;
}

.treatment-dialog {
    position: fixed;
    inset: 0;
    width: min(650px, calc(100% - 32px));
    max-height: min(760px, calc(100dvh - 32px));
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: rgb(248 245 242);
    color: var(--color-text-dark);
    box-shadow: 0 24px 70px rgb(0 0 0 / .32);
}

.treatment-dialog[open] {
    animation: treatment-dialog-open .24s cubic-bezier(.22, 1, .36, 1) both;
    will-change: transform, opacity;
}

.treatment-dialog::backdrop {
    background: rgb(13 12 13 / .72);
}

.treatment-dialog[open]::backdrop {
    animation: treatment-backdrop-open .2s ease-out both;
}

@keyframes treatment-dialog-open {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes treatment-backdrop-open {
    from {
        background: rgb(13 12 13 / 0);
    }

    to {
        background: rgb(13 12 13 / .72);
    }
}

@media (prefers-reduced-motion: reduce) {
    .treatment-dialog[open],
    .treatment-dialog[open]::backdrop {
        animation: none;
    }
}

.treatment-dialog-inner {
    position: relative;
    max-height: min(760px, calc(100dvh - 32px));
    padding: clamp(30px, 6vw, 54px);
    overflow-y: auto;
}

.treatment-dialog-close {
    position: absolute;
    top: 16px;
    right: 18px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(0 0 0 / 0);
    color: var(--color-text-dark);
    cursor: pointer;
    font-size: 31px;
    line-height: 1;
}

.treatment-dialog-close:hover,
.treatment-dialog-close:focus-visible {
    background: rgb(187 133 94 / .14);
    color: var(--color-primary-dark);
}

.treatment-dialog .section-kicker {
    margin-bottom: 7px;
    color: var(--color-primary-dark);
}

.treatment-dialog h2 {
    max-width: calc(100% - 36px);
    margin-bottom: 16px;
    font-size: clamp(30px, 5vw, 43px);
}

.treatment-dialog-description {
    margin-bottom: 22px;
    color: var(--color-text-medium);
    line-height: 1.65;
}

.treatment-dialog-list {
    display: grid;
    gap: 10px;
    margin-bottom: 25px;
    list-style: none;
}

.treatment-dialog-list li {
    position: relative;
    padding-left: 27px;
    line-height: 1.5;
}

.treatment-dialog-list li::before {
    position: absolute;
    top: .08em;
    left: 0;
    color: var(--color-primary);
    content: "✓";
    font-size: 19px;
}

.treatment-dialog-price {
    margin-bottom: 25px;
    color: var(--color-primary-dark);
    font-family: "Playfair Display", serif;
    font-size: 23px;
    font-weight: 700;
}

.appointment-notice {
    padding: clamp(52px, 7vw, 82px) 0;
    border-top: 1px solid rgb(216 200 192);
    background: rgb(243 239 236);
    text-align: center;
}

.appointment-notice-inner {
    max-width: 780px;
}

.appointment-notice h2 {
    margin-bottom: 18px;
    font-size: clamp(30px, 4vw, 42px);
}

.appointment-notice-inner > p:last-child {
    color: var(--color-text-medium);
    font-size: 17px;
    line-height: 1.75;
}

@media (max-width: 1200px) {
    .price-list-two {
        grid-template-columns: 1fr;
    }
}

.price-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 46px;
}

.price-groups h3 {
    margin-bottom: 12px;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.treatment-button {
    min-width: 190px;
    margin-top: 28px;
}

@media (max-width: 900px) {

    .treatment-grid,
    .treatment-grid-reverse {
        grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
        gap: 35px;
    }

    .price-groups {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 700px) {
    .treatment {
        scroll-margin-top: 74px;
    }

    .treatments-hero {
        min-height: 390px;
        background-position: center, 63% center;
    }

    .treatments-hero::after {
        width: 100%;
    }

    .treatments-hero h1 {
        font-size: clamp(40px, 11vw, 57px);
    }

    .treatment-grid,
    .treatment-grid-reverse {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        padding-block: 38px 48px;
    }

    .treatment-image,
    .treatment-content {
        min-width: 0;
    }

    .treatment-content h2 {
        overflow-wrap: anywhere;
    }

    .treatment-grid-reverse .treatment-image,
    .treatment-grid-reverse .treatment-content {
        grid-row: auto;
        grid-column: auto;
    }

    .treatment-grid-reverse .treatment-image {
        height: 300px;
        margin: 0;
        border-radius: 8px;
    }

    .treatment-image {
        height: 280px;
    }

    .treatment-dark .treatment-image {
        order: -1;
    }

    .price-list-two,
    .price-groups {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {

    .treatment-image,
    .treatment-grid-reverse .treatment-image {
        height: 235px;
    }

    .treatment-detail,
    .price-item {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .price-list strong {
        padding-left: 21px;
        color: var(--color-primary-dark);
    }

    .treatment-dark .price-list strong {
        color: var(--color-primary-light);
    }
}
