.pi-ev { max-width: 1200px; margin: 0 auto; }
.pi-ev [hidden] { display: none !important; }
.pi-ev__filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.pi-ev__chip {
  border: 2px solid #e0006c; background: #fff; color: #e0006c; border-radius: 999px;
  padding: 7px 14px; font: inherit; font-weight: 700; cursor: pointer; line-height: 1.2;
}
.pi-ev__chip span { font-weight: 400; opacity: .75; font-size: .85em; margin-left: 2px; }
.pi-ev__chip.is-active { background: #e0006c; color: #fff; }
.pi-ev__chip:focus-visible { outline: 3px solid rgba(224,0,108,.35); outline-offset: 2px; }
.pi-ev__hint { font-size: .85em; opacity: .7; margin: 0 0 16px; }
.pi-ev__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pi-ev__day { grid-column: 1 / -1; margin: 18px 0 0; font-size: 1.25em; border-bottom: 2px solid #f3b6d1; padding-bottom: 6px; }
.pi-ev__day:first-child { margin-top: 0; }
.pi-ev__card {
  display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.08); text-decoration: none !important; color: inherit; transition: transform .12s, box-shadow .12s;
}
.pi-ev__card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.pi-ev__card.is-featured { box-shadow: 0 0 0 3px #e0006c, 0 6px 18px rgba(224,0,108,.25); }
.pi-ev__img { position: relative; display: block; aspect-ratio: 4 / 5; background: #f4f4f4; }
.pi-ev__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pi-ev__badge {
  position: absolute; top: 8px; left: 8px; background: #e0006c; color: #fff; font-size: .75em; font-weight: 700;
  padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
}
.pi-ev__body { display: grid; gap: 4px; padding: 10px 12px 12px; }
.pi-ev__title { font-size: 1em; line-height: 1.25; color: #222; }
.pi-ev__meta { font-size: .85em; opacity: .75; }
.pi-ev__more {
  display: block; margin: 24px auto 0; padding: 12px 24px; border: 0; border-radius: 10px;
  background: #e0006c; color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.pi-ev__empty, .pi-ev__none { text-align: center; padding: 24px; opacity: .8; }
@media (max-width: 480px) {
  .pi-ev__list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pi-ev__body { padding: 8px 10px 10px; }
  .pi-ev__filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .pi-ev__chip { flex: 0 0 auto; }
}

/* v1.2 – Datumsfilter */
.pi-ev__when { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pi-ev__wchip {
  position: relative; border: 1px solid #ccc; background: #fff; color: #333; border-radius: 999px;
  padding: 6px 14px; font: inherit; font-size: .95em; cursor: pointer; line-height: 1.2; display: inline-flex; align-items: center; gap: 4px;
}
.pi-ev__wchip.is-active { background: #222; border-color: #222; color: #fff; }
.pi-ev__wdate { position: relative; display: inline-flex; }
.pi-ev__wdatebtn { pointer-events: none; }
.pi-ev__wdateinput {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0;
  opacity: 0; cursor: pointer; font-size: 16px; /* 16px verhindert Zoom auf dem iPhone */
  -webkit-appearance: none; appearance: none; background: transparent; color: transparent; z-index: 2;
}
.pi-ev__wdateinput::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
@media (max-width: 480px) {
  .pi-ev__when { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .pi-ev__wchip { flex: 0 0 auto; }
}

/* v1.6 – Hinweis «Flyer hochladen» */
.pi-ev__cta {
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 20px; border-radius: 12px;
  background: linear-gradient(160deg, #e0006c, #8a0f5a); color: #fff !important; text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.08); min-height: 220px; transition: transform .12s;
}
.pi-ev__cta:hover { transform: translateY(-2px); }
.pi-ev__cta .pi-ev__cta-icon { font-size: 2em; line-height: 1; opacity: 1; }
.pi-ev__cta strong { font-size: 1.2em; line-height: 1.2; }
.pi-ev__cta span { font-size: .9em; opacity: .95; }
.pi-ev__cta .pi-ev__cta-btn {
  align-self: flex-start; margin-top: 6px; background: #fff; color: #e0006c; font-weight: 700;
  padding: 8px 14px; border-radius: 999px; opacity: 1;
}
.pi-ev-single-cta { margin: 24px 0; padding: 12px 16px; border-radius: 10px; background: #fde7f1; border-left: 4px solid #e0006c; }
.pi-ev-single-cta a { color: #e0006c; font-weight: 700; }
.pi-ev__cta .pi-ev__cta-btn { white-space: nowrap; }
@media (max-width: 480px) {
  .pi-ev__cta { padding: 14px; min-height: 0; }
  .pi-ev__cta strong { font-size: 1.05em; }
  .pi-ev__cta .pi-ev__cta-btn { padding: 7px 10px; font-size: .85em; }
}
