/* ============================================================
   HOLEE: Jubiläen 2027 page. Loads only on template-jubilaeen.php.
   ============================================================ */

.jub { overflow: clip; }

/* ---------- Hero ---------- */
.jub-hero {
  position: relative;
  min-height: min(82svh, 46rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--s-6) var(--s-5);
  overflow: clip;
}
@media (max-width: 47.99rem) {
  .jub-hero { min-height: auto; padding-block: var(--s-4) var(--s-5); justify-content: flex-start; }
}
.jub-hero__canvas-wrap { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
#jub-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.jub-hero__mark {
  position: absolute; top: 50%; right: -3vw; transform: translateY(-50%);
  width: min(34rem, 48vw); color: var(--ink);
}
.jub-hero__mark-img { width: 100%; height: auto; opacity: 0.06; }
@media (max-width: 47.99rem) { .jub-hero__mark { right: -20%; width: 20rem; } }
.jub-has-webgl .jub-hero__mark { display: none; }

.jub-hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, var(--bg) 32%, color-mix(in srgb, var(--bg) 55%, transparent) 60%, transparent 100%);
}
.jub-hero__inner { position: relative; z-index: 2; }
.jub-hero__title {
  font-size: clamp(2.55rem, 1.5rem + 4.4vw, 4.7rem);
  font-weight: 400; line-height: 1.06; letter-spacing: -0.015em; max-width: 16ch;
}
.jub-hero__lede { margin-top: var(--s-4); max-width: 38rem; }
.jub-hero__jump { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); }
.jub-hero__jump a {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  padding: 0.6em 1em; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.jub-hero__jump a::before { content: '\2193'; opacity: 0.6; }
.jub-hero__jump a:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }

/* ---------- Overview cards ---------- */
.jub-overview { position: relative; overflow: clip; }
.jub-watermark {
  position: absolute; top: -0.15em; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: clamp(11rem, 40vw, 34rem); line-height: 1;
  color: color-mix(in srgb, var(--accent) 8%, transparent);
  pointer-events: none; user-select: none; z-index: 0; white-space: nowrap;
}
.jub-cards {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: var(--s-4);
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 40rem) { .jub-cards { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); } }
@media (min-width: 64rem) { .jub-cards { grid-template-columns: repeat(4, 1fr); } }
.jub-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--ink);
  transition: transform 0.35s var(--ease), border-color 0.3s var(--ease), box-shadow 0.35s var(--ease);
  transform-style: preserve-3d; will-change: transform;
}
.jub-card:hover, .jub-card:focus-visible {
  border-color: var(--line-strong);
  box-shadow: 0 26px 50px -30px color-mix(in srgb, var(--ink) 55%, transparent);
}
.jub-card__media { display: block; position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.jub-card__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.jub-card__body { display: flex; flex-direction: column; gap: 0.35rem; padding: var(--s-3) var(--s-3) var(--s-4); }
.jub-card__num {
  font-family: var(--font-display); font-size: var(--step-3); line-height: 1;
  color: var(--accent); font-weight: 500; letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: 0.3em;
}
.jub-card__unit { font-size: var(--step-0); color: var(--muted); font-family: var(--font-body); letter-spacing: 0; }
.jub-card__title { font-family: var(--font-display); font-size: var(--step-1); margin-top: 0.15rem; }
.jub-card__since { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 600; }
.jub-card__text { font-size: var(--step-0); color: var(--muted); margin-top: 0.35rem; }

/* ---------- Chapters ---------- */
.jub-chapter { position: relative; }
.jub-chapter--tint { background: var(--surface-2); }
.jub-chapter--tint .section:first-child { padding-top: var(--s-6); }
.jub-chapter__head h2 { margin-top: var(--s-2); }
.jub-chapter__head .lede { margin-top: var(--s-3); }

.jub-duo { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 56rem) { .jub-duo { grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: start; } }
.jub-duo figure img { aspect-ratio: 4 / 3; object-fit: cover; }

.jub-trio { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .jub-trio { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); align-items: start; } }
.jub-trio figure img { aspect-ratio: 4 / 3; object-fit: cover; }
.jub-trio figcaption { font-size: var(--step--1); }

.jub-split { display: grid; gap: var(--s-4); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 56rem) {
  .jub-split { grid-template-columns: 1.05fr 1fr; gap: var(--s-6); }
  .jub-split--reverse .jub-split__media { order: 2; }
}
.jub-split__media { overflow: clip; border-radius: var(--radius); }
.jub-split__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.jub-split__body > * + * { margin-top: var(--s-3); }

/* ---------- Video embed ---------- */
.jub-media-block { max-width: 52rem; }
.video-embed {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--ink);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.jub-media-block__cap { margin-top: var(--s-2); font-size: var(--step--1); color: var(--muted); max-width: none; }
.jub-media-block__cap a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--line-strong); }

/* ---------- Close ---------- */
.jub-close h2 { margin-top: var(--s-2); }
.jub-close p { margin-top: var(--s-3); }
.jub-close__actions { margin-top: var(--s-5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
.jub-close__note { font-size: var(--step--1); color: color-mix(in srgb, var(--accent-ink) 78%, var(--accent)); margin-top: var(--s-4); }
.jub-close__note a { color: var(--accent-ink); text-decoration: underline; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .jub-card { transition: none; }
  .jub-watermark { display: none; }
}

/* ---------- Mobile-Jubilaeenseite: statisches Bild des 3D-Motivs ---------- */
.jub-hero__poster { display: none; }
@media (max-width: 47.99rem) {
  .jub-hero { min-height: 66svh; }
  .jub-hero__mark { display: none; }
  .jub-hero__poster {
    display: block; position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: contain;
    object-position: center 58%; opacity: 0.9; pointer-events: none;
  }
  .jub-has-webgl .jub-hero__poster { display: none; }
}
