/* Sisters' ART. World: sand texture ground, dark low-key photography, white Charmonman headings
   with a white rule, Palatino body and tracked caps (as in the logo's "HAIR BY EDA & BUKET"). */

@font-face {
    font-family: "Charmonman";
    src: url("../Fonts/charmonman-400-latin.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Charmonman";
    src: url("../Fonts/charmonman-700-latin.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}
/* Palatino is the brand face (marketing). It ships with Windows and macOS; TeX Gyre Pagella,
   a free metric-compatible Palatino clone, covers devices without it (Android, Linux). */
@font-face {
    font-family: "TeX Gyre Pagella";
    src: local("TeX Gyre Pagella"), url("../Fonts/texgyrepagella-regular.otf") format("opentype");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "TeX Gyre Pagella";
    src: local("TeX Gyre Pagella Bold"), url("../Fonts/texgyrepagella-bold.otf") format("opentype");
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: "TeX Gyre Pagella";
    src: local("TeX Gyre Pagella Italic"), url("../Fonts/texgyrepagella-italic.otf") format("opentype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --sand: #b99b82;          /* average of the bg-tile.png texture */
    --sand-pale: #e9dccf;
    --ink: #17130f;
    --ink-shade: rgb(14 10 7);
    --paper: #fff;
    --accent: #e43312;        /* temp-site red; hairline accent only (1.6:1 on sand) */

    --font-script: "Charmonman", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-body: "Palatino Linotype", Palatino, "Book Antiqua", "TeX Gyre Pagella", "URW Palladio L", P052, serif;
    --font-header2: var(--font-body);

    --gutter: clamp(1.25rem, 5vw, 4rem);
    --measure: min(42rem,92dvw);
    --wide: min(76rem,95dvw);
    --narrow: min(56rem,95dvw);
    --section: clamp(1.5rem, 3.8vw, 3.5rem);
    --hero-h: 75svh;      /* marketing spec: hero is 2/3 of the viewport, text starts above the fold */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- base ---------- */

*, *::before, *::after
{
    box-sizing: border-box;
    margin: 0;
}

html
{
    scrollbar-color: var(--ink) var(--sand);
    -webkit-text-size-adjust: 100%;
    scroll-snap-type: y mandatory;
}

body
{
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    margin: 0;
    font: 400 1.125rem/1.7 var(--font-body);
    color: var(--ink);
    /* marketing's bg-tile.png, mirrored 2x2 into a seamless tile (bg-tile-seamless.webp) */
    background: var(--sand) url("../Images/bg-tile-seamless.webp") 0 0 / 2120px auto repeat;
    scroll-behavior: smooth;
    caret-color: var(--accent);
}

body.nav-open { overflow: hidden; }

::selection { background: var(--ink); color: var(--sand-pale); }

img { max-width: 100%; height: auto; }

a {
    color: inherit;
    text-decoration-color: currentColor;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25em;
    transition: text-decoration-color 0.3s;
}
a:hover { text-decoration-color: var(--accent); }

:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
    border-radius: 2px;
}

.skip-link {
    position: absolute;
    z-index: 100;
    left: var(--gutter);
    top: -5rem;
    padding: 0.75rem 1.25rem;
    color: var(--ink);
    background: var(--paper);
}
.skip-link:focus { top: 1rem; }

/* ---------- buttons ---------- */

.button {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem 0.9rem;
    padding: 1rem 1.75rem;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    font: 700 0.8125rem/1.2 var(--font-body);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.button__detail {
    padding-left: 0.9rem;
    border-left: 1px solid currentColor;
    font-weight: 400;
    letter-spacing: 0.06em;
}
@media (max-width: 29.99em) {
    .button { flex-direction: column; padding-block: 0.9rem; }
    .button__detail { padding-left: 0; border-left: 0; }
}
.button--light {
    color: var(--paper);
    background-color: rgb(14 10 7 / 0.3);
}
.button--light:hover {
    color: var(--ink);
    background-color: var(--paper);
}

/* filled buttons (editor element "Buttons (zwei nebeneinander)"): one colour per button, all from the palette.
   Salon Red is never a fill (Hairline Red Rule). Hover: dark buttons turn white, light ones turn ink. */
.button--fill {
    color: var(--btn-fg);
    background-color: var(--btn-bg);
    border-color: var(--btn-bg);
    box-shadow: 0 0.75rem 1.75rem -1rem rgb(45 28 15 / 0.55);
}
.button--fill:hover { color: var(--btn-hover-fg); background-color: var(--btn-hover-bg); border-color: var(--btn-hover-bg); }
.button--ink   { --btn-bg: #17130f; --btn-fg: #fff;    --btn-hover-bg: #fff;    --btn-hover-fg: #17130f; }
.button--brown { --btn-bg: #6b4c36; --btn-fg: #fff;    --btn-hover-bg: #fff;    --btn-hover-fg: #17130f; }
.button--sand  { --btn-bg: #e9dccf; --btn-fg: #17130f; --btn-hover-bg: #17130f; --btn-hover-fg: #e9dccf; }
.button--paper { --btn-bg: #fff;    --btn-fg: #17130f; --btn-hover-bg: #17130f; --btn-hover-fg: #fff; }

.button-pair {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.25rem;
}
@media (max-width: 29.99em) {
    .button-pair { flex-direction: column; align-items: stretch; }
}

/* ---------- header ---------- */

.site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.25rem var(--gutter);
    color: var(--paper);
}
.site-header__logo img {
    display: block;
    width: clamp(8.5rem, 13vw, 11.5rem);
    filter: drop-shadow(0 2px 10px rgb(0 0 0 / 0.35));
}
/* a hero with its own logo carries the big one */
body:has(.hero--logo) .site-header__logo { visibility: hidden; }

.main-nav > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.main-nav a {
    display: inline-block;
    padding-block: 0.75rem;
    font: 700 0.8125rem/1 var(--font-body);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 0 1px 10px rgb(0 0 0 / 0.5);
    background: linear-gradient(currentColor, currentColor) 0 calc(100% - 0.35rem) / 0 1.5px no-repeat;
    transition: background-size 0.5s var(--ease-out);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { background-size: 100% 1.5px; }

.nav-toggle,
.main-nav .main-nav__call { display: none; }

/* second level: subpages (Header.html, levels = 2 in the menu processor) */
.main-nav__item { position: relative; }
.main-nav__sub { margin: 0; padding: 0; list-style: none; }
.main-nav__sub-toggle { display: none; }
.js .main-nav__sub-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 2.5rem;
    margin-left: 0.15rem;
    padding: 0;
    border: 0;
    color: inherit;
    background: none;
    cursor: pointer;
    vertical-align: middle;
}
/* chevron drawn in CSS, turns up when open */
.main-nav__sub-toggle::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-0.15rem) rotate(45deg);
    filter: drop-shadow(0 1px 4px rgb(0 0 0 / 0.5));
    transition: transform 0.4s var(--ease-out);
}
.main-nav__sub-toggle[aria-expanded="true"]::before { transform: translateY(0.1rem) rotate(-135deg); }
/* parent of the current page keeps its underline */
.main-nav__item.is-active > a { background-size: 100% 1.5px; }

@media (min-width: 48em) {
    /* dropdown on ink (Two Grounds Rule), opened by hover (mouse) or the chevron button (touch, keyboard) */
    .main-nav__sub {
        position: absolute;
        top: 100%;
        left: -1.25rem;
        z-index: 5;
        min-width: 14rem;
        padding: 0.75rem 1.25rem;
        background: var(--ink);
        box-shadow: 0 1.25rem 2.5rem -1rem rgb(0 0 0 / 0.55);
        visibility: hidden;
        opacity: 0;
        transform: translateY(0.4rem);
        transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s 0.3s;
    }
    /* the last two items open to the left so the panel stays inside the viewport */
    .main-nav > ul > .main-nav__item:nth-last-child(-n+2) > .main-nav__sub { left: auto; right: -1.25rem; }
    .main-nav__sub-toggle[aria-expanded="true"] + .main-nav__sub,
    html:not(.js) .main-nav__item:focus-within > .main-nav__sub {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    }
    @media (hover: hover) {
        .main-nav__item:hover > .main-nav__sub {
            visibility: visible;
            opacity: 1;
            transform: none;
            transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
        }
    }
    .main-nav__sub a {
        display: block;
        padding-block: 0.6rem;
        font-size: 0.75rem;
        line-height: 1.3;
        letter-spacing: 0.18em;
        text-shadow: none;
        white-space: nowrap;
        background-position: 0 calc(100% - 0.3rem);
    }
}

@media (max-width: 47.99em) {
    .js .nav-toggle {
        position: relative;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 0;
        border: 0;
        color: inherit;
        background: none;
        font: 700 0.8125rem/1 var(--font-body);
        letter-spacing: 0.2em;
        text-transform: uppercase;
        cursor: pointer;
    }
    .nav-toggle__bars,
    .nav-toggle__bars::before,
    .nav-toggle__bars::after {
        display: block;
        width: 1.5rem;
        height: 1.5px;
        background: currentColor;
        transition: transform 0.4s var(--ease-out), background-color 0.2s;
    }
    .nav-toggle__bars { position: relative; }
    .nav-toggle__bars::before,
    .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
    .nav-toggle__bars::before { transform: translateY(-0.4rem); }
    .nav-toggle__bars::after { transform: translateY(0.4rem); }
    .is-open .nav-toggle__bars { background-color: transparent; }
    .is-open .nav-toggle__bars::before { transform: rotate(45deg); }
    .is-open .nav-toggle__bars::after { transform: rotate(-45deg); }

    .js .main-nav {
        position: fixed;
        inset: 0;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* centred by the auto margins below, scrolls when the menu grows */
        gap: 2.5rem;
        padding: 6rem var(--gutter) 3rem;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--ink);
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.45s var(--ease-out), visibility 0s 0.45s;
    }
    .js .is-open .main-nav {
        visibility: visible;
        opacity: 1;
        transition: opacity 0.45s var(--ease-out);
    }
    .js .main-nav > ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: auto;
        text-align: center;
    }
    .js .main-nav > :last-child { margin-bottom: auto; } /* the call button, or the list when there is none */
    /* subpages: under their parent, collapsed until the chevron opens them */
    .js .main-nav__sub { display: none; padding: 0.25rem 0 0.75rem; }
    .js .main-nav__sub-toggle[aria-expanded="true"] + .main-nav__sub { display: block; }
    .js .main-nav__sub-toggle { width: 2.5rem; height: 2.5rem; }
    .js .main-nav .main-nav__sub a {
        padding-block: 0.55rem;
        font: 700 0.8125rem/1.3 var(--font-body);
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--sand-pale);
        background-position: 0 calc(100% - 0.35rem);
    }
    .js .main-nav a {
        font: 400 clamp(2.25rem, 10vw, 3rem)/1.4 var(--font-script);
        letter-spacing: 0.02em;
        text-transform: none;
        background-position: 0 calc(100% - 0.2rem);
    }
    .js .main-nav .main-nav__call {
        display: inline-flex;
        font: 700 0.8125rem/1.2 var(--font-body);
        letter-spacing: 0.16em;
        text-transform: uppercase;
        text-shadow: none;
        background: rgb(255 255 255 / 0.06);
    }
}

/* ---------- hero (editor element "Hero"; 1 image = full bleed, 2 = split, + logo = centred) ---------- */
section.hero,
header.site-header
{
    scroll-snap-align: start;
}
.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    height: var(--hero-h);
    min-height: 22rem;
    overflow: hidden;
    background: var(--sand);
}
.hero--split {
    grid-template-columns: 1fr 1fr;
    min-height: 26rem;
    transition: grid-template-columns 0.9s var(--ease-out);
}
.hero__media {
    position: relative;
    overflow: hidden;
    background: var(--ink);
}
.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgb(14 10 7 / 0.55), transparent 30%, transparent 50%, rgb(14 10 7 / 0.8)),
        rgb(14 10 7 / 0.1);
}
.hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: filter 0.9s var(--ease-out);
    animation: settle 2.6s var(--ease-out) both;
}
.hero--split .hero__media:first-child { animation: open-left 1.6s var(--ease-out) both; }
.hero--split .hero__media:nth-child(2) { animation: open-right 1.6s 0.12s var(--ease-out) both; }

