/* Laufbanner und chronologischer Veranstaltungskalender. */
.alg-news-banner {
    --alg-news-gap: 44px;
    --alg-news-duration: 50s;
    position: relative;
    color: #fff8eb;
    background: linear-gradient(105deg, #142d43 0%, #1d405a 52%, #17324a 100%);
    border-block: 1px solid rgba(216, 185, 121, .55);
}
.alg-news-banner::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(238, 214, 164, .75), transparent);
    pointer-events: none;
}
.alg-news-banner [hidden] { display: none !important; }
.alg-news-banner-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    min-height: 104px;
    padding-block: 22px;
}
.alg-news-label {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding-right: 25px;
    border-right: 1px solid rgba(219, 192, 139, .28);
    color: #e4c992;
    font-size: 11px;
    font-weight: 600;
    line-height: 32px;
    text-transform: uppercase;
    letter-spacing: .16em;
    white-space: nowrap;
}
.alg-news-label-dot {
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 50%;
    background: #dec28a;
    box-shadow: 0 0 0 4px rgba(222, 194, 138, .1);
}
.alg-news-banner .alg-news-viewport {
    display: block;
    min-width: 0;
    overflow: hidden;
    padding-block: 8px;
    color: #fff8eb;
    text-decoration: none;
}
.alg-news-track, .alg-news-group { display: block; }
.alg-news-group + .alg-news-group, .alg-news-message + .alg-news-message { display: none; }
.alg-news-message {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 15px;
    row-gap: 4px;
    align-items: center;
}
.alg-news-symbol {
    grid-column: 1;
    grid-row: 1 / span 2;
    flex-shrink: 0;
    color: #dabb7b;
    font-size: 26px;
    line-height: 1;
}
.alg-news-title {
    grid-column: 2;
    color: #fff8eb;
    font-size: clamp(24px, 2.2vw, 31px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.025em;
}
.alg-news-description {
    grid-column: 2;
    color: #d4e0e7;
    font-size: 15px;
    line-height: 1.5;
}
.alg-news-separator { display: none; }
.alg-news-actions { display: flex; align-items: center; gap: 10px; }
.alg-news-banner .alg-news-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid #d7bc84;
    border-radius: 999px;
    background: linear-gradient(130deg, #ecdcb9, #d1b477);
    color: #17324a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(4, 18, 29, .12);
}
.alg-news-banner .alg-news-cta:hover { background: #efdfbc; color: #142d43; transform: translateY(-1px); }
.alg-news-cta i { font-size: 12px; }
.alg-news-banner .alg-news-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid rgba(232, 219, 193, .3);
    border-radius: 50%;
    background: transparent;
    color: #f1dfb9;
    font-size: 12px;
    cursor: pointer;
}
.alg-news-banner .alg-news-toggle:hover { border-color: #e4c992; background: rgba(239, 223, 188, .1); }
.alg-news-banner .alg-news-toggle:focus-visible,
.alg-news-banner .alg-news-cta:focus-visible { outline: 3px solid #f0d8a2; outline-offset: 4px; }
.alg-news-banner .alg-news-viewport:focus-visible { outline: 2px solid #f0d8a2; outline-offset: -2px; border-radius: 4px; }
@keyframes algNewsMarquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: no-preference) {
    .alg-news-banner.is-ready .alg-news-viewport {
        -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent);
        mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent);
    }
    .alg-news-banner.is-ready .alg-news-track {
        display: flex;
        width: max-content;
        animation: algNewsMarquee var(--alg-news-duration) linear infinite;
        will-change: transform;
    }
    .alg-news-banner.is-ready .alg-news-group {
        display: flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: space-around;
        gap: var(--alg-news-gap);
        min-width: var(--alg-news-viewport-width, 0px);
        padding-right: var(--alg-news-gap);
    }
    .alg-news-banner.is-ready .alg-news-message {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 20px;
        white-space: nowrap;
    }
    .alg-news-banner.is-ready .alg-news-separator {
        display: block;
        width: 6px;
        height: 6px;
        flex: 0 0 6px;
        margin-left: 14px;
        border: 1px solid #c5a765;
        transform: rotate(45deg);
    }
    .alg-news-banner.is-paused .alg-news-track,
    .alg-news-viewport:focus .alg-news-track { animation-play-state: paused; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .alg-news-viewport:hover .alg-news-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
    .alg-news-banner .alg-news-toggle { display: none !important; }
    .alg-news-banner a, .alg-news-banner button { transition: none; }
}
@media (max-width: 767px) {
    .alg-news-banner { --alg-news-gap: 32px; }
    .alg-news-banner-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 14px;
        min-height: 0;
        padding-block: 16px;
    }
    .alg-news-label { grid-column: 1; grid-row: 1; gap: 9px; padding-right: 0; border-right: 0; font-size: 10px; letter-spacing: .12em; }
    .alg-news-actions { grid-column: 2; grid-row: 1; gap: 8px; }
    .alg-news-banner .alg-news-viewport { grid-column: 1 / -1; grid-row: 2; padding-block: 7px; }
    .alg-news-banner .alg-news-cta { display: none; }
    .alg-news-title { font-size: 25px; }
    .alg-news-description { font-size: 14px; }
    .alg-news-symbol { font-size: 23px; }
    .alg-news-banner.is-ready .alg-news-message { gap: 16px; }
}

.alg-agenda {
    margin-top: 46px;
    padding: clamp(24px, 4vw, 54px);
    color: var(--alg-navy);
    background: var(--alg-paper);
    border: 1px solid var(--alg-line);
    border-radius: 22px;
    scroll-margin-top: 120px;
}
.alg-agenda[hidden], .alg-agenda [hidden] { display: none !important; }
.alg-agenda-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.alg-agenda-kicker { display: block; margin-bottom: 12px; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.alg-agenda h2 { font-size: clamp(28px, 3.1vw, 44px); line-height: 1.12; margin: 0 0 14px; overflow-wrap: anywhere; }
.alg-agenda-heading p { font-size: 16px; line-height: 1.65; margin: 0; max-width: 640px; }
.alg-agenda-contact { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; margin-top: 27px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--alg-accent); padding-bottom: 5px; }
.alg-agenda-controls { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 22px; margin-top: 36px; padding-block: 24px; border-block: 1px solid var(--alg-line); }
.alg-agenda-filters { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 420px; }
.alg-agenda-filters button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--alg-line-strong); border-radius: 30px; color: var(--alg-navy); background: transparent; font-size: 13px; font-weight: 600; }
.alg-agenda-filters button:hover { background: var(--alg-bg-soft); }
.alg-agenda-filters button.is-active { background: var(--alg-navy); color: #fff; border-color: var(--alg-navy); }
.alg-agenda button:focus-visible, .alg-agenda a:focus-visible, .alg-agenda input:focus-visible { outline: 3px solid var(--alg-accent); outline-offset: 4px; }
.alg-agenda-search { display: block; position: relative; flex: 0 1 280px; min-width: 220px; }
.alg-agenda-search > span { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; }
.alg-agenda-search input { width: 100%; height: 46px; padding: 11px 42px 11px 14px; border: 1px solid var(--alg-line-strong); border-radius: 8px; background: #fff; color: var(--alg-navy); font-size: 15px; }
.alg-agenda-search > i { position: absolute; right: 15px; bottom: 15px; pointer-events: none; font-size: 15px; }
.alg-agenda-count { margin: 14px 0 28px; font-size: 13px; color: var(--alg-navy-soft); }
.alg-agenda-month + .alg-agenda-month { margin-top: 38px; }
.alg-agenda-month > h3 { display: flex; gap: 12px; align-items: baseline; margin: 0; padding-bottom: 14px; border-bottom: 2px solid var(--alg-navy); font-size: 30px; }
.alg-agenda-month > h3 span { font-size: 17px; font-weight: 400; color: var(--alg-navy-soft); }
.alg-agenda-entry { display: grid; grid-template-columns: 94px minmax(0, 1fr) auto; gap: 28px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--alg-line); }
.alg-agenda-date time { display: grid; gap: 5px; font-size: 27px; font-weight: 600; line-height: 1.1; }
.alg-agenda-date time span { font-size: 13px; font-weight: 400; color: var(--alg-navy-soft); }
.alg-agenda-time { display: block; margin-top: 13px; font-size: 13px; }
.alg-agenda-type { display: block; font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 8px; color: var(--alg-navy-soft); }
.alg-agenda h4 { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.25; margin: 0 0 10px; overflow-wrap: anywhere; }
.alg-agenda-location { display: flex; align-items: baseline; gap: 8px; font-size: 14px; margin: 0 0 12px; }
.alg-agenda-description { margin: 0; font-size: 15px; line-height: 1.7; max-width: 760px; }
.alg-agenda-details { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; white-space: nowrap; margin-top: 25px; border-bottom: 1px solid var(--alg-accent); padding-bottom: 5px; }
.alg-agenda-empty { margin-top: 32px; padding: 34px 26px; text-align: center; border: 1px solid var(--alg-line); border-radius: 12px; background: var(--alg-bg-soft); }
.alg-agenda-empty > i { display: block; margin-bottom: 16px; font-size: 28px; }
.alg-agenda-empty strong { display: block; font-size: 20px; }
.alg-agenda-empty p { margin: 9px 0 0; font-size: 15px; line-height: 1.65; }
.alg-agenda-empty button { margin-top: 18px; padding: 12px 18px; border-radius: 8px; background: var(--alg-navy); color: white; font-size: 14px; }
@media (max-width: 767px) {
    .alg-agenda { margin-top: 28px; padding: 26px 20px; border-radius: 16px; }
    .alg-agenda-heading { flex-direction: column; gap: 16px; }
    .alg-agenda-contact { margin-top: 0; }
    .alg-agenda-search { flex-basis: 100%; min-width: 0; }
    .alg-agenda-entry { grid-template-columns: 65px minmax(0, 1fr); gap: 18px; }
    .alg-agenda-date time { font-size: 23px; }
    .alg-agenda-details { grid-column: 2; justify-self: start; margin-top: 0; }
    .alg-agenda-empty { padding: 25px 18px; }
}
