/* ==========================================================
   Veranstaltungen
   ========================================================== */
.ev-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.ev-main { display: flex; flex-direction: column; gap: 40px; min-width: 0; }


/* ---------- Terminkarte ---------- */
.ev-list { display: flex; flex-direction: column; gap: 16px; }
.ev-card {
    display: flex; gap: 22px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    scroll-margin-top: calc(var(--topbar-h) + 16px);
    transition: box-shadow .2s, border-color .2s;
}
.ev-card:target { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-100); }
.ev-card__date {
    width: 84px; flex-shrink: 0; align-self: flex-start;
    display: flex; flex-direction: column; align-items: center;
    border-radius: 16px; overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.ev-card__mon { width: 100%; padding: 5px 0; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.ev-card__day { padding-top: 6px; font-size: 32px; font-weight: 800; line-height: 1; color: var(--navy); }
.ev-card__day small { font-size: 18px; font-weight: 700; }
.ev-card__wd { padding: 4px 0 8px; font-size: 12px; font-weight: 600; color: var(--text-muted); }

.ev-card__body { flex: 1; min-width: 0; }
.ev-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700;
    color: var(--accent-ink); background: var(--accent-50);
}
.ev-card h3 { margin: 8px 0 8px; font-size: 20px; line-height: 1.25; color: var(--navy); }
.ev-meta { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--text-muted); }
.ev-meta i { width: 16px; margin-right: 4px; color: var(--accent); }

.ev-text { margin-bottom: 16px; border-top: 1px solid var(--border-soft); padding-top: 12px; }
.ev-text summary {
    display: inline-flex; align-items: center; gap: 6px;
    cursor: pointer; list-style: none;
    font-size: 14px; font-weight: 600; color: var(--accent-ink);
}
.ev-text summary::-webkit-details-marker { display: none; }
.ev-text summary i { font-size: 11px; transition: transform .2s; }
.ev-text summary span:nth-child(2) { display: none; }
.ev-text[open] summary span:nth-child(1) { display: none; }
.ev-text[open] summary span:nth-child(2) { display: inline; }
.ev-text[open] summary i { transform: rotate(180deg); }
.ev-text[open] summary { margin-bottom: 12px; }
.ev-text--short { margin-bottom: 16px; color: var(--text-muted); }

.ev-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.ev-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 24px; text-align: center; color: var(--text-muted); }
.ev-empty strong { color: var(--navy); font-size: 16px; }

/* ---------- Regelmäßig ---------- */
.ev-regular {
    margin-top: 20px; padding: 20px 22px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent-50), var(--accent-25));
    border: 1px solid var(--accent-100);
}
.ev-regular h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); }
.ev-regular__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ev-regular__item { display: flex; gap: 12px; align-items: flex-start; }
.ev-regular__icon { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; color: var(--accent); background: var(--surface); box-shadow: var(--shadow-sm); }
.ev-regular__item strong { display: block; font-size: 15px; color: var(--navy); }
.ev-regular__item span { font-size: 13px; color: var(--text-muted); }

/* ---------- Rückblick ---------- */
.ev-year {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.ev-year + .ev-year { margin-top: 12px; }
.ev-year summary {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px;
    cursor: pointer; list-style: none;
    font-size: 17px; font-weight: 800; color: var(--navy);
}
.ev-year summary::-webkit-details-marker { display: none; }
.ev-year__count { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.ev-year summary i { margin-left: auto; font-size: 12px; color: var(--text-soft); transition: transform .2s; }
.ev-year[open] summary i { transform: rotate(180deg); }
.ev-past__list { list-style: none; margin: 0; padding: 0 8px 8px; }
.ev-past__list li {
    display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; align-items: center; gap: 12px;
    padding: 10px 12px;
    border-top: 1px solid var(--border-soft);
    scroll-margin-top: calc(var(--topbar-h) + 16px);
}
.ev-past__list li:target { background: var(--accent-50); border-radius: var(--radius); }
.ev-past__date { font-size: 13px; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ev-past__title { font-weight: 600; color: var(--text); }
.ev-past__place { font-size: 13px; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.ev-past__place i { margin-right: 4px; }

/* ---------- Seitenspalte ---------- */
.ev-aside { position: sticky; top: calc(var(--topbar-h) + 20px); display: flex; flex-direction: column; gap: 20px; }

.cal { padding: 18px; scroll-margin-top: calc(var(--topbar-h) + 16px); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__head strong { font-size: 16px; color: var(--navy); }
.cal__nav { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--text-muted); font-size: 12px; transition: background .15s, color .15s; }
.cal__nav:hover { background: var(--accent-50); color: var(--accent); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal__wd { padding: 4px 0; font-size: 11px; font-weight: 700; color: var(--text-soft); text-transform: uppercase; }
.cal__day {
    position: relative;
    aspect-ratio: 1;
    display: grid; place-items: center;
    border-radius: 10px;
    font-size: 13px; font-weight: 500; color: var(--text);
}
.cal__day.is-past { color: var(--text-soft); }
.cal__day.is-today { font-weight: 800; color: var(--accent-ink); box-shadow: inset 0 0 0 2px var(--accent); }
.cal__day.has-event {
    font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 4px 10px rgba(var(--accent-rgb), .3);
}
.cal__day.has-event.is-past { background: var(--text-soft); box-shadow: none; }
a.cal__day.has-event:hover { transform: translateY(-1px); }
.cal__dot { position: absolute; bottom: 4px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent-2); }
.cal__dot--stt { background: #f0a020; }
.cal__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-soft); font-size: 12px; color: var(--text-muted); }
.cal__key { display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 3px; vertical-align: -1px; }
.cal__key--event { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.cal__key--thu { background: var(--accent-2); border-radius: 50%; width: 7px; height: 7px; }
.cal__key--stt { background: #f0a020; border-radius: 50%; width: 7px; height: 7px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .ev-layout { grid-template-columns: minmax(0, 1fr) 300px; }
    .ev-regular__grid { grid-template-columns: 1fr; }
}
@media (max-width: 992px) {
    .ev-layout { grid-template-columns: 1fr; }
    .ev-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; }
    .ev-aside .cal { grid-row: span 2; }
}
@media (max-width: 640px) {
    .ev-card { flex-direction: column; gap: 14px; padding: 18px; }
    .ev-card__date { flex-direction: row; width: auto; gap: 8px; padding-right: 12px; }
    .ev-card__mon { width: auto; padding: 8px 10px; }
    .ev-card__day { padding: 0; font-size: 22px; }
    .ev-card__day small { font-size: 15px; }
    .ev-card__wd { padding: 0; }
    .ev-card h3 { font-size: 18px; }
    .ev-meta { flex-direction: column; }
    .ev-actions .btn { flex: 1; justify-content: center; }
    .ev-aside { grid-template-columns: 1fr; }
    .ev-past__list li { grid-template-columns: 80px minmax(0, 1fr); }
    .ev-past__place { grid-column: 2; max-width: none; }
}
