body,
h1,
h2,
h3,
p,
ul,
li,
table,
tr,
td {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    font-size: 18px;
    color: #333;
    margin-left: 1em;
    margin-right: 1em;
    max-width: 100%;
    padding: 0;
}

main {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* --- Globaler Site-Header (Konzept B: Flex Brand-Header) --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #e0e0e0;
    padding-top: 1rem;
    padding-bottom: 0.8rem;
    margin-bottom: 2rem;
}

.site-header .site-title,
.site-header h1.site-title {
    font-size: 1.15rem;
    font-weight: bold;
    margin: 0;
    padding: 0;
}

.site-header .site-title a {
    color: #333;
}

.site-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-header nav a {
    color: #333;
    font-size: 0.95rem;
    font-weight: bold;
}

.site-header nav a:hover {
    color: #555;
}

/* --- Globaler Site-Footer (Option 1: Bereinigter Meta-Footer) --- */
.site-footer {
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    margin-top: 3rem;
}

.site-footer nav {
    font-size: 0.85rem;
    color: #777;
}

.site-footer nav a {
    color: #555;
    font-weight: bold;
}

.site-footer nav a:hover {
    color: #000;
}

/* Responsive Anpassungen für den Header auf kleinen Bildschirmen */
@media (max-width: 600px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }
    
    .site-header nav {
        gap: 0.6rem;
    }
}


h1,
h2,
h3 {
    font-weight: bold;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: 1.6rem;
}

h2 {
    font-size: 1.4rem;
}

h3 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1em;
}

a {
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

a:hover {
    color: #555;
}

ul,
table {
    padding-left: 1em;
}

table {
    width: 100%;
    border-collapse: collapse;
}

td {
    padding: 0.5rem;
}

.article-meta {
    font-style: italic;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.site-footer nav {
    font-size: 0.8rem;
    color: #555;
}

.endnotes {
    font-size: 14px;
}

.endnote-back {
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

@media (min-width: 600px) {
    body {
        margin-left: 3em;
        margin-right: 3em;
        max-width: 900px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    ul,
    table {
        padding-left: 20px;
    }

    .article-meta {
        font-size: 0.9rem;
    }

    .site-footer nav {
        font-size: 0.9rem;
    }

    .endnotes {
        font-size: 16px;
    }
}

table {
    border: 1px solid #e0e0e0;
    border-collapse: collapse;
    margin-top: 1em;
    margin-bottom: 1em;
}

th,
td {
    border: 1px solid #e0e0e0;
    padding: 0.5rem;
    text-align: left;
}

th {
    background-color: #f5f5f5;
    font-weight: bold;
}

figure {
    display: block;
    margin-top: 1em;
    margin-bottom: 1.2em;
    margin-left: 0px;
    margin-right: 0px;
    font-size: 0.7em;
}

figure a {
    color: #333;
}

ul.cv {
    list-style-type: circle;
    width: 60%;
}

ul.cv li {
    margin-bottom: 0.8em;
}

.container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-bottom: 1em;
}

.image {
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
}

@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
    }
}

.data-wrapper {
    margin-top: 1em;
    margin-bottom: 2em;
}

p.indent {
    padding-left: 30px;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline-block;
    position: relative;
}

nav ul li ul {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    padding: 1em;
    border-radius: 5px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

nav ul li:hover ul {
    display: block;
}

/* Prism.js Overrides */
pre[class*="language-"], 
code[class*="language-"] {
    font-size: 0.85em !important;
}