:root {
    --color-light-blue-background: #005f73;

    --color-braun-1: #e9e2d4;
    --color-braun-2: #c8c1a9;
    --color-braun-3: #615f53;
    --color-blue-1: #005267;
    --color-blue-3: #ced8d1;
    --color-blue-4: #c3d2ca;
    --color-gray: var(--color-braun-3);

    --frame: 15px;
    --navbar-height: 7.5rem;
    --navbar-height-compact: 5rem;

    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

@view-transition {
    navigation: auto;
}

html {
    scroll-padding-top: calc(var(--navbar-height) + 1.5rem);
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body.home-page {
    #main_nav {
        display: none;
    }
}

body {
    font-family: "Nunito Sans", Arial, sans-serif;
    border: var(--frame) solid white;
    overflow-anchor: none;
    background-color: var(--color-blue-1);
}

body:not(.home-page):not(.schiebel-apotheken) {
    background-color: var(--color-blue-3);
}

body::before {
    content: "";
    display: block;
    flex: 0 0 auto;
    height: var(--navbar-height);
    transition: height 0.3s ease;
}

@keyframes caption-word-in {
    from {
        opacity: 0;
        transform: translate3d(-0.4em, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@property --circle-progress {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@keyframes circle-draw {
    from {
        --circle-progress: 0deg;
    }
    to {
        --circle-progress: 360deg;
    }
}

@keyframes cover-slide-out {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(100%, 0, 0);
    }
}

@keyframes cover-slide-in {
    from {
        transform: translate3d(100%, 0, 0);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes column-reveal {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes column-leave {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(2rem);
    }
}

@keyframes nav-drop-in {
    from {
        opacity: 0;
        transform: translateY(-1.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 
	three widths: 
	large: min 2000px 
	midium: min 1022px
	small: max 1021px
*/

/* fonts */

/* Source Serif */

@font-face {
    font-display: swap;
    font-family: "Source Serif 4";
    font-style: normal;
    font-weight: 200 900;
    src: url("../fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Source Serif 4";
    font-style: italic;
    font-weight: 200 900;
    src: url("../fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2");
}

/* Nunito Sans - alternative to Avenir */

@font-face {
    font-display: swap;
    font-family: "Nunito Sans";
    font-style: normal;
    font-weight: 200 1000;
    font-stretch: 100%;
    src: url("../fonts/nunito-sans-latin-wdth-normal.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Nunito Sans";
    font-style: italic;
    font-weight: 200 1000;
    font-stretch: 100%;
    src: url("../fonts/nunito-sans-latin-wdth-italic.woff2") format("woff2");
}

/* Nunito Sans Condensed - alternative for Avenir Next Condensed */

@font-face {
    font-display: swap;
    font-family: "Nunito Sans Condensed";
    font-style: normal;
    font-weight: 200 1000;
    font-stretch: 75%;
    src: url("../fonts/nunito-sans-latin-wdth-normal.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Nunito Sans Condensed";
    font-style: italic;
    font-weight: 200 1000;
    font-stretch: 75%;
    src: url("../fonts/nunito-sans-latin-wdth-italic.woff2") format("woff2");
}

/* fonts end */

p,
span,
a,
h1,
h2,
h3,
h4 {
    line-height: 1.6;
}

a,
p,
span {
    font-family: "Nunito Sans", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
    &:hover {
        color: var(--color-blue-1);
    }
}

h3,
h4,
h5 {
    font-family: "Source Serif 4", serif;
    font-weight: 400;
}

hr {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-width: 1px !important;
}

.limited-width {
    width: 75%;
    margin-left: auto !important;
    margin-right: auto !important;
}

.weight-600 {
    font-weight: 600;
}

body.home-page,
body.schiebel-apotheken {
    height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

header {
    height: var(--navbar-height);
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 2px solid transparent;
    position: fixed;
    top: var(--frame);
    right: var(--frame);
    left: var(--frame);
    z-index: 1000;
    box-sizing: border-box;
    background-color: var(--color-blue-1);
    transform: translate3d(0, 0, 0);
    view-transition-name: site-header;
    transition:
        height 0.3s ease,
        top 0.3s ease,
        transform 0.3s ease,
        border-color 0.3s ease;
    will-change: height, top, transform;

    &.navbar--compact {
        height: var(--navbar-height-compact);
        border-color: #ffffff;
        top: 0;
        transition:
            height 0.3s ease,
            top 0.3s ease,
            transform 0.3s ease,
            border-color 0.3s ease;
    }

    &.navbar--hidden {
        pointer-events: none;
        transform: translate3d(0, -100%, 0);
    }

    .logo {
        display: flex;
        align-items: center;

        width: 100%;

        a {
            height: 100%;

            svg {
                height: 100%;
                width: auto;
            }
        }
    }

    #main_nav {
        justify-self: center;
    }

    .mobile_bar {
        display: none;
    }

    .menu_button_cont {
        display: flex;
        align-items: center;
        justify-self: end;
    }

    .contact_button {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 2.5rem;
        font-weight: 600;
        background: transparent;
        color: var(--color-braun-2);
        text-decoration: none;
        border: 1px solid white;
        border-radius: 5rem;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        isolation: isolate;
        transition:
            color 0.6s var(--ease-out),
            transform 0.2s ease-in-out;

        &::before {
            content: "";
            position: absolute;
            inset: 0;
            z-index: -1;
            background: white;
            transform: translateX(-101%);
            transition: transform 0.6s var(--ease-out);
        }

        &:hover {
            color: var(--color-blue-1);

            &::before {
                transform: translateX(0);
            }
        }

        span {
            font-family: "Nunito Sans Condensed", Helvetica, sans-serif;
        }
    }
}

body:not(.home-page) {
    .hero {
        background: var(--color-blue-1);

        > .wp-block-column {
            position: relative;
            overflow: hidden;

            &::after {
                content: "";
                position: absolute;
                top: 0;
                bottom: 0;
                left: -25%;
                width: calc(125% + 1px);
                z-index: 4;
                background: linear-gradient(
                    to right,
                    transparent,
                    var(--color-blue-1) 20%
                );
                pointer-events: none;
                animation: cover-slide-out 1.4s ease 0.2s both;
            }
        }

        > .wp-block-column:not(.list-text) figure {
            clip-path: inset(0 1px 0 0);
        }

        > .wp-block-column.list-text {
            &::after {
                animation-delay: 1s;
            }

            a {
                line-height: 1;
            }
        }
    }

    .content-wrapper.page-leaving .hero > .wp-block-column::after {
        animation: cover-slide-in var(--cover-duration, 0.5s) linear
            var(--cover-delay, 0s) both;
    }
}

.hero-pending body:not(.home-page) .hero > .wp-block-column::after {
    animation-play-state: paused;
}

body.home-page header {
    grid-template-columns: 1fr 1fr;
}

.content-wrapper {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;

    &.page-leaving {
        .hero .wp-block-columns > .wp-block-column:not(.list-text)::after {
            transform: translate3d(calc(-100% + 2px), 0, 0);
        }

        .hero .wp-block-columns .list-text {
            opacity: 0;
        }
    }
}

.hero {
    height: 80vh;
    overflow: hidden;
    position: relative;
    padding: 0rem;

    .wp-block-group__inner-container {
        height: 100%;
    }

    .wp-block-columns {
        display: flex;
        height: 100%;
        margin: 0;
        padding: 0;
        gap: 0.8rem;

        > .wp-block-column:not(.list-text) {
            position: relative;
            overflow: hidden;
            container-type: inline-size;

            &::after {
                content: "";
                position: absolute;
                top: 0;
                bottom: 0;
                left: 100%;
                width: 125%;
                z-index: 4;
                background: linear-gradient(
                    to right,
                    transparent,
                    var(--color-blue-1) 20%
                );
                pointer-events: none;
                transition: transform 2s ease;
            }
        }

        .list-text {
            transition: opacity 2s ease;
            font-family: "Nunito Sans", Arial, sans-serif;
        }
    }

    figure {
        height: 100%;
        position: relative;
        padding: 0;
        margin: 0;
    }

    --caption-size: 7.84cqw;
    --caption-left: 40.12%;
    --caption-baseline: 56.06%;

    .circle {
        position: absolute;
        top: calc(var(--caption-baseline) + var(--caption-size) * 0.337);
        left: calc(var(--caption-left) + var(--caption-size) * 3.075);
        width: calc(var(--caption-size) * 4.14);
        height: calc(var(--caption-size) * 4.14);

        transform: translate(-50%, -50%);

        border-radius: 50%;
        z-index: 1;
        background: rgba(0, 0, 0, 0.15);

        &::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: 50%;
            --circle-progress: 0deg;
            background: conic-gradient(
                var(--color-braun-1) var(--circle-progress),
                rgba(255, 255, 255, 0.3) var(--circle-progress)
            );
            -webkit-mask: radial-gradient(
                farthest-side,
                transparent calc(100% - 4px),
                #000 calc(100% - 4px)
            );
            mask: radial-gradient(
                farthest-side,
                transparent calc(100% - 4px),
                #000 calc(100% - 4px)
            );
            animation: circle-draw 10s linear forwards;
        }
    }

    img {
        width: 100%;
        height: 100% !important;
        object-fit: cover;
        position: absolute;
    }

    figcaption {
        position: absolute;
        top: calc(var(--caption-baseline) - var(--caption-size) * 0.7775);
        left: var(--caption-left);
        width: max-content;
        margin: 0;
        text-align: left;
        font-size: var(--caption-size);

        color: white;

        font-style: italic;
        line-height: 0.854;
        z-index: 3;

        br {
            display: none;
        }

        span {
            display: block;
            opacity: 0;
            animation: caption-word-in 0.9s var(--ease-out) 0.25s forwards;
            font-family: "Source Serif 4", serif;
            font-variation-settings: "opsz" 20;
            line-height: 0.854;
        }

        span:nth-child(3) {
            margin-left: 2.5em;
            animation-delay: 0.55s;
        }

        span:nth-child(5) {
            margin-left: 1.75em;
            animation-delay: 0.85s;
        }
    }

    .list-text {
        display: flex;
        justify-content: start;
        align-items: center;

        .wp-block-list {
            z-index: 1;
        }
    }

    ul {
        list-style: none;

        li {
            position: relative;
            margin: 1rem auto;

            &:not(:last-child)::after {
                content: "";
                display: block;
                width: 3rem;
                height: 5px;
                margin-top: 1rem;
                background: white;
            }

            a {
                color: var(--color-braun-2);
                text-decoration: none;
                transition: color 0.3s ease;
                display: inline-block;

                &:hover {
                    color: white;
                }
            }
        }
    }

    &.normal-page {
        margin: 0 0 3rem;
        gap: 1rem;
        z-index: 3;

        .list-text {
            background: transparent;
            position: relative;
        }

        ul {
            li {
                &:not(:last-child)::after {
                    background: white;
                    width: max(2.7rem, 2vw);
                }

                a {
                    color: var(--color-braun-2);

                    &:hover {
                        color: white;
                    }

                    &.current-page {
                        color: white;
                        pointer-events: none;
                    }

                    span {
                        font-size: 0.8em;
                    }
                }
            }
        }

        .symbol-slot {
            position: absolute;
            top: 50%;
            left: 50%;
            height: 55%;
            width: auto;
            max-width: 90%;
            transform: translate(-50%, -50%);
            pointer-events: none;
            z-index: 0;

            path {
                fill: var(--color-light-blue-background);
            }
        }

        .symbol-link {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 80%;
            height: auto;
            transform: translate(-50%, -50%);
            opacity: 0;
            transition: opacity 1s ease;

            .sym-st0 {
                fill: #94c01f;
            }

            .sym-st1,
            .sym-st2 {
                fill: #ffffff;
            }
        }
    }
}

footer {
    height: 9vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer_block.menu {
    ul.menu {
        display: flex;
        flex-direction: row;
        list-style: none;
        justify-content: center;

        li {
            position: relative;
        }

        li + li {
            margin-left: 1rem;
            padding-left: 1rem;
            border-left: 2px solid var(--color-braun-2);
        }

        a {
            color: var(--color-braun-1);
            text-decoration: none;
            transition: color 0.3s ease;
            font-size: 1.1rem;

            &:hover {
                color: white;
            }
        }
    }
}

footer.general {
    background: var(--color-blue-4);
    height: 100%;
    flex-direction: column;

    strong {
        font-weight: 800;
    }
    .logos-container {
        display: flex;
        flex-direction: row;
        margin: 7rem auto;
        max-width: 80rem;
        width: 100%;
        justify-content: center;
        border-radius: 50%;

        .logo-footer {
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            padding: 0 3rem;
            box-sizing: border-box;

            &:not(:first-child)::before {
                content: "";
                position: absolute;
                top: 50%;
                height: 50%;
                left: 0;
                width: 0;
                border-left: 2px solid white;
                transform: translateY(-50%) scaleY(var(--line-scale, 1));
            }

            a {
                display: flex;
                position: relative;
                width: 9rem;
                height: 9rem;
                justify-content: center;
                align-items: center;
            }

            .logo-ring {
                position: absolute;
                pointer-events: none;
                width: 100%;
                height: 100%;
            }

            svg:not(.logo-ring) {
                background: var(--color-blue-1);
                border-radius: 50%;
                width: 75%;
                height: 75%;
                flex-shrink: 0;
                padding: 0.7rem;
                box-sizing: border-box;
                border: 3px solid transparent;
                transition:
                    background-color 0.3s ease,
                    border-color 0.3s ease;
            }

            a:hover svg:not(.logo-ring) {
                background: var(--color-braun-2);
            }

            .st0 {
                fill: #ffffff;
                fill-rule: evenodd;
                clip-rule: evenodd;
            }
        }
    }
    .text-container {
        display: flex;
        flex-direction: row;
        align-items: end;
        margin-bottom: 7rem;
        color: var(--color-braun-3);
        max-width: 80rem;
        width: 100%;
        --footer-gap: 10rem;
        gap: var(--footer-gap);
        justify-content: center;

        .text-footer {
            position: relative;

            &:not(:first-child)::before {
                content: "";
                position: absolute;
                bottom: 0;
                left: calc(var(--footer-gap) / -2);
                width: 0;
                height: 12rem;
                border-left: 2px solid var(--color-blue-1);
                transform: scaleY(var(--line-scale, 1));
                transform-origin: center bottom;
            }
        }

        a {
            text-decoration: none;
            color: var(--color-braun-3);
            transition: color 0.3s ease;

            &:hover {
                color: white;
            }
        }
    }

    span,
    address,
    a {
        font-family: "Nunito Sans Condensed", Helvetica, sans-serif;
    }

    address {
        font-style: normal;
    }
}

#main_nav {
    display: flex;
    align-items: center;

    .legal_menu {
        display: none;
    }

    ul.menu {
        display: flex;
        flex-direction: row;
        list-style: none;
        padding: 0;

        li {
            position: relative;
        }

        li + li {
            border-left: 1px solid var(--color-braun-2);
        }

        a {
            color: var(--color-braun-2);
            text-decoration: none;
            transition: color 0.3s ease;

            &:hover {
                color: white;
            }
        }

        .current-menu-item a {
            color: white;
            font-weight: 700;
        }
    }
}

body.schiebel-apotheken {
    .content-wrapper {
        --column-leave-duration: 0.6s;
        --column-leave-step: 0.12s;
        display: flex;
        flex-direction: row;
        justify-content: center;
        padding: 4rem 0;

        &.page-leaving {
            pointer-events: none;

            .one-column {
                animation: column-leave var(--column-leave-duration)
                    cubic-bezier(0.16, 1, 0.3, 1) both;
                animation-delay: var(--leave-delay, 0s);
            }
        }
    }

    #main_nav {
        opacity: 0;
        animation: nav-drop-in 0.6s ease-out forwards;
    }
}

.one-column {
    position: relative;
    width: 100%;
    height: 100%;
    border-right: 1px solid white;
    opacity: 0;
    animation: column-reveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;

    &:first-child {
        border-left: 1px solid white;
    }

    &:nth-child(1) {
        animation-delay: 0.6s;
    }

    &:nth-child(2) {
        animation-delay: 0.45s;
    }

    &:nth-child(3) {
        animation-delay: 0.3s;
    }

    &:nth-child(4) {
        animation-delay: 0.15s;
    }

    &:nth-child(5) {
        animation-delay: 0s;
    }

    .wp-block-group__inner-container {
        height: 100%;
    }

    .column-text-container {
        width: 97%;
        position: absolute;
        z-index: 2;
        top: 3%;
        left: 6%;
        font-size: 3rem;
        transition: opacity 1s ease;
    }

    .large-gray,
    .small-green {
        padding: 0;
        margin: 0;
        font-family: "Source Serif 4", serif;
        letter-spacing: 0px;
        transition: color 0.3s ease;
    }

    .large-gray {
        color: var(--color-braun-1);
        margin-bottom: 0.3rem;
        font-weight: 500;
        line-height: 1;
    }

    .small-green {
        color: var(--color-braun-1);
        font-style: italic;
    }

    figure:not(.symbol-link figure) {
        position: relative;
        margin: 0;
        z-index: 1;
        height: 100%;
        overflow: hidden;
        visibility: hidden;
        transition: visibility 0s 1s;

        &::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 125%;
            background: linear-gradient(
                to top,
                transparent,
                var(--color-blue-1) 20%
            );
            pointer-events: none;
            transition: transform 1s ease;
        }

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

    &:hover figure:not(.symbol-link figure) {
        visibility: visible;
        transition: visibility 0s;

        &::after {
            transform: translate3d(0, -100%, 0);
        }
    }

    &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 45%;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.26),
            transparent
        );
        z-index: 2;
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
    }

    &:hover::before {
        opacity: 1;
        transition: opacity 1s ease 0.4s;
    }

    &:hover .symbol-link {
        .sym-st1 {
            fill: #ffffff;
        }

        .sym-st2,
        .sym-st3 {
            opacity: 0;
        }

        .plus-sign {
            fill: var(--color-blue-1) !important;
        }

        .fill-area {
            fill: rgba(255, 255, 255, 0.5);
        }
    }

    &:hover .column-text-container p {
        color: white;
    }

    .symbol-link {
        position: absolute;
        bottom: 0;

        z-index: 2;
        transition: transform 0.6s ease;
        width: 4rem;
        padding-left: 2rem;
        padding-bottom: 5%;

        .plus-sign {
            transition: fill 0.6s ease;
            transition-delay: 0.15s;
        }

        .fill-area {
            fill: transparent;
            transition: fill 0.6s ease;
            transition-delay: 0.15s;
        }
    }

    .one-column-link {
        position: absolute;
        inset: 0;
        z-index: 3;
    }
}

.has-text-align-center {
    width: fit-content;
    margin: auto;
}

.sub_menu_cont {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.125rem;

    .sub_menu {
        position: relative;
        border-bottom: 2px solid transparent;
    }

    .sub_menu_indicator {
        position: absolute;
        bottom: 0.35rem;
        left: 0;
        width: 1px;
        height: 2px;
        background: var(--color-blue-1);
        transform-origin: left center;
        opacity: 0;
        pointer-events: none;
        transition:
            opacity 0.3s var(--ease-out),
            transform 0.6s var(--ease-out);
    }

    &.sub_menu_cont--fixed .sub_menu_indicator.is-visible {
        opacity: 1;
    }

    ul {
        display: flex;
        flex-direction: row;
        list-style: none;
        width: fit-content;
        margin: auto;
        padding: 0;

        li {
            position: relative;
        }

        li + li {
            margin-left: 1rem;
            padding-left: 1rem;
            border-left: 1px solid white;
        }

        a {
            color: var(--color-gray);
            text-decoration: none;
            transition: color 0.3s ease;
            font-size: 1.25rem;
            line-height: 1;
            letter-spacing: 0;

            &:hover {
                color: var(--color-blue-1);
            }
        }
    }
}

.sub_menu_cont--fixed .sub_menu {
    position: fixed;
    top: var(--navbar-height-compact);
    right: var(--frame);
    left: var(--frame);
    z-index: 999;
    width: calc(100% - (var(--frame) + var(--frame)));
    padding: 0.75rem 0;
    box-sizing: border-box;
    background-color: var(--color-blue-4);
    border-color: #eeeeee;
    transition:
        top 0.3s ease,
        border-color 0.3s ease;
}

.sub_menu_cont--fixed .sub_menu.sub_menu--navbar-hidden {
    top: 0;
}

body.admin-bar .sub_menu_cont--fixed .sub_menu {
    top: calc(32px + var(--navbar-height-compact));
}

.sub_menu_cont--fixed,
.sub_menu.sub_menu--navbar-hidden {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .sub_menu_cont--fixed .sub_menu {
        top: calc(46px + var(--navbar-height-compact));
    }

    .sub_menu_cont--fixed,
    .sub_menu.sub_menu--navbar-hidden {
        top: 46px;
    }
}

.page-content {
    max-width: 80rem;
    width: 100%;
    margin: 0 auto;
    position: relative;

    .logo-pin {
        height: 100vh;
        width: 100%;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: -1;

        svg {
            display: block;
            width: 80%;
            margin: 0 auto;
            height: 100%;
        }
    }

    #g1 {
        opacity: 0;
    }
}

.heading-h4 {
    margin-top: 6rem;
    margin-bottom: 2rem;

    h4 {
        /*font-size: 2.25rem;*/
        font-size: 3.25rem;
        font-weight: 600;
        margin: 0;
        color: var(--color-blue-1);
    }
}

.heading-h3 {
    font-size: 2rem;
    color: var(--color-braun-2);
    margin: 6rem auto;
    font-style: italic;
    margin-bottom: 1rem;
    h3 {
        margin-bottom: 0;

        &:not(.weight-600) {
            font-weight: 500;
        }
    }

    + .heading-h2 {
        h2 {
            margin-top: 0;
        }
    }
}

.heading-h2 {
    font-size: 3.3rem;
    color: var(--color-blue-1);
    margin: 4rem auto;
    margin-top: 0rem;

    h2 {
        font-family: "Source Serif 4", serif;
        font-weight: 600;
        line-height: 1.25;

        em {
            font-weight: 500;
        }
    }

    + .heading-h2 {
        h2 {
            margin-top: 0;
        }
    }

    &:has(+ .heading-h2) {
        margin-bottom: 0;
        h2 {
            margin-bottom: 0;
        }
    }
}

.page-content figcaption {
    font-family: "Nunito Sans Condensed", Arial, sans-serif;
    font-style: italic;
    color: var(--color-gray);

    strong {
        font-style: normal;
        font-weight: 600;
    }
}

.zero-margin-top {
    margin-top: 0 !important;
}

.zero-padding-top {
    padding-top: 0 !important;
}

p,
.wp-block-accordion {
    font-size: 1.375rem;
    width: 75%;
    margin: 0 auto;

    p {
        width: 100%;
    }
}

p {
    color: var(--color-gray);
}

.wp-block-accordion {
    color: var(--color-blue-1);
}

.wp-block-accordion-panel {
    display: grid !important;
    grid-template-rows: 1fr;
    grid-auto-rows: 1fr;
    overflow: hidden;
    margin-left: 6rem;
    color: var(--color-braun-3);
    transition:
        grid-template-rows 0.5s var(--ease-out),
        grid-auto-rows 0.5s var(--ease-out),
        padding-bottom 0.5s var(--ease-out),
        content-visibility 0.5s var(--ease-out) allow-discrete;

    > * {
        min-height: 0;
        opacity: 0;
        translate: 0 0.75rem;
        transition:
            opacity 0.25s var(--ease-out),
            translate 0.25s var(--ease-out);
    }

    .is-open & > * {
        opacity: 1;
        translate: 0 0;
        transition-duration: 0.6s;
        transition-delay: 0.2s;
    }

    &[aria-hidden="true"],
    &[inert],
    &[hidden] {
        grid-template-rows: 0fr;
        grid-auto-rows: 0fr;
        margin-block-start: 0;
    }

    @media (prefers-reduced-motion: reduce) {
        transition-duration: 0.01s;
    }
}

.wp-block-accordion-heading__toggle-icon {
    display: inline-flex !important;
    position: relative;
    transform: none !important;

    width: 5rem !important;
    height: 5rem !important;

    font-size: 0 !important;

    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%227.7%206.3%2066%2058.3%22%3E%3Ccircle%20fill%3D%22rgba%28255%2C255%2C255%2C0.5%29%22%20cx%3D%2240.6%22%20cy%3D%2235.5%22%20r%3D%2228.4%22%2F%3E%3Cpath%20d%3D%22M40.6%206.4c-18.1%200-32.7%2013-32.7%2029.1s14.6%2029.1%2032.7%2029.1%2032.7-13%2032.7-29.1S58.6%206.4%2040.6%206.4m0%2057.5c-15.7%200-28.4-12.7-28.4-28.4S24.9%207.1%2040.6%207.1%2069%2019.8%2069%2035.5%2056.2%2063.9%2040.6%2063.9%22%20fill%3D%22%23c8c1a9%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    &::before,
    &::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        background: var(--color-blue-1);
        transform: translate(-50%, -50%);
        transition: transform 0.4s var(--ease-out);
    }

    &::before {
        width: 2.2rem;
        height: 0.15rem;
    }

    &::after {
        width: 0.15rem;
        height: 2.2rem;
    }
}

.wp-block-accordion {
    margin: 5% auto;

    .wp-block-accordion-item {
        position: relative;

        &:first-child {
            padding-top: 1px;
        }

        &::after,
        &:first-child::before {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 1px;
            background: var(--color-blue-1);
            transform: scaleX(var(--line-scale, 1));
            transform-origin: left center;
        }

        &:first-child::before {
            top: 0;
            bottom: auto;
        }

        h3 {
            font-style: italic;
            margin: 2rem;
            font-weight: 600;

            span {
                font-family: "Source Serif 4", serif;
                font-weight: 600;
            }
        }

        button {
            gap: 1rem;
        }

        .wp-block-accordion-heading__toggle:hover
            .wp-block-accordion-heading__toggle-title {
            text-decoration: none;
        }

        .wp-block-accordion-heading__toggle-title {
            font-size: 2.2rem;
            transition: color 0.3s ease;

            &:hover {
                text-decoration: none;
                color: var(--color-braun-3);
            }
        }

        &.is-open {
            .wp-block-accordion-heading__toggle-icon {
                &::before,
                &::after {
                    transform: translate(-50%, -50%) rotate(45deg);
                }
            }

            .wp-block-accordion-panel {
                padding-bottom: 4rem;
                p {
                    font-size: 1.375rem;
                }
            }
        }

        .wp-block-list {
            li {
                margin-bottom: 0.125rem;
                &::marker {
                    content: "\2014\00a0\00a0";
                    color: var(--color-blue-1);
                }
            }
        }
    }

    a {
        text-decoration: none;
        color: var(--color-blue-1);
        transition: color 0.3s ease;

        &:hover {
            color: var(--color-gray);
        }
    }
}

.shop-block {
    border: 1rem solid var(--color-blue-1);
    background-color: white;
    padding: 5rem 2rem 5rem 5rem;
    border-radius: 2rem;
    margin: 10rem 0;

    > div {
        display: flex;
        gap: 2rem;

        .header_cont {
            margin: 0 0 1.5rem 0;
            h2 {
                margin: 0;
            }
        }

        figure {
            margin: 0;
        }

        .wp-block-group {
            flex: 1;
            p {
                width: auto;
                padding-left: 8rem;
                font-size: 1.375rem;
            }
        }
    }

    .wp-block-buttons {
        margin: 3rem 0 0 8rem;

        .wp-block-button a {
            background-color: transparent !important;
            border: 1px solid var(--color-blue-1);
            color: var(--color-blue-1);
            font-weight: 600;
            position: relative;
            overflow: hidden;
            isolation: isolate;
            transition: color 0.6s var(--ease-out);

            &::before {
                content: "";
                position: absolute;
                inset: 0;
                z-index: -1;
                background: var(--color-blue-1);
                transform: translateX(-101%);
                transition: transform 0.6s var(--ease-out);
            }

            &:hover {
                color: white;

                &::before {
                    transform: translateX(0);
                }
            }
        }
    }
}

.wp-block-buttons {
    .wp-block-button {
        a {
            background-color: var(--color-blue-1);
            cursor: pointer;
            transition: background-color 0.3s;
            font-weight: 600;
            font-size: 1.25rem;
            font-family: "Nunito Sans", Arial, sans-serif;
            padding: 0.625rem 2.25rem;
            &:hover {
                background-color: var(--color-gray);
            }
        }
    }
}

.app-block {
    margin: 4rem auto 3rem;
    > div {
        display: flex;
        align-items: center;
        gap: 4rem;
        .wp-block-group {
            &:first-of-type {
                flex-basis: 40%;
            }
            figure {
                margin: 0;
                + figure {
                    margin-top: 1.5rem;
                }
            }
        }
    }
}

.icons-block {
    margin: 5rem auto;
    > div {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem 5rem;
        .icon-item {
            > div {
                figure {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    width: 8rem;
                    margin: 0 auto 2rem;
                    aspect-ratio: 1;

                    padding: 0.75rem;
                    position: relative;
                    &:after {
                        content: "";
                        width: 130%;
                        height: 116%;
                        position: absolute;
                        inset: -7.5% 0 0 -15%;
                        background-image: url("../img/logo-ring.svg");
                        background-repeat: no-repeat;
                        background-size: 100%;
                    }
                    &:before {
                        content: "";
                        position: absolute;
                        inset: 0;
                        border-radius: 50%;
                        background-color: var(--color-blue-1);
                        overflow: hidden;
                    }
                    img {
                        width: 75%;
                        max-height: 75%;
                        position: relative;
                        z-index: 2;
                    }
                }
                p {
                    text-align: center;
                    font-weight: 600;
                    line-height: 1.4;
                    font-size: 1.25rem;
                    width: auto;
                    font-family: "Nunito Sans Condensed", Arial, sans-serif;
                }
            }
        }
    }
}

.phone-block {
    position: relative;
    margin: 0 auto;
    padding: 3rem 0;

    &::before,
    &:not(:has(+ .phone-block))::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 0.25rem;
        background: var(--color-blue-1);
        transform: scaleX(var(--line-scale, 1));
        transform-origin: left center;
    }

    &:not(:has(+ .phone-block))::after {
        top: auto;
        bottom: 0;
    }

    .wp-block-column {
        position: relative;
        + .wp-block-column::before {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            width: 1px;
            background: var(--color-blue-1);
            transform: scaleY(var(--line-scale, 1));
            transform-origin: center top;
        }
        .tel-item {
            > div {
                p,
                a {
                    font-family: "Nunito Sans Condensed", Arial, sans-serif;
                }

                p {
                    width: auto;
                    text-align: center;
                    line-height: 1.4;
                    font-weight: 500;

                    &.tel-name {
                        font-size: 1.375rem;
                        font-weight: 700;
                    }

                    &.tel-city {
                        font-size: 1.125rem;
                        font-weight: 600;
                    }

                    &.tel-link {
                        font-size: 1.25rem;
                        margin-top: 2.5rem;
                        a {
                            text-decoration: none;
                            transition: color 0.3s;
                            &:hover {
                                color: var(--color-blue-1);
                            }
                        }
                        strong {
                            font-size: 1.625rem;
                            font-weight: 700;
                        }
                    }
                }
            }
        }
    }
}

.ap_item {
    padding: 3rem 0;
    position: relative;
    + .ap_item::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: var(--color-braun-3);
        transform: scaleX(var(--line-scale, 1));
        transform-origin: left center;
    }
    > div {
        position: relative;
        min-height: 8rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;

        figure {
            border-radius: 50%;
            margin: 0;
            width: 11rem;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            right: calc(100% + 2rem);

            &:before {
                content: "";
                width: 112%;
                position: absolute;
                inset: -2px 0 0 -6%;
                background-image: url("../img/logo-ring.svg");
                background-size: 100%;
                background-repeat: no-repeat;
            }

            img {
                width: 100%;
                height: auto;
                border: 0.625rem solid #fff;
                border-radius: 50%;
                overflow: hidden;
            }
        }

        .heading-h5 {
            margin-bottom: 1.5rem;
            h5 {
                margin: 0;
                color: var(--color-blue-1);
                font-size: 2rem;
                font-weight: 600;
            }
        }

        .ap_content {
            width: 100%;
            a {
                strong {
                    &:before {
                        content: "";
                        width: 1rem;
                        height: 1rem;
                        background-image: url("../img/arrow-theme.svg");
                        background-repeat: no-repeat;
                        background-size: 100%;
                        display: inline-block;
                        margin-right: 0.5rem;
                        vertical-align: middle;
                        transition: transform 0.3s ease;
                    }
                }
                strong {
                    color: var(--color-blue-1);
                    font-weight: 500;
                }
                &:hover {
                    color: var(--color-blue-1);

                    strong:before {
                        transform: translateX(0.25rem);
                    }
                }
            }
        }
    }
}

.qr-group {
    margin: 4rem auto;
    > div {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 3.5rem 3rem;
    }
}

.qr-item {
    &.limited-width {
        margin: 5rem auto;

        figure {
            padding: 4rem 8rem;
        }
    }
    figure {
        margin: 0;
        background-color: #ffffff;
        border: 1rem solid var(--color-blue-1);
        border-radius: 1.5rem;
        overflow: hidden;
        padding: 0.375rem;
        margin-bottom: 1.75rem;

        img {
            width: 100%;
            height: auto;
        }
    }
    p {
        text-align: center;
        white-space: nowrap;
        font-weight: 700;
        font-size: 1.375rem;
        line-height: 1.4;
        font-family: "Nunito Sans Condensed", Arial, sans-serif;
    }
}

.line-title {
    position: relative;
    p {
        width: auto;
    }
    .heading-h3 {
        position: absolute;
        right: calc(100% + 3.5rem);
        top: 0;
        margin: 0;
        h3 {
            margin: 0;
            white-space: nowrap;
            line-height: 1;
        }
    }
}
.team-block {
    margin-bottom: 20rem;
    > div {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 5rem;
        .team-item {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 0.5rem;

            &:nth-child(4n + 2),
            &:nth-child(4n + 4) {
                transform: translateY(15rem);
            }

            .team-image {
                border-radius: 50%;
                margin: 0 0 1.125rem 0;
                position: relative;

                &:before {
                    content: "";
                    width: 112%;
                    height: auto;
                    position: absolute;
                    inset: -2px 0 0 -6%;
                    background-image: url("../img/logo-ring.svg");
                    background-size: 100%;
                    background-repeat: no-repeat;
                }

                img {
                    width: 100%;
                    height: auto;
                    border: 1.25rem solid white;
                    border-radius: 50%;
                    overflow: hidden;
                }
            }
            > div {
                > p {
                    margin: 0;
                    width: auto;
                    text-align: center;
                    line-height: 1.4;

                    &.team-name {
                        font-size: 1.375rem;
                        letter-spacing: 0;
                        margin-bottom: 0.125rem;
                    }

                    &.team-pos {
                        font-size: 1rem;
                        font-weight: 600;
                        letter-spacing: 0;
                    }
                }
            }
        }
    }
}

.contact-form {
    --form-asterisk: #f6933f;
    --form-text: var(--color-blue-1);
    --form-accent: var(--color-blue-1);
    --pill-bg: var(--color-braun-1);

    max-width: 50rem;
    margin: 5rem 0 5rem auto;

    span {
        line-height: 1;
    }

    .mail_pending,
    .message {
        padding: 1rem 1.5rem;
        margin-bottom: 1rem;
        border-radius: 1rem;
        background: var(--pill-bg);
        color: var(--form-text);

        &:empty {
            display: none;
        }
    }

    .form_cont {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        position: relative;
        border: var(--color-braun-2) 10px solid;
        background: white;
        border-radius: 2rem;
        padding: 2rem;
    }

    .form_title {
        margin: 0 0 1rem;
        color: var(--color-blue-1);
        font-size: 2rem;
        font-weight: 600;
        line-height: 1.15;
        letter-spacing: 0.05em;

        em {
            display: block;
            padding-left: 2.5rem;
            font-weight: 500;
            letter-spacing: 0;
        }

        span {
            display: block;
            font-family: "Nunito Sans Condensed", Arial, sans-serif;
            font-size: 1.25rem;
            font-weight: 700;
            line-height: 1.4;
            letter-spacing: 0;
        }
    }

    .input_cont {
        position: relative;

        input,
        textarea {
            width: 100%;
            box-sizing: border-box;
            border: none;
            outline: none;
            background: var(--color-blue-1);
            color: white;
            font: inherit;

            padding: 0.9rem 1.5rem;
            border-radius: 999px;
            transition:
                box-shadow 0.2s ease,
                padding 0.2s ease;

            &:focus {
                box-shadow: 0 0 0 5px var(--color-braun-2);
            }
        }

        &:not(.checkbox_container) label {
            position: absolute;
            top: 0.9rem;
            left: 1.5rem;
            color: var(--color-braun-2);

            pointer-events: none;
            transform-origin: left top;
            transition:
                transform 0.2s ease,
                top 0.2s ease;

            span {
                color: var(--color-braun-2);
                margin-left: 0.15rem;
            }
        }

        &:not(.checkbox_container):has(input:focus) input,
        &:not(.checkbox_container):has(input:not(:placeholder-shown)) input {
            padding-top: 1.4rem;
            padding-bottom: 0.4rem;
        }

        &:not(.checkbox_container):has(input:focus) label,
        &:not(.checkbox_container):has(input:not(:placeholder-shown)) label {
            top: 0.35rem;
            transform: scale(0.7);
        }

        &.full {
            textarea {
                display: block;
                min-height: 12rem;
                max-height: 14rem;
                padding: 1.5rem;
                border-radius: 1.5rem;
                resize: vertical;
                transition:
                    box-shadow 0.2s ease,
                    padding-top 0.2s ease;
            }

            label {
                top: 1.5rem;
            }

            &:has(textarea:focus) textarea,
            &:has(textarea:not(:placeholder-shown)) textarea {
                padding-top: 2.2rem;
            }

            &:has(textarea:focus) label,
            &:has(textarea:not(:placeholder-shown)) label {
                top: 0.6rem;
                transform: scale(0.7);
            }
        }

        &.text {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 0.4rem;
            font-size: 1.2rem;
            color: var(--color-braun-3);
            text-align: right;

            span {
                color: var(--form-asterisk);
            }

            [data-svg]:empty {
                display: none;
            }
        }
    }

    .checkbox_container {
        width: 21rem;
        position: absolute;
        bottom: 0;
        transform: translateX(calc(-100% - 5rem));
        input[type="checkbox"] {
            position: absolute;
            width: 1px;
            height: 1px;
            opacity: 0;
        }

        label {
            position: static;
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
            cursor: pointer;
            color: var(--color-braun-3);
            font-size: 0.95rem;
            line-height: 1.5;

            > h3 {
                margin: 0;
                font-size: 1.4rem;
                font-style: italic;
                font-weight: 700;
            }

            > h3 span,
            > div:not(.checkbox) span {
                color: var(--form-asterisk);
            }

            > div:not(.checkbox) {
                position: relative;
                margin: 0;
            }
        }

        .checkbox {
            position: absolute;
            top: 0;
            right: calc(100% + 3rem);
            flex-shrink: 0;
            width: 3rem;
            height: 2rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transform: translateY(-20%);

            &::after {
                content: "";
                position: absolute;
                top: 50%;
                left: 100%;
                width: 2rem;
                height: 1px;
                background: var(--color-braun-3);
                transform: translateY(-50%);
            }

            span {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                width: 1.1rem;
                height: 1.1rem;

                &::before,
                &::after {
                    content: "";
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    width: 1.1rem;
                    height: 0.15rem;
                    background: var(--color-braun-3);
                    border-radius: 999px;
                    transition: transform 0.2s ease;
                }

                &::before {
                    transform: translate(-50%, -50%) rotate(45deg) scale(0);
                }

                &::after {
                    transform: translate(-50%, -50%) rotate(-45deg) scale(0);
                }
            }

            .fill-area {
                fill: rgba(255, 255, 255, 0.5);
            }
        }

        input:checked ~ label .checkbox span {
            &::before {
                transform: translate(-50%, -50%) rotate(45deg) scale(1);
            }

            &::after {
                transform: translate(-50%, -50%) rotate(-45deg) scale(1);
            }
        }

        input:focus-visible ~ label .checkbox {
            outline: 2px solid var(--form-accent);
            outline-offset: 2px;
        }

        a {
            color: inherit;
            text-decoration: underline;

            &:hover {
                color: var(--form-accent);
            }
        }
    }

    .form_footer {
        display: flex;
        margin-top: 0.5rem;

        button {
            background: transparent;
            color: var(--color-blue-1);
            border: 1px solid var(--color-blue-1);
            padding: 0.5rem 2.5rem;
            font-family: "Nunito Sans", Arial, sans-serif;
            border-radius: 999px;
            font-size: 1.125rem;
            font-weight: 700;
            letter-spacing: 0.03em;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            isolation: isolate;
            transition: color 0.6s var(--ease-out);

            &::before {
                content: "";
                position: absolute;
                inset: 0;
                z-index: -1;
                background: var(--color-blue-1);
                transform: translateX(-101%);
                transition: transform 0.6s var(--ease-out);
            }

            &:hover {
                color: white;

                &::before {
                    transform: translateX(0);
                }
            }
        }
    }

    &.sending .form_footer button {
        opacity: 0.6;
        pointer-events: none;
    }
}

.contact_slider {
    margin-top: 3rem;

    .contact_tabs {
        position: relative;
        display: flex;
        border-bottom: 2px solid var(--color-blue-1);
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 1.5rem;

        button {
            position: relative;
            flex: 1 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 0.5rem 1.5rem 1.75rem;
            border: none;
            background: none;
            color: var(--color-braun-3);
            cursor: pointer;
            transition: color 0.3s ease;

            + button::before {
                content: "";
                position: absolute;
                top: 0.5rem;
                bottom: 1.75rem;
                left: 0;
                width: 2px;
                background: var(--color-blue-1);
            }

            span {
                font-family: "Nunito Sans Condensed", Arial, sans-serif;
                font-size: 1.375rem;
                font-weight: 700;
                line-height: 1.3;

                + span {
                    font-size: 1.25rem;
                    font-weight: 600;
                }
            }

            &:hover,
            &.active {
                color: var(--color-blue-1);
            }

            &:focus-visible {
                outline: 2px solid var(--color-blue-1);
                outline-offset: -2px;
            }
        }
    }

    .contact_tabs_indicator {
        position: absolute;
        bottom: 0.375rem;
        left: -1.25rem;
        border: 1.25rem solid transparent;
        border-bottom-color: var(--color-blue-1);
        pointer-events: none;
        opacity: 0.25;

        &.is-ready {
            transition: transform 0.6s var(--ease-out);
        }
    }

    .swiper {
        overflow: visible;
    }
}

.back-to-top-cont {
    margin: 8rem 0;
    display: flex;
    justify-content: center;
    .back-to-top {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        gap: 0rem;
        text-decoration: none;
        color: var(--color-braun-3);
        transition: color 0.3s ease;

        &:hover {
            color: var(--color-blue-1);

            .back-to-top__chevron {
                top: -1rem;
            }
            .back-to-top__stem {
                height: 3.25rem;
            }
        }
    }
}

.back-to-top__icon {
    position: relative;
    width: 1.5rem;
    height: 2.25rem;
}

.back-to-top__chevron {
    position: absolute;
    top: 1px;
    left: 50%;
    width: 1.125rem;
    height: 1.125rem;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translateX(-50%) rotate(-45deg);
    transition: top 0.35s;
}

.back-to-top__stem {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 2.25rem;
    background: currentColor;
    transform: translateX(-50%);
    transition: height 0.35s;
}

.back-to-top__label {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 1rem;
}

.relative {
    position: relative;
}

/* floating table */

.floating-table {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(+50%, -25%);
    display: flex;
    flex-direction: row;
    border-top: 5px solid var(--color-blue-1);
    border-bottom: 5px solid var(--color-blue-1);
    color: var(--color-blue-1);
    padding: 1rem 0;
    max-width: 23rem;
    width: 100%;
    justify-content: space-between;
    font-size: 1.2rem;
    z-index: 3;

    span {
        line-height: 1;
        letter-spacing: unset;
        font-family: "Nunito Sans Condensed", Arial, sans-serif;
    }

    a {
        text-decoration: none;
        color: var(--color-blue-1);
        font-family: "Nunito Sans Condensed", Arial, sans-serif;
        font-weight: 300;
        transition: color 0.3s ease;

        &:hover {
            color: var(--color-braun-3);
        }
    }
}

br.gap {
    display: block;
    content: "";
    margin-top: 0.3em;
}

.fixed_title {
    position: fixed;
    left: 3rem;
    top: 50%;
    opacity: 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    transform: rotate(180deg) translateY(50%);
    color: var(--color-blue-1);
    font-size: 1.25rem;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.075rem;
    font-family: "Nunito Sans Condensed", Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: -1;

    &::after,
    &::before {
        content: "";
        display: inline-block;
        vertical-align: middle;
        height: 6rem;
        width: 2px;
        background: white;
    }
}

/* side nav */
.js .fixed_button_nav:not(.fixed_button_nav--visible) > .fbn_button {
    opacity: 0;
    translate: 150% 0;
    pointer-events: none;
}

.fixed_button_nav {
    display: none;
    position: fixed;
    bottom: 15%;
    right: 2rem;
    z-index: 2;
    flex-direction: column;

    @media (min-width: 768px) {
        display: flex;
    }

    .st0 {
        fill-rule: evenodd;
        clip-rule: evenodd;
        fill: #5998a8;
        transition: fill 0.3s ease;
    }

    > .fbn_button {
        text-decoration: none;
        position: relative;
        margin: 0.5rem 0;
        transition:
            opacity 0.6s var(--ease-out),
            translate 0.6s var(--ease-out);

        &:nth-child(2) {
            transition-delay: 0.08s;
        }

        &:nth-child(3) {
            transition-delay: 0.16s;
        }

        &:hover {
            .title {
                transform: translateY(-50%);
                visibility: visible;
                opacity: 1;
            }

            .icon_cont .icon {
                color: white;
            }

            .st0 {
                fill: white;
            }
        }
    }

    .icon_cont {
        width: 6rem;
        height: 6rem;
        font-size: 0;
        position: relative;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;

        .logo-ring {
            position: absolute;
            pointer-events: none;
            width: 100%;
            height: 100%;
        }

        .icon {
            background-color: var(--color-blue-1);
            position: relative;
            width: 75%;
            height: 75%;
            border-radius: 50%;
            overflow: hidden;
            box-sizing: border-box;
            flex-shrink: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1;
            opacity: 1;
            padding: 0.5rem;

            transition:
                opacity 0.5s,
                background-color 0.5s;

            svg {
                width: 100%;
                height: 100%;
            }
        }
    }

    .title {
        padding: 0.5rem 2.2rem;
        background-color: var(--color-blue-1);
        border-radius: 0.375rem;
        white-space: nowrap;
        position: absolute;
        top: 50%;
        right: calc(100% + 1rem);
        transform: translateY(-50%) translateX(-0.75rem);
        opacity: 0;
        visibility: hidden;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition:
            opacity 0.3s,
            visibility 0.3s,
            transform 0.3s;

        &:after {
            content: "";
            height: 0;
            width: 0;
            border-style: solid;
            border-color: transparent transparent transparent
                var(--color-blue-1);
            border-width: 0.375rem 0 0.375rem 0.625rem;
            position: absolute;

            top: 50%;
            left: 100%;
            transform: translateY(-50%);
        }

        /* invisible bridge across the gap to the button so hover doesn't drop */
        &:before {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            left: 100%;
            width: 1.75rem;
        }

        span {
            font-family: "Nunito Sans Condensed", Arial, sans-serif;
            letter-spacing: normal;
        }

        ul {
            list-style-type: none;
            margin-top: 0.625rem;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 0.125rem;

            li {
                line-height: 1.2;
                display: flex;
                align-items: center;
                gap: 0.5rem;
                padding-top: 0.6rem;

                &:not(:last-child) {
                    padding: 0.6rem 0;
                    border-bottom: 1px white solid;
                }

                a {
                    display: inline-block;
                    font-weight: 500;
                    color: var(--color-braun-2);
                    font-size: 1rem;
                    transition: color 0.2s;

                    &:hover {
                        color: white;
                    }

                    > span {
                        min-width: 5.5rem;
                        display: inline-block;
                        margin-right: 0.5rem;
                    }
                }
            }
        }
    }
}

@media all and (max-width: 1021px) {
    :root {
        --navbar-height: 6rem;
        --navbar-height-compact: 6rem;
    }

    body.home-page {
        height: 100vh;
        height: 100svh;
        min-height: 34rem;
    }

    header,
    body.home-page header {
        padding: 0 2vw;
        grid-template-columns: auto 1fr auto;
        column-gap: 1.25rem;
    }

    header {
        .logo {
            height: 60%;
        }

        .mobile_bar {
            display: flex;
            align-items: center;
            min-width: 0;
        }

        .menu_toggle {
            position: relative;
            flex-shrink: 0;
            width: 2rem;
            height: 1.5rem;
            padding: 0;
            border: none;
            background: transparent;
            cursor: pointer;

            span,
            &::before,
            &::after {
                content: "";
                position: absolute;
                left: 0;
                right: 0;
                height: 2px;
                background: var(--color-braun-2);
                transition:
                    transform 0.3s ease,
                    top 0.3s ease,
                    opacity 0.3s ease,
                    background-color 0.3s ease;
            }

            &::before {
                top: 0.15rem;
            }

            span {
                top: calc(50% - 1px);
            }

            &::after {
                top: calc(100% - 0.15rem - 2px);
            }

            &:hover {
                span,
                &::before,
                &::after {
                    background: white;
                }
            }
        }

        .mobile_title {
            margin-left: 0.75rem;
            padding-left: 0.75rem;
            border-left: 2px solid white;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            font-family: "Nunito Sans Condensed", Helvetica, sans-serif;
            font-size: clamp(1rem, 2vw, 1.2rem);
            font-weight: 300;
            line-height: 1.3;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: var(--color-braun-2);
        }

        #main_nav {
            display: flex;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition:
                opacity 0.35s ease,
                visibility 0s linear 0.35s;
            animation: none;
            justify-self: stretch;
            position: absolute;
            top: calc(100% + 2px);
            left: 0;
            right: 0;
            flex-direction: column;
            align-items: stretch;
            height: calc(100vh - var(--navbar-height));
            height: calc(100svh - var(--navbar-height));
            overflow-y: auto;
            padding: 1.5rem 2rem 2rem;
            box-sizing: border-box;
            background: var(--color-blue-1);
            border-top: 1px solid rgba(255, 255, 255, 0.25);

            ul.menu {
                flex-direction: column;
                margin: 0;

                li {
                    margin: 0.75rem 0;

                    &:not(:last-child)::after {
                        content: "";
                        display: block;
                        width: 3rem;
                        height: 4px;
                        margin-top: 0.75rem;
                        background: white;
                    }
                }

                li + li {
                    border-left: none;
                }

                a {
                    font-size: 1.3rem;
                    color: var(--color-braun-2);
                }
            }
        }

        #main_nav .menu_cont,
        #main_nav .menu_wrap {
            display: flex;
            flex-direction: column;
            flex: 1 0 auto;
        }

        #main_nav .legal_menu {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 0.3rem;
            margin: auto 0 0;
            padding: 2.5rem 0 0;
            list-style: none;

            a {
                display: inline-block;
                padding-left: 0.6rem;
                border-left: 2px solid var(--color-braun-2);
                font-size: 0.95rem;
                line-height: 1.2;
                color: var(--color-braun-1);

                &:hover {
                    color: white;
                }
            }
        }

        &.navbar--compact #main_nav {
            height: calc(100vh - var(--navbar-height-compact));
            height: calc(100svh - var(--navbar-height-compact));
        }

        .menu_button_cont {
            display: flex;
        }

        .contact_button {
            height: 2.25rem;
            padding: 0 1rem;
            font-size: 1rem;

            span {
                line-height: 1;
                letter-spacing: normal;
            }
        }
    }

    body.schiebel-apotheken header #main_nav {
        animation: none;
    }

    body.menu-open {
        overflow: hidden;

        .menu_toggle {
            &::before {
                top: calc(50% - 1px);
                transform: rotate(45deg);
            }

            span {
                opacity: 0;
            }

            &::after {
                top: calc(50% - 1px);
                transform: rotate(-45deg);
            }
        }

        &:not(.home-page) header #main_nav {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transition: opacity 0.35s ease;
        }
    }

    .footer_block.menu ul.menu {
        padding: 0;

        li + li {
            margin-left: 0.3rem;
            padding-left: 0.3rem;
        }

        a {
            font-size: 0.9rem;
        }
    }

    body.home-page {
        .content-wrapper {
            justify-content: stretch;
        }

        .hero {
            flex: 1 1 0;
            min-height: 0;
            height: auto;

            .wp-block-columns {
                display: block;
                position: relative;

                > .wp-block-column:not(.list-text) {
                    position: relative;
                    height: 100%;
                }

                li {
                    font-size: 1.3rem;
                }
            }

            img {
                object-position: 35% center;
            }

            .list-text {
                display: flex;
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
                transition:
                    opacity 0.35s ease,
                    visibility 0s linear 0.35s;
                position: absolute;
                inset: 0;
                z-index: 4;
                padding: 2rem 3rem;
                box-sizing: border-box;
                background: rgba(0, 82, 103, 0.9);

                ul {
                    margin: 0;
                    padding: 0;
                }
            }
        }

        &.menu-open .hero .list-text {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transition: opacity 0.35s ease;
        }
    }

    .hero {
        &.normal-page {
            height: 24rem;

            ul li {
                margin: 0.6rem auto;

                a {
                    font-size: 1.1rem;
                }
            }
        }
    }

    body.schiebel-apotheken {
        height: auto;
        min-height: 100vh;

        .content-wrapper {
            flex-direction: column;
            padding: 2rem 3rem;
        }
    }

    .one-column {
        height: auto;
        border-right: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.85);

        &:first-child {
            border-left: none;
        }

        &::before {
            bottom: 0;
            height: auto;
            background: linear-gradient(
                to right,
                rgba(0, 82, 103, 0.75),
                rgba(0, 82, 103, 0.1) 75%
            );
        }

        > .wp-block-group__inner-container {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            min-height: 7.5rem;
            padding: 0.75rem 1rem;
            box-sizing: border-box;

            .column-text-container {
                position: relative;
                flex: 1;
                width: auto;
                top: 0;
                left: 0;
            }
        }

        .large-gray {
            font-size: 2rem;
        }

        .small-green {
            font-size: 1.2rem;
        }

        & figure:not(.symbol-link figure) {
            position: absolute;
            inset: 0;
            z-index: 1;
            height: 100%;

            &::after {
                bottom: 0;
                width: 160%;
                height: auto;
                background: linear-gradient(
                    to left,
                    transparent,
                    var(--color-blue-1) 37.5%
                );
            }
        }

        &:hover figure:not(.symbol-link figure)::after {
            transform: translate3d(-100%, 0, 0);
        }

        &:hover .column-text-container p {
            color: white;
        }

        .symbol-link {
            position: relative;
            flex-shrink: 0;
            width: 3.75rem;
            padding: 0;
        }
    }

    @media (hover: none) {
        .one-column figure:not(.symbol-link figure) {
            visibility: visible;

            &::after {
                display: none;
            }
        }

        .one-column::before {
            opacity: 1;
        }
    }

    .sub_menu_cont {
        height: auto;
        min-height: 3.125rem;

        .sub_menu {
            min-width: 0;
            max-width: 100%;
            box-sizing: border-box;
            padding-left: 1.5rem;
            padding-right: 1.5rem;
            overflow-x: auto;
            scrollbar-width: none;

            &::-webkit-scrollbar {
                display: none;
            }
        }

        &:not(.sub_menu_cont--fixed) .sub_menu {
            -webkit-mask-image: linear-gradient(
                to right,
                transparent,
                black 1.5rem,
                black calc(100% - 1.5rem),
                transparent
            );
            mask-image: linear-gradient(
                to right,
                transparent,
                black 1.5rem,
                black calc(100% - 1.5rem),
                transparent
            );
        }

        ul {
            flex-wrap: nowrap;
            width: max-content;

            a {
                font-size: 1.15rem;
                white-space: nowrap;
            }
        }
    }

    .floating-table,
    .fixed_title {
        display: none;
    }

    .heading-h2 ~ .floating-table {
        display: flex;
        position: static;
        transform: none;
        max-width: 26rem;
        gap: 1.5rem;
        margin: 0 0 2rem;
        font-size: 1.05rem;
    }

    .page-content {
        padding: 0 2rem;
        box-sizing: border-box;
    }

    .heading-h2 {
        font-size: 2.6rem;
    }

    .heading-h3 {
        font-size: 1.6rem;
        margin-top: 4rem;
    }

    .line-title .heading-h3 {
        position: static;
        margin: 0 0 0.75rem;
    }

    .wp-block-accordion {
        .wp-block-accordion-item {
            h3 {
                margin: 1.5rem 1rem;
            }

            .wp-block-accordion-heading__toggle-title {
                font-size: 1.5rem;
            }
        }
    }

    .wp-block-accordion-heading__toggle-icon {
        flex-shrink: 0;
        width: 3.5rem !important;
        height: 3.5rem !important;

        &::before {
            width: 1.6rem;
        }

        &::after {
            height: 1.6rem;
        }
    }

    .wp-block-accordion-panel {
        margin-left: 5.5rem;
    }

    .shop-block {
        padding: 3rem;
        margin: 6rem 0;

        > div {
            flex-direction: column-reverse;

            figure {
                text-align: center;

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

            .wp-block-group p {
                padding-left: 3rem;
            }
        }

        .wp-block-buttons {
            margin: 2rem 0 0 3rem;
        }
    }

    .team-block {
        margin-bottom: 10rem;

        > div {
            grid-template-columns: repeat(3, 1fr);
            gap: 3rem 2rem;

            .team-item {
                &:nth-child(n) {
                    transform: none;
                }

                &:nth-child(3n + 2) {
                    transform: translateY(6rem);
                }

                .team-image img {
                    border-width: 0.875rem;
                }
            }
        }
    }

    .contact-form {
        max-width: 100%;
        margin: 3rem 0;

        .checkbox_container {
            position: static;
            width: auto;
            transform: none;

            label {
                position: relative;
                padding-left: 4rem;

                > div:not(.checkbox) {
                    position: static;
                }
            }

            .checkbox {
                top: 0;
                left: 0;
                right: auto;
                width: 3rem;
                transform: none;

                &::after {
                    display: none;
                }
            }
        }

        .form_footer {
            margin-top: 2.5rem;
            justify-content: center;
        }
    }

    .ap_item > div {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        column-gap: 2rem;

        figure {
            position: static;
            grid-row: span 2;
            width: 8rem;
            transform: none;

            &:before {
                width: 97%;
                position: absolute;
                inset: -3px 0 0 1.5%;
            }
        }

        .heading-h5 {
            margin-bottom: 0.75rem;
        }

    }

    .icons-block > div {
        gap: 3rem 2rem;

        .icon-item > div figure {
            width: 7rem;
        }
    }

    .qr-group > div {
        gap: 2rem;
    }

    .qr-item {
        &.limited-width figure {
            padding: 3rem 5rem;
        }

        p {
            white-space: normal;
        }
    }

    .app-block > div {
        gap: 2rem;
    }

    .fixed_button_nav {
        right: 1rem;

        .icon_cont {
            width: 4.5rem;
            height: 4.5rem;
        }
    }

    footer.general {
        .logos-container {
            margin: 5rem auto;
            .logo-footer {
                padding: 0 1rem;
                svg:not(.logo-ring) {
                    width: 80px;
                    height: 80px;
                }
            }
        }

        .text-container {
            flex-direction: column;
            align-items: stretch;
            gap: 0;
            max-width: 36rem;
            margin-bottom: 4rem;
            padding: 0 2rem;
            box-sizing: border-box;

            .text-footer {
                padding: 1.5rem 1rem;

                &:not(:first-child)::before {
                    display: none;
                }

                + .text-footer {
                    border-top: 2px solid var(--color-blue-1);
                }
            }
        }
    }
}

