/**
 * hana+nils · Büro für Gestaltung
 * https://hananils.de · buero@hananils.de
 */

.breadcrumbs {
    display: none;
}

@supports (display: grid) {
    .breadcrumbs {
        display: flex;
        align-items: end;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        overflow: hidden;
        height: 5.4rem;
        margin: 0;
        padding-left: 2.4rem;
        color: var(--color-white);
        font-size: var(--text-size-small);
        background-color: var(--color-blue);
        background-image: linear-gradient(to top, #39425d 0, #3f4a67 50%);
        z-index: var(--z-index-overlay-front);
    }

    .breadcrumbs ol {
        display: flex;
        align-items: center;
        height: 5.4rem;
        list-style: none;
        transition: opacity 0.1s ease-in;
        opacity: 1;
    }

    @media (min-height: 700px) and (min-width: 500px) {
        .breadcrumbs {
            right: auto;
            bottom: 0;
            width: 5.4rem;
            height: auto;
            padding: 0;
            background-image: linear-gradient(to left, #39425d 0, #3f4a67 50%);
            z-index: var(--z-index-background);
        }

        .breadcrumbs ol {
            transform: rotate(-90deg) translateX(-2.8rem);
            transform-origin: left top;
        }

        .toggle-switch:checked ~ .breadcrumbs ol {
            opacity: 0;
        }
    }

    .breadcrumbs li + li {
        display: none;
        position: relative;
        margin-left: 2.24rem;
    }

    .breadcrumbs li + li::before {
        content: '|';
        position: absolute;
        left: -1.44rem;
    }

    .breadcrumbs li:first-of-type a {
        width: 16.4rem;
        height: 2.8rem;
        text-indent: -1600rem;
        background-image: url(../images/logo.svg);
        background-repeat: no-repeat;
    }

    .breadcrumbs li:nth-of-type(2) {
        margin-left: 1.6rem;
    }

    .breadcrumbs li:nth-of-type(2)::before {
        display: none;
    }

    .breadcrumbs a {
        display: block;
        font-weight: 200;
        white-space: nowrap;
        text-decoration: none;
    }

    @media (min-width: 500px) {
        .breadcrumbs li:nth-of-type(2) {
            display: inline-flex;
        }
    }

    @media (min-width: 700px) {
        .breadcrumbs li:nth-of-type(3) {
            display: inline-flex;
        }
    }

    @media (min-height: 700px) and (min-width: 500px), (min-width: 1000px) {
        .breadcrumbs li {
            display: inline-flex !important;
        }
    }
}
