/* ========== BASIS-LAYOUT ========== */
body {
    font-family: "Segoe UI", sans-serif;
    max-width: 900px;
    margin: auto;
    padding: 20px;
    background: #f9f9f9;
    color: #333;
}

/* ========== HEADER ========== */
header h1 {
    margin: 0;
    font-size: 2em;
    color: #1a1a1a;
}

header p {
    font-size: 1em;
    color: #666;
}

/* ========== NAVIGATION ========== */
.main-nav {
    width: 100%;
    background-color: #f4f4f4;
    border-bottom: 1px solid #ccc;
    font-size: 0.9em;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

.main-nav li {
    flex: 1;
    border-right: 1px solid #ccc;
    background: #fff;
    text-align: center;
}

.main-nav li:last-child {
    border-right: none;
}

.main-nav a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #0056b3;
    font-weight: 500;
    border-radius: 4px;
}

.main-nav a:hover {
    background-color: #e0e7ff;
}

/* ========== BEITRAG ========== */
.post {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.post h2 {
    margin-top: 0;
    color: #004085;
}

.post img {
    max-width: 100%;
    margin: 10px 0;
    border-radius: 5px;
}

.date {
    font-size: 0.9em;
    color: #777;
}

/* ========== AKTIONEN ========== */
.actions {
    margin-top: 10px;
}

.actions a {
    color: #cc0000;
    text-decoration: none;
    margin-left: 10px;
    font-size: 0.9em;
}

.actions a:first-child {
    color: #007bff;
}

.actions a:hover {
    text-decoration: underline;
}

/* ========== SUCHE ========== */
.search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px auto;
    flex-wrap: wrap;
}

.search-form input[type="text"] {
    padding: 6px;
    width: 60%;
    max-width: 400px;
    min-width: 200px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-form input[type="submit"] {
    padding: 6px 12px;
    background: #007BFF;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 4px;
}

.search-form input[type="submit"]:hover {
    background: #0056b3;
}

/* ========== FOOTER ========== */
footer {
    text-align: center;
    font-size: 0.9em;
    color: #999;
    margin-top: 40px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .main-nav {
        flex-direction: column;
    }

    .main-nav a {
        display: block;
    }

    .search-form input[type="text"] {
        width: 100%;
    }
}

/* ========== HEADER OBEN ========== */
.header-area {
    text-align: center;
    margin: 40px 0 20px 0;
}

.header-area h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.header-area p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555;
}

.header-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ========== THEMEN-BOXEN ========== */
.topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.topic-box {
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.topic-box:hover {
    background-color: #f9f9ff;
}

/* ========== POST LISTE ========== */
.post-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.post-item {
    background: white;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.post-item .actions {
    margin-top: 10px;
}

.post-item .actions a {
    margin-right: 10px;
    font-size: 0.9em;
    text-decoration: none;
}

/* ========== BILDER ========== */
.post-image {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    display: block;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 40px 0 60px;
    padding: 10px 0;
}

.page-number,
.nav-btn {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #0056b3;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    background-color: #f0f8ff;
    color: #0056b3;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.page-number:hover,
.nav-btn:hover {
    background-color: #d6e9ff;
    color: #003e80;
}

.page-number.current {
    background-color: #0056b3;
    color: white;
    cursor: default;
}