@media all and (max-width: 781px) {
    :root {
        --frame: 0px;
        --navbar-height: 7.25rem;
        --navbar-height-compact: 10.5rem;
        --home-image-height: 90vw;
    }

    header,
    body.home-page header {
        grid-template-columns: 1fr;
        grid-template-rows: 3.25rem 2rem;
        row-gap: 0.5rem;
        align-content: start;
        padding: 0.75rem 1.25rem;
    }

    header {
        .logo {
            height: 100%;
            justify-content: center;
        }

        .mobile_title {
            font-size: 1.2rem;
        }

        .menu_button_cont {
            position: absolute;
            top: calc(var(--navbar-height) + 0.25rem);
            left: 0;
            right: 0;
            justify-self: center;
        }

        .contact_button {
            height: 2rem;
            font-size: 0.95rem;
            background: var(--color-blue-1);
        }

        #main_nav {
            padding: 3.5rem 2.5rem 1.5rem;
        }

        &.navbar--compact #main_nav {
            padding-top: 1rem;
        }
    }

    body.home-page {
        min-height: 30rem;

        .hero {
            --caption-size: 14.19cqw;
            --caption-left: 8.19%;
            --caption-baseline: 87.96cqw;

            figure {
                height: var(--home-image-height);
            }

            figcaption {
                transition: opacity 0.4s ease;
            }

            .circle {
                background: rgba(255, 255, 255, 0.08);
                transition: opacity 0.4s ease;
            }

            .list-text {
                align-items: flex-start;
                padding: 2.75rem 2.5rem 7rem;

                ul li {
                    margin: 0.5rem 0;

                    &:not(:last-child)::after {
                        margin-top: 0.6rem;
                    }
                }
            }

            .wp-block-columns li {
                font-size: 1.2rem;
            }
        }

        footer:not(.general) {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 5;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition:
                opacity 0.35s ease,
                visibility 0s linear 0.35s;
        }

        &.menu-open {
            .hero figcaption,
            .hero .circle {
                opacity: 0.25;
            }

            footer:not(.general) {
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
                transition: opacity 0.35s ease;
            }
        }
    }

    footer:not(.general) {
        height: auto;
        padding: 1rem 2.5rem 1.25rem;
        justify-content: flex-start;
    }

    .footer_block.menu ul.menu {
        flex-direction: column;
        align-items: flex-start;
        margin: 0;

        li {
            margin: 0.15rem 0;
        }

        li + li {
            margin-left: 0;
            padding-left: 0;
            border-left: none;
        }

        a {
            display: inline-block;
            padding-left: 0.6rem;
            border-left: 2px solid var(--color-braun-2);
            font-size: 0.95rem;
            line-height: 1.2;
        }
    }

    body.schiebel-apotheken .content-wrapper {
        justify-content: flex-start;
        padding: 4.25rem 1.25rem 2rem;
    }

    .one-column {
        > .wp-block-group__inner-container {
            min-height: 5.25rem;
            padding: 0.5rem 0.75rem;
        }

        .large-gray {
            font-size: 1.35rem;
        }

        .small-green {
            font-size: 0.9rem;
        }

        .symbol-link {
            width: 2.75rem;
        }
    }

    .hero.normal-page {
        display: block;
        height: auto;
        margin-bottom: 0;

        > .wp-block-column:not(.list-text) {
            aspect-ratio: 4 / 3;
        }

        > .list-text {
            display: none;
        }
    }

    .sub_menu_cont {
        padding: 0.25rem 0;

        .sub_menu {
            padding-left: 1rem;
            padding-right: 1rem;
        }

        ul {
            li + li {
                margin-left: clamp(0.4rem, 2vw, 0.75rem);
                padding-left: clamp(0.4rem, 2vw, 0.75rem);
            }

            a {
                font-size: clamp(0.8rem, 3.7vw, 0.95rem);
            }
        }
    }

    .page-content {
        padding: 0 1.25rem;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    p,
    .wp-block-accordion,
    .limited-width {
        width: 100%;
    }

    p {
        font-size: 1.05rem;
    }

    .page-content > .wp-block-group__inner-container > p {
        padding-left: 1.5rem;
        box-sizing: border-box;
    }

    .page-content p[style*="font-size"] {
        font-size: 1.1rem !important;
    }

    .heading-h2 {
        font-size: 2.1rem;
        margin-bottom: 1.5rem;
    }

    .heading-h3 {
        font-size: 1.15rem;
        margin-top: 3rem;
        margin-bottom: 0.5rem;
    }

    .heading-h4 {
        margin-top: 3rem;
        margin-bottom: 1rem;

        h4 {
            font-size: 1.5rem;
        }
    }

    .wp-block-accordion {
        margin: 2rem auto;

        .wp-block-accordion-item {
            h3 {
                margin: 1rem 0;
            }

            button {
                gap: 0.75rem;
                text-align: left;
            }

            .wp-block-accordion-heading__toggle-title {
                font-size: 1.15rem;
                line-height: 1.3;
            }
        }
    }

    .wp-block-accordion-heading__toggle-icon {
        width: 2.25rem !important;
        height: 2.25rem !important;

        &::before {
            width: 1rem;
            height: 2px;
        }

        &::after {
            width: 2px;
            height: 1rem;
        }
    }

    .wp-block-accordion-panel {
        margin-left: 3rem;

        p {
            font-size: 0.95rem;
        }
    }

    .shop-block {
        border-width: 0.5rem;
        border-radius: 1.25rem;
        padding: 1.5rem 1.25rem 2rem;
        margin: 4rem 0;

        > div {
            gap: 1rem;

            .wp-block-group p {
                padding-left: 1.5rem;
            }
        }

        .wp-block-buttons {
            margin: 1.5rem 0 0 1.5rem;
        }
    }

    .wp-block-buttons .wp-block-button a {
        font-size: 1rem;
        padding: 0.5rem 1.5rem;
    }

    .team-block {
        margin-bottom: 7rem;

        > div {
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem 1.5rem;

            .team-item {
                &:nth-child(n) {
                    transform: none;
                }

                &:nth-child(even) {
                    transform: translateY(5rem);
                }

                .team-image {
                    margin-bottom: 0.5rem;

                    img {
                        border-width: 0.5rem;
                    }
                }

                > div > p {
                    &.team-name {
                        font-size: 1.05rem;
                    }

                    &.team-pos {
                        font-size: 0.85rem;
                    }
                }
            }
        }
    }

    .heading-h2 ~ .floating-table {
        gap: 1rem;
        font-size: 0.95rem;
    }

    .contact-form {
        margin: 2rem 0;

        .form_cont {
            border-width: 6px;
            border-radius: 1.25rem;
            padding: 1.25rem;
        }

        .form_title {
            font-size: 1.6rem;

            em {
                padding-left: 1.5rem;
            }

            span {
                font-size: 1.1rem;
            }
        }

        .input_cont {
            input,
            textarea {
                padding: 0.75rem 1.25rem;
            }

            &:not(.checkbox_container) label {
                top: 0.75rem;
                left: 1.25rem;
            }

            &.full textarea {
                min-height: 9rem;
                padding: 1.25rem;
            }

            &.text {
                font-size: 1rem;
            }
        }

        .checkbox_container label {
            padding-left: 3.25rem;
            font-size: 0.85rem;

            > h3 {
                font-size: 1.15rem;
            }
        }

        .checkbox_container .checkbox {
            width: 2.5rem;
        }
    }

    .contact_slider {
        margin-top: 2rem;

        .contact_tabs button {
            padding: 0.5rem 1rem 1.5rem;

            + button::before {
                bottom: 1.5rem;
            }

            span {
                font-size: 1.1rem;

                + span {
                    font-size: 0.9rem;
                }
            }
        }
    }

    iframe.map {
        display: block;
        height: 20rem;
    }

    .back-to-top-cont {
        margin: 4rem 0;
    }

    .ap_item > div {
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        figure {
            align-self: center;
            width: 85%;
            margin-bottom: 1.5rem;
        }

        .heading-h5 h5 {
            font-size: 1.35rem;
        }
    }

    .icons-block > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;

        .icon-item > div {
            figure {
                width: 6.5rem;
                margin-bottom: 1.25rem;
            }

            p {
                font-size: 1rem;
            }
        }
    }

    .qr-group > div {
        grid-template-columns: minmax(0, 16rem);
        justify-content: center;
        gap: 2rem;
    }

    .qr-item {
        &.limited-width {
            margin: 3rem auto;

            figure {
                padding: 1.5rem 2.5rem;
            }
        }

        p {
            font-size: 1rem;
        }
    }

    .app-block > div {
        flex-direction: column;
    }

    .phone-block {
        padding: 1rem 0;

        .wp-block-column + .wp-block-column {
            padding-top: 1.5rem;

            &::before {
                bottom: auto;
                right: 0;
                width: auto;
                height: 1px;
                transform: scaleX(var(--line-scale, 1));
                transform-origin: left center;
            }
        }

        .wp-block-column .tel-item > div p.tel-link {
            margin-top: 1rem;
        }
    }

    .fixed_button_nav {
        display: none;
    }

    footer.general {
        .logos-container {
            margin: 3rem auto 2rem;

            .logo-footer {
                padding: 0 0.5rem;

                &:not(:first-child)::before {
                    display: none;
                }

                a {
                    width: 5.5rem;
                    height: 5.5rem;
                }

                svg:not(.logo-ring) {
                    width: 75%;
                    height: 75%;
                    padding: 0.6rem;
                }
            }
        }
    }
}

