@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/Roboto-Light.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/Roboto-Light-Italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/Roboto-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/Roboto-Bold-Italic.woff2') format('woff2');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 300; /* Light */
    line-height: 1.6;
    color: #333;
}

header.hero {
    position: relative;
    height: 100vh;
    background: url('images/header.jpg') no-repeat center center/cover;
}

header.small-hero {
    position: relative;
    height: 50vh;
    background: url('images/header.jpg') no-repeat center center/cover;
}

header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

header .hero-content {
    background-color: rgba(0, 0, 0, 0.5); /* Leicht abgedunkelter Bereich für den Text */
    padding: 1em;
    border-radius: 20px; /* Optional: Abrunden der Ecken */
    color: #fff;
}

header h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700; /* Bold */
    font-size: 3em;
    /* margin-bottom: 0.5em; */
    word-wrap: break-word; /* Prevents long titles from overflowing */
}

header p {
    font-size: 1.2em;
}

header a {
    color: #fff;
    text-decoration: none;
}

nav {
    position: absolute;
    top: 40px;
    right: 20px;
}

nav .menu-icon {
    font-size: 2em;
    color: #fff;
    cursor: pointer;
    display: none;
    background-color: rgba(0, 0, 0, 0.5); /* Leicht abgedunkelter Bereich für das Menüicon */
    padding: 0.5em;
    border-radius: 5px;
}

nav .nav-links {
    list-style: none;
    display: flex;
    background-color: rgba(0, 0, 0, 0.5); /* Leicht abgedunkelter Bereich für die Menüpunkte */
    padding: 0.5em;
    border-radius: 5px;
}

nav .nav-links li {
    margin: 0 1em;
}

nav .nav-links a {
    font-family: 'Roboto', sans-serif;
    font-weight: 300; /* Light */
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
}

section.content {
    padding: 2em 0;
}

section.content .container {
    width: 80%;
    margin: 0 auto;
    max-width: 1000px;
}

section.content p {
    margin-bottom: 0.5em;
}

.mailto-button {
    display: inline-block;
    background-color: red;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.mailto-button:hover {
    background-color: darkred;
}

.vorstand {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.vorstand-mitglied {
    text-align: center;
    margin: 1em;
    flex: 1 1 30%; /* Flex grow, shrink and basis */
}

.vorstand-mitglied img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5em;
}

.back-to-top {
    display: block;
    margin-top: 2em;
    text-align: right;
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.back-to-top:hover {
    text-decoration: underline;
}

.more-text {
    display: none;
}

.read-more {
    color: #0066cc;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

.full-width-image {
    width: 100%;
    height: auto; /* Verhindert verzerrte Bilder */
    display: block;
    margin: 0;
}
footer {
    font-family: 'Roboto', sans-serif;
    font-weight: 300; /* Light */
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1em 0;
}

footer a {
    font-family: 'Roboto', sans-serif;
    font-weight: 300; /* Light */
    color: #fff;
    text-decoration: none;
    margin: 0 1em;
}

a,
a:visited {
    color: inherit;
    text-decoration: none;
}

header p,
section.content p,
footer p {
    font-family: 'Roboto', sans-serif;
    font-weight: 300; /* Light */
}

@media (max-width: 768px) {
    nav .menu-icon {
        display: block;
    }

    nav .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 5px;
        padding: 0.5em;
    }

    nav .nav-links li {
        margin: 1em 0;
    }

    .vorstand-mitglied {
        flex: 1 1 100%; /* Full width on smaller screens */
    }
}
