.posts-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.post {
    display: flex;
    flex-direction: row;
    background-color: #e8f2f9; /* Hellblauer Hintergrund für jeden Beitrag */
    margin-bottom: 20px;
    align-items: flex-start;
    width: 100%;
}

.post-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    margin-right: 20px;
}

.post-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.post-info h3 {
    font-weight: bold;
    margin: 10px 0; /* Bestehender oberer und unterer Rand */
    padding-right: 10px; /* Fügt einen rechten Abstand von mindestens 10px hinzu */
}

.post-info .post-date {
    margin-top: 5px; /* Abstand von 5px unter dem Titel */
    color: #4583cf; /* Gleiche Farbe wie der Titel */
}

.post-info .post-excerpt {
    font-size: 0.9em;
    color: #4583cf; /* Gleiche Farbe wie der Titel */
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-top: 5px; /* Abstand zwischen dem Datum und dem Textauszug */
    padding-right: 10px; /* Abstand rechts von mindestens 10 Pixeln */
}

/* Stil für Pagination-Links */
.pagination {
    text-align: center;
    padding: 10px 0;
    display: flex !important;
    justify-content: center !important;
    list-style: none !important;
    gap: 5px !important; /* Abstand zwischen den Paginierungslinks */
}

.pagination li {
    display: inline !important; /* Ändert das Listenpunkt-Element auf Inline */
}

.pagination li a, .pagination li span {
    color: #0056b3 !important; /* Blaue Linkfarbe */
    background-color: #f8f9fa !important; /* Sehr helles Grau für den Hintergrund */
    border: 1px solid #dee2e6 !important;
    padding: 5px 10px !important;
    text-decoration: none !important;
    border-radius: 5px !important;
    font-size: 1em !important;
    display: inline-block !important;
    margin: 0 2px !important; /* Abstand zwischen den Links */
}

.pagination li a:hover {
    background-color: #e2e6ea !important; /* Dunklerer Grauton bei Hover */
    color: #004495 !important; /* Dunkleres Blau bei Hover */
}

.pagination li .current {
    background-color: #007bff !important; /* Helle Blaufarbe für aktive Seite */
    color: #ffffff !important; /* Weiße Schriftfarbe für aktive Seite */
    border-color: #007bff !important;
}

.pagination li .disabled {
    color: #6c757d !important; /* Grau für deaktivierte Links */
    pointer-events: none !important;
}


@media (max-width: 768px) {
    .posts-container {
        justify-content: center;
    }

    .post {
        flex-direction: column;
        align-items: center;
        padding: 15px; /* Adds padding around each post for better spacing */
        box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional: Adds a subtle shadow for better separation */
    }

    .post-image {
        width: 100%; /* Makes image take full width */
        max-width: 400px; /* Limits image width but allows full width on very small screens */
        margin-bottom: 15px; /* Increased spacing between the image and the text */
    }

    .post-info {
        width: 100%; /* Ensures text areas take full width available */
        padding: 0 15px; /* Adds padding around text for better readability */
    }

    .post-info .post-date, .post-info .post-excerpt {
        margin-top: 10px; /* Increases spacing to separate date and excerpt visually */
    }
}


