/* custom.css */

.search-container {
    margin-bottom: 20px;
    margin-top: 20px;
    float: right;
    margin-right: 20px;
}

.article-list-container {
    clear: both; /* Neue Regel, um die Artikelcontainer zu klären */
}

.search-container input[type=text],
.search-container select {
    padding: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-container input[type=submit] {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.article-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px;
}

.article {
    width: calc(100% - 20px); /* 33.33% für drei Artikel pro Zeile mit 20px Lücken */
    background-color: #333; /* Dunkelgrauer Hintergrund */
    color: #fff; /* Weiße Schriftfarbe */
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
}

.article:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.article img,
.article video {
    width: 150px; /* Breite der Bilder und Videos */
    height: 150px; /* Höhe der Bilder und Videos */
    object-fit: cover;
    border-radius: 5px 0 0 5px; /* Runde Ecken nur auf der linken Seite */
}

.article-details {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-details p {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-details p.title {
    font-size: 24px; /* 2 Mal so groß wie der Text */
    font-weight: bold;
    margin-bottom: 5px;
    font-family: Arial, sans-serif; /* Ändere die Schriftart */
}

.article-details p.text {
    font-size: 14px;
    margin-bottom: -2px;
    font-family: Arial, sans-serif; /* Ändere die Schriftart */
}

.article-details p.date {
    font-size: 12px;
    text-align: right;
    margin-top: auto; /* Datum am unteren Rand ausrichten */
    font-family: Arial, sans-serif; /* Ändere die Schriftart */
}

.view-button {
    display: none; /* Den Button entfernen */
}
.article-details p.text {
    font-size: 14px;
    margin-bottom: -2px;
    font-family: Arial, sans-serif; /* Ändere die Schriftart */
    max-width: 100%; /* Maximale Breite des Textbereichs */
    overflow: hidden; /* Überlauf verstecken */
    text-overflow: ellipsis; /* "..." am Ende des abgeschnittenen Textes anzeigen */
    white-space: nowrap; /* Verhindern, dass der Text umgebrochen wird */
}