/* ==========================================
   VERANSTALTUNGSDETAILSEITE
========================================== */

.event-detail-page {
  min-width: 0;
}

.event-detail-page .site-header {
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.event-main {
  background:
    linear-gradient(180deg, #151515 0, #1d1d1d 360px, var(--color-light) 760px);
  min-height: calc(100vh - 220px);
  min-height: calc(100svh - 220px);
  padding: calc(var(--header-height) + 48px) 32px 96px;
}

.event-detail {
  width: min(100%, var(--max-width));
  margin-inline: auto;
}

.event-detail[aria-busy="true"] {
  min-height: 50vh;
}

.event-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 22px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: var(--color-white);
  font-weight: 700;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.event-back-link:hover {
  border-color: rgba(214, 168, 79, 0.72);
  background: rgba(214, 168, 79, 0.1);
  transform: translateY(-1px);
}

.event-hero {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(214, 168, 79, 0.16), transparent 42%),
    linear-gradient(145deg, #242424, #161616);
  color: var(--color-white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.event-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  min-height: 480px;
}

.event-hero-layout:not(.has-image) {
  display: block;
  min-height: auto;
}

.event-hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 6vw, 76px);
}

.event-hero-layout:not(.has-image) .event-hero-copy {
  max-width: 1072px;
}

.event-organizer-mark {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}

.event-organizer-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: clamp(64px, 7vw, 84px);
  object-fit: contain;
  object-position: left center;
}

.event-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.event-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid rgba(214, 168, 79, 0.42);
  border-radius: 999px;
  background: rgba(214, 168, 79, 0.08);
  color: var(--color-gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.event-label-demo {
  border-color: rgba(242, 207, 117, 0.72);
  background: #fff2bd;
  color: #3d2a00;
}

.event-hero h1 {
  max-width: 920px;
  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: none;
  font-size: var(--subpage-title-size);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.event-date-summary {
  display: grid;
  gap: 6px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2vw, 1.22rem);
  font-weight: 700;
}

.event-date-summary strong {
  color: #f2dfb2;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
}

.event-hero-location {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
  font-weight: 700;
}

.event-hero-media {
  position: relative;
  min-height: 100%;
  background: #2a2825;
}

.event-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(18, 18, 18, 0.34), transparent 36%);
}

.event-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.event-content {
  display: grid;
  gap: 28px;
  margin-top: 34px;
}

.event-section {
  min-width: 0;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(17, 17, 17, 0.07);
  border-radius: 26px;
  background: var(--color-white);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.09);
}

.event-section h2 {
  margin-bottom: 24px;
  hyphens: none;
  overflow-wrap: anywhere;
  color: var(--color-dark);
  font-size: calc(clamp(1.65rem, 3.4vw, 2.5rem) * var(--display-heading-scale));
  line-height: 1.08;
}

.event-section-description p {
  max-width: 860px;
  color: #554e45;
  font-size: clamp(1.04rem, 1.8vw, 1.18rem);
  line-height: 1.8;
  white-space: pre-line;
}

.event-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.event-fact {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(214, 168, 79, 0.22);
  border-radius: 18px;
  background: #fbf8f2;
}

.event-fact-label {
  display: block;
  margin-bottom: 6px;
  color: #7b6640;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-fact-value {
  display: block;
  overflow-wrap: anywhere;
  color: var(--color-dark);
  font-size: 1rem;
  font-weight: 700;
}

.venue-location {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.venue-location-description {
  color: #645b50;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

.venue-map-trigger {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--color-red);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.venue-map-trigger:hover {
  color: #6f1010;
  text-decoration-thickness: 2px;
}

.event-resource-list {
  display: grid;
  gap: 14px;
  list-style: none;
}

.event-resource-link {
  display: grid;
  min-height: 64px;
  gap: 7px;
  padding: 18px 20px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 18px;
  background: #fbf8f2;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.event-resource-link:hover {
  border-color: rgba(155, 28, 28, 0.34);
  background: #fffdf8;
  transform: translateY(-1px);
}

.event-resource-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.event-resource-label {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--color-dark);
  font-size: 1.05rem;
  font-weight: 800;
}

.event-resource-kind {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(155, 28, 28, 0.08);
  color: var(--color-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-resource-link.is-external .event-resource-kind {
  background: rgba(214, 168, 79, 0.14);
  color: #75530f;
}

.event-resource-description {
  max-width: 820px;
  color: #645b50;
}

.event-resource-meta {
  color: #766b5f;
  font-size: 0.84rem;
  font-weight: 700;
}

.event-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.event-gallery figure {
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #e6dfd4;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.11);
}

.event-gallery-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
}

.event-gallery-open-video {
  cursor: pointer;
}

.event-gallery-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.event-gallery-play::before {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid var(--color-white);
  content: "";
}

.event-gallery-video-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-dark);
}

.event-gallery-open:focus-visible {
  outline-offset: -5px;
}

.event-gallery-open-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.event-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.event-gallery figcaption {
  padding: 13px 15px 15px;
  overflow-wrap: anywhere;
  color: #544d44;
  font-size: 0.9rem;
  font-weight: 700;
}

.event-gallery-toggle {
  margin-top: 24px;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.event-lightbox {
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: clamp(12px, 3vw, 32px);
  border: 0;
  background: transparent;
  color: var(--color-white);
  overflow: auto;
  overscroll-behavior: contain;
}

.event-lightbox[open] {
  display: grid;
  place-items: center;
}

.event-lightbox::backdrop {
  background: rgba(7, 7, 7, 0.9);
}

.event-lightbox-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100%, 1180px);
  height: calc(100svh - clamp(24px, 6vw, 64px));
  gap: 18px;
  padding: clamp(18px, 3vw, 30px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: #151515;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.56);
}

