:root {
  --ink: #211735;
  --purple: #7650d5;
  --violet: #4d2d91;
  --lime: #d7ff78;
  --paper: #f7f5f0;
  --muted: #706879;
  --line: #e4deea;
  --white: #fff;
  --shadow-sm: 0 10px 35px rgba(33, 23, 53, .08);
  --shadow-lg: 0 28px 70px rgba(17, 10, 38, .2);
}

body {
  background:
    radial-gradient(circle at 10% 18%, rgba(118, 80, 213, .07), transparent 26rem),
    var(--paper);
}

.site-header {
  height: 78px;
  border-bottom-color: rgba(54, 37, 78, .1);
  box-shadow: 0 4px 22px rgba(33, 23, 53, .045);
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, .94);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 21px;
}

.brand span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 10px;
  background: var(--purple);
  color: var(--lime);
  box-shadow: 0 7px 18px rgba(118, 80, 213, .3);
}

.site-header nav a,
.inline-form button {
  transition: color .18s ease, transform .18s ease;
}

.site-header nav a:last-of-type {
  padding: 10px 14px;
  border-radius: 999px;
  background: #f1edf9;
  color: var(--violet);
}

.site-header nav a:hover,
.inline-form button:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 660px;
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 18%, rgba(147, 104, 235, .68), transparent 22rem),
    radial-gradient(circle at 92% 85%, rgba(101, 60, 179, .46), transparent 28rem),
    linear-gradient(135deg, #130d2d 0%, #241442 55%, #32195f 100%);
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: clamp(40px, 7vw, 110px);
  padding-top: 82px;
  padding-bottom: 82px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .2;
  background-image: radial-gradient(rgba(255,255,255,.7) .7px, transparent .7px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to right, black, transparent 72%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero h1 {
  max-width: 800px;
  font-size: clamp(58px, 7.5vw, 103px);
  line-height: .94;
  margin: 20px 0 28px;
}

.hero h1 em {
  color: var(--lime);
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: clamp(17px, 1.6vw, 20px);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
}

.hero-actions .button.lime {
  margin: 0;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(215, 255, 120, .18);
}

.hero-link {
  color: #fff;
  font-weight: 800;
  border-bottom: 1px solid rgba(255,255,255,.35);
  padding: 8px 0;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 46px;
}

.hero-highlights span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 138px;
  padding: 12px 15px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.6);
  font-size: 11px;
}

.hero-highlights b {
  color: #fff;
  font-size: 15px;
}

.hero-art {
  position: relative;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  justify-self: end;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  inset: 5%;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  transform: rotate(-15deg) scaleY(.72);
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 24px rgba(215,255,120,.8);
}

