@font-face {
    font-family: WorkSans;
    src: url(./fonts/WorkSans-Regular.woff2) format('woff2'),
         url(./fonts/WorkSans-Regular.ttf) format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: WorkSans;
    src: url(./fonts/WorkSans-SemiBold.woff2) format('woff2'),
         url(./fonts/WorkSans-SemiBold.ttf) format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: WorkSans;
    src: url(./fonts/WorkSans-Bold.woff2) format('woff2'),
         url(./fonts/WorkSans-Bold.ttf) format('truetype');
    font-weight: 700;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: WorkSans;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: normal;
}

h3 {
    font-weight: 700;
    font-size: 2.625rem;

    margin-bottom: 2.2rem;
}

.list h3 {
    margin-bottom: 4.4rem;
}

a {
    color: #000;
    font-weight: 600;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

header h2 {
    margin-top: 34px;
    margin-left: 50px;
    margin-right: 50px;
    width: 232px;
    height: 156px;
    background-image: url(./images/logo_wahllokal.png);
    text-indent: -9999px;
    background-repeat: no-repeat;
    /* background-size: 232px 156px; */
    background-size: contain;
    background-position: center;
}

nav {
    display: flex;
    align-items: center;
    margin-top: 34px;
    margin-right: 50px;
}

.socialmedia {
    width: 46px;
    height: 46px;
    padding: 1px;

    margin-left: 5px;
    
    /* background-image: url(./images/socialmedia.png); */
    text-indent: -9999px;
    background-repeat: no-repeat;
    background-size: 46px 46px;
    background-position: center;
}

.instagram {
    background-image: url(./images/Instagram.svg);
}
.facebook {
    background-image: url(./images/Facebook.svg);
}

main {
    max-width: 1920px;
    margin: 0 auto;
}

.hero {
    /* border: 2px solid red; */
    position: relative;

    margin-bottom: calc(6.56rem + 3.94rem);
}

.hero h1 {
    background-image: url(./images/Gib_Deinen_Senf_dazu.jpg);
    width: calc(100% - 10.5rem);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    text-indent: -9999px;
    position: relative;
    aspect-ratio: 424/305;
    margin: 0 4.5rem 0 6rem;
}

.hero p {
    position: absolute;
    right: 6.94rem;
    bottom: -3.94rem;
    border-radius: 50%;
    background-color: #E31113;
    font-size: 3.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: 3.125rem;

    width: 16.4375rem;
    height: 16.4375rem;

    padding: 3.7rem 2.25rem 3.94rem;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: center;
}

section.text {
    margin: 10rem 15.5rem;
    position: relative;
}

section.full {
    /* 
    margin-left: 6.16rem;
    margin-right: 3.13rem;
     */
}
section.full h3 {
    margin-left: 15.5rem;
}

section.full ol {
    margin-left: 6.16rem;
}

section.text p {
    max-width: 48ch;
    margin-bottom: 1em;
}

strong, h4 {
    font-weight: 600;
    font-size: 1em;
}

.pass_egal_wahl_logo {
    position: absolute;
    top: 5rem;
    left: 50ch;
    width: calc(100% - 35ch);
    max-width: 25rem;
}

section.list {
    margin-bottom: 5rem;
} 

ol {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

ol.dots {
    list-style-type: none;
}

section.full ol.wahl_staende {
    font-size: 1.25rem;
    font-style: normal;
    align-items: flex-end;

    margin: 10rem 15.5rem;
    margin-top: 3rem;
}

ol li, ol p {
    width: 45%;
    margin-bottom: 4rem;
}

ol.dots p {
    width: auto;
}

ol.dots li {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;

    counter-increment: count;
    width: 42%;
}

ol.dots li img {
    margin-left: 10%;
}

ol.dots li p::before {
    content: '';
    content: counter(count);
    display: block;
    background-color: #E31113;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    margin-left: -3rem;
    position: absolute;
    z-index: -1;

    color: #fff; 

    font-size: 1.33863rem;
    font-style: normal;
    font-weight: 700;

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

}

ol li::marker {
    color: #E31113;
    font-size: 1em;
    font-style: normal;
    font-weight: 700;
}

ol li h5 {
    color: #E31113;
    font-size: 1em;
}

ol li address {
    font-style: normal;
    font-weight: 600;
    margin: 1.6rem 0;
}

ol li time {
    display: flex;
    font-variant-numeric: tabular-nums;
}

ol li time span:nth-child(1) {
    width: 9ch;
}

ol li time span:nth-child(2) {
    width: 6ch;
    text-align: right;
}

ol li time span:nth-child(3) {
    width: 15ch;
    text-align: right;
    font-weight: 600;
}

.bis_strich {
    padding: 0 0.25em;
}

ol li p {
    max-width: 20rem;
}

ol li p a {
    display: block;
    margin-top: 1rem;
}

.map {
    aspect-ratio: 1340/660;
    margin-left: 3.13rem;
    margin-right: 3.13rem;
    /* width: calc(100% - 3.13rem); */
    /* width: 100%; */
    border: 1px solid #000;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    align-content: center;

    background-image: url(./images/map_bg.jpg);
    background-position: center;
    background-size: cover;

}
.map.noborder {
    border: none;
    background-image: none;
}

.map p {
    margin: 1em auto;
    max-width: 60ch;
    padding: 0 1.5em;
}

.map button {
    font-size: 1em;
    background-color: #000;
    color: #fff;
    padding: 0.5em 1em;
    margin: 1em 30%;
    cursor: pointer;
    outline: none;
    border: none;
}

.map button:hover {
    background-color: #E31113;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    aspect-ratio: 1340/660;
}

.logos {
    display: flex;
    /* flex-wrap: wrap; */
    justify-content: flex-start;
    align-items: center;
    /* margin: 0 5.5rem; */
    margin-left: 3.13rem;
    margin-right: 3.13rem;
}

.logos h3 {
    width: 100%;
}


.logos img {
    width: calc(100% / 6);
    /* max-width: 200px; */
    height: auto;
    padding: 0.5em;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin: 0 5.5rem; */

}

footer a {
    text-decoration: none;
    padding: 1.5em 3em;
    max-width: 50%;
}




@media (max-width: 1300px) {
    section.text, section.full h3, 
    section.full ol.wahl_staende {
        margin-left: 15vw;
        margin-right: 5vw;
    }
    .pass_egal_wahl_logo {
        display: none;

        /* position: relative;
        left: 60%;
        top: -9rem;
        display: block; */
    }
}

@media (max-width: 800px) {
    body {
        font-size: 1.1875rem;
    }
    header h2 {
        width: 122px;
        height: 82px;
        margin-top: 17px;
        margin-left: 25px;
        margin-right: 25px;
        
    }
    nav {
        margin-top: 17px;
        margin-right: 25px;
    }
    .socialmedia {
        width: 29px;
        height: 29px;
        padding: 1px;
        margin-left: 5px;
        background-size: contain;
    }
    .hero h1 {
        background-image: url(./images/Gib_Deinen_Senf_dazu_HOCH.jpg);
        width: 98%;
        margin-left: 1%;
        margin-right: 1%;
        aspect-ratio: 780/1215;
    }
    .hero p {
        font-size: 2.25rem;
        width: 10.625rem;
        height: 10.625rem;
        line-height: 2rem;
        bottom: -2.5rem;
        right: 10vw;
    }
    h3 {
        font-size: 1.9375rem;
    }

    section.text {
        margin-top: 5rem;
        margin-bottom: 5rem;
    }
     
    section.text, section.full h3, 
    section.full ol, .map, .logos {
        margin-left: 1.75rem;
        margin-right: 1.5rem;
    }
    .map {
        /* margin-right: 1.75rem; */
        aspect-ratio: 660 / 1340;
    }

    ol li, ol p {
        width: 100%;
        margin-bottom: 2rem;
    }

    section.full ol.dots {
            margin-left: 1.25rem;
            margin-right: 0.75rem;
    }

    ol.dots li {
        flex-direction: row-reverse;
        justify-content: flex-end;
        width: 100%;
    }
    ol.dots li p {
        margin-left: 3.5rem;
    }
    ol.dots li img {
        margin-left: 0;
        margin-right: 0;
        /* width: 15%; */
        /* border: 1px solid #000; */
        max-width: 15vw;
        align-self: center;
    }
    ol.dots li:first-child img {
        padding: 1.5vw;
        /* border: 1px solid #000; */
    }

    section.full ol.wahl_staende {
        margin-left: 3.25rem;
        margin-right: 1.5rem;
        margin-bottom: 5rem;
    }
    ol li address {
        margin: 0.8rem 0;
    }
    .logos {
        flex-wrap: wrap;
    }
    .logos img {
        width: calc(100% / 3);
    }
}

@media (max-width: 359px) {
    ol li time {
        flex-wrap: wrap;
        margin-bottom: 0.5em;
    }
    ol li time span:nth-child(1) {
        width: auto;
    }
    ol li time span:nth-child(3) {
        width: 100%;
        text-align: left;
    }
}