html,
body {
    margin: 0;
    padding: 0;
    color: #fff;
    background-color: black;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    min-height: 100dvh;
}

body {
    overflow: hidden;
}

body.body-text {
    background-color: white;
    padding-top: 5rem;
    overflow-y: scroll;
}

/* media reduced motion remove animations and transitions */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    all: unset;
}

h1 {
    font-size: large;
}

h2 {
    font-size: medium;
}

h1.hidden {
    position: absolute;
    left: -10000px;
    top: -10000px;
    z-index: -1;
}


ol {
    counter-reset: item;
    list-style: none;
    padding-left: 2em;
}

ol > li {
    display: block;
    position: relative;
}

ol > li:before {
    content: counters(item, ".") ". ";
    counter-increment: item;
    position: absolute;
    left: -2em;
}

ol > li > ol {
    counter-reset: item;
    margin-top: 0.5em;
}


.accessibility-statement,
.datenschutz {
    max-width: 960px;

    & ul {
        display: flex;
        flex-direction: column;
        gap: 10px;

        & p {
            margin: 0;
        }
    }
}

.dse-external-link-icon {
    filter: grayscale(100%) brightness(0%);
}

.brand-container .brand-background {
    position: fixed;
    top: -45px;
    left: 0;
}

.brand-container .brand-logo {
    position: fixed;
    top: 10px;
    left: 75px;
}

.main-text {
    background-color: #fff;
    color: #000;
    padding: 2rem;

}


main {
    width: 100vw;
    height: calc(100dvh - 30px);
    display: flex;

}

main section {
    width: max(25%, calc((100% - 46%) / 3));
    height: 100%;
    overflow: hidden;
    transition: width 0.5s;
}

main section .location-detail.active-detail {
    opacity: 0;
    transition: 0.5s;
}



main section div.location-container {
    width: 100%;
    background: linear-gradient(#00000000, #000);

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;


    position: relative;

    height: 300px;
    top: calc(100% - 300px);

    transition: background 0.5s;
}

main section .center-wrapper {
    width: min(33rem, 100%);
}

main section div.location-container div.icon-container {
    /* width: 70%; */
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(140px);
    transition: transform 0.5s;
    padding: 1rem;
}

a,
[tabindex],
button,
input {
    &:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 2px;
    }
}

main section .location-container .icon-container .location-name {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 24px;
    margin-left: 15px;
    white-space: nowrap;
    overflow: hidden;
    width: 0px;
    transition: width 0.5s;
}


main section .location-container .location-detail {
    /* width: 70%; */
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    gap: 1rem;
    /* white-space: nowrap; */
    overflow: hidden;
    padding: 1rem;

}

main section .location-container .location-detail p {
    width: min(32rem, 35dvw);
}




a {
    color: #fff;
}


a.link-button {
    border: #fff 2px solid;
    border-radius: 7px;
    padding: 1em 2em;
    width: fit-content;
    text-decoration: none;
}


a[href*="//"] {
    position: relative;
}

a[href*="//"]::after {
    content: "";
    display: inline-block;
    position: relative;
    top: 2px;
    width: 15px;
    height: 15px;
    min-width: 15px;
    background: #fff;
    -webkit-mask: url("../img/external-link.svg") no-repeat center left/100% auto;
    mask: url("../img/external-link.svg") no-repeat center left/100% auto;
    margin-left: 10px;
    /* transition: var(--baseTransition); */
}

.main-text a {
    color: #000;
}

.main-text a[href*="//"]::after {
    background: #000;
}

main section.section-1 {
    background-image: url("../img/Marienhospital.jpg");
    background-position: 38%;
    background-size: cover;

}

main section.section-2 {
    background-image: url("../img/Vinzenzklinik.jpg");
    background-position: 38%;
    background-size: cover;
}

main section.section-3 {
    background-image: url("../img/Luise\ von\ Marillac\ Klinik\ Kopie.jpg");
    /* background-position: 70%; */
    background-position: 33%;
    background-size: cover;
}

main section.section-4 {
    background-image: url("../img/Vinzenz-Therme_Mende_0C0A7230_ae1.jpg");
    background-position: 32%;
    background-size: cover;
}

.section-1 .icon-container img {
    height: 60px;
}