.orbit::before { left: 10%; top: 25%; }
.orbit::after { right: 9%; bottom: 27%; background: #ff8e72; }
.orbit-two { inset: 19%; transform: rotate(36deg) scaleY(.72); opacity: .55; }

.event-pin {
  position: relative;
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 12%;
  transform: rotate(-45deg);
  background: linear-gradient(145deg, var(--lime), #aedd49);
  box-shadow: 0 30px 75px rgba(8, 4, 26, .45), inset 0 0 0 13px rgba(255,255,255,.2);
}

.event-pin::after {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  background: #29154d;
}

.event-pin span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 54px;
  transform: rotate(45deg);
}

.hero-star {
  position: absolute;
  color: var(--lime);
  font-style: normal;
  font-size: 36px;
}

.star-one { top: 9%; right: 15%; }
.star-two { bottom: 16%; left: 11%; color: #ff987b; font-size: 48px; }

.hero-art p {
  position: absolute;
  right: 0;
  bottom: 5%;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: .13em;
  color: rgba(255,255,255,.65);
  text-align: right;
}

.hero-art p b { color: #fff; font-size: 18px; }

#events {
  scroll-margin-top: 96px;
}

.section {
  max-width: 1320px;
}

.section-head {
  align-items: flex-end;
  margin-bottom: 30px;
}

.section-head h2 {
  margin-bottom: 12px;
}

.section-intro {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.section-head > .button {
  border-radius: 999px;
  padding: 13px 18px;
}

.filters {
  grid-template-columns: minmax(230px, 1.25fr) minmax(210px, .85fr) minmax(180px, .7fr) auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow-sm);
}

.filter-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.filter-field > span {
  padding-left: 4px;
  color: var(--violet);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}

.filters input,
.filters select {
  min-height: 48px;
  margin: 0;
  border-color: #e7e1eb;
  border-radius: 11px;
  background: #faf9fc;
}

.filters input:focus,
.filters select:focus {
  outline: 3px solid rgba(118, 80, 213, .14);
  border-color: var(--purple);
}

.filters > button {
  min-height: 48px;
  border-radius: 11px;
  white-space: nowrap;
  padding-inline: 20px;
}

.map-shell {
  margin: 30px 0 42px;
  overflow: hidden;
  border: 1px solid rgba(77,45,145,.14);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(33,23,53,.12);
}

.map-toolbar {
  min-height: 68px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #fff, #faf8fd);
}

.map-toolbar > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.map-toolbar strong {
  color: var(--violet);
  font-size: 22px;
}

.map-toolbar span,
.map-toolbar small {
  color: var(--muted);
}

#event-map {
  height: 540px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #e9e5e1;
}

.leaflet-container {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.leaflet-control-zoom {
  margin-right: 16px !important;
  margin-bottom: 34px !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 13px !important;
  box-shadow: 0 10px 28px rgba(33,23,53,.24) !important;
}

.leaflet-control-zoom a {
  width: 42px !important;
  height: 42px !important;
  line-height: 40px !important;
  border-bottom-color: var(--line) !important;
  color: var(--violet) !important;
  font-size: 23px !important;
}

.leaflet-control-attribution {
  border-radius: 7px 0 0 0;
  color: #6c6572;
  font-size: 9px !important;
}

.nachtkarte-marker {
  border: 0;
  background: transparent;
}

.nachtkarte-marker > span {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 16px 16px 16px 5px;
  transform: rotate(-45deg);
  background: linear-gradient(145deg, #865ee2, #4d2d91);
  box-shadow: 0 9px 24px rgba(49,29,91,.38);
  transition: transform .16s ease, box-shadow .16s ease;
}

.nachtkarte-marker:hover > span {
  transform: rotate(-45deg) translate(2px, -2px) scale(1.07);
  box-shadow: 0 13px 28px rgba(49,29,91,.48);
}

.nachtkarte-marker i {
  color: var(--lime);
  font-size: 18px;
  font-style: normal;
  transform: rotate(45deg);
}

.nachtkarte-marker b {
  position: absolute;
  top: -10px;
  right: -10px;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  transform: rotate(45deg);
  background: var(--lime);
  color: var(--ink);
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(33,23,53,.2);
}

.leaflet-tooltip {
  padding: 7px 10px;
  border: 0;
  border-radius: 9px;
  color: var(--ink);
  font-weight: 750;
  box-shadow: var(--shadow-sm);
}

.nachtkarte-popup .leaflet-popup-content-wrapper {
  overflow: hidden;
  border-radius: 17px;
  box-shadow: 0 20px 55px rgba(22,13,50,.25);
}

.nachtkarte-popup .leaflet-popup-content {
  width: auto !important;
  margin: 0;
}

.nachtkarte-popup .leaflet-popup-close-button {
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0edf4;
  color: var(--violet);
  font-size: 20px;
  z-index: 2;
}

.map-popup {
  min-width: 250px;
  padding: 18px;
}

.map-popup-eyebrow {
  display: block;
  margin: 0 34px 6px 0;
  color: var(--purple);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.map-popup-location {
  display: block;
  margin-right: 28px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.map-popup-address {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}

.map-popup-list {
  display: grid;
  margin: 15px -18px 0;
  border-top: 1px solid var(--line);
}

.map-popup-event {
  position: relative;
  display: grid !important;
  gap: 3px;
  margin: 0 !important;
  padding: 11px 42px 11px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink) !important;
  transition: background .15s ease;
}

.map-popup-event:hover {
  background: #f8f5fd;
}

.map-popup-event span {
  color: var(--purple);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.map-popup-event b {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-popup-event i {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--purple);
  font-style: normal;
  font-size: 17px;
}

.map-popup-more {
  display: block !important;
  margin: 10px 0 0 !important;
  color: var(--violet) !important;
  font-size: 12px;
  font-weight: 900 !important;
}

.map-routes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 14px;
}

.map-routes a {
  display: grid !important;
  place-items: center;
  min-height: 37px;
  margin: 0 !important;
  padding: 7px 8px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff !important;
  font-size: 10px;
  font-weight: 850;
  text-align: center;
}

.map-routes a:last-child {
  background: #ece7f5;
  color: var(--violet) !important;
}

.event-grid {
  gap: 22px;
}

.event-card {
  border-radius: 19px;
  box-shadow: 0 8px 28px rgba(33,23,53,.055);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(118,80,213,.32);
  box-shadow: 0 19px 42px rgba(33,23,53,.12);
}

.card-art {
  position: relative;
  height: 145px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(215,255,120,.33), transparent 6rem),
    linear-gradient(135deg, #1b1237, #6741b5 62%, #865be0);
}

.card-art::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -40px;
  top: -60px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
}

.card-art > * {
  position: relative;
  z-index: 1;
}

.card-art small {
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  background: rgba(17,10,38,.3);
  font-weight: 800;
}

.card-body h3 a:hover,
.text-link:hover {
  color: var(--purple);
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  }

  .hero-art {
    width: min(38vw, 410px);
  }

  .event-pin {
    width: 150px;
    height: 150px;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 850px) {
  .site-header nav a:last-of-type {
    background: transparent;
    padding: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero-art {
    display: none;
  }

  .hero-highlights {
    margin-top: 35px;
  }

  .section-head {
    align-items: flex-start;
  }

  #event-map {
    height: 480px;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-inline: 20px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 70px);
  }

  .hero-highlights span {
    min-width: calc(50% - 5px);
  }

  .filters {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .filters > button {
    padding: 14px 18px;
  }

  .map-shell {
    margin-inline: -8px;
    border-radius: 18px;
  }

  .map-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
  }

  .map-toolbar small {
    font-size: 11px;
  }

  #event-map {
    height: 430px;
  }

  .leaflet-control-zoom a {
    width: 40px !important;
    height: 40px !important;
    line-height: 38px !important;
  }

  .nachtkarte-popup .leaflet-popup-content-wrapper {
    border-radius: 15px;
  }

  .map-popup {
    min-width: 220px;
    padding: 15px;
  }

  .map-popup-list {
    margin-inline: -15px;
  }

  .map-popup-event {
    padding-left: 15px;
    padding-right: 36px;
  }
}
/* Bounded, keyboard-accessible location and event pagination. */
.map-popup-pager { display:flex; align-items:center; justify-content:space-between; gap:6px; margin:10px 0; }
.map-popup-pager button { font:inherit; font-size:12px; color:#332451; background:#f1edf8; border:1px solid #ddd3ed; border-radius:8px; padding:10px 8px; cursor:pointer; }
.map-popup-pager button:disabled { opacity:.4; cursor:default; }
.map-popup-pager span { font-size:11px; white-space:nowrap; }
.map-location-select { display:block; padding:12px 16px 0; color:#332451; font:600 12px/1.4 sans-serif; }
.map-location-select select { display:block; width:100%; max-width:300px; margin-top:5px; padding:8px; border:1px solid #ddd3ed; border-radius:8px; }
.map-unavailable { display:grid; place-items:center; padding:24px; text-align:center; color:#332451; }
.verification-panel { max-width:1100px; margin:24px auto; }
.map-popup button:focus-visible, .map-location-select select:focus-visible { outline:3px solid #7444c5; outline-offset:2px; }
