/* Grundlegendes Box-Sizing für alle Elemente */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Allgemeine Einstellungen für den ganzen Body */
body {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 1em;
    overflow-x: hidden;
}

/* Minimalistische, angepasste Scrollleisten für die gesamte Seite */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 5px;
}

::-webkit-scrollbar-track {
    background-color: #e3b750;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

/* Header-Stil */
header {
    background-color: #2c2c2c;
    color: #fff;
    padding: 20px 0;
    width: 100%;
    text-align: center;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.header-line {
    border-top: 2px solid #fff;
    margin: 10px 0;
}

header h1 {
    margin: 10px 0;
    font-size: 1.8em;
}

header h2 {
    margin: 0;
    font-size: 1.5em;
    font-weight: normal;
}

header h3 {
    margin: 20px 0;
    font-size: 1em;
    font-weight: normal;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 10px 0 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #cd7f32;
    text-decoration: none;
    font-size: inherit;
    padding: 5px 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px;
}

nav ul li a:hover {
    background-color: rgba(205, 127, 50, 0.2);
}

nav ul li a:active {
    background-color: rgba(205, 127, 50, 0.4);
    transition: background-color 0.2s ease;
}

nav ul li a.active {
    background-color: #cd7f32;
    color: #fff;
}

.main-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
    background-color: #e3b750;
    box-sizing: border-box;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    text-align: left;
    color: #333;
    overflow: hidden;
}

.hero img {
    max-width: 100%;
    height: auto;
}

/* Footer-Stil */
footer {
    background-color: #2c2c2c;
    color: #ffffff;
    padding: 20px 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.8em;
}

footer p {
    margin: 0 0 8px 0; /* Vertikaler Abstand von 8px */
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-button {
    color: #ffffff;
    background-color: transparent;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-button:active {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Stile für das Kontaktformular */
.contact-form-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #f5f5f5 25%, #e3b750 100%);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    text-align: left;
    color: #333;
}

/* Spezifische Stile für den klickbaren Header-Link */
.header-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Spezifische Stile für die News-Seite */
.news-page {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    background-color: #e3b750;
    box-sizing: border-box;
}

.news-page .news-content {
    max-width: 800px;
    width: 100%;
    text-align: left;
    color: #333;
}

.news-item {
    margin-bottom: 20px;
}

.news-item h4 {
    margin-bottom: 5px;
}

.news-item .date {
    font-style: italic;
    color: #666;
}

.news-item .summary {
    font-weight: bold;
}

.news-item .content {
    margin-top: 10px;
}

.news-line {
    border-top: 1px solid #cd7f32;
    margin: 20px 0;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    nav ul li a {
        padding: 10px;
        font-size: 1.2em;
    }
    
    .main-container, main {
        padding: 10px;
    }

    .content {
        padding: 10px;
    }

    footer {
        font-size: 1em;
        text-align: center;
    }

    .footer-button {
        margin: 5px;
    }
}