.section-2 .icon-container img,
.section-4 .icon-container img {
    height: 90px;
}

.section-3 .icon-container img {
    height: 70px;
}


footer {
    width: 100vw;
    height: 30px;
    background-color: rgb(27, 32, 38);
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* font-size: 14px; */
}

footer>div {
    padding: 0 20px;
}

footer .right-footer {
    display: flex;
    gap: 2rem;
}


/* Ab 305px VW clippen die Logos fĆ¼r die Einrichtungen. Aber kein VP ist 305px breit  */


/* mittlere & groĆe Bildschirme && alle GerĆ¤te die kein Touch haben*/
@media only screen and (min-width: 950px) and (any-pointer: fine) {

    main section:hover,
    main section:focus-within {
        width: 46%;
    }

    main section:hover .location-detail.active-detail,
    main section:focus-within .location-detail.active-detail {
        opacity: 1;
    }

    main section:hover div.location-container div.icon-container,
    main section:focus-within div.location-container div.icon-container {
        transform: translateY(0);
    }

    main section:hover .location-container .icon-container .location-name,
    main section:focus-within .location-container .icon-container .location-name {
        width: 300px;
    }

    main section:hover div.location-container,
    main section:focus-within div.location-container {
        background: linear-gradient(rgba(0, 0, 0, 0.7), #000);
    }
}




/* kleine Bildschirme || gerĆ¤te die Touch haben*/
@media only screen and (max-width: 950px),
(not (any-pointer: fine)) {

    html,
    body {
        font-size: 12px;
        min-width: 100vw;
        min-height: unset;
        height: fit-content;
        overflow-x: hidden;
        overflow-y: scroll;
        background-color: rgb(27, 32, 38);
        ;
    }

    body.body-text {
        padding-top: 0;
    }

    .brand-container .brand-background {
        /* position: fixed; */
        /* top: -45px; */
        /* right: 0; */
        display: none;

    }

    .brand-container .brand-logo {
        position: unset;
        display: flex;
        align-items: center;
        /* justify-content: center; */
        width: 100%;
        background-color: #425366;
        /* top: 10px; */
        /* left: calc(100% - 250px); */
    }

    .brand-container .brand-logo>img {
        margin: 1rem;
    }

    main section .location-container .icon-container .location-name {
        font-size: 20px;
    }

    main {
        width: 100vw;
        height: fit-content;
        flex-direction: column;
    }

    main section {
        width: 100%;
        overflow: hidden;
        transition: width 0.5s;
    }

    main section div.location-container {
        background: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.9));
        height: 300px;
        top: calc(100% - 300px);
    }

    main section .location-detail {
        max-width: 400px;
    }

    main section .location-detail.active-detail {
        opacity: 1;
        transition: unset;
    }

    main section .center-wrapper {
        /* width: min(33rem, 100%); */
        width: 100%;
    }

    main section div.location-container div.icon-container {
        justify-content: left;
        transform: translateY(0px);
        transition: unset;
    }


    main section .location-container .icon-container .location-name {
        font-size: 24px;
        margin-left: 15px;
        white-space: nowrap;
        width: 300px;
        overflow: hidden;
        transition: unset;
    }


    main section .location-container .location-detail {
        margin-top: 0;
    }

    main section .location-container .location-detail p {
        width: 100%;
    }

    main section.section-1 {
        background-position: 0% 60%;
    }

    main section.section-2 {
        background-position: 25% 50%;
    }

    main section.section-3 {
        background-position: 0% 19%;
    }

    main section.section-4 {
        background-position: 32%;
    }

    footer {
        height: auto;
        flex-wrap: wrap;
        /* padding-bottom: 10px; */
    }


}


/* mittlere Bildschirme */
@media only screen and (min-width: 728px) and (max-width: 1200px) {

    body {
        font-size: 12px;
    }

    main section .location-container .icon-container .location-name {
        font-size: 20px;
    }

    main section .location-container .location-detail {
        /* overflow: ; */
        /* white-space: normal; */
    }

    .section-1 .icon-container img {
        height: 40px;
    }

    .section-2 .icon-container img,
    .section-4 .icon-container img {
        height: 60px;
    }

    .section-3 .icon-container img {
        height: 50px;
    }

}