body.cms-template-elinox-schafe {
    --elinox-ink: #112d48;
    --elinox-muted: #46596a;
    --elinox-topbar-blue: #286d9b;
    --elinox-page: #f5f8fa;
    --elinox-paper: none;
    --elinox-line: #dce5eb;
    --elinox-shell: min(85.625rem, calc(100% - 4.5rem));
    --elinox-topbar-height: 4.5rem;
    --elinox-hero-height: clamp(21.25rem, 31vw, 29.375rem);
    --elinox-meadow-space: clamp(6.75rem, 12vw, 12.5rem);
    --elinox-landscape: url("./ELinOX-Schafe/landscape-wide.webp?v=2");
    --elinox-card-columns: 3;
    --elinox-card-gap: 1.5rem;
    --elinox-reveal-duration: 1050ms;
    --elinox-reveal-delay: 170ms;
    --elinox-reveal-distance: 76px;
    --elinox-panel-opacity: 58%;
    background: var(--elinox-page);
    background-image: var(--elinox-paper);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--elinox-ink);
    font-family: system-ui, "Segoe UI", sans-serif;
}

body.cms-template-elinox-schafe:has(.elinox-schafe .cms-main:not(.cms-admin-boundary)) {
    --elinox-page: #cde9fa;
    --elinox-paper: linear-gradient(rgb(233 246 253 / 16%), rgb(233 246 253 / 16%)),
        url("./ELinOX-Schafe/linen-paper.webp");
    background-position: left top, center top;
    background-size: auto, 270px 270px;
    background-repeat: repeat;
    background-attachment: scroll, fixed;
    background-blend-mode: normal, luminosity;
}

body.cms-body.cms-template-elinox-schafe.cms-background-images-enabled {
    background-image: var(--elinox-paper);
}

.elinox-schafe {
    isolation: isolate;
    overflow-x: clip;
}

.elinox-schafe-top {
    position: sticky;
    inset-block-start: 0;
    z-index: 120;
    background: var(--elinox-topbar-blue);
}

.elinox-schafe-top[data-scrolled] {
    box-shadow: 0 3px 12px rgb(9 43 80 / 26%);
}

.elinox-schafe-top .cms-top-bar {
    --cms-topbar-text: #fff;
    --cms-topbar-hover: #fff;
}

.elinox-schafe-top .cms-sticky-nav-container {
    height: auto !important;
    min-height: var(--elinox-topbar-height);
}

.elinox-schafe-top .cms-top-bar {
    display: flex;
    position: relative !important;
    inset: auto !important;
    margin: 0 !important;
    max-width: none !important;
    height: auto;
    min-height: var(--elinox-topbar-height);
    padding: .5rem max(calc((100vw - 85.625rem) / 2), 2.25rem);
    gap: .75rem;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
    border-bottom: 0;
    background: transparent;
    box-shadow: none;
}

.elinox-schafe-top .cms-top-bar-title {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
}

.elinox-schafe-top .cms-brand {
    display: block;
    width: clamp(8.5rem, 17vw, 15.25rem);
    min-height: 2.75rem;
    background: url("./ELinOX-Schafe/wordmark.png") left center / contain no-repeat;
    filter: brightness(0) invert(1) drop-shadow(0 1px 1px #19456b90);
    transform-origin: left center;
}

.elinox-schafe-top .cms-brand:is(:hover, :focus-visible) {
    filter: brightness(0) invert(1) drop-shadow(0 2px 3px #092b50);
    scale: 1.045;
}

@media (prefers-reduced-motion: no-preference) {
    .elinox-schafe-top .cms-brand {
        transition: scale .18s ease, filter .18s ease;
    }
}

.elinox-schafe-top .cms-brand > span,
.elinox-schafe-top .cms-brand > img {
    display: none !important;
}

.elinox-schafe-top #responsive-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    flex: 0 1 auto;
    width: auto;
    gap: .6rem;
}

.elinox-schafe-top #responsive-menu :is(.top-bar-left, .top-bar-right, .menu, .menu > li) {
    flex: 0 1 auto;
    width: auto;
}

.elinox-schafe-top #responsive-menu :is(.top-bar-left, .top-bar-right) > .menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: transparent;
}

