/* Event-Popup auf der Startseite (Netzwerktreffen am 5. November 2026).
   Nach dem Event zusammen mit assets/js/event-popup.js und dem <dialog> in index.html entfernen. */

.event-popup {
  width: min(920px, calc(100% - 48px));
  max-width: none;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--ink-hover);
  border-radius: 10px;
  background: var(--ink);
  color: var(--on-dark);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.event-popup::backdrop {
  background: rgba(17, 15, 13, 0.78);
  backdrop-filter: blur(3px);
}

body:has(.event-popup[open]) { overflow: hidden; }

.event-popup__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 420fr) minmax(0, 500fr);
}

.event-popup__img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  object-position: 30% 50%;
}

.event-popup__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 40px 36px;
}

.event-popup__head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 48px;
}

.event-popup__head > div { min-width: 0; }

.event-popup__date {
  flex: none;
  width: 76px;
  padding: 8px 0;
  border: 1.5px solid var(--brass);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

.event-popup__day {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--on-dark);
}

.event-popup .eyebrow { color: var(--brass); }

.event-popup__title {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--on-dark);
}

.event-popup__lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-dark-2);
}

.event-popup__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
}

.event-popup__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.event-popup__check {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brass);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-popup__check svg { width: 16px; height: 16px; }

.event-popup__meta {
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-dark-3);
}

.event-popup__actions {
  margin-top: auto;
  align-items: center;
  gap: 8px 12px;
}

.event-popup__dismiss {
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  background: none;
  color: var(--on-dark-3);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.event-popup__dismiss:hover { color: var(--on-dark); }

.event-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #4A443D;
  border-radius: 50%;
  background: var(--ink-2);
  color: var(--on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.event-popup__close:hover { background: var(--ink-hover); }
.event-popup__close svg { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .event-popup {
    width: calc(100% - 32px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
  }
  .event-popup__inner { grid-template-columns: minmax(0, 1fr); }
  .event-popup__img { height: 210px; min-height: 0; object-position: 50% 60%; }
  .event-popup__body { gap: 16px; padding: 20px 20px 22px; }
  .event-popup__head { gap: 14px; padding-right: 0; }
  .event-popup__date { width: 62px; padding: 6px 0; font-size: 11px; }
  .event-popup__day { font-size: 26px; }
  .event-popup__title { font-size: 22px; }
  .event-popup__lead { display: none; }
  .event-popup__list { gap: 10px; font-size: 15px; }
  .event-popup__check { width: 24px; height: 24px; }
  .event-popup__check svg { width: 14px; height: 14px; }
  .event-popup__actions { flex-direction: column; align-items: stretch; gap: 4px; }
  .event-popup__dismiss { min-height: 44px; font-size: 15px; }
  .event-popup__close { top: 10px; right: 10px; }
}

@media (max-width: 760px) and (max-height: 720px) {
  .event-popup__img { height: 150px; }
}
