/* =========================================================
   ASV Website – Termine / ICS-Kalender
   ========================================================= */

.asv-events {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    background:
        linear-gradient(to bottom, rgba(11,31,58,.055), transparent 120px),
        var(--asv-surface, #fafafb);
    color: var(--asv-text, #17191d);
}

.asv-events__inner {
    width: min(1620px, calc(100% - 48px));
    margin: 0 auto;
    padding: 72px 0 62px;
}

.asv-events__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.asv-events__header h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.asv-events__header h2 a {
    color: var(--asv-text, #17191d) !important;
    text-decoration: none !important;
}

.asv-events__header h2 span {
    color: var(--asv-red, #e30613);
}

.asv-events__header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.asv-events__all-link {
    color: var(--asv-red, #e30613) !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none !important;
    text-transform: uppercase;
}

.asv-events__carousel {
    position: relative;
    padding: 0 72px;
}

.asv-events__arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    width: 58px;
    height: 104px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--asv-red, #e30613);
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        color .2s ease,
        transform .2s ease,
        opacity .2s ease;
}

.asv-events__arrow--prev {
    left: 2px;
}

.asv-events__arrow--next {
    right: 2px;
}

.asv-events__arrow svg {
    width: 38px;
    height: 68px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.asv-events__arrow:hover,
.asv-events__arrow:focus-visible {
    color: var(--asv-navy, #0b1f3a);
}

.asv-events__arrow:hover {
    transform: translateY(-50%) scale(1.08);
}

.asv-events__arrow:disabled {
    opacity: .18;
    cursor: default;
    transform: translateY(-50%);
}

.asv-events__arrow:focus-visible {
    outline: 2px solid var(--asv-red, #e30613);
    outline-offset: 4px;
    border-radius: 4px;
}

.asv-events__viewport {
    overflow: hidden;
}

.asv-events__track {
    display: grid;
    grid-auto-flow: column;
    /*
     * Desktop-Ziel: 3 vollständige Tageskarten + nur ein schmaler
     * Anschnitt der nächsten Karte (~60–80 px), damit klar ist,
     * dass horizontal weitergescrollt werden kann, ohne deren Inhalt
     * bereits lesbar zu machen.
     */
    /*
     * Genau 3 volle Karten + 72 px sichtbarer Teaser der nächsten:
     * 3 Karten + 3 Abstände (3 x 24 px) + 72 px Teaser = 100%.
     *
     * Wichtig: absichtlich KEIN minmax(). Das bisherige 390px-Minimum
     * konnte die berechnete Breite übersteuern und war der Grund,
     * warum sich v1.16 optisch praktisch nicht verändert hat.
     */
    grid-auto-columns: calc((100% - 144px) / 3);
    gap: 24px;
    overflow-x: auto;
    padding: 2px 2px 18px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.asv-events__track::-webkit-scrollbar {
    display: none;
}

.asv-event-day {
    min-width: 0;
    min-height: 470px;
    padding: 34px 28px 28px;
    border-radius: 8px;
    background: #e9e9ea;
    scroll-snap-align: start;
}

.asv-event-day.is-next {
    background:
        linear-gradient(135deg, #e3063a 0%, #9d001f 100%);
    color: #fff;
    box-shadow: 0 18px 48px rgba(157,0,31,.18);
}

.asv-event-day__date {
    margin-bottom: 28px;
}

.asv-event-day__date strong,
.asv-event-day__date span {
    display: block;
}

.asv-event-day__date strong {
    color: #9c9c9f;
    font-size: clamp(70px, 6vw, 96px);
    font-weight: 400;
    line-height: .9;
    letter-spacing: -.05em;
}

.asv-event-day__date span {
    margin-top: 14px;
    color: #a1a1a4;
    font-size: 20px;
    font-weight: 500;
}

.asv-event-day.is-next .asv-event-day__date strong,
.asv-event-day.is-next .asv-event-day__date span {
    color: #fff;
}

.asv-event-day__items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.asv-event-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 88px;
    padding: 16px 18px;
    background: #fff;
    color: var(--asv-text, #17191d) !important;
    border-radius: 5px;
    text-decoration: none !important;
    box-shadow: 0 1px 0 rgba(11,31,58,.03);
    transition: transform .2s ease, box-shadow .2s ease;
}

a.asv-event-item:hover,
a.asv-event-item:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(11,31,58,.10);
}

.asv-event-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.asv-event-item__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.asv-event-item__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.asv-event-item__meta {
    margin-bottom: 3px;
    overflow: hidden;
    color: #a0a0a4;
    font-size: 11px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asv-event-item__title {
    color: #24272c;
    font-size: 15px;
    line-height: 1.25;
}

.asv-event-item__location {
    margin-top: 5px;
    overflow: hidden;
    color: #a0a0a4;
    font-size: 10px;
    letter-spacing: .02em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.asv-event-item__time {
    min-width: 78px;
    color: #292d33;
    font-size: 14px;
    text-align: right;
    white-space: nowrap;
}

.asv-events__dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
}

.asv-events__dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c8c8ca;
}

.asv-events__dots span.is-active {
    background: var(--asv-red, #e30613);
}

@media (max-width: 1180px) {
    .asv-events__carousel {
        padding: 0 54px;
    }

    .asv-events__arrow {
        width: 44px;
        height: 86px;
    }

    .asv-events__arrow svg {
        width: 30px;
        height: 56px;
        stroke-width: 4.5;
    }

    .asv-events__track {
        grid-auto-columns: minmax(340px, 45%);
    }
}

@media (max-width: 700px) {
    .asv-events__inner {
        width: min(100% - 28px, 1620px);
        padding: 52px 0 46px;
    }

    .asv-events__header {
        align-items: flex-start;
        margin-bottom: 20px;
    }

    .asv-events__header-actions {
        gap: 10px;
    }

    .asv-events__all-link {
        display: none;
    }

    .asv-events__carousel {
        padding: 0;
    }

    .asv-events__arrow {
        display: none;
    }

    .asv-events__track {
        grid-auto-columns: minmax(285px, 88%);
        gap: 14px;
        padding-bottom: 14px;
    }

    .asv-event-day {
        min-height: 420px;
        padding: 28px 20px 22px;
    }

    .asv-event-day__date {
        margin-bottom: 22px;
    }

    .asv-event-day__date strong {
        font-size: 70px;
    }

    .asv-event-day__date span {
        margin-top: 10px;
        font-size: 17px;
    }

    .asv-event-item {
        grid-template-columns: 24px minmax(0, 1fr);
        min-height: 84px;
        gap: 11px;
        padding: 14px;
    }

    .asv-event-item__time {
        grid-column: 2;
        min-width: 0;
        margin-top: 4px;
        font-size: 12px;
        text-align: left;
    }

    .asv-event-item__meta {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .asv-events__track {
        scroll-behavior: auto;
    }

    .asv-event-item,
    .asv-events__arrow {
        transition: none !important;
    }
}



/* v1.43 – Wochentag bewusst dezenter als der Monat.
   Die zusätzliche .asv-event-day__date-Spezifität ist nötig, weil die
   Basisregel `.asv-event-day__date span` sonst Fontgröße/Margin überschreibt. */
.asv-event-day__date .asv-event-day__weekday {
    display: block;
    margin: 0 0 8px;
    color: #a1a1a4;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: .025em;
    opacity: .62;
    text-transform: none;
}

.asv-event-day__date .asv-event-day__month {
    display: block;
    margin-top: 14px;
    color: #a1a1a4;
    font-size: 20px;
    font-weight: 500;
}

.asv-event-day.is-next .asv-event-day__date .asv-event-day__weekday {
    color: #fff;
    opacity: .72;
}

.asv-event-day.is-next .asv-event-day__date .asv-event-day__month {
    color: #fff;
}

@media (max-width: 768px) {
    .asv-event-day__date .asv-event-day__weekday {
        margin-bottom: 6px;
        font-size: 10px;
    }

    .asv-event-day__date .asv-event-day__month {
        margin-top: 10px;
        font-size: 17px;
    }
}
