/* Aktuelles — compact programme view, not a news/card wall. */

.aktuelles-page {
  display: grid;
  gap: clamp(var(--space-8), 6vw, var(--space-14));
  min-width: 0;
}

.aktuelles-tabs {
  display: grid;
  gap: clamp(var(--space-8), 5vw, var(--space-12));
}

.aktuelles-panel {
  display: grid;
  gap: clamp(var(--space-8), 6vw, var(--space-14));
}

.aktuelles-section {
  display: grid;
  gap: var(--space-6);
}

.aktuelles-section__head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  align-items: end;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid color-mix(in srgb, var(--color-accent) 16%, transparent);
}

.aktuelles-section__head h2 {
  margin: 0;
  color: var(--color-text);
  font-size: var(--font-size-section-heading);
  font-weight: 500;
  line-height: 0.94;
}

.aktuelles-section__head p {
  max-width: 28rem;
  margin: 0;
  color: var(--color-text-faint);
  font-size: var(--font-size-small);
  line-height: 1.55;
  text-align: right;
}

.aktuelles-list {
  display: grid;
}

.aktuelles-list--archive {
  border-top: 1px solid color-mix(in srgb, var(--color-accent) 10%, transparent);
}

.aktuelles-row {
  display: grid;
  grid-template-columns: clamp(7.8rem, 13vw, 10.5rem) minmax(0, 1fr) auto;
  gap: clamp(var(--space-4), 4vw, var(--space-8));
  align-items: start;
  width: 100%;
  padding: clamp(var(--space-4), 3vw, var(--space-6)) 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-accent) 10%, transparent);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

button.aktuelles-row {
  appearance: none;
  cursor: pointer;
}

a.aktuelles-row,
button.aktuelles-row {
  transition: color 160ms ease, border-color 160ms ease;
}

a.aktuelles-row:hover,
button.aktuelles-row:hover {
  border-bottom-color: color-mix(in srgb, var(--color-accent) 34%, transparent);
  color: var(--color-accent);
}

.aktuelles-row--muted {
  opacity: 0.72;
}

.aktuelles-row--all.aktuelles-row--featured,
.aktuelles-row--all.aktuelles-row--course {
  padding-inline: clamp(var(--space-4), 3vw, var(--space-6));
  border-bottom-color: transparent;
}

.aktuelles-row--all.aktuelles-row--featured {
  background: var(--color-accent);
}

.aktuelles-row--all.aktuelles-row--course {
  background: var(--color-bg-subtle);
}

.aktuelles-row--all.aktuelles-row--featured,
.aktuelles-row--all.aktuelles-row--featured .aktuelles-row__title,
.aktuelles-row--all.aktuelles-row--featured .aktuelles-row__subtitle,
.aktuelles-row--all.aktuelles-row--featured .aktuelles-row__summary,
.aktuelles-row--all.aktuelles-row--featured .aktuelles-row__date,
.aktuelles-row--all.aktuelles-row--featured .aktuelles-row__day,
.aktuelles-row--all.aktuelles-row--featured .aktuelles-row__month,
.aktuelles-row--all.aktuelles-row--featured .aktuelles-row__meta,
.aktuelles-row--all.aktuelles-row--featured .aktuelles-row__meta span + span,
.aktuelles-row--all.aktuelles-row--featured .aktuelles-row__action {
  color: var(--color-bg);
}

.aktuelles-row--all.aktuelles-row--featured .aktuelles-row__summary,
.aktuelles-row--all.aktuelles-row--featured .aktuelles-row__meta span + span {
  opacity: 0.78;
}

.aktuelles-row--all.aktuelles-row--featured .aktuelles-row__action {
  background: var(--color-bg);
  border-color: var(--color-bg);
  color: var(--color-accent);
}

a.aktuelles-row--all.aktuelles-row--featured:hover,
button.aktuelles-row--all.aktuelles-row--featured:hover {
  color: var(--color-bg);
  background: color-mix(in srgb, var(--color-accent) 90%, black 10%);
}

a.aktuelles-row--all.aktuelles-row--featured:hover .aktuelles-row__action,
button.aktuelles-row--all.aktuelles-row--featured:hover .aktuelles-row__action {
  background: transparent;
  color: var(--color-bg);
}

a.aktuelles-row--all.aktuelles-row--course:hover,
button.aktuelles-row--all.aktuelles-row--course:hover {
  background: color-mix(in srgb, var(--color-bg-subtle) 82%, var(--color-accent) 18%);
}

.aktuelles-row__date {
  display: grid;
  gap: var(--space-1);
  color: var(--color-accent);
  line-height: 1;
}

.aktuelles-row__day {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 500;
  letter-spacing: 0;
}

.aktuelles-row__month {
  color: var(--color-text-faint);
  font-size: var(--font-size-small);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.aktuelles-row--all.aktuelles-row--featured .aktuelles-row__month {
  color: var(--color-bg);
}

.aktuelles-row__main {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}

.aktuelles-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  color: var(--color-accent);
  font-size: var(--font-size-small);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  line-height: 1.3;
  text-transform: uppercase;
}

.aktuelles-row__meta span + span {
  color: var(--color-text-faint);
}

.aktuelles-row__title {
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.7vw, 2.25rem);
  font-weight: 500;
  line-height: 1;
  text-wrap: balance;
}

.aktuelles-row__subtitle {
  color: var(--color-text);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.45;
}

.aktuelles-row__summary {
  max-width: 58rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.aktuelles-row__action {
  align-self: center;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.66rem 0.9rem;
  border: 1px solid currentColor;
  color: var(--color-accent);
  font-size: var(--font-size-small);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
}

a.aktuelles-row:hover .aktuelles-row__action,
button.aktuelles-row:hover .aktuelles-row__action {
  background: var(--color-accent);
  color: var(--color-bg);
}

.aktuelles-section--archive {
  padding-top: clamp(var(--space-4), 4vw, var(--space-8));
}

.aktuelles-archive {
  display: grid;
  gap: clamp(var(--space-6), 5vw, var(--space-10));
}

.aktuelles-year {
  display: grid;
  grid-template-columns: clamp(5rem, 10vw, 8rem) minmax(0, 1fr);
  gap: clamp(var(--space-4), 5vw, var(--space-10));
}

.aktuelles-year h3 {
  margin: 0;
  color: var(--color-accent);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 0.95;
}

.aktuelles-empty {
  margin: 0;
  padding: var(--space-5) 0;
  color: var(--color-text-muted);
  border-bottom: 1px solid color-mix(in srgb, var(--color-accent) 10%, transparent);
}

@media (max-width: 900px) {
  .aktuelles-section__head {
    display: grid;
    justify-content: start;
  }

  .aktuelles-section__head p {
    text-align: left;
  }

  .aktuelles-row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
  }

  .aktuelles-row__date {
    grid-template-columns: auto auto;
    justify-content: start;
    align-items: baseline;
    gap: var(--space-2);
  }

  .aktuelles-row__action {
    justify-self: start;
  }

  .aktuelles-row__main,
  .aktuelles-row__title,
  .aktuelles-row__subtitle,
  .aktuelles-row__summary {
    min-width: 0;
    overflow-wrap: break-word;
  }

  .aktuelles-year {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

@media (max-width: 640px) {
  .aktuelles-page {
    width: calc(100vw - (var(--space-6) * 2));
    max-width: calc(100vw - (var(--space-6) * 2));
    justify-self: center;
  }

  .aktuelles-row__meta {
    display: grid;
    gap: var(--space-1);
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
  }

  .aktuelles-row__meta span + span {
    padding-left: 0;
    border-left: 0;
  }

}
