@font-face {
  font-family: "Epicene Bold";
  src: url("epicene-text-bold.woff2") format("woff2"),
    url("EpiceneText-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Epicene Regular";
  src: url("epicene-text-regular.woff2") format("woff2"),
    url("EpiceneText-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.page-home {
  font-family: "neue-haas-grotesk-text", "Neue Haas Grotesk Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #fff;
  color: #000;
  min-height: 100vh;
  padding: 0 20px 24px;
  overflow-x: hidden;
  overflow-y: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

body.page-home .page-logo {
  position: absolute;
  top: auto;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 455px;
  height: 185px;
  line-height: 0;
  pointer-events: auto;
}

.page-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

body.page-home .nav-toggle,
body.page-home .nav-overlay-close-btn {
  top: 16px;
  right: 16px;
}

body.page-home .nav-toggle:hover,
body.page-home .nav-toggle:focus-visible {
  color: #000;
  background: #fff;
}

.home-main {
  width: 100%;
}

/* Hero */
.home-hero {
  position: relative;
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
  height: calc(100vh - 80px);
  min-height: 360px;
  overflow: hidden;
}

.home-hero-headline {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 100%;
  max-width: 75%;
  padding: 0 20px;
  margin: 0;
  text-align: center;
  pointer-events: none;
  font-family: "Epicene Bold", "epicene-text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 90px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #000;
}

.home-viewer {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: grab;
  overflow: hidden;
  touch-action: none;
}

.home-viewer.is-dragging {
  cursor: grabbing;
}

.home-viewer--static {
  cursor: default;
  touch-action: pan-y;
}

.home-viewer--static .home-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none !important;
}

.home-viewer--static .home-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.home-scene {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  will-change: transform;
}

.home-scene img {
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Intro */
.home-intro-wrap {
  padding-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  align-items: start;
}

.home-intro {
  grid-column: 1 / -1;
  margin: 0;
  font-family: "Epicene Regular", "epicene-text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 42px;
  line-height: 46px;
  letter-spacing: -0.02em;
}

.home-intro-actions {
  grid-column: 1 / -1;
  margin-top: 0;
  margin-bottom: 48px;
  display: flex;
  justify-content: center;
}

.home-intro-kicker {
  display: inline-block;
  margin: 0;
  padding: 0;
  padding-top: 3px;
  margin-right: 22px;
  font-family: "neue-haas-grotesk-text", "Neue Haas Grotesk Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #000;
  vertical-align: top;
}

.home-intro-body {
  grid-column: 2;
  margin: 0 0 26px;
  padding-top: 20px;
  font-family: "Epicene Regular", "epicene-text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 22px;
  line-height: 26px;
  letter-spacing: -0.005em;
  text-align: left;
}

/* Sections */
.home-section {
  margin-bottom: 70px;
}

.home-section-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

.home-section-title--kicker {
  font-family: "neue-haas-grotesk-text", "Neue Haas Grotesk Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.home-section-line {
  border-top: 1px solid #000;
  margin-bottom: 20px;
}

.home-section-copy {
  font-family: "Epicene Regular", "epicene-text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 22px;
  line-height: 26px;
  letter-spacing: -0.005em;
  margin-bottom: 26px;
}

.home-link-row {
  margin-top: 26px;
}

.home-link-row--center {
  display: flex;
  justify-content: center;
}

/* Program section */
.home-program-featured {
  margin-bottom: 41px;
}

.home-program-featured .program-card {
  cursor: pointer;
}

.home-program-related {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  width: calc(100vw - 40px);
  max-width: calc(100vw - 40px);
  margin-left: calc(50% - 50vw + 20px);
  row-gap: 41px;
  column-gap: 0;
  margin-bottom: 0;
}

.home-program-related-line {
  border-top: 1px solid #fff;
  margin-top: 21px;
  margin-bottom: 26px;
}

.home-program-related::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 1px solid #000;
  pointer-events: none;
}

.home-program-related .related-term-card::before {
  content: "";
  position: absolute;
  top: -21px;
  left: 0;
  width: 100%;
  border-top: 1px solid #000;
}

.home-program-related .related-term-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  align-items: stretch;
  cursor: pointer;
  color: #000;
  text-decoration: none;
  box-sizing: border-box;
}

.home-program-related .related-term-card:nth-child(odd) {
  padding-right: 20px;
}

.home-program-related .related-term-card:nth-child(even) {
  padding-left: 20px;
}

.home-program-related .related-term-card-media {
  line-height: 0;
  align-self: stretch;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.home-program-related .related-term-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: filter 0.25s ease;
}

.home-program-related .related-term-card-text {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-sizing: border-box;
  padding: 0;
}

.home-program-related .related-term-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
  font-family: "neue-haas-grotesk-text", "Neue Haas Grotesk Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 700;
}

