/* ===================== HOME PAGE STYLES ===================== */
/* Neue Elemente für die Home-Page */

.hero-section {
  background: linear-gradient(130deg, #f4f8fe 0%, #ffffff 52%, #f8f6f2 100%);
  border-bottom: 1px solid rgba(var(--color-rgb-main), 0.12);
  color: var(--color-white);
  display: flex;
  isolation: isolate;
  justify-content: center;
  min-height: 420px;
  overflow: hidden;
  padding: 104px 20px 90px;
  position: relative;
  text-align: center;
  align-items: center;
}

.hero-layer {
  background:
    linear-gradient(rgba(34, 49, 100, 0.68), rgba(24, 38, 77, 0.8)),
    url('/img/layout/hero.png') center bottom / cover no-repeat;
  inset: 0;
  position: absolute;
  z-index: -2;
}

.hero-section::after {
  background: radial-gradient(circle at 18% 8%, rgba(49, 235, 193, 0.24) 0, transparent 32%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.hero-content {
  margin: 0 auto;
  max-width: 820px;
}

.hero-kicker {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  letter-spacing: 0.11em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.95rem;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.32);
}

.hero-subtitle {
  font-size: 1.38rem;
  font-weight: 400;
  margin: 0;
  max-width: 58ch;
  opacity: 0.95;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.home-intro-section {
  background: #ffffff;
  border-bottom: 1px solid rgba(var(--color-rgb-main), 0.08);
  padding: 30px 0;
}

.home-intro-text {
  color: rgba(var(--color-rgb-main), 0.78);
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 880px;
  text-align: center;
}

.events-section {
  padding: 54px 0 68px;
}

.events-section__head {
  margin-bottom: 30px;
}

.current-event-panel {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f5fffc 100%);
  border: 2px solid rgba(49, 235, 193, 0.58);
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(var(--color-rgb-main), 0.12);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto 28px;
  max-width: 980px;
  padding: 22px 24px;
}

.current-event-panel__eyebrow {
  color: rgba(var(--color-rgb-main), 0.72);
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.current-event-panel__title {
  color: var(--bs-primary);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 5px;
}

.current-event-panel__date {
  color: rgba(var(--color-rgb-main), 0.74);
  font-size: 1rem;
  margin: 0;
}

.current-event-panel__actions {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}

.current-event-panel__status {
  color: rgba(var(--color-rgb-main), 0.72);
  font-size: 0.95rem;
  font-weight: 600;
}

.current-event-panel__status--ready {
  color: var(--bs-primary);
}

.current-event-panel__button {
  min-width: 170px;
}

.section-title {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 0;
  color: var(--bs-primary);
}

.events-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1240px;
}

.event-card {
  --event-accent: var(--color-accent);
  background: linear-gradient(180deg, #ffffff 0%, #faf8f3 100%);
  border: 1px solid rgba(var(--color-rgb-main), 0.16);
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(var(--color-rgb-main), 0.12);
  color: inherit;
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.event-card--exhibition {
  --event-accent: var(--color-accent);
}

.event-card--congress {
  --event-accent: var(--bs-primary);
}

.event-card:hover {
  border-color: rgba(var(--color-rgb-main), 0.28);
  box-shadow: 0 16px 34px rgba(var(--color-rgb-main), 0.18);
  transform: translateY(-4px);
}

.event-card--current {
  border-color: var(--color-accent);
  box-shadow: 0 16px 34px rgba(49, 235, 193, 0.28);
}

.event-card__current-badge {
  background: var(--color-accent);
  border-radius: 999px;
  color: var(--bs-primary);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  left: 20px;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 7px 10px;
  position: absolute;
  text-transform: uppercase;
  top: 18px;
  z-index: 3;
}

.event-card:focus-visible {
  outline: 3px solid rgba(49, 235, 193, 0.6);
  outline-offset: 3px;
}

.event-type-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  min-width: 8.5rem;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.event-type-badge.exhibition {
  background: var(--color-accent);
  color: var(--bs-primary);
}

.event-type-badge.congress {
  background: var(--bs-primary);
  color: var(--color-white);
}

.event-content {
  display: flex;
  flex-direction: column;
  min-height: 195px;
  padding: 20px;
  padding-top: 56px;
  position: relative;
  z-index: 1;
}

.event-content .event-type-badge {
  margin-bottom: 10px;
  position: absolute;
  right: 20px;
  top: 16px;
  z-index: 2;
}

.event-content::after {
  background: radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.55) 0, rgba(255, 255, 255, 0) 62%), var(--event-accent);
  border-radius: 999px;
  content: "";
  height: 74px;
  opacity: 0.16;
  position: absolute;
  right: -18px;
  top: -18px;
  transform: scale(1);
  transform-origin: top right;
  transition: transform 0.45s ease, opacity 0.3s ease;
  width: 74px;
  z-index: 1;
}

.event-card:hover .event-content::after,
.event-card:focus-visible .event-content::after {
  opacity: 0.2;
  transform: scale(9);
}

.event-name {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 9px;
  color: var(--bs-primary);
}

.event-dates {
  color: rgba(var(--color-rgb-main), 0.74);
  font-size: 1.02rem;
  margin-bottom: 0;
}

.event-card__cta {
  align-items: center;
  border: 1px solid rgba(var(--color-rgb-main), 0.2);
  border-radius: 999px;
  color: var(--bs-primary);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0.05em;
  margin-top: auto;
  padding: 8px 12px;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  width: fit-content;
}

.event-card__cta .bi {
  display: inline-flex;
    font-size: 1rem;
  line-height: 1;
  vertical-align: middle;
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.event-card:hover .event-card__cta,
.event-card:focus-visible .event-card__cta {
  background: rgba(var(--color-rgb-main), 0.05);
  border-color: rgba(var(--color-rgb-main), 0.32);
}

.event-card:hover .event-card__cta .bi,
.event-card:focus-visible .event-card__cta .bi {
  transform: translateX(3px);
}

.no-events {
  background: #f8f9fc;
  border: 1px solid rgba(var(--color-rgb-main), 0.1);
  border-radius: 14px;
  color: #666;
  font-size: 1.1rem;
  margin: 0 auto;
  max-width: 720px;
  padding: 34px;
  text-align: center;
}

/* Responsive */
@media (max-width: 1199px) {
  .events-grid {
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 767px) {
  .hero-section {
    min-height: 350px;
    padding: 84px 16px 70px;
  }

  .hero-kicker {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .hero-title {
    font-size: 2.05rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .home-intro-section {
    padding: 24px 0;
  }

  .home-intro-text {
    font-size: 1rem;
    text-align: left;
  }

  .events-section {
    padding: 42px 0 52px;
  }

  .current-event-panel {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
  }

  .current-event-panel__actions {
    align-items: stretch;
    text-align: left;
  }

  .current-event-panel__button {
    min-width: 0;
    width: 100%;
  }

  .section-title {
    font-size: 1.55rem;
  }

  .events-grid {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .event-content {
    min-height: 0;
    padding-top: 54px;
  }

  .no-events {
    font-size: 1rem;
    padding: 26px 18px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero-section {
    min-height: 300px;
    padding-top: 82px;
    padding-bottom: 72px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
