@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@100;200;300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&display=swap');

:root {
    color-scheme: light only;
}

@media(prefers-color-scheme: dark) {
    header {
        background-color: white;
    }
}

/* Layout */

body {
    display: grid;
    grid-template: minmax(100vh, 1fr) 35px / 25% 75%;
    gap: 0;
    font-family: 'Urbanist', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

header {
    padding: 2rem;
    box-shadow: 5px 5px 30px 6px #dfdfdf;
}

main {
    padding: 2rem;
    background-color: #403672;
    color: white;
    text-align: center;
}

main a {
    color: white;
}

footer {
    height: 35px;
    grid-area: 2 / 1 / 3 / 3;
    background-color: white;
    text-align: center;
    font-size: 0.63rem;
    color: rgb(206, 206, 206);
    border-top: 1px solid rgb(240, 240, 240);
}

footer a {
    color: rgb(206, 206, 206);
}

/* General styles */
a {
    text-decoration: none;
    color: black;
}

h3 {
    font-size: 1rem;
    font-family: 'Merriweather', serif;
    margin-top: 1.73rem;
    font-weight: 400;
}

.active {
    font-weight: 600;
}

/* Navbar */
header img {
    height: 100px;
}

.contact {
    padding: 1.8rem 0;
}

.contact p {
    padding: 0;
    margin-top: 0.33rem;
    margin-bottom: 0;
    font-size: 0.83rem;
}

nav ul {
    margin: 0;
    padding: 0;
}

nav ul li {
    list-style: none;
    padding: 0.45rem 0;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.15s;
    font-family: 'Merriweather', serif;
}

nav ul li:hover {
    font-weight: 600;
}

/* Main Homepage */

.heading-main {
    margin-bottom: 2.7rem;
}

.heading-main h1 {
    margin: 0;
    margin-bottom: 0.93rem;
    font-size: 2.33rem;
    font-weight: 500;
}

.heading-main h2 {
    margin: 0;
    font-weight: 300;
    font-size: 1.13rem;
}

.images-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.images-main .img-main {
    width: 50%;
    height: auto;
}

.images-main a {
    width: 100%;
    padding: 1.5rem 0 2.5rem 0;
}

.images-main a:hover {
    font-weight: 500;
}

/* Metallbau page */
.metallbau-main, .rollladen-main {
    text-align: left;
}

.einleitung {
    width: 90%;
    padding-bottom: 18px;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.img-galerie {
    width: 100%;
}

.img-container {
    width: 45%;
    padding: 15px 15px 5px 0;
}

.img-container-wide {
    width: 95%;
    padding: 15px 0px 5px 0;
}

.metallbau-main p, .metallbau-main li, .rollladen-main p, .rollladen-main li, .impressum p {
    font-size: 0.83rem;
    padding: 0;
    margin: 0;
    line-height: 1.53;
}

h5 {
    margin-bottom: 0;
}

.sprungmarken {
    list-style-type: disclosure-closed;
    text-decoration: underline;
}

/* Über mich page */
.ueber-main p, .ueber-main li {
    font-size: 0.83rem;
    line-height: 1.33;
}

.img-ueber {
    width: 230px;
    margin: 0rem auto 0.5rem auto;
    border-radius: 15px;
} 

.cv-ueber, .kontakt-ueber {
   text-align: left;
   width: 60%;
   margin: 1.5rem auto;
   padding: 0 1.5rem 0.5rem 1.5rem;
   border: 1px solid black;
}

.kontakt-ueber {
    text-align: center;
}

.metallbild-ueber {
    width: 40%;
}

/* Impressum */
.impressum {
    text-align: left;
}

/* Media queries */
@media only screen and (max-width: 700px) {
    body {
        grid-template: auto 1fr 35px / 1fr;
    }
    footer {
        grid-area: auto;
    }
    header img {
        height: 50px;
    }
    .contact {
        float: right;
        padding: 0;
    }
    .contact p {
        margin: 0rem;
        font-size: 0.73rem;
    }
    nav ul {
        margin: 1.8rem 0 0 0;
    }
    nav ul li {
        padding: 0.23rem 0;
        font-size: 0.83rem;
    }
    .img-container {
        width: 100%;
    }
    .cv-ueber {
        width: 80%;
    }
    .metallbild-ueber {
        width: 100%;
    }
    .images-main .img-main {
        height: auto;
    }
  }

