@import url('https://fonts.googleapis.com/css2?family=Merriweather&family=Merriweather+Sans&display=swap');

/* Global Styles */

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: all 0.5s ease-out;
}

p{
    font-size: 1.2em;
}

/* HTML and Body */

html, body{
    font-family: "Merriweather-Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    hyphens: auto;
}

h1,h2,h3{
    font-family: "Merriweather", serif;
    font-weight: 400;
    font-style: normal;
}

body{
    height: 100%;
    background-image: url(bilder/background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

main{
    width: 80%;
    margin: auto;
    margin-top: 2em;
    margin-bottom: 2em;
    background-image: url(bilder/Oak.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 1em;
    padding-left: 2em;
    padding-bottom: 2em;
    padding-right: 2em;
    border-radius: 20px;
}

/* Header */

header{
    padding: 0;
}

header h1{
    display: inline-flex;
    width: 100%;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}

img#Logo{
    width: clamp(3rem, 8vw, 8em);
    height: auto;
    flex-shrink: 0;
}

span#Oakline{
    color: black;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    line-height: 1;
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

 /* Navigation */

nav{
    min-height: 4em;
    background-color: #2c251a;
}

nav a{
    display: inline-flex;
    background-color: black;
    height: 3.2em;
    width: 24%;
    text-decoration: none;
    padding: 0.8em;
    margin: 0.4em 0.2em;
    margin-right: 0;
}

nav a:hover{
    background-color: #685f50;
}

nav a#aktuell{
    text-decoration: underline;
    background-color: #544732;
}

/* Link Status*/

a:link{
    color: white;
}

a:visited{
    color: white;
}

a:hover{
    font-weight: bold;
}

i:hover{
    color: rgba(255, 255, 255, 0.571);
}

/* Article and Footer */

article{
    background-color: #141106;
    min-height: 55vh;
}

article img{
    width: 100%;

}

article a{
    text-decoration: none;
}

article a:hover{
    font-weight: bold;
}

span#Haupttitel{
    color: white;
    font-size: 2vw;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-left: 0;
    line-height: 1.2;
}

article, footer{
    color: white;
    padding:1em 2em;
}

footer{
    background-color: #2c251a;
    clear: left;
}

/* Unser Team */

.team-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    align-items: start;
    padding: 1rem 2rem;
}

.team-member{
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.team-name{
    font-weight: 600;
    color: white;
}

.team-role{
    color: #cfcfcf;
    font-size: 0.95rem;
}

/* Responsive Design */

@media screen and (max-width:960px) {
    main{
        width: 100%;
    }

    img:not(#Logo){
        width: 100%;
    }

    nav{
        height: auto;
    }

    nav a{
        display: block;
        width: 100%;
        margin: 0;
        margin-bottom: 0.1em;
    }

    .team-member img{
        width: 100%;
        height: auto;
        max-width: 14rem;
        margin: 0 auto;
        border-radius: 8px;
    }

    .team-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:600px) {
    .team-grid{
        grid-template-columns: 1fr;
    }

    span#Oakline{
        margin-left: 0;
        margin-top: 0.3rem;
        text-align: center;
        font-size: clamp (1.2rem, 6vw, 2.2rem);
    }

    img#Logo{
        width: clamp(3rem, 18vw, 8rem);
    }
}