@media (hover: hover) and (min-width: 48em) {
    .hero--split:has(.hero__media:first-child:hover) { grid-template-columns: 1.35fr 1fr; }
    .hero--split:has(.hero__media:nth-child(2):hover) { grid-template-columns: 1fr 1.35fr; }
    .hero--split:has(.hero__media:first-child:hover) .hero__media:nth-child(2) .hero__img,
    .hero--split:has(.hero__media:nth-child(2):hover) .hero__media:first-child .hero__img { filter: brightness(0.6) saturate(0.8); }
}

/* text layer: title bottom-left by default */
.hero__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: clamp(1rem, 2.5vw, 1.75rem);
    padding: 5rem max(var(--gutter), (100% - var(--wide)) / 2) clamp(2rem, 6vw, 4.5rem);
    color: var(--paper);
    pointer-events: none;
}
.hero__content > *
{
    pointer-events: auto;
}
.hero__title
{
    margin: 0;
    font-weight: 400;
    font-size: clamp(2.2rem, 4.6dvw + 0.3rem, 6rem);
    font-family: var(--font-body);
    line-height: 1.2em;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 16px rgb(0 0 0 / 0.45);
    text-wrap: balance;
    animation: rise 1.2s 0.15s var(--ease-out) both;
}
.hero__content .button { animation: rise 1.2s 0.3s var(--ease-out) both; }

