/* ==========================================================================
   Aktuelles & Vorträge — matches Webflow layout
   ========================================================================== */

/* ---- Hero: container-width image ---- */
.news-hero {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-md) var(--page-padding) 0;
    overflow: hidden;
}

.news-hero__image {
    width: 100%;
    aspect-ratio: 16 / 5;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* ---- News Carousel Section ---- */
.news-carousel-section {
    padding: 0 0 var(--space-xl);
}

.news-carousel-header {
    margin-bottom: var(--space-lg);
}

.news-carousel-header__subtitle {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-body);
}

/* Carousel */
.news-carousel {
    position: relative;
    overflow: hidden;
}

.news-carousel__track {
    display: flex;
    gap: var(--space-md);
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.news-slide {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: var(--space-md) 0;
    border-top: 2px solid var(--color-text-heading);
}

.news-slide__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: var(--ls-heading);
    color: var(--color-text-heading);
}

.news-slide__excerpt {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: 1.5;
    color: var(--color-text-body);
    flex: 1;
}

.news-slide__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-text-heading);
    text-decoration: none;
    margin-top: auto;
    transition: color 0.3s ease;
}

.news-slide__link:hover {
    color: var(--color-accent-red);
}

.news-slide__link svg {
    transition: transform 0.3s ease;
}

.news-slide__link:hover svg {
    transform: translateX(4px);
}

/* Carousel controls */
.news-carousel__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-lg);
}

.news-carousel__dots {
    display: flex;
    gap: 8px;
}

.news-carousel__dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}

.news-carousel__dots .dot.is-active {
    background-color: var(--color-text-heading);
}

.news-carousel__arrows {
    display: flex;
    gap: var(--space-xs);
}

/* ---- Vorträge Hero: container-width dark image with text overlay ---- */
.vortraege-hero {
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--page-padding);
    overflow: hidden;
}

.vortraege-hero__image {
    width: 100%;
    aspect-ratio: 32 / 9;
    object-fit: cover;
    display: block;
    filter: brightness(0.4);
    border-radius: 8px;
}

.vortraege-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--page-padding);
}

.vortraege-hero__overlay h2 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: var(--ls-heading-tight);
    margin-bottom: var(--space-sm);
}

.vortraege-hero__overlay p {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.8);
}

/* ---- Vorträge List Section ---- */
.vortraege-section {
    padding: var(--space-xl) 0;
}

.vortraege-header {
    margin-bottom: var(--space-xl);
}

.vortraege-header .section-label {
    display: block;
    margin-bottom: var(--space-sm);
}

.vortraege-header h2 {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: var(--ls-heading-tight);
    margin-bottom: var(--space-sm);
}

.vortraege-header p {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-body);
}

/* Vortrag item: dates | content | link button */
.vortrag-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: var(--space-md);
}

.vortrag-item__dates {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.vortrag-date-block {
    background: var(--color-bg-accent);
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    min-width: 80px;
}

.vortrag-date-block__day {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-text-heading);
    white-space: nowrap;
}

.vortrag-date-sep {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: var(--color-text-body);
}

.vortrag-item__content {
    flex: 1;
}

.vortrag-item__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text-heading);
    margin-bottom: 4px;
}

.vortrag-item__details {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text-body);
}

.vortrag-item__link {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ---- Single News Detail ---- */
.news-detail {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

.news-detail .section-label {
    display: block;
    margin-bottom: var(--space-md);
}

.news-detail h1 {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: var(--ls-heading-tight);
    margin-bottom: var(--space-sm);
    max-width: 900px;
}

.news-detail__date {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text-body);
    margin-bottom: var(--space-xl);
}

.news-detail__content {
    max-width: 800px;
}

.news-detail__content p {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-text-body);
    margin-bottom: var(--space-md);
}

.news-detail__image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: var(--space-xl);
}

.news-detail__back {
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.link-arrow--back::before {
    content: '←';
    margin-right: 8px;
}

.link-arrow--back::after {
    display: none;
}

/* ---- Responsive ---- */
@media (max-width: 1023px) {
    .news-slide {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

@media (max-width: 767px) {
    .news-hero__image,
    .vortraege-hero__image {
        height: 300px;
        min-height: 250px;
    }

    .news-slide {
        flex: 0 0 85%;
    }

    .vortraege-hero__overlay h2 {
        font-size: 28px;
    }

    .vortrag-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .vortrag-item__link {
        width: 100%;
    }

    .news-detail h1 {
        font-size: 32px;
    }

    .news-carousel-header h2 {
        font-size: 32px;
    }
}

@media (max-width: 479px) {
    .vortraege-hero__overlay h2 {
        font-size: 24px;
    }

    .news-detail h1 {
        font-size: 28px;
    }
}
