/* ============================================================
   Eventbuch News & Heading Styles
   ============================================================ */

/* --- Heading Standard (simple, left-aligned) --- */
.eb-heading-standard {
    margin: 0.8em 0 0.35em 0;
    padding: 0;
}
.eb-heading-standard__title {
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
    margin: 0 0 1.25em 0;
    padding: 0;
    line-height: 1.3;
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 0.35em;
}
.eb-heading-standard__subtitle {
    font-size: 0.95em;
    font-weight: 300;
    color: #777;
    margin: 0.2em 0 0 0;
    padding: 0;
    line-height: 1.4;
}

/* --- Fix: Neutralize section/container from article content after heading --- */
.eb-heading-standard + br {
    display: none !important;
}
.eb-heading-standard + br + section,
.eb-heading-standard + section {
    padding: 0 !important;
    border-bottom: none !important;
    background: transparent !important;
    background-attachment: initial !important;
    background-size: initial !important;
    position: static !important;
}
.eb-heading-standard + br + section:after,
.eb-heading-standard + br + section:before,
.eb-heading-standard + section:after,
.eb-heading-standard + section:before {
    display: none !important;
}
.eb-heading-standard + br + section > .container,
.eb-heading-standard + section > .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

/* --- News Container --- */
.eb-news-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- News Grid Layout --- */
.eb-news-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* --- News Card (horizontal layout) --- */
.eb-news-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.eb-news-card:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.eb-news-card__link {
    display: flex;
    flex-direction: row;
    text-decoration: none !important;
    color: inherit !important;
    min-height: 0;
}
.eb-news-card__link:hover {
    text-decoration: none !important;
    color: inherit !important;
}

/* Image area (left side) */
.eb-news-card__image-wrap {
    position: relative;
    width: 220px;
    min-width: 220px;
    overflow: hidden;
    background: #f0f2f5;
    flex-shrink: 0;
}
.eb-news-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.eb-news-card:hover .eb-news-card__image {
    transform: scale(1.03);
}

.eb-news-card__image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8ecf1 0%, #d5dce6 100%);
    color: #a0aec0;
    font-size: 2rem;
}

/* Card body (right side) */
.eb-news-card__body {
    padding: 1.15rem 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.eb-news-card__date {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-size: 0.76rem;
    color: #8a94a6;
    letter-spacing: 0.02em;
    margin-bottom: 0.45rem;
    font-weight: 500;
}
.eb-news-card__date i {
    font-size: 0.85em;
    opacity: 0.7;
}

.eb-news-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 0.3rem 0;
    line-height: 1.35;
    transition: color 0.2s ease;
}
.eb-news-card:hover .eb-news-card__title {
    color: var(--eb-primary, #2b6cb0);
}

.eb-news-card__subtitle {
    font-size: 0.85rem;
    color: #718096;
    margin: 0 0 0.35rem 0;
    line-height: 1.4;
    font-weight: 500;
}

.eb-news-card__teaser {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0 0 0.6rem 0;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eb-news-card__readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--eb-primary, #2b6cb0);
    transition: color 0.2s ease;
    margin-top: auto;
}
.eb-news-card__readmore i {
    transition: transform 0.2s ease;
    font-size: 0.9em;
}
.eb-news-card:hover .eb-news-card__readmore i {
    transform: translateX(3px);
}

/* --- Mobile: stack vertically --- */
@media (max-width: 600px) {
    .eb-news-card__link {
        flex-direction: column;
    }
    .eb-news-card__image-wrap {
        width: 100%;
        min-width: 100%;
        padding-top: 50%;
    }
}

/* --- News Subpages --- */
.eb-news-subpages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.eb-news-subpage-link {
    display: inline-block;
}

/* --- Pagination --- */
.eb-news-pagination {
    display: flex;
    justify-content: center;
    margin: 2rem 0 1rem;
}

.eb-news-pagination__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.3rem;
}

.eb-news-pagination__item {
    display: flex;
}

.eb-news-pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2.2rem;
    padding: 0 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none !important;
    background: #fff;
    transition: all 0.2s ease;
}
.eb-news-pagination__link:hover {
    background: #f7fafc;
    border-color: #a0aec0;
    color: #2d3748;
    text-decoration: none !important;
}

.eb-news-pagination__link--current {
    background: var(--eb-primary, #2b6cb0) !important;
    border-color: var(--eb-primary, #2b6cb0) !important;
    color: #fff !important;
    cursor: default;
}

/* --- News Detail (Einzelansicht) --- */
.eb-news-detail {
    max-width: 820px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.eb-news-detail__hero {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}
.eb-news-detail__hero img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
}

.eb-news-detail__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.eb-news-detail__date {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
}
.eb-news-detail__date i {
    font-size: 0.9em;
    opacity: 0.7;
}

.eb-news-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--eb-primary, #2b6cb0);
    text-decoration: none !important;
    margin-left: auto;
    transition: color 0.2s ease;
}
.eb-news-detail__back:hover {
    color: #1a365d;
    text-decoration: none !important;
}
.eb-news-detail__back i {
    font-size: 0.85em;
}

.eb-news-detail__content {
    line-height: 1.7;
    color: #2d3748;
    font-size: 0.95rem;
}
.eb-news-detail__content h2,
.eb-news-detail__content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #1a202c;
}
.eb-news-detail__content p {
    margin-bottom: 1em;
}
.eb-news-detail__content ul,
.eb-news-detail__content ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}
.eb-news-detail__content strong {
    color: #1a202c;
}

/* --- News Prev/Next Navigation --- */
.eb-news-prevnext {
    display: flex;
    gap: 0.75rem;
    margin: 2rem auto 0;
    max-width: 820px;
    padding: 0 1rem;
}

.eb-news-prevnext__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none !important;
    color: inherit !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
}
.eb-news-prevnext__item:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none !important;
    color: inherit !important;
}

.eb-news-prevnext__item--next {
    text-align: right;
    justify-content: flex-end;
}
.eb-news-prevnext__item--next .eb-news-prevnext__text {
    align-items: flex-end;
}

.eb-news-prevnext__thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f2f5;
}

.eb-news-prevnext__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.eb-news-prevnext__label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--eb-primary, #2b6cb0);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.eb-news-prevnext__label i {
    font-size: 0.8em;
}

.eb-news-prevnext__title {
    font-size: 0.82rem;
    font-weight: 500;
    color: #2d3748;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}
.eb-news-prevnext__item:hover .eb-news-prevnext__title {
    color: var(--eb-primary, #2b6cb0);
}

.eb-news-prevnext__date {
    font-size: 0.68rem;
    color: #a0aec0;
    font-weight: 400;
}
.eb-news-prevnext__date i {
    font-size: 0.85em;
    margin-right: 0.15em;
}

@media (max-width: 600px) {
    .eb-news-prevnext {
        flex-direction: column;
    }
    .eb-news-prevnext__item--next {
        text-align: left;
        justify-content: flex-start;
    }
    .eb-news-prevnext__item--next .eb-news-prevnext__text {
        align-items: flex-start;
    }
}
