/* 
 * Styles für den Latest-Header mit einem großen Beitrag links und einer Liste rechts
 */

.gh-latest-header {
    margin-top: 48px;
    margin-bottom: 64px;
}

.gh-latest-header-inner {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
}

.gh-latest-header-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--ghost-accent-color);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

/* Zwei-Spalten Layout für den Latest-Header */
.gh-latest-header-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

/* Linke Spalte mit dem Hauptbeitrag */
.gh-latest-main-column {
    position: relative;
}

/* Rechte Spalte mit der Liste */
.gh-latest-list-column {
    position: relative;
}

/* Link für den Hauptbeitrag */
.gh-latest-card-link {
    display: block;
    text-decoration: none;
    color: var(--color-darker-gray);
}

.gh-latest-card-link:hover {
    opacity: 1;
}

.gh-latest-card-link:hover .gh-latest-title {
    color: var(--ghost-accent-color);
    transition: color 0.2s ease;
}

/* Bild des Hauptbeitrags */
.gh-latest-image {
    aspect-ratio: 16/9;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.gh-latest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

/* Inhalt des Hauptbeitrags */
.gh-latest-content {
    padding: 16px 0;
}

/* Tag des Hauptbeitrags */
.gh-latest-tag {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ghost-accent-color);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 8px;
}

/* Titel des Hauptbeitrags */
.gh-latest-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

/* Meta-Informationen des Hauptbeitrags */
.gh-latest-meta {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    color: var(--color-secondary-text);
}

/* Inline-Tag im Hauptbeitrag */
.gh-latest-tag-inline {
    color: var(--ghost-accent-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Datum des Hauptbeitrags */
.gh-latest-date {
    font-size: 1.4rem;
    color: var(--color-secondary-text);
}

/* Tag in der Listendarstellung */
.gh-latest-list-tag {
    color: var(--ghost-accent-color);
    font-weight: 600;
    font-size: 1.3rem;
}

/* Liste der weiteren Beiträge */
.gh-latest-list {
    display: flex;
    flex-direction: column;
}

/* Einzelne Listeneinträge */
.gh-latest-list-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.gh-latest-list-item:first-child {
    padding-top: 0;
}

.gh-latest-list-item:last-child {
    border-bottom: none;
}

/* Links in der Liste */
.gh-latest-list-link {
    display: flex;
    gap: 16px;
    text-decoration: none;
    color: var(--color-darker-gray);
}

.gh-latest-list-link:hover {
    opacity: 1;
}

.gh-latest-list-link:hover .gh-latest-list-title {
    color: var(--ghost-accent-color);
    transition: color 0.2s ease;
}

/* Thumbnails in der Liste */
.gh-latest-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.gh-latest-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Inhaltsbereich der Listenpunkte */
.gh-latest-list-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

/* Tag in der Liste */
.gh-latest-list-tag {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ghost-accent-color);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 4px;
}

/* Titel in der Liste */
.gh-latest-list-title {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}

/* Datum in der Liste */
.gh-latest-list-date {
    font-size: 1.3rem;
    color: var(--color-secondary-text);
}

/* Responsive Anpassungen */
@media (max-width: 991px) {
    .gh-latest-header-layout {
        grid-template-columns: 1.5fr 1fr;
    }
}

@media (max-width: 767px) {
    .gh-latest-header-layout {
        grid-template-columns: 1fr;
    }
    
    .gh-latest-list-item {
        padding: 12px 0;
    }
}
