/* open-sans-300 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    src: url('/res/fonts/open-sans/open-sans-v44-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('/res/fonts/open-sans/open-sans-v44-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-500 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 500;
    src: url('/res/fonts/open-sans/open-sans-v44-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    src: url('/res/fonts/open-sans/open-sans-v44-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: url('/res/fonts/open-sans/open-sans-v44-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

html {
    font-family: "Open Sans", "Helvetica", "Calibri", sans-serif;
    color: #28718f;

    line-height: 150%;
}

.light {
    font-weight: 100;
}

.normal {
    font-weight: 400;
}

.bold {
    font-weight: 600;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

header {
    width: 100%;
    margin: 0;
    padding: 0;
    background-image: url(/res/img/hintergund-head.svg);
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position: 55%;
}

.head {
    width: 40%;
    height: 7em;
    clip-path: polygon(0 0, 100% 0, 96% 100%, 0% 100%);
}

.home-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5em;
}

.home-button {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 15em;
    height: 15em;
    box-shadow: 6px 8px 11px #cccccc;
    text-align: center;
}

.home-button > p {
    margin-block: 1em 0;
    font-size: 1.5em;
}

.home-button > .icon {
    height: 10em;
}

.home-button > .hover-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    opacity: 0;
    transition: opacity .5s ease-in;
    pointer-events: none;
}

.home-button:hover > .hover-content {
    opacity: 1;
    pointer-events: all;
}

.home-button > .contact-button {
    display: none;
}

#banner {
    width: 100%;
    position: absolute;
    padding: 0.5em 3em 1em 3em;
    display: flex;
    flex-direction: row;
    height: 7em;
    box-sizing: border-box;
}

.logo {
    width: 30%;
    display: flex;
    flex-direction: row;
    text-decoration: none;
}

#logo {
    width: 4em;
    z-index: 2;
}

.logofont,
.tel {
    font-weight: 600;
    margin-top: 0.5em;
    margin-left: 1em;
    color: white;
    font-size: 1.5em;
    line-height: 130%;
    z-index: 2;
}

.logofont > p {
    margin: 0;
}

.tel > p {
    margin: 0;
}

.kontakt {
    position: absolute;
    left: 60%;
    display: flex;
    flex-direction: row;
}

.tel a,
.tel a:link,
.tel a:visited,
.tel a:hover {
    text-decoration: none;
    color: white;
}

.slider {
    position: relative;
    margin-top: 6em;
    width: 100%;
    height: 40em;
    overflow: hidden;
    z-index: 1;
}

#impfstelle {
    width: 20em;
    position: absolute;
    top: 4em;
    left: 5em;
    z-index: 5;
}

.slider-button-left {
    position: absolute;
    top: 24em;
    rotate: 180deg;
    z-index: 4;
}

.slider-button-right {
    position: absolute;
    top: 24em;
    right: 0;
    z-index: 4;
}

#first-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    top: -15em;
}

#slide-datenschutz {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    top: -3em;
}

main {
    width: 80%;
    margin-left: 10%;
    display: flex;
    flex-direction: column;
}

#contact-wrapper {
    position: relative;
}

#header-contact p {
    margin-block: .75rem;
}

#header-contact {
    position: absolute;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 32em;
    right: 7em;
    transform: translateY(-50%);
    z-index: 10;
    background-color: #dcbb8f;
    color: #fff;
    font-size: 1.1rem;
    overflow: hidden;
}

#header-contact > div {
    flex-grow: 1;
    padding: 2rem 2.5rem;
    box-sizing: border-box;
}

#header-contact > div:first-child {
    display: grid;
    grid-template-rows: 1fr min-content;
}

#header-contact > div:last-child {
    position: relative;
}

#header-contact > div:last-child::before {
    content: "";
    position: absolute;
    place-self: anchor-center;
    display: block;
    width: 120%;
    height: 130%;
    top: -20%;
    z-index: -1;
    background-color: #4bb4e7;
    transform-origin: top left;
    transform: rotateZ(7deg);
}

#header-contact .subheading {
    font-weight: bold;
    font-size: 1.3em;
    margin-top: 0;
    white-space: nowrap;
}

#header-contact .title {
    margin-block: .7em 0;
}

#header-contact p:last-child {
    margin-bottom: 0;
}

.headline {
    margin-top: 4em;
    margin-bottom: 2em;
}

.textbox {
    margin-top: 4em;
    margin-bottom: 3em;

    > h1 {
        margin-bottom: 1.5em;
    }

    > h2 {
        margin-top: 3em;
    }


}

.leistung {
    display: flex;
    flex-direction: row;
    gap: 10%;
}

.icon {
    height: 10em;
}

li a,
li a:link,
li a:visited,
li a:hover {
    text-decoration: none;
}

footer a,
footer a:link,
footer a:visited,
footer a:hover {
    text-decoration: none;
    color: white;
}

.button a,
.button a:link,
.button a:visited,
.button a:hover {
    text-decoration: none;
}

.maps {
    margin: 5em 0;
    width: 100%;
    height: 15em;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: 0;
}

footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    color: white;
    padding-top: 2em;
    padding-bottom: 1em;
    border-top: solid 0.5em #28718f;
    gap: 5em;

    background-image: url(/res/img/hintergund-footer.svg);
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position: 65%;
}

.footerul {
    display: flex;
    padding: 0;
    gap: 5em;
    z-index: 2;
}

.biggap {
    margin-left: 10em;
}

.footerul li {
    list-style: none;
}

#map-wrapper {
    height: 100%;
}

@media (min-width: 950px) and (max-width: 1450px) {
    header {
        background-position: 53%;
    }

    .slider {
        height: 35em;
    }

    #first-slide {
        width: 110%;
        object-fit: cover;
        position: relative;
        top: -9.4em;
        left: -4em;
    }

    #slide-datenschutz {
        width: 110%;
        object-fit: cover;
        position: relative;
        top: -2.2em;
        left: -4em;
    }

    #impfstelle {
        width: 20em;
        position: absolute;
        top: 10em;
        left: 2em;
        z-index: 5;

    }

    #header-contact {
        font-size: .85em;
        right: 3em;
        line-height: 1.4;
    }

    #header-contact p {
        margin-block: .25rem;
    }

    #header-contact > div {
        padding-block: 1rem;
    }

    #contact-wrapper + main {
        padding-top: 1em;
    }
}

@media only screen and (orientation: portrait) {
    header {
        background-position: 50%;
        font-size: 1.5em;
    }

    #banner {
        padding: 0.5em 1em 1em 2em;
    }

    .kontakt {
        left: 48.5%;
    }

    .tel {
        margin-left: 0;
    }

    .tel:first-child {
        margin-right: .5em;
    }

    .slider-button-left {
        top: 18em;
    }

    .slider-button-right {
        top: 18em;
    }

    #impfstelle {
        width: 20em;
        position: absolute;
        top: 24em;
        left: 1em;
        z-index: 5;
    }

    #header-contact {
        width: 100%;
        position: relative;
        right: unset;
        transform: none;
        font-size: 1.75em;
        line-height: 1.6;
        padding-block: 1em;
    }

    .slider {
        height: 23em;
    }

    #first-slide {
        width: 150%;
        object-fit: cover;
        position: relative;
        top: -8.4em;
        left: -10em;
    }

    #slide-datenschutz {
        width: 150%;
        object-fit: cover;
        position: relative;
        top: -0.5em;
        left: -10em;
    }

    h2 {
        font-size: 3em;
    }

    .headline :not(h2) {
        font-size: 1.5em;
        line-height: 150%;
    }

    .leistung {
        flex-direction: column;
        font-size: 2em;
        line-height: 150%;
    }

    .textbox {
        margin-top: 4em;
        margin-bottom: 3em;
        line-height: 180%;
        font-size: 2em;

        > h1 {
            margin-bottom: 1.5em;
            font-size: 2em;

        }

        > h2 {
            margin-top: 3em;
            font-size: 1.5em;
            line-height: 120%;
        }


    }

    .home-row:not(.keep-mobile) {
        grid-template-columns: 1fr;
        padding-inline: .5em;
    }

    .home-row.keep-mobile {
        justify-content: center;
    }

    .box-button {
        gap: 5em;
    }

    .home-button {
        font-size: 1.6em;
        line-height: 160%;
        height: 14em;
    }

    .home-button > .hover-content {
        display: none;
    }

    footer {
        flex-direction: column;
        justify-content: left;
        padding-left: 10%;
        font-size: 2em;
        gap: 0;
    }

    .footerul {
        flex-direction: column;
        justify-content: end;
        gap: 0.5em;
        line-height: 130%;
    }

    .biggap {
        margin-left: 0;
    }

    .home-button > .contact-button {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 100;
    }
}

@media only screen and (max-width: 1770px) {
    #impfstelle {
        top: unset;
        bottom: 3em;
    }
}