/* =========================================================
   Autoren-Archiv-Seite – aevum.at
   ========================================================= */

/* ── Seiten-Wrapper ── */
.aevum-author-page {
    font-family: var(--ep-font-family-lato, 'Lato', sans-serif);
}

/* =========================================================
   Autor-Header
   ========================================================= */
.aevum-author-header {
    background: #f5f7fb;
    padding: 60px 20px 56px;
}

.aevum-author-header__inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;
}

/* Foto */
.aevum-author-header__photo {
    flex: 0 0 auto;
}

.aevum-author-header__photo img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 20px rgba(26, 53, 102, 0.12);
}

/* Info */
.aevum-author-header__info {
    flex: 1 1 0;
    min-width: 0;
}

.aevum-author-header__label {
    font-size: 13px;
    /*font-weight: 700;*/
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ep-color-primary, #7387be) !important;
    margin: 0 0 8px;
}

.aevum-author-header__name {
    font-size: clamp(26px, 3.5vw, 40px);
    /*font-weight: 900;*/
    color: #7387BE !important;
    margin: 0 0 6px;
    line-height: 1.15;
}

.aevum-author-header__position {
    font-size: 16px;
    color: #666;
    margin: 0 0 16px;
    line-height: 1.4;
}

.aevum-author-header__bio {
    font-size: 16px;
    color: #333;
    line-height: 1.7;
}

.aevum-author-header__bio p {
    margin: 0 0 0.75em;
}

.aevum-author-header__bio p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   Beiträge-Sektion
   ========================================================= */
.aevum-author-posts {
    padding: 60px 20px 80px;
}

.aevum-author-posts__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.aevum-author-posts__heading {
    font-size: clamp(20px, 2.5vw, 28px);
    /*font-weight: 700;*/
    color: #7387BE !important;
    margin: 0 0 36px;
    /*padding-bottom: 16px;
    border-bottom: 2px solid #e8ecf4;*/
}

.aevum-author-posts__empty {
    color: #666;
    font-size: 16px;
}

/* ── Post-Liste ── */
.aevum-author-posts__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Post-Listeneintrag ── */
.aevum-post-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid #e8ecf4;
    transition: background 0.15s ease;
}

.aevum-post-item:first-child {
    border-top: 1px solid #e8ecf4;
}

/* Vorschaubild */
.aevum-post-item__thumb-link {
    flex: 0 0 200px;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 3 / 2;
}

.aevum-post-item__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.aevum-post-item:hover .aevum-post-item__thumb {
    transform: scale(1.04);
}

/* Inhalt */
.aevum-post-item__body {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.aevum-post-item__date {
    font-size: 13px;
    color: #999;
    display: block;
    margin-bottom: 6px;
}

.aevum-post-item__title {
    font-size: 18px;
    /*font-weight: 700;*/
    color: #7387BE !important;
    margin: 0 0 8px;
    line-height: 1.3;
}

.aevum-post-item__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.aevum-post-item__title a:hover {
    color: var(--ep-color-primary, #7387be);
}

.aevum-post-item__excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.65;
    margin-bottom: 12px;
}

.aevum-post-item__link {
    font-size: 14px;
    /*font-weight: 700;*/
    color: #7387BE !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    transition: opacity 0.2s ease;
    align-self: flex-start;
}

.aevum-post-item__link:hover {
    opacity: 0.7;
}

/* =========================================================
   Pagination
   ========================================================= */
.aevum-author-page .pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.aevum-author-page .pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 6px;
    font-family: var(--ep-font-family-lato, 'Lato', sans-serif);
    font-size: 15px;
    font-weight: 600;
    color: #7387BE !important;
    text-decoration: none;
    border: 2px solid transparent;
    background: transparent;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.aevum-author-page .pagination a.page-numbers:hover {
    background: #e8ecf4;
    border-color: #e8ecf4;
}

.aevum-author-page .pagination .page-numbers.current {
    background: #7387BE !important;
    border-color: #7387BE !important;
    color: #fff !important;
    cursor: default;
}

.aevum-author-page .pagination .prev.page-numbers,
.aevum-author-page .pagination .next.page-numbers {
    font-size: 18px;
    color: var(--ep-color-primary, #7387be);
    border-color: #e8ecf4;
    background: #fff;
}

.aevum-author-page .pagination .prev.page-numbers:hover,
.aevum-author-page .pagination .next.page-numbers:hover {
    background: #7387BE !important;
    border-color: #7387BE !important;
    color: #fff;
}

.aevum-author-page .pagination .dots {
    color: #aaa;
    border: none;
    background: transparent;
    cursor: default;
    min-width: 24px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 640px) {
    .aevum-author-header__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .aevum-author-header__photo img {
        width: 130px;
        height: 130px;
    }

    .aevum-author-header {
        padding: 40px 20px 36px;
    }

    .aevum-author-posts {
        padding: 40px 20px 60px;
    }

    .aevum-post-item {
        flex-direction: column;
        gap: 14px;
    }

    .aevum-post-item__thumb-link {
        flex: none;
        width: 100%;
    }
}