.home-program-related .related-term-card-datum {
  text-align: right;
  margin-left: auto;
  flex-shrink: 0;
}

.home-program-related .related-term-card-title {
  font-family: "Epicene Bold", "epicene-text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-align: center;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 94%;
  margin: 0 auto;
  padding: 0;
}

.home-program-related .related-term-card-venue {
  font-family: "neue-haas-grotesk-text", "Neue Haas Grotesk Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 700;
  text-align: left;
  flex-shrink: 0;
  margin-top: auto;
}

/* Program list card (featured) */
.home-program-featured .program-card {
  position: relative;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  min-height: 0;
  overflow: visible;
}

.home-program-featured .program-card::before {
  content: "";
  position: absolute;
  top: -21px;
  left: 0;
  width: 100%;
  border-top: 1px solid #000;
}

.home-program-featured .card-text {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  grid-template-columns: 1fr;
  row-gap: 10px;
  column-gap: 0;
  padding: 0;
  order: 2;
  min-height: 0;
  align-self: stretch;
  height: 100%;
  align-content: start;
}

.home-program-featured .card-text::before {
  content: "";
  grid-row: 3;
  grid-column: 1;
  min-height: 0;
}

.home-program-featured .card-meta {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 400;
  color: #000;
}

.home-program-featured .card-ort,
.home-program-featured .card-datum,
.home-program-featured .card-meta .card-type-label {
  font-weight: 700;
}

.home-program-featured .card-meta .card-type-label {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  font-family: "neue-haas-grotesk-text", "Neue Haas Grotesk Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0;
  color: #000;
}

.home-program-featured .card-ort {
  grid-row: 4;
  grid-column: 1;
  margin: 0;
  text-align: left;
  font-family: "neue-haas-grotesk-text", "Neue Haas Grotesk Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0;
  color: #000;
}

.home-program-featured .card-datum {
  text-align: right;
  margin-left: auto;
  flex-shrink: 0;
}

.home-program-featured .card-title {
  grid-row: 2;
  grid-column: 1;
  font-family: "Epicene Bold", "epicene-text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-align: center;
  color: #000;
  margin-top: 6px;
  padding-top: 20px;
  max-width: 75%;
  margin-left: auto;
  margin-right: auto;
}

.home-program-featured .card-copy {
  grid-row: 5;
  grid-column: 1;
  margin: 0;
  font-family: "Epicene Regular", "epicene-text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 20px;
  line-height: 22px;
  letter-spacing: -0.005em;
  font-weight: 400;
  color: #000;
  text-align: left;
}

.home-program-featured .card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  line-height: 0;
  align-self: start;
  order: 1;
}

.home-program-featured .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.25s ease;
}

/* Orte section */
.home-orte-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  width: calc(100vw - 40px);
  max-width: calc(100vw - 40px);
  margin-left: calc(50% - 50vw + 20px);
  column-gap: 0;
}

.home-orte-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  min-height: 100%;
  padding-right: 20px;
}

.home-orte-copy {
  margin: 0;
  font-family: "Epicene Regular", "epicene-text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 22px;
  line-height: 26px;
  letter-spacing: -0.005em;
}