@media all and (min-width: 1022px) {
    header {
        padding: 0 2vw;
        grid-template-columns: auto 1fr auto;
        transition:
            transform 0.3s ease,
            border-color 0.3s ease;
        will-change: transform;

        .logo,
        #main_nav,
        .menu_button_cont {
            transition: transform 0.3s ease;
        }

        .logo {
            height: 60%;
            transform-origin: left center;
        }

        &.navbar--compact {
            height: var(--navbar-height);
            top: var(--frame);
            transform: translate3d(
                0,
                calc(
                    var(--navbar-height-compact) - var(--navbar-height) -
                        var(--frame)
                ),
                0
            );
            transition:
                transform 0.3s ease,
                border-color 0.3s ease;

            #main_nav,
            .menu_button_cont {
                transform: translate3d(
                    0,
                    calc(
                        (var(--navbar-height) - var(--navbar-height-compact)) /
                            2
                    ),
                    0
                );
            }

            .logo {
                transform: translate3d(
                        0,
                        calc(
                            (
                                    var(--navbar-height) -
                                        var(--navbar-height-compact)
                                ) /
                                2
                        ),
                        0
                    )
                    scale(0.6667);
            }
        }

        &.navbar--hidden {
            transform: translate3d(0, calc(-100% - var(--frame)), 0);
        }

        .contact_button {
            padding: 0 0.8rem;
            font-size: min(1.5vw, 1.4rem);
            span {
                line-height: 1;
                letter-spacing: normal;
            }
        }

        #main_nav {
            span,
            a {
                line-height: 1;
                letter-spacing: normal;
            }
        }
    }

    .hero {
        ul {
            li {
                a {
                    font-size: max(1.3rem, 1.3vw);
                }
            }
        }
    }

    footer.general .text-container {
        max-width: 80%;
    }

    #main_nav ul.menu {
        li + li {
            margin-left: 1vw;
            padding-left: 1vw;
        }

        a {
            font-size: min(1.4vw, 1.3rem);
        }
    }

    .one-column {
        .large-gray {
            font-size: 2vw;
        }

        .small-green {
            font-size: 1.8vw;
        }

        .symbol-link {
            padding: 1vw;
        }
    }

    .floating-table {
        transform: none;
        right: max(0rem, calc(9rem - (100vw - 80rem) / 2));
    }

    .relative:has(.floating-table) + .contact-form {
        margin-top: 8rem;
    }
}