.event-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.event-lightbox-header h2 {
  color: #f2dfb2;
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  line-height: 1.1;
}

.event-lightbox-control {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.event-lightbox-control:hover {
  border-color: rgba(214, 168, 79, 0.72);
  background: rgba(214, 168, 79, 0.14);
}

.event-lightbox-control[aria-disabled="true"] {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.42);
  cursor: default;
}

.event-lightbox-close span[aria-hidden="true"] {
  font-size: 1.45rem;
  line-height: 1;
}

.event-lightbox-media {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  place-items: center;
  row-gap: 12px;
  padding-block: 12px;
}

.event-lightbox-viewport {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  place-items: center;
}

.event-lightbox-viewport img,
.event-lightbox-viewport video:not([hidden]) {
  width: auto;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  clip-path: inset(0 round 12px);
  object-fit: contain;
}

.event-lightbox-viewport video:not([hidden]) {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-dark);
}

.event-lightbox-media figcaption {
  max-width: 860px;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.event-lightbox-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.event-lightbox-previous {
  justify-self: start;
}

.event-lightbox-next {
  justify-self: end;
}

.event-lightbox-position {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.venue-map-panel {
  width: min(100%, 920px);
}

.venue-map-summary {
  display: grid;
  gap: 7px;
}

.venue-map-name {
  color: var(--color-white);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  font-weight: 800;
}

.venue-map-summary > p:not(.venue-map-name) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.venue-map-provider-notice {
  font-size: 0.88rem;
}

.venue-map-canvas {
  width: 100%;
  height: clamp(280px, 55svh, 520px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: #ded8ce;
  color: var(--color-dark);
}

.venue-map-canvas:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

.venue-map-canvas .leaflet-control-zoom a {
  width: 44px;
  height: 44px;
  line-height: 44px;
}

.venue-map-canvas .leaflet-control a:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 2px;
}

.venue-map-canvas .leaflet-control-attribution {
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.9);
  color: #39342e;
}

.venue-map-status {
  padding: 12px 14px;
  border: 1px solid rgba(214, 168, 79, 0.35);
  border-radius: 12px;
  background: rgba(214, 168, 79, 0.1);
  color: #f2dfb2;
  font-weight: 700;
}

.venue-map-external {
  width: fit-content;
  max-width: 100%;
  text-align: center;
}

.event-state {
  width: min(100%, 820px);
  margin: 8vh auto;
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(214, 168, 79, 0.17), transparent 42%),
    linear-gradient(145deg, #242424, #161616);
  color: var(--color-white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.event-state-kicker {
  margin-bottom: 12px;
  color: var(--color-gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-state h1 {
  max-width: 720px;
  overflow-wrap: anywhere;
  font-size: calc(clamp(2.2rem, 6vw, 4.6rem) * var(--display-heading-scale));
  line-height: 1;
  letter-spacing: -0.04em;
}

.event-state p:not(.event-state-kicker) {
  max-width: 660px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

@media (max-width: 1024px) {
  .event-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  }

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

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

@media (max-width: 820px) {
  .event-main {
    padding: calc(var(--header-height) + 34px) 22px 76px;
  }

  .event-hero {
    border-radius: 26px;
  }

  .event-hero-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .event-hero-copy {
    padding: 38px 28px;
  }

  .event-hero-media {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

  .event-hero-media::after {
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.24), transparent 38%);
  }

  .event-hero-media img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 600px) {
  .event-main {
    padding-right: 18px;
    padding-bottom: 64px;
    padding-left: 18px;
  }

  .event-back-link {
    width: 100%;
    justify-content: center;
  }

  .event-hero-copy {
    padding: 32px 22px;
  }

  .event-content {
    gap: 20px;
    margin-top: 24px;
  }

  .event-section {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .event-facts,
  .event-gallery {
    grid-template-columns: 1fr;
  }

  .event-resource-heading {
    display: grid;
    gap: 10px;
  }

  .event-resource-kind {
    width: fit-content;
  }

  .event-lightbox {
    padding: 10px;
  }

  .event-lightbox-panel {
    height: calc(100svh - 20px);
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
  }

  .event-lightbox-header {
    align-items: flex-start;
  }

  .event-lightbox-close {
    flex: 0 0 auto;
    padding-inline: 13px;
  }

  .event-lightbox-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .venue-map-canvas {
    height: clamp(260px, 40svh, 360px);
  }

  .venue-map-external {
    width: 100%;
  }

  .event-lightbox-position {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .event-lightbox-previous,
  .event-lightbox-next {
    width: 100%;
    gap: 6px;
    padding-inline: 10px;
    font-size: 0.92rem;
  }
}

@media (max-width: 360px) {
  .event-main {
    padding-right: 14px;
    padding-left: 14px;
  }

  .event-hero-copy,
  .event-section,
  .event-state {
    padding-right: 18px;
    padding-left: 18px;
  }

  .event-labels {
    display: grid;
  }

  .event-label {
    width: fit-content;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .event-lightbox-header {
    display: grid;
  }

  .event-lightbox-close {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-back-link,
  .event-back-link:hover,
  .event-resource-link,
  .event-resource-link:hover,
  .event-gallery-toggle,
  .event-gallery-toggle:hover {
    transform: none;
  }
}
