:root {
    --primary-color: #0066cc;
    --secondary-color: #eceff1;
    --background-color: #f8f9fa;
    --text-color: #212529;
    --muted-color: #6c757d;
    --border-color: #e0e0e0;
}

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

body {
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header-Anpassungen */
.header-link {
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
}

.header-link h1 {
    margin: 0;
    padding: 0.5rem 0;
    font-size: 1.5rem;
    cursor: pointer;
}
header {
    background-color: #eceff1; /* Geänderte Farbe */
    color: #000000;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0.5rem 0;
}

.header-content {
    max-width: 100%;
    padding: 0 15px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

h1 {
    font-size: 1.5rem;
    flex-grow: 1;
    text-align: center;
    margin: 0 40px; /* Platz für den Button */
}

.menu-toggle {
    background: none;
    border: none;
    color: #000000; /* Angepasste Farbe für besseren Kontrast */
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu {
    background-color: var(--secondary-color);
    display: none;
    width: 100%;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style-type: none;
}

.mobile-menu li a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
}

.container {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    margin: 0 auto;
    flex: 1;
}

main {
    padding: 1rem 0;
}

.search-form {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-form input,
.search-form select,
.search-form button {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.search-form button {
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
}

.wiki-article {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.wiki-article h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.wiki-article a {
    color: inherit;
    text-decoration: none;
}

.entry-meta {
    font-size: 0.8rem;
    color: var(--muted-color);
    margin-top: 0.5rem;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.pagination a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Footer-Anpassungen */
footer {
    background-color: var(--secondary-color);
    color: var(--text-color);
    text-align: center;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 1rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .container {
        max-width: 750px;
    }

    .search-form {
        flex-direction: row;
    }

    .search-form input {
        flex-grow: 1;
    }

    .search-form select,
    .search-form button {
        width: auto;
    }

    header {
        padding: 1rem 0;
    }

    h1 {
        margin: 0 60px; /* Mehr Platz für größere Screens */
    }

    .menu-toggle {
        right: 25px;
    }
}

@media (max-width: 767px) {
    .header-content {
        padding: 0 10px;
    }

    h1 {
        font-size: 1.2rem;
        margin: 0 35px; /* Angepasster Platz für Mobile */
    }

    .menu-toggle {
        right: 10px;
        font-size: 1.3rem;
    }

    .mobile-menu {
        margin: 0 -10px;
    }

    .mobile-menu li a {
        padding: 0.6rem;
    }
}