@media all and (min-width: 2000px) {
    .page-content {
        max-width: 90rem;
    }

    header {
        padding: 0 3rem;
        grid-template-columns: 1fr auto 1fr;

        .logo {
            height: 100%;
        }

        .contact_button {
            padding: 0 1.5rem;
            font-size: 1.4rem;
        }
    }

    .heading-h2 {
        font-size: 4rem;
    }

    .hero {
        ul li a {
            font-size: 1.7rem;

            span {
                font-size: 1.5rem;
            }
        }
    }

    #main_nav ul.menu {
        li + li {
            margin-left: 1rem;
            padding-left: 1rem;
        }

        a {
            font-size: 1.5rem;
        }
    }

    .sub_menu_cont ul a {
        font-size: 1.45rem;
    }

    .one-column {
        .large-gray {
            font-size: 1.9vw;
        }

        .small-green {
            font-size: 1.5vw;
        }

        .symbol-link {
            padding: 4rem;
            padding-left: 6%;
            padding-bottom: 5%;
        }
    }

    .floating-table {
        transform: translate(+50%, -25%);
    }
}

@media all and (min-width: 1022px) and (max-width: 1540px) {
    .page-content {
        padding: 0 6rem 0 8rem;
        box-sizing: border-box;
    }

    .ap_item > div figure {
        width: 9rem;
        right: calc(100% + 1.5rem);
    }

    .floating-table {
        right: max(0rem, calc(3rem - (100vw - 80rem) / 2));
    }

    .one-column {
        .large-gray {
            font-size: 1.75vw;
        }
        .small-green {
            font-size: 1.5vw;
        }
    }
}

@media all and (min-width: 1022px) and (max-width: 1279px) {
    .floating-table {
        display: none;
    }
}
