/* Shared event cards — homepage + kalender.html */
.ev-card {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  height: 200px;
  min-height: 44px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #1C2B3A;
  box-shadow:
    0 1px 3px rgba(28, 43, 58, 0.08),
    0 6px 16px rgba(28, 43, 58, 0.10),
    0 16px 32px rgba(28, 43, 58, 0.06);
}
.ev-card.is-compact {
  height: 160px;
}
.ev-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
.ev-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 16, 26, 0.96) 0%,
    rgba(10, 16, 26, 0.75) 45%,
    rgba(10, 16, 26, 0.28) 65%,
    transparent 80%
  );
  pointer-events: none;
}
.ev-kat,
.ev-status {
  position: absolute;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev-kat {
  left: 10px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.ev-status {
  right: 10px;
  background: rgba(28, 43, 58, 0.48);
  color: rgba(255, 255, 255, 0.88);
}
.ev-card.is-pagar .ev-status {
  background: #0A7A8C;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.ev-card.is-pagar::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #0A7A8C;
  z-index: 3;
  border-radius: 0 0 16px 16px;
}
.ev-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.7rem 0.8rem 0.75rem;
}
.ev-card time {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 0.22rem;
}
.ev-card h3 {
  font-family: "Playfair Display", Palatino, Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.ev-card.is-compact h3 {
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.ev-plats {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.28rem 0 0;
  font-size: 0.78rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.7);
  min-width: 0;
}
.ev-plats .ph {
  flex-shrink: 0;
  font-size: 0.85rem;
}
.ev-plats span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ev-card.is-compact .ev-meta {
  padding: 0.6rem 0.75rem 0.7rem;
}
.ev-card.is-compact .ev-plats {
  font-size: 0.7rem;
}
.ev-card.is-compact time {
  font-size: 0.6rem;
}
.ev-card.is-compact .ev-kat,
.ev-card.is-compact .ev-status {
  font-size: 0.62rem;
  padding: 0.15rem 0.5rem;
  min-height: 21px;
}

.week-grid .ev-card.is-compact {
  height: 240px;
  width: 200px;
}
.week-grid .ev-card.is-compact h3 {
  font-size: 1.05rem;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  hyphens: auto;
}
.week-grid .ev-card.is-compact time {
  font-size: 0.62rem;
}
.week-grid .ev-card.is-compact .ev-kat,
.week-grid .ev-card.is-compact .ev-status {
  font-size: 0.62rem;
  padding: 0.15rem 0.5rem;
  min-height: 21px;
}