.home-orte-actions {
  margin-top: 0;
  padding-top: 20px;
}

.home-orte-visual {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-left: 20px;
}

.home-orte-slideshow-wrap {
  position: relative;
  width: 100%;
}

.home-orte-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(133, 203, 250, 0.2), rgba(139, 131, 69, 0.15));
  line-height: 0;
}

.home-orte-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #000;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.15s ease;
}

.home-orte-nav:hover,
.home-orte-nav:focus-visible {
  outline: none;
  background: #f3c3d1;
}

.home-orte-nav--prev {
  left: 10px;
}

.home-orte-nav--next {
  right: 10px;
}

.home-orte-nav img {
  display: block;
  width: 13px;
  height: 13px;
}

.home-orte-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.home-orte-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
}

.home-orte-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .home-orte-track {
    transition: none;
  }
}

.home-orte-caption {
  margin: 8px 0 0;
  font-family: "neue-haas-grotesk-text", "Neue Haas Grotesk Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 700;
  text-align: left;
}

/* Kalender preview */
.home-kalender-preview {
  width: calc(100vw - 40px);
  max-width: calc(100vw - 40px);
  margin-left: calc(50% - 50vw + 20px);
}

.home-kalender-preview::before {
  display: none;
}

.home-kalender-section .home-link-row {
  margin-top: 41px;
}

/* Teaser sections: Der Künstler + Das Projekt */
.home-teasers-section .home-section-line {
  width: calc(100vw - 40px);
  max-width: calc(100vw - 40px);
  margin-left: calc(50% - 50vw + 20px);
  margin-bottom: 30px;
}

.home-teasers-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  width: calc(100vw - 40px);
  max-width: calc(100vw - 40px);
  margin-left: calc(50% - 50vw + 20px);
  column-gap: 40px;
  row-gap: 41px;
}

.home-teaser-card {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-height: 0;
  box-sizing: border-box;
}

.home-teaser-intro {
  margin: 0;
  font-family: "Epicene Regular", "epicene-text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 42px;
  line-height: 46px;
  letter-spacing: -0.02em;
}

.home-teaser-card .hotspot-link {
  align-self: flex-start;
}

@media (max-width: 1200px) {
  .home-program-featured .card-title {
    font-size: 34px;
  }
}

@media (max-width: 980px) {
  body.page-home .page-logo {
    width: 300px;
    height: 122px;
    bottom: 28px;
  }

  .home-hero-headline {
    font-size: 48px;
    max-width: 85%;
  }

  .home-intro-wrap {
    grid-template-columns: 1fr;
  }

  .home-intro-body {
    grid-column: 1;
    font-size: 20px;
    line-height: 26px;
    margin-bottom: 22px;
  }

  .home-intro {
    font-size: 28px;
    line-height: 34px;
  }

  .home-intro-actions {
    margin-bottom: 40px;
  }

  .home-intro-kicker {
    margin-right: 26px;
    padding-top: 3px;
  }

  .home-section-copy {
    font-size: 20px;
    line-height: 26px;
  }

  .home-program-related .related-term-card-title {
    font-size: 24px;
  }

  .home-teaser-intro {
    font-size: 28px;
    line-height: 34px;
  }

  .home-orte-copy {
    font-size: 20px;
    line-height: 26px;
  }

  .home-orte-split {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    grid-template-columns: 1fr;
    row-gap: 26px;
  }

  .home-orte-text,
  .home-orte-visual {
    padding: 0;
  }

}

@media (max-width: 640px) {
  .home-teasers-section .home-section-line {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .home-teasers-grid {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 41px;
  }

  .home-program-featured .program-card {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  .home-program-related {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    grid-template-columns: 1fr;
    row-gap: 41px;
  }

  .home-program-related::after {
    display: none;
  }

  .home-program-related .related-term-card {
    grid-template-columns: 1fr;
    row-gap: 20px;
    column-gap: 0;
    padding: 0 !important;
  }
}
