:root {
  --ink: #161417;
  --muted: #6c6670;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #ded8e5;
  --purple: #7a2cf3;
  --purple-dark: #452071;
  --yellow: #f4d44d;
  --green: #1f8a70;
  --red: #cf4f48;
  --shadow: 0 18px 55px rgba(31, 21, 43, 0.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.leaflet-container {
  overflow: hidden;
  outline-offset: 1px;
  background: #d9e6ef;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}

.leaflet-marker-icon,
.leaflet-marker-shadow {
  display: block;
}

.leaflet-tile {
  width: 256px;
  height: 256px;
  filter: inherit;
  visibility: inherit;
  border: 0;
}

.leaflet-zoom-animated {
  transform-origin: 0 0;
}

.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
}

.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.leaflet-top {
  top: 0;
}

.leaflet-right {
  right: 0;
}

.leaflet-bottom {
  bottom: 0;
}

.leaflet-left {
  left: 0;
}

.leaflet-control-zoom {
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: white;
}

.leaflet-control-zoom a {
  display: block;
  width: 30px;
  height: 30px;
  color: var(--ink);
  background: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  font: 700 20px/30px Arial, sans-serif;
  text-align: center;
  text-decoration: none;
}

.leaflet-control-zoom a:last-child {
  border-bottom: 0;
}

.leaflet-popup {
  position: absolute;
  text-align: center;
  margin-bottom: 20px;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: white;
  color: var(--ink);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.22);
}

.leaflet-popup-content-wrapper {
  padding: 1px;
  text-align: left;
  border-radius: 8px;
}

.leaflet-popup-content {
  margin: 13px 18px;
  line-height: 1.4;
}

.leaflet-popup-tip-container {
  width: 40px;
  height: 20px;
  position: absolute;
  left: 50%;
  margin-top: -1px;
  margin-left: -20px;
  overflow: hidden;
  pointer-events: none;
}

.leaflet-popup-tip {
  width: 17px;
  height: 17px;
  padding: 1px;
  margin: -10px auto 0;
  transform: rotate(45deg);
}

.leaflet-container a.leaflet-popup-close-button {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 4px 0 0;
  border: 0;
  color: #757575;
  font: 16px/24px Tahoma, Verdana, sans-serif;
  text-align: center;
  width: 24px;
  height: 24px;
  text-decoration: none;
  background: transparent;
}

.leaflet-control-attribution {
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 11px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

.credited-image figcaption {
  padding: 5px 8px 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.68rem;
  line-height: 1.25;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(22, 20, 23, 0.08);
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  text-decoration: none;
}

.brand-title {
  display: grid;
  line-height: 1.15;
}

.brand-mark {
  width: 40px;
  height: 36px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: clamp(12px, 3vw, 30px);
  font-size: 0.94rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
}

.main-nav a:hover {
  color: var(--ink);
}

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.language-switch a {
  display: inline-grid;
  min-width: 34px;
  min-height: 30px;
  place-items: center;
  padding: 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.language-switch a.active {
  background: var(--ink);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(860px, calc(100svh - 64px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #161417;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

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

.hero-video {
  container-type: size;
  background: #161417;
  background-image: url("./assets/images/maker-region-startbild.png");
  background-position: center;
  background-size: cover;
}

.hero-video iframe {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: max(100cqw, calc(100cqh * 16 / 9));
  height: max(100cqh, calc(100cqw * 9 / 16));
  border: 0;
  transform: translate(-50%, -50%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(22, 20, 23, 0.82) 0%, rgba(22, 20, 23, 0.56) 42%, rgba(22, 20, 23, 0.14) 100%),
    linear-gradient(0deg, rgba(22, 20, 23, 0.72) 0%, rgba(22, 20, 23, 0.08) 58%);
  pointer-events: none;
}

@supports not (width: 100cqw) {
  .hero-video iframe {
    width: 100%;
    height: 100%;
  }
}

.hero-sound-toggle {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(22, 20, 23, 0.72);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
}

.hero-sound-toggle:hover,
.hero-sound-toggle:focus-visible {
  background: rgba(22, 20, 23, 0.9);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 820px;
  padding: clamp(48px, 9vw, 110px) clamp(18px, 7vw, 96px);
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.eyebrow {
  margin: 0;
  color: var(--purple-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  max-width: 9ch;
  font-size: clamp(4rem, 8vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-content > p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.hero-content .eyebrow {
  color: #ffffff;
}

.hero-content .button.primary {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--ink);
  text-shadow: none;
}

.hero-content .button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(22, 20, 23, 0.36);
  color: #ffffff;
  text-shadow: none;
}

.hero-actions,
.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.chip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
.chip.active {
  color: white;
  background: var(--ink);
}

.map-section,
.spaces-section,
.events-section,
.content-band {
  padding: clamp(44px, 7vw, 90px) clamp(18px, 4vw, 56px);
}

.section-heading {
  display: grid;
  max-width: 980px;
  gap: 10px;
  margin-bottom: 28px;
}

.section-heading.narrow {
  max-width: 720px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.55;
}

.map-shell {
  position: relative;
  display: block;
  height: clamp(560px, 72vh, 760px);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-panel {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 650;
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  max-width: 760px;
  padding: 8px;
  border: 1px solid rgba(22, 20, 23, 0.14);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(22, 20, 23, 0.14);
  backdrop-filter: blur(8px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.map-stats {
  max-width: 760px;
  margin: -10px 0 14px;
}

.stats div {
  padding: 7px 8px;
  background: #f5f0f8;
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-size: 1.1rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.68rem;
}

.search-label,
.list-search-label,
.filters legend {
  font-weight: 800;
}

#spaceSearch,
#spaceListSearch,
#eventSearch {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: white;
  color: var(--ink);
  font: inherit;
}

.map-panel #spaceSearch {
  grid-column: 1;
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.84rem;
}

.map-panel .search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.map-panel .filters {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.map-panel .filters legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.list-search-label {
  display: grid;
  flex: 1 1 260px;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 0.76rem;
}

.filters label {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #3b3740;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.filters input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.filters label:has(input:checked) {
  border-color: rgba(122, 44, 243, 0.32);
  background: #f5f0f8;
}

.type-dot {
  display: inline-grid;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
}

.type-dot-hub,
.type-dot-space {
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
}

.type-dot-hub {
  background: #7a2cf3;
}

.type-dot-hub::after {
  content: "H";
}

.type-dot-space {
  background: #1f8a70;
}

.type-dot-space::after {
  content: "M";
}

.type-dot-municipality {
  width: 10px;
  height: 10px;
  border: 2px solid #7a2cf3;
  background: #ffffff;
}

.type-dot-artwork {
  width: 9px;
  height: 9px;
  border: 1px solid #ffffff;
  background: #b915f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
}

.note {
  margin: auto 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

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

.popup-title {
  margin-bottom: 4px;
  font-weight: 850;
}

.popup-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.popup-image {
  display: block;
  width: 100%;
  max-height: 150px;
  margin: 8px 0;
  object-fit: cover;
}

.popup-address,
.popup-credit {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.popup-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  font-weight: 850;
}

.artwork-marker span {
  display: block;
  width: 9px;
  height: 9px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  background: #b915f5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.artwork-marker {
  display: grid;
  place-items: center;
}

.maker-marker.marker-pulse span {
  animation: marker-pulse 1.45s ease-in-out infinite;
}

@keyframes marker-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(122, 44, 243, 0.42);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), 0 0 0 9px rgba(122, 44, 243, 0);
  }
}

.about-text {
  max-width: 880px;
  columns: 2 320px;
  column-gap: clamp(28px, 5vw, 70px);
}

.about-text h3 {
  break-after: avoid;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.about-text p {
  color: #3d3741;
  line-height: 1.65;
}

.imprint-section,
.privacy-section {
  border-top: 1px solid var(--line);
  background: #f5f0f8;
}

.privacy-section {
  background: var(--paper);
}

.credit-section {
  padding: 22px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.92rem;
}

.credit-section p {
  margin: 0;
}

.imprint-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
}

.imprint-text {
  display: grid;
  gap: 12px;
}

.imprint-text p,
.privacy-text p {
  margin: 0;
  color: #3d3741;
  line-height: 1.6;
}

.privacy-text {
  display: grid;
  max-width: 920px;
  gap: 12px;
}

.privacy-text h3 {
  margin: 14px 0 0;
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.contact-form h3 {
  margin: 0;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: #3d3741;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.contact-form textarea {
  resize: vertical;
}

.privacy-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 500;
  line-height: 1.45;
}

.privacy-check input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.form-status {
  margin: 0;
  padding: 10px 12px;
  background: #f5f0f8;
  color: var(--muted);
  line-height: 1.45;
}

.form-status.success {
  background: #e3f3ed;
  color: #145c4a;
}

.form-status.error {
  background: #f8e5e2;
  color: #87342f;
}

.contact-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 3000;
  display: flex;
  max-width: min(420px, calc(100vw - 36px));
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #bfe2d6;
  background: #e3f3ed;
  box-shadow: 0 18px 36px rgba(31, 27, 36, 0.18);
  color: #145c4a;
  font-weight: 800;
}

.contact-toast[hidden] {
  display: none;
}

.contact-toast-close {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(20, 92, 74, 0.26);
  background: rgba(255, 255, 255, 0.7);
  color: #145c4a;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.space-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.load-more-row {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.load-more-row[hidden] {
  display: none;
}

.space-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--panel);
}

.space-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ebe5ed;
}

.space-card .credited-image figcaption {
  border-bottom: 1px solid var(--line);
}

.space-card-body {
  display: grid;
  flex: 1;
  gap: 10px;
  padding: 18px;
}

.space-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.space-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--purple-dark);
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.event-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.event-filter-label {
  display: grid;
  min-width: min(260px, calc(100vw - 36px));
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

#eventRegionFilter {
  min-width: min(280px, calc(100vw - 36px));
  min-height: 44px;
  padding: 0 38px 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: white;
  color: var(--ink);
  font: inherit;
}

.view-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.event-list-view {
  display: grid;
  gap: 14px;
  margin-bottom: 42px;
}

.event-month {
  border: 1px solid var(--line);
  background: var(--panel);
}

.event-month > summary {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  font-weight: 850;
}

.event-month[open] > summary {
  border-bottom-color: var(--line);
}

.event-month > summary::marker,
.event-item > summary::marker,
.calendar-event > summary::marker {
  color: var(--purple);
}

.event-list {
  display: grid;
}

.event-item {
  border-bottom: 1px solid var(--line);
}

.event-item:last-child {
  border-bottom: 0;
}

.event-item > summary {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr) minmax(120px, auto);
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
}

.event-summary-date {
  color: var(--purple-dark);
  font-weight: 850;
  line-height: 1.35;
}

.event-summary-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.event-summary-title {
  font-weight: 850;
  line-height: 1.28;
}

.event-summary-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-detail {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 18px;
  padding: 0 18px 18px;
}

.event-detail-figure {
  align-self: start;
}

.event-detail-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ebe5ed;
}

.event-detail-content {
  display: grid;
  align-content: start;
  gap: 14px;
}

.event-detail-content p,
.event-mobility p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.event-info-grid div,
.event-weather,
.event-mobility {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: #f5f0f8;
}

.event-info-grid strong,
.event-weather strong,
.event-mobility strong {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.event-info-grid span,
.event-weather span {
  color: #3b3740;
  line-height: 1.4;
}

.event-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.calendar-view {
  display: grid;
  gap: 28px;
  margin-bottom: 42px;
}

.calendar-month {
  border: 1px solid var(--line);
  background: var(--panel);
}

.calendar-month h3 {
  margin: 0;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 1.3rem;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays span {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
}

.calendar-cell {
  min-height: 132px;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
}

.calendar-cell:nth-child(7n) {
  border-right: 0;
}

.calendar-cell.muted {
  background: #f4f0ee;
}

.calendar-cell time {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.calendar-events {
  display: grid;
  gap: 5px;
}

.calendar-event {
  background: #f5f0f8;
}

.calendar-event > summary {
  padding: 6px;
  color: var(--purple-dark);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.25;
  cursor: pointer;
}

.calendar-event .event-detail {
  grid-template-columns: 1fr;
  padding: 6px;
}

.calendar-event .event-detail-figure {
  display: none;
}

.calendar-event .event-info-grid {
  grid-template-columns: 1fr;
}

.event-pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 42px;
}

.event-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.event-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #ebe5ed;
}

.event-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.event-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.22;
}

.event-date {
  margin: 0;
  color: var(--purple-dark);
  font-weight: 850;
}

.event-location,
.event-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.subsection-title {
  margin: 0 0 16px;
  font-size: 1.2rem;
}

.source-card {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.source-card h3 {
  margin-bottom: 8px;
}

.source-card p {
  color: var(--muted);
  line-height: 1.5;
}

dialog {
  width: min(760px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(21, 15, 29, 0.48);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: white;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-hero {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.dialog-figure figcaption {
  border-bottom: 1px solid var(--line);
}

.dialog-body {
  padding: 24px;
}

.dialog-body h2 {
  margin-bottom: 10px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.site-footer p {
  margin: 0;
  flex: 1 1 100%;
  font-size: 0.86rem;
}

@media (max-width: 880px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .menu-toggle {
    grid-column: 3;
    grid-row: 1;
    display: grid;
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 12px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }

  .language-switch {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .map-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: min(720px, calc(100svh - 64px));
  }

  .hero-media {
    min-height: 0;
  }

  .hero-content {
    max-width: 680px;
    padding-top: clamp(120px, 22vh, 190px);
  }

  .map-panel {
    top: 10px;
    left: 10px;
    right: 10px;
    max-width: none;
    padding: 10px;
    border-right: 1px solid rgba(22, 20, 23, 0.14);
    border-bottom: 1px solid rgba(22, 20, 23, 0.14);
  }

  .map-shell {
    height: 620px;
    overflow: hidden;
  }

  #map {
    height: 100%;
    min-height: 100%;
  }

  .event-item > summary,
  .event-detail {
    grid-template-columns: 1fr;
  }

  .event-info-grid {
    grid-template-columns: 1fr;
  }

  .imprint-layout {
    grid-template-columns: 1fr;
  }

  .calendar-weekdays,
  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .calendar-weekdays {
    display: none;
  }

  .calendar-cell {
    min-height: auto;
    border-right: 0;
  }

  .calendar-cell.muted {
    display: none;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(3rem, 17vw, 4.4rem);
  }

  .map-panel {
    grid-template-columns: 1fr;
  }

  .map-panel #spaceSearch,
  .map-panel .filters {
    grid-column: 1;
    grid-row: auto;
  }

  .map-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
