/* Gemeinsame Styles für Mini- und Vollansicht */
.article, .article-mini, .full-article {
    border-radius: 5px;
    overflow: hidden;
}
.article, .article-mini {
    background-color: #13171F;
}

.full-article-page + .content-separator {
    display: none;
}

.full-article {
    background-color: transparent;
}

.full-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.full-article-tag {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.full-article-tag:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Styles für die Miniaturansicht */
.article, .article-mini {
    display: flex;
    flex-direction: column;
    height: 450px; /* Gesamthöhe des Artikels bleibt gleich */
    background-color: #13171F;
    border-radius: 5px;
    overflow: hidden;
}

.article-image-container, .article-mini-image {
    width: 100%;
    height: 180px; /* Reduzierte feste Höhe für den Bildcontainer */
    position: relative;
    overflow: hidden;
}

.article-image-container img, .article-mini-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: filter 0.3s ease;
    filter: grayscale(30%) brightness(70%);
}

.article:hover .article-image-container img,
.article-mini:hover .article-mini-image img {
    filter: grayscale(0%) brightness(100%);
}

.article-content, .article-mini-content {
    flex: 1; /* Nimmt den restlichen verfügbaren Platz ein */
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.article-meta, .article-mini-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px;
}

.article-category, .article-mini-category {
    padding: 2px 8px;
    border-radius: 15px;
    font-weight: bold;
    border: 1px solid;
    text-decoration: none;
    font-size: 12px;
}

.article-date, .article-mini-date {
    color: #8B95A5;
    font-size: 12px;
}

.article h2, .article-mini h2 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 10px;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article p, .article-mini p {
    font-size: 14px;
    color: #8B95A5;
    margin: 10px;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.article-tags, .article-mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px;
}

.article-tag, .article-mini-tag {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 12px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.article-tag:hover, .article-mini-tag:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.read-more, .article-mini-read-more {
    color: #3A86FF;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
    align-self: flex-start;
    margin: 10px;
}

.read-more:hover, .article-mini-read-more:hover {
    color: #ffffff;
}

/* Styles für die vollständige Artikelansicht */
.full-article-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.full-article {
    width: 100%;
}

.full-article-header {
    margin-bottom: 20px;
    background-color: #0B111D;
    padding: 10px 0;
}

.full-article-header h1 {
    color: #ffffff;
    font-size: 2.5em;
    margin: 0;
    line-height: 1.2;
}

.full-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.full-article-meta-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
}

.full-article-category {
    padding: 0px 10px;
    border-radius: 20px;
    font-weight: bold;
    border: 1px solid;
    text-decoration: none;
    font-size: 14px;
    margin-right: 10px;
}

.full-article-date {
    color: #8B95A5;
    font-size: 14px;
    white-space: nowrap;
}

.full-article-content-wrapper {
    margin-top: 20px;
}

.full-article-image {
    float: left;
    width: 40%;
    margin: 0 20px 20px 0;
}

.full-article-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

.full-article-content {
    color: #ffffff;
    line-height: 1.8;
    font-size: 18px;
}

.full-article-content h2 {
    color: #ffffff;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.full-article-content h3 {
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.full-article-content p {
    margin-bottom: 20px;
}

.full-article-content strong {
    color: #ffffff;
    font-weight: 600;
}

.full-article-content em {
    font-style: italic;
}

.full-article-content ul, .full-article-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.full-article-content blockquote {
    border-left: 4px solid #3A86FF;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #a0a0a0;
    font-size: 1.1em;
}

.full-article-content a {
    color: #3A86FF;
    text-decoration: none;
}

.full-article-content a:hover {
    text-decoration: underline;
}

/* Clearfix für den Wrapper, um das Floating zu beenden */
.full-article-content-wrapper::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive Design */
@media (max-width: 768px) {
    .full-article-content-wrapper {
        flex-direction: column;
    }
    .full-article-page {
        padding: 15px;
    }

    .full-article-header h1 {
        font-size: 2em;
    }

    .full-article-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .full-article-meta-left {
        margin-bottom: 10px;
    }

    .full-article-date {
        margin-top: 10px;
    }

    .full-article-image {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }

    .full-article-content {
        font-size: 16px;
    }
}