@font-face {
    font-family: 'league_spartanbold';
    src: url('fonts/leaguespartan-bold-webfont.woff2') format('woff2'),
        url('fonts/leaguespartan-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'league_spartanregular';
    src: url('fonts/LeagueSpartan-Regular.woff2') format('woff2'),
        url('fonts/LeagueSpartan-Regular.woff') format('woff');
}


* {
    margin: 0;
    padding: 0;
    font-size: 1rem;
    font-family: 'league_spartanregular', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    height: 100%;

}

body {
    height: 100%;
}

body {
    font-family: 'league_spartanregular', Arial, sans-serif;
}


button {
    background-color: #0071e3;
    color: white;
    border: none;
    padding: .6rem 1rem;
    cursor: pointer;
    border-radius: 999px;
    box-shadow: 0 10px 20px -10px #333333;
    margin: 1rem auto;
}

ol,
ul {
    list-style-position: inside;
}

.roundedCorners {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

h1 {
    font-family: 'league_spartanbold', Arial, sans-serif !important;
}

h2,
h3,
h4 {
    margin: 3rem 0 2rem 0;
    font-family: 'league_spartanbold', Arial, sans-serif !important;
}

p {
    margin: 2rem 0;
}

figure {
    max-width: 400px;
}

figcaption {
    font-style: italic;
    font-size: .8rem;
    padding: 0 3rem;
}

footer {
    width: 100%;
    display: flex;
    margin: 5rem auto 0 auto;
    object-fit: cover;
    gap: 1rem;
    justify-content: space-evenly;
    align-items: flex-start;
    border-top: 1px solid #333333;
    padding: 5rem 0;
    flex-direction: row;
    flex-wrap: nowrap;
}

footer a {
    text-decoration: none;
    color: #333333;
    font-size: 1.1rem;
}

section>* {}

footer ul,
footer ol {
    list-style-type: none;
}

.merkmal {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}



.merkmalIMG {
    display: inline-block;
}

.merkmalText {
    margin-left: .6rem;
}

.merkmal a {
    text-decoration: none;
    color: #333333;
}



.empfohlen {
    border: 1px solid green;
    border-radius: 6px;
    background-color: #a2ffa2;
    padding: .1rem .5rem;
    width: fit-content;
    position: absolute;
    top: 15px;
    right: 15px;
}

.preis {
    margin-top: 2rem;
}

/* NAVIGATION */
.topnav {
    overflow: hidden;

}

.topnav a {
    float: left;
    display: block;
    color: #333333;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav a:hover {
    color: black;
}

.topnav a.active {
    color: #333333;
}

.topnav .icon {
    display: none;
    padding: 12px 16px !important;
}

/* HERO */
.hero-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("img/hero-2-hd.webp");
    height: 400px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.hero-text {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}



.hero-text button:hover {
    background-color: #555;
    color: white;
}

/* Sections */

section {
    display: flex;
    width: 80vw;
    margin: 10rem auto;
    object-fit: cover;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: nowrap;
}

section>div {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    border-radius: 10px;
    padding: 0 3rem 2rem 3rem;
    width: 400px;
    position: relative;

}

section>.imgDiv {
    padding: 0;
    width: 400px;
}

section>.imgDiv>img {
    width: 400px;
    height: auto;
}

section>.imgDiv>div {
    padding: 0 3rem 2rem 3rem;
}

@media screen and (max-width: 600px) {
    .topnav a:not(:first-child) {
        display: none;
    }

    .topnav a.icon {
        float: right;
        display: block;
    }

    .topnav.responsive {
        position: relative;
        background-color: white;
    }

    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }

    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
        color: #333333;

    }

    section {
        flex-direction: column;
        flex-wrap: wrap;
    }

    section>div {}

    footer {
        flex-direction: column;
        flex-wrap: wrap;
    }

    footer img {
        margin: 0 auto;
    }

    footer div {
        padding: 1rem 2rem;
    }

    section>div {
        padding: 0 2rem 2rem 2rem;
        width: auto !important;
    }

    section > .imgDiv {
        padding: 0;
        width: 80vw !important;
    }
    
    section > .imgDiv > img{
        width: 80vw !important;
    }
    
    section > .imgDiv > div{
        padding: 0 2rem 2rem 2rem;
    }

    figcaption {
        padding: 0 2rem;
    }

    figure img {
        width: 80vw !important;
    }
}