.elinox-schafe-top #responsive-menu .menu > li > :is(a, button),
.elinox-schafe-top .cms-logout-form .button {
    display: inline-flex;
    align-items: center;
    width: auto;
    min-height: 2.75rem;
    padding: .35rem .6rem;
    border: 0;
    background: transparent;
    color: #fff;
    font-weight: 650;
    text-shadow: 0 1px 3px #153c61;
}

.elinox-schafe-top #responsive-menu .is-dropdown-submenu {
    min-width: 13rem;
    border-color: rgb(255 255 255 / 25%);
    background: #245c86;
}

.elinox-schafe-top #responsive-menu .menu > li > a:hover {
    background: rgb(255 255 255 / 12%);
}

.elinox-schafe-top #responsive-menu .menu > li > a:hover,
.elinox-schafe-top #responsive-menu a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: .3em;
}

.elinox-schafe .cms-main:not(.cms-admin-boundary) {
    width: var(--elinox-shell);
    max-width: none;
    padding: 1.75rem 0;
    margin: 0 auto;
    background: transparent;
    box-shadow: none;
}

.elinox-schafe .cms-main:not(.cms-admin-boundary) .cms-content-box.callout {
    border: 1px solid var(--elinox-line);
    border-radius: .8rem;
    background: #fff;
    box-shadow: 0 4px 12px rgb(22 58 89 / 7%);
    color: var(--elinox-ink);
}

.elinox-schafe .cms-main :is(h1, h2, h3) {
    font-family: inherit;
    font-weight: 700;
    line-height: 1.2;
}

/* The seven existing, editable start page boxes supply the hero and service cards. */
.elinox-schafe .cms-main:has(> .grid-x > .cms-content-box > .elinox-eyebrow + h1):has(> .grid-x > .cms-content-box > .elinox-service-visual) {
    padding-top: 0;
}

.elinox-schafe .cms-main > .grid-x:where(:has(> .cms-content-box > .elinox-eyebrow + h1):has(> .cms-content-box > .elinox-service-visual)) {
    display: grid;
    align-items: stretch;
    grid-template-columns: repeat(var(--elinox-card-columns), minmax(0, 1fr));
    gap: var(--elinox-card-gap);
    margin: 0;
}

.elinox-schafe .cms-main > .grid-x:has(> .elinox-schafe-top) {
    --elinox-sky-start: 0px;
    row-gap: 0;
}

.elinox-schafe .cms-main > .grid-x > .elinox-schafe-top {
    grid-column: 1 / -1;
    align-self: start;
    justify-self: center;
    width: 100vw;
}

.elinox-schafe .cms-main > .grid-x:has(> .cms-content-box > .elinox-service-visual) > .cms-content-box {
    width: auto;
    margin: 0;
    grid-column: 1 / -1;
}

.elinox-schafe .cms-main > .grid-x:has(> .cms-content-box > .elinox-service-visual) > .elinox-schafe-top ~ .cms-content-box {
    margin-block-start: var(--elinox-card-gap);
}

