/* Grundlegende Stile und Farbpalette */
:root {
    --primary-color: #333333; /* Dunkles Grau für Text */
    --secondary-color: #6c757d; /* Helleres Grau */
    --background-color: #FFFFFF; /* Weißer Hintergrund */
    --accent-color: #f8f9fa; /* Sehr helles Grau für Akzente */
    --link-color: #0056b3;
    --font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--primary-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    font-size: 16px;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.site-header {
    background-color: var(--background-color);
    padding: 20px 0;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}

.site-header .logo {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav li {
    margin: 5px 15px;
}

.main-nav a {
    text-decoration: none;
    color: var(--link-color);
    font-weight: bold;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    text-decoration: underline;
}


/* Hauptinhalt */
main {
    padding: 40px 0;
}

article {
    background: var(--background-color);
}

/* Überschriften-Hierarchie */
h1, h2, h3, h4 {
    color: var(--primary-color);
    line-height: 1.3;
}

h1 { font-size: 2.5em; margin-bottom: 20px; }
h2 { font-size: 2em; margin-top: 40px; border-bottom: 2px solid var(--accent-color); padding-bottom: 10px; }
h3 { font-size: 1.5em; margin-top: 30px; }
h4 { font-size: 1.2em; margin-top: 25px; color: var(--secondary-color); }

/* Inhaltsverzeichnis */
.toc {
    background-color: var(--accent-color);
    border: 1px solid #e9ecef;
    padding: 15px 25px;
    margin-bottom: 30px;
    border-radius: 5px;
}
.toc p { font-weight: bold; margin-bottom: 10px; }
.toc ul { list-style: none; padding-left: 0; }
.toc ul li a { text-decoration: none; color: var(--link-color); }
.toc ul li a:hover { text-decoration: underline; }


/* Weitere HTML-Tags */
p { margin-bottom: 15px; }
a { color: var(--link-color); text-decoration: none; }
a:hover { text-decoration: underline; }
strong, b { font-weight: bold; }
em, i { font-style: italic; }

ul, ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

blockquote {
    border-left: 4px solid #e9ecef;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--secondary-color);
}
cite {
    display: block;
    text-align: right;
    margin-top: 10px;
}

/* Bilder */
img.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Details Tag */
details {
    margin: 20px 0;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}
summary {
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--accent-color);
}
.details-content {
    padding: 15px;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--background-color);
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}
.site-footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.75em; }
    h3 { font-size: 1.4em; }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
}