/* Homepage-Events-Sektion: blauer Hintergrund-Block, mobile-responsive Karten. */
.home-events {
  background: linear-gradient(135deg, #0f4e75 0%, #1f8bcc 55%, #70c0e6 100%);
  position: relative;
  overflow: hidden;
  padding: 56px 16px 64px;
  display: none; /* sichtbar via .is-loaded oder beim Vorhandensein von Events */
}
.home-events.is-loaded { display: block; }
.home-events::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.home-events::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(154,213,240,0.30) 0%, rgba(154,213,240,0) 60%);
  pointer-events: none;
}
.home-events__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.home-events__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
  color: #fff;
}
.home-events__head h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.home-events__head p {
  margin: 8px 0 0;
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  max-width: 540px;
}
.home-events__eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.75);
}
.home-events__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #0f4e75;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .12s, box-shadow .12s;
  flex-shrink: 0;
}
.home-events__all:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  color: #0f4e75;
}

.home-events__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .home-events__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .home-events__grid { grid-template-columns: repeat(3, 1fr); }
}

.hev-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15,30,60,0.18);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.hev-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(15,30,60,0.28);
  color: inherit;
  text-decoration: none;
}
.hev-card-img {
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
  position: relative;
  overflow: hidden;
}
.hev-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hev-card-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  font-size: 56px;
  opacity: 0.4;
}
.hev-card-tag {
  position: absolute;
  top: 12px; left: 12px;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.hev-card-fmt {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(15, 78, 117, 0.92);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
}
.hev-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.hev-card-date {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #0f4e75;
}
.hev-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
  margin: 0;
}
.hev-card-meta {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}
.hev-card-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.hev-card-cta {
  font-size: 13px;
  font-weight: 700;
}
.hev-share-btn {
  background: #f1f5f9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .12s, color .12s, transform .12s;
}
.hev-share-btn:hover {
  background: #0f4e75;
  color: #fff;
  transform: translateY(-1px);
}
.hev-share-btn:active {
  transform: translateY(0);
}

@media (max-width: 540px) {
  .home-events { padding: 44px 14px 52px; }
  .home-events__head h2 { font-size: 24px; }
  .home-events__head p { font-size: 14.5px; }
  .home-events__all { padding: 9px 16px; font-size: 13px; }
  .hev-card-title { font-size: 16px; }
}