.elinox-schafe .cms-main > .grid-x:has(> .cms-content-box > .elinox-service-visual) > .cms-content-box:has(> .elinox-eyebrow + h1) {
    display: flex;
    position: relative;
    min-height: var(--elinox-hero-height);
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(1.75rem, 4vw, 3.75rem) 0 var(--elinox-meadow-space);
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.elinox-schafe .cms-main > .grid-x:has(> .cms-content-box > .elinox-service-visual) > .cms-content-box:has(> .elinox-eyebrow + h1)::before {
    position: absolute;
    z-index: -2;
    inset: var(--elinox-sky-start, calc(-1 * var(--elinox-topbar-height))) 50% 0;
    width: 100vw;
    transform: translateX(-50%);
    background: #2b75af var(--elinox-landscape) center bottom / 100% auto no-repeat;
    content: "";
}

.elinox-schafe .cms-main > .grid-x:has(> .cms-content-box > .elinox-service-visual) > .cms-content-box:has(> .elinox-eyebrow + h1)::after {
    position: absolute;
    z-index: -1;
    inset: clamp(1rem, 3vw, 2.5rem) 50% max(calc(var(--elinox-meadow-space) - 1rem), 1.5rem);
    width: min(100%, 48.75rem);
    transform: translateX(-50%);
    border: 1px solid rgb(255 255 255 / 78%);
    border-radius: 1.25rem;
    background: rgb(255 255 255 / var(--elinox-panel-opacity));
    box-shadow: 0 8px 30px rgb(31 101 147 / 10%);
    content: "";
}

.elinox-schafe .cms-content-box:has(> .elinox-eyebrow + h1):has(~ .cms-content-box > .elinox-service-visual) > * {
    width: min(calc(100% - 2rem), 44rem);
    margin-inline: auto;
}

.elinox-schafe .cms-content-box:has(> .elinox-eyebrow + h1):has(~ .cms-content-box > .elinox-service-visual) > h1 {
    margin-bottom: .65rem;
    color: #092b50;
    font-size: clamp(1.65rem, 3.35vw, 2.8rem);
    letter-spacing: -.035em;
    text-wrap: balance;
}

.elinox-schafe .cms-content-box:has(> .elinox-eyebrow + h1):has(~ .cms-content-box > .elinox-service-visual) > h1::after {
    display: block;
    width: 4rem;
    height: 3px;
    margin: .75rem auto;
    border-radius: 3px;
    background: var(--elinox-topbar-blue);
    content: "";
}

.elinox-schafe .cms-content-box:has(> .elinox-eyebrow + h1):has(~ .cms-content-box > .elinox-service-visual) > .lead {
    color: var(--elinox-ink);
    font-size: clamp(.98rem, 1.45vw, 1.15rem);
    line-height: 1.5;
}

.elinox-schafe .cms-content-box:has(> .elinox-eyebrow + h1):has(~ .cms-content-box > .elinox-service-visual) > :last-child {
    margin-bottom: 0;
}

.elinox-schafe .cms-content-box:has(> .elinox-eyebrow + h1):has(~ .cms-content-box > .elinox-service-visual) > p > .button {
    margin: 0 .15rem .4rem;
    border-radius: .45rem;
    background: var(--elinox-topbar-blue);
    color: #fff;
    font-weight: 650;
}

.elinox-schafe .cms-content-box:has(> .elinox-eyebrow + h1):has(~ .cms-content-box > .elinox-service-visual) > p > .button.secondary {
    background: #eaf3f9;
    color: var(--elinox-ink);
}

@media (prefers-reduced-motion: no-preference) {
    .elinox-schafe .cms-content-box:has(> .elinox-eyebrow + h1):has(~ .cms-content-box > .elinox-service-visual) > * {
        animation: elinox-schafe-arrive var(--elinox-reveal-duration) cubic-bezier(.16, 1, .3, 1) var(--elinox-reveal-delay) both;
    }

    .elinox-schafe .cms-content-box:has(> .elinox-eyebrow + h1):has(~ .cms-content-box > .elinox-service-visual)::after {
        animation: elinox-schafe-panel var(--elinox-reveal-duration) cubic-bezier(.16, 1, .3, 1) var(--elinox-reveal-delay) both;
    }
}

@keyframes elinox-schafe-arrive {
    from { opacity: 0; transform: translateY(calc(-1 * var(--elinox-reveal-distance))); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes elinox-schafe-panel {
    from { opacity: 0; transform: translate(-50%, calc(-1 * var(--elinox-reveal-distance))); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.elinox-schafe .cms-main > .grid-x:has(> .cms-content-box > .elinox-eyebrow + h1) > .cms-content-box:has(> .elinox-service-visual) {
    grid-column: auto;
    align-self: stretch;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0 1.2rem 1rem;
    overflow: hidden;
    border: 1px solid var(--elinox-line);
    border-radius: .8rem;
    background: #fff;
    box-shadow: 0 4px 12px rgb(22 58 89 / 7%);
}

.elinox-schafe .elinox-service-visual {
    margin: 0 -1.2rem 1rem;
    aspect-ratio: 2;
    overflow: hidden;
    background: #e4eaee;
}

.elinox-schafe .elinox-service-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
}

.elinox-schafe .elinox-eyebrow {
    margin-bottom: .25rem;
    color: var(--elinox-topbar-blue);
    font-size: .82rem;
    font-weight: 700;
}

.elinox-schafe .cms-content-box:has(> .elinox-service-visual) h2 {
    margin-bottom: .4rem;
    color: var(--elinox-ink);
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.elinox-schafe .cms-content-box:has(> .elinox-service-visual) > p {
    margin-bottom: .65rem;
    color: var(--elinox-muted);
    font-size: .95rem;
    line-height: 1.45;
}

.elinox-schafe .cms-content-box:has(> .elinox-service-visual) > p:last-child {
    margin: auto 0 0;
    padding-top: .5rem;
}

.elinox-schafe .cms-content-box:has(> .elinox-service-visual) > p:last-child > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    color: var(--elinox-topbar-blue);
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.elinox-schafe .cms-content-box:has(> .elinox-service-visual) > p:last-child > a:only-child::before {
    position: absolute;
    inset: 0;
    content: "";
}

.elinox-schafe .cms-content-box:has(> .elinox-service-visual) > p:last-child > a::after {
    display: grid;
    flex: 0 0 1.9rem;
    height: 1.9rem;
    place-items: center;
    border-radius: 50%;
    background: var(--elinox-topbar-blue);
    color: #fff;
    content: "›" / "";
    font-size: 1.4rem;
    line-height: 1;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .elinox-schafe .cms-content-box:has(> .elinox-service-visual) {
        transition: translate .22s, box-shadow .22s;
    }

    .elinox-schafe .cms-content-box:has(> .elinox-service-visual):hover {
        translate: 0 -3px;
        box-shadow: 0 12px 25px rgb(22 58 89 / 13%);
    }
}

.elinox-schafe .cms-footer {
    border-top: 1px solid var(--elinox-line);
    background: #e8f0f4;
    box-shadow: none;
    color: var(--elinox-ink);
}

.elinox-schafe .cms-footer a {
    color: var(--elinox-ink);
}

.elinox-schafe :focus-visible {
    outline: 3px solid #214f87;
    outline-offset: 3px;
}

.elinox-schafe-top :focus-visible {
    outline-color: #fff;
}

.elinox-schafe .cms-content-box:has(> .elinox-service-visual):focus-within {
    outline: 3px solid #214f87;
    outline-offset: 3px;
}

@media (max-width: 63.999em) {
    .elinox-schafe-top .cms-top-bar-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .elinox-schafe-top .cms-brand {
        flex: 0 0 auto;
    }

    .elinox-schafe-top [data-responsive-toggle] {
        order: 1;
    }

    .elinox-schafe-top .menu-icon {
        width: 2.75rem;
        height: 2.75rem;
        border-radius: .4rem;
    }

    .elinox-schafe-top .menu-icon::after {
        top: calc(50% - 7px);
        left: calc(50% - 10px);
        width: 20px;
    }

    .elinox-schafe-top:not([data-sticky-ready]) .cms-top-bar {
        flex-wrap: wrap;
    }

    .elinox-schafe-top:not([data-sticky-ready]) [data-responsive-toggle] {
        display: none;
    }

    .elinox-schafe-top[data-sticky-ready] #responsive-menu {
        position: absolute;
        inset: 100% 0 auto;
        width: 100%;
        max-height: min(70vh, 30rem);
        padding: .5rem max(calc((100vw - 85.625rem) / 2), 1rem);
        overflow: auto;
        overscroll-behavior: contain;
        background: #245c86;
        box-shadow: 0 6px 12px rgb(9 43 80 / 22%);
    }

    .elinox-schafe-top[data-sticky-ready] #responsive-menu :is(.top-bar-left, .top-bar-right, .menu > li, .menu > li > a) {
        width: 100%;
    }

    .elinox-schafe-top #responsive-menu .is-drilldown-submenu {
        background: #245c86;
    }
}

@media (max-width: 900px) {
    body.cms-template-elinox-schafe {
        --elinox-shell: calc(100% - 2.625rem);
        --elinox-topbar-height: 4rem;
        --elinox-landscape: url("./ELinOX-Schafe/landscape-tablet.webp?v=2");
        --elinox-card-columns: 2;
        --elinox-card-gap: 1.125rem;
    }

    .elinox-schafe-top .cms-top-bar {
        padding-inline: 1.3125rem;
    }
}

@media (max-width: 540px) {
    body.cms-template-elinox-schafe {
        --elinox-shell: calc(100% - 1.75rem);
        --elinox-hero-height: 19rem;
        --elinox-meadow-space: 4rem;
        --elinox-landscape: url("./ELinOX-Schafe/landscape-phone.webp?v=2");
        --elinox-card-columns: 1;
        --elinox-card-gap: 1rem;
    }

    .elinox-schafe-top .cms-top-bar {
        padding-inline: .875rem;
    }

}