/* editor checkbox "Überschrift zentrieren": title and button centred, still at the bottom */
.hero--center .hero__content {
    align-items: center;
    text-align: center;
}

/* with a logo: everything centred over the image(s), as on the homepage */
.hero--logo .hero__content {
    justify-content: center;
    align-items: center;
    padding: 5rem var(--gutter) 2.5rem;
    text-align: center;
}
.hero__logo {
    width: min(54rem, 88vw, 75svh); /* keeps logo, H1 and button inside the 2/3-height hero */
    height: auto;
    filter: drop-shadow(0 6px 28px rgb(0 0 0 / 0.5));
    animation: rise 1.2s 0.2s var(--ease-out) both;
}
.hero--logo .hero__title
{
    font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    line-height: 1.2;
    animation-delay: 0.35s;
}
.hero--logo .hero__content .button { animation-delay: 0.45s; }

@media (max-width: 47.99em) {
    .hero--logo .hero__content { justify-content: flex-end; padding-bottom: 3.5rem; }
    .hero--logo .hero__logo { margin-bottom: auto; }
}

@keyframes settle { from { transform: scale(1.1); } }
/* starts nearly visible: content is never hidden while the motion plays */
@keyframes rise { from { opacity: 0.6; transform: translateY(1rem); } }
@keyframes open-left { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes open-right { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }

/* ---------- content (editor-entered, fluid_styled_content) ---------- */
#content
{
    display: grid;
    grid-template-columns: auto var(--measure) auto;
    flex: 1;
    /*padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) var(--section);*/
    padding-block: var(--gutter);
}
#content > .frame
{
    grid-column: 2;
    max-width: var(--measure);
    scroll-snap-align: start;

    transition: color 1s ease-in;
}

#content > .fsnd-faq-container
{
    grid-column: 1/-1;
    max-width: var(--wide);
    margin-inline: auto;
    margin-top: 2rem;
    scroll-snap-align: start;
}

#content > .frame h2
{
    transition: color 1s ease-in;
}

.content > .frame + .frame
{
    margin-top: var(--section);
}
.content > .frame + .frame-space-before-extra-small
{
    margin-top: 0;
}
.content > .frame + .frame-space-before-small
{
    margin-top: calc(var(--section) / 2);
}
.content > .frame + .frame-space-before-medium
{
    margin-top: calc( (3 * var(--section)) / 4);
}
.content > .frame + .frame-space-before-large
{
    margin-top: calc( (var(--section)) * 1.25);
}
.content > .frame + .frame-space-before-extra-large
{
    margin-top: calc( (var(--section)) * 1.5);
}
.content > .frame + .frame-space-after-extra-small
{
    margin-bottom: 0;
}
.content > .frame + .frame-space-after-small
{
    margin-bottom: calc(var(--section) / 2);
}
.content > .frame + .frame-space-after-medium
{
    margin-bottom: calc( (3 * var(--section)) / 4);
}
.content > .frame + .frame-space-after-large
{
    margin-bottom: calc( (var(--section)) * 1.25);
}
.content > .frame + .frame-space-after-extra-large
{
    margin-bottom: calc( (var(--section)) * 1.5);
}
.content > .frame + .frame-type-sisters_pricelist
{
    margin-top: calc(var(--section) / 2);
}
/* image + text rows (textmedia, image left/right "in text") */
/* fluid_styled_content puts the header inside .ce-bodytext for "in text" layouts */
#content > .frame-type-textmedia
{
    grid-column: 1/-1;
    max-width: var(--wide);
    margin-inline: auto;
}
#content > .frame-type-textmedia > *
{
    max-width: var(--measure);
    margin-inline: auto;
}
#content > .frame-type-textmedia > *,
#content > .frame-type-powermail_pi1 > *
{
    max-width: var(--wide);
    margin-inline: auto;
}
.frame-type-textmedia .ce-textpic
{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "media" "text";
}
.frame-type-textmedia .ce-gallery { grid-area: media; margin-bottom: 2.25rem; }
.frame-type-textmedia .ce-bodytext { grid-area: text; }

#content > .frame-layout-1
{
    max-width: var(--narrow);
}
#content > .frame-layout-2
{
    grid-column: 1/-1;
    max-width: var(--wide);
    margin-inline: auto;
}

/*** special frames ***/
#content > .frame-lightBG,
#content > .frame-lightBGstatic
{
    --frame-bg: rgba(255,255,255,0.3);

    grid-column: 1/-1;
    max-width: unset;
    width: 100%;
    padding-block: calc(var(--section)/2);
}
#content > .frame-lightBG
{
    margin-top: 0;
}
#content > .frame-lightBG.is-revealed,
#content > .frame-lightBGstatic
{
    --paper: var(--ink);
}
#content > .frame-lightBGstatic
{
    display: grid;
    grid-template-columns: auto var(--measure) auto;
    background-color: var(--frame-bg);
}
#content > .frame-lightBGstatic.frame-layout-2
{
    grid-template-columns: auto var(--wide) auto;
}
#content > .frame-darkBG,
#content > .frame-darkBGstatic
{
    --ink: white;
    grid-column: 1/-1;
    max-width: unset;
    width: 100%;
    padding-block: calc(var(--section)/2);
}
#content > .frame-lightBGstatic > *
{
    grid-column: 2;
}
#content > .frame-darkBG
{
    margin-top: 0;
}
#content > .frame-darkBG.is-revealed,
#content > .frame-darkBGstatic
{
    --frame-bg: rgba(0,0,0,0.3);

    color: white;
}
#content > .frame-darkBGstatic
{
    display: grid;
    grid-template-columns: auto var(--measure) auto;
    background-color: var(--frame-bg);
}
#content > .frame-darkBGstatic.frame-layout-2
{
    grid-template-columns: auto var(--wide) auto;
}
#content > .frame-darkBGstatic > *
{
    grid-column: 2;
}
.content > .frame-lightBG + .frame
{
    margin-top: 0;
    padding-top: calc(var(--section)/2);
}
#content > .frame-default + .frame-lightBG,
#content > .frame-default + .frame-darkBG
{
    margin-top: calc(var(--section)/2);
}
main#content:has(.frame-lightBG:last-child),
main#content:has(.frame-darkBG:last-child)
{
    padding-bottom: 0;
}
.frame-type-sisters_buttonpair:has(h3)
{
    padding-bottom: 2rem;
}
/***  headers  **/
.ce-headline-center
{
    text-align: center;
}
.content h1,
.content h2
{
    margin-bottom: 1.8rem;
    padding-bottom: 0; /* clears Charmonman descenders */
    border-bottom: 3px solid var(--paper);
    /*font: 400 clamp(2.25rem, 1.4rem + 3vw, 3.75rem)/1.3 var(--font-script);*/
    font-size: clamp(1.4rem, 2.3vw + 0.2rem, 2.8rem);
    font-weight: 400;
    font-family: var(--font-header2);
    letter-spacing: 0.02em;
    color: var(--paper);
    text-align: center;
    text-shadow: 0 1px 3px rgb(70 45 25 / 0.35);
    text-wrap: balance;
    line-height: 1.4em;
}

.content h3
{
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    font: 700 0.9375rem/1.4 var(--font-body);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.content h3.faqHeader
{
    margin-top: 0.75rem;
    margin-bottom: 0;
}
.content header:has(h2) > h3
{
    margin-top: -0.85rem;
    padding-bottom: 0.5rem;
}
.content p { margin: 0 0 1.1rem; text-wrap: pretty; }
.content p:last-child { margin-bottom: 0; }
.content strong { font-weight: 700; }


@media (min-width: 48em) {
    .frame-type-textmedia .ce-textpic {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        grid-template-areas: "media text";
        align-items: center;
        column-gap: clamp(2.5rem, 7vw, 7rem);
    }
    .frame-type-textmedia .ce-right {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        grid-template-areas: "text media";
    }
    .frame-type-textmedia .ce-gallery { margin-bottom: 0; }
}

/* pale sand rim around photos, as on the temp site */
.ce-gallery figure
{
    width: fit-content;
    margin: 0;
    padding: 0.45rem;
    border-radius: 1.4rem;
    background: rgb(255 255 255 / 0.28);
    box-shadow: 0 1.75rem 3.5rem -1.25rem rgb(45 28 15 / 0.55);
}
.frame-layout-1 .ce-right figure
{
    margin-left: auto;
}
.ce-gallery .ce-outer,
.ce-gallery .ce-inner,
.ce-gallery .ce-row,
.ce-gallery .ce-column { display: contents; }
/* images keep the size and shape the editor set ... */
.ce-gallery img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
}

.ce-intext:not(.ce-nowrap) img
{
    max-width: calc(60dvw - 5rem);
}
/* ... except the Text & Media photo rows, which share one calm full-column format */
.frame-type-textmedia .ce-gallery img
{
    max-width: 100%;
    /*aspect-ratio: 4 / 5;*/
    object-fit: cover;
}
@media (max-width: 47.99em) {
    .frame-type-textmedia .ce-gallery img { aspect-ratio: 4 / 3; }
}

/* Text & Images: image floats beside the text, as chosen in the element ("in text, right/left") */
.frame-type-textpic .ce-intext.ce-right .ce-gallery { float: right; margin: 0.35rem 0 1rem 1.75rem; }
.frame-type-textpic .ce-intext.ce-left .ce-gallery { float: left; margin: 0.35rem 1.75rem 1rem 0; }
.frame-type-textpic .ce-textpic::after { content: ""; display: table; clear: both; }
/* "Text & Images" is for cut-out illustrations: no photo frame. "Text & Media" keeps the framed photo. */
.frame-type-textpic .ce-gallery figure {
    padding: 0;
    background: none;
    box-shadow: none;
}
.frame-type-textpic .ce-gallery img { border-radius: 0; }
@media (max-width: 29.99em) {
    /* too narrow to wrap text around an image: stack it */
    .frame-type-textpic .ce-intext .ce-gallery { float: none; margin: 0 0 1.25rem; }
}
.frame-type-textpic .ce-above .ce-gallery,
.frame-type-image .ce-gallery { margin-bottom: 1.5rem; }
.ce-center .ce-gallery figure { margin-inline: auto; width: fit-content; }
.ce-gallery figcaption
{
    padding: 0.5rem 0.5rem 0.1rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-align: center;
}

/*** background frames ***/


/* stock credit on heroes; removed automatically once a reference has no description */
.credit {
    position: absolute;
    right: var(--gutter);
    bottom: 0.75rem;
    z-index: 3;
    margin: 0;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    color: rgb(255 255 255 / 0.75);
}
.credit:empty { display: none; }
.hero--split .credit { right: 1rem; }

/* sitemap and plain lists */
.frame-type-menu_sitemap ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.frame-type-menu_sitemap ul ul { padding-left: 1.5rem; }
.frame-type-menu_sitemap li { padding-block: 0.3rem; }
.frame-type-menu_sitemap a { font-weight: 700; }

/* ---------- price list (editor element "Preisliste") ---------- */
/* Groups of services with a dotted leader to the price, as in marketing's ODT.
   Two columns from 48em: split where the editor set "rechte Spalte beginnt hier", otherwise balanced. */
#content > .frame-type-sisters_pricelist
{
    grid-column: 1/-1;
    width: 100%;
    max-width: none;
}
#content > .frame-type-sisters_pricelist > *
{
    max-width: min(64rem, var(--wide));
    margin-inline: auto;
}
#content > .frame-type-sisters_pricelist > header { max-width: var(--measure); }

.price-list { --price-gap: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 48em) {
    .price-list--split {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: var(--price-gap);
        align-items: start;
    }
    .price-list--auto {
        columns: 2;
        column-gap: var(--price-gap);
    }
}

.price-group
{
    break-inside: avoid;
    padding-bottom: 2.25rem;
}
.content .price-group__title
{
    margin: 0 0 0.6rem;
    padding-bottom: 0.45rem;
    border-bottom: 1.5px solid var(--paper);
}

.price-group__table
{
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: lining-nums tabular-nums;
}
.price-group__table th,
.price-group__table td
{
    padding: 0.3rem 0;
    vertical-align: bottom;
}
.price-group__table tbody th
{
    width: 100%;
    font-weight: 400;
    text-align: left;
}
.price-group__table td
{
    padding-left: 0.5rem;
    text-align: right;
    white-space: nowrap;
}
.price-group__table--two td { min-width: 4.5em; }
.price-group__table thead th
{
    padding: 0 0 0.1rem 0.5rem;
    font: 700 0.75rem/1.2 var(--font-body);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: right;
}
/* dotted leader from the service to its price */
.price-group__name
{
    display: flex;
    align-items: last baseline;
    gap: 0.5rem;
}
.price-group__name::after
{
    content: "";
    flex: 1 1 1.5rem;
    border-bottom: 1.5px dotted currentColor;
    opacity: 0.4;
    transform: translateY(-0.3em);
}

.content .price-list__note
{
    max-width: var(--measure);
    margin: 0.75rem auto 0;
    font-size: 0.9375rem;
    font-style: italic;
    text-align: center;
}

/* ---------- closing band ---------- */
footer.close
{
    scroll-snap-align: start;
}
.close
{
    padding: var(--section) var(--gutter) 2rem;
    color: var(--sand-pale);
    background: var(--ink);
}
.close__inner {
    display: grid;
    justify-items: start;
    gap: clamp(2.25rem, 5vw, 3.5rem);
    max-width: var(--wide);
    margin-inline: auto;
}
.close__head {
    position: relative;
    justify-self: stretch;
}
/* an editor-chosen cut-out (the scissors) sits on the end of the white rule, blades around the line */
.close__illustration {
    position: absolute;
    right: 0;
    bottom: 0.75rem;
    width: clamp(8rem, 22vw, 18rem);
    height: auto;
    transform: translate(6%, 49%) rotate(-3deg);
    filter: drop-shadow(0 0.75rem 1.25rem rgb(0 0 0 / 0.45));
    pointer-events: none;
    opacity: 0.7;
}
.close__head:has(.close__illustration) .close__title
{
    padding-right: clamp(7rem, 22vw, 18rem);
}
.close__title
{
    justify-self: stretch;
    margin: 0;
    padding-bottom: 0.35em;
    border-bottom: 3px solid var(--paper);
    font: 400 clamp(1.2rem, 0.4rem + 1.5vw, 1.8rem)/1.25 var(--font-body);
    letter-spacing: 0.02em;
    color: var(--paper);
    text-wrap: balance;
}
.close a { color: var(--paper); }
.close__facts {
    justify-self: stretch;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 2rem;
}
.close__facts address,
.close__facts p { margin: 0; font-style: normal; }
.close__label {
    display: block;
    margin-bottom: 0.4rem;
    font: 700 0.75rem/1.4 var(--font-body);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sand);
}
.close__base {
    justify-self: stretch;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    margin-top: clamp(1rem, 4vw, 2.5rem);
    padding-top: 1.75rem;
    border-top: 1px solid rgb(255 255 255 / 0.15);
    font-size: 0.875rem;
}
.close__logo { width: 9rem; }
.close__nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.close__nav a { display: inline-block; padding-block: 0.4rem; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
.desc-bottom .gslide-image img, .desc-top .gslide-image img
{
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
}
.glightbox-clean .gslide-description
{
    border-bottom-right-radius: 1.5rem;
    border-bottom-left-radius: 1.5rem;
}

/* ---------- powermail (Terminanfrage) ---------- */
/* Fields sit straight on the sand: translucent inputs with an ink line, no cards.
   Framework classes are set in config/sites/sisters/settings.yaml (no Bootstrap). */
.powermail_fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.powermail_legend { /* page title duplicates the element header; kept for screen readers */
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.powermail_fieldwrap { margin-bottom: 1.5rem; }
.powermail_fieldwrap_type_text { margin-bottom: 2rem; }
.powermail_fieldwrap_type_html { margin-bottom: 0.75rem; font-size: 1rem; }

.powermail_label {
    display: block;
    margin-bottom: 0.5rem;
    font: 700 0.8125rem/1.2 var(--font-body);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.powermail_label .mandatory { margin-left: 0.15em; }

.powermail_input,
.powermail_date,
.powermail_select,
.powermail_textarea {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font: 400 1.125rem/1.5 var(--font-body);
    color: var(--ink);
    background-color: rgb(255 255 255 / 0.3);
    border: 1.5px solid rgb(23 19 15 / 0.55);
    border-radius: 0.75rem;
    transition: border-color 0.3s, background-color 0.3s;
}
.powermail_input:focus,
.powermail_date:focus,
.powermail_select:focus,
.powermail_textarea:focus {
    border-color: var(--ink);
    background-color: rgb(255 255 255 / 0.45);
}
.powermail_textarea { min-height: 9rem; resize: vertical; }
.powermail_form ::placeholder { color: rgb(23 19 15 / 0.55); opacity: 1; }

.powermail_checkwrap { display: flex; align-items: flex-start; gap: 0.75rem; }
.powermail_checkwrap input {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0.3em 0 0;
    accent-color: var(--ink);
}
.powermail_checkwrap label { font-size: 1rem; line-height: 1.5; }

.powermail_fieldwrap_type_submit { margin: 2.25rem 0 0; }
.button--submit {
    color: var(--ink);
    background-color: transparent;
    cursor: pointer;
}
.button--submit:hover { color: var(--sand-pale); background-color: var(--ink); }

/* errors: a red hairline on the field, messages in ink (red is never text) */
.powermail_field_error { box-shadow: inset 0 -2px 0 var(--accent); }
.powermail_checkwrap.powermail_field_error { box-shadow: none; }
.powermail_checkwrap.powermail_field_error input { outline: 2px solid var(--accent); outline-offset: 2px; }
.powermail_form [class*="powermail_field_error_container"],
.powermail_form .powermail-errors-list {
    margin: 0.4rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
    font-weight: 700;
}
.content .powermail_message_error {
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 2px solid var(--accent);
}
.content .powermail_message_error h2 {
    margin: 0 0 0.5rem;
    padding: 0;
    border: 0;
    font: 700 0.9375rem/1.4 var(--font-body);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: left;
    color: var(--ink);
    text-shadow: none;
}
.powermail_message_error ol { margin: 0; padding-left: 1.25rem; }

/* thank-you page: {powermail_all} as a quiet summary */
.powermail_create table { width: 100%; margin-top: 1.5rem; border-collapse: collapse; font-size: 1rem; }
.powermail_create th,
.powermail_create td { padding: 0.5rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid rgb(23 19 15 / 0.2); }
.powermail_create th { padding-right: 1.5rem; font-weight: 700; }