/* ============================================================
   Voigtchella — SommerVestival 2026
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Cooper BT";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Cooper%20BT%20Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Cooper BT";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Cooper%20BT%20Light.woff2") format("woff2");
}
@font-face {
  font-family: "Helvetica Now Display";
  font-weight: 500;
  font-display: swap;
  src: url("fonts/Monotype%20%20-%20Helvetica%20Now%20Display%20Medium.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --gelb: #fff269;
  --gelb-tief: #ffe23a;
  --gelb-hell: #fff8a3;
  --tuerkis: #b6ccc2;
  --tuerkis-tief: #97b8aa;
  --tinte: #1d1d1b;
  --sand: #d6b994;
  --max-w: 1920px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--gelb);
  color: var(--tinte);
  font-family: "Cooper BT", "Times New Roman", serif;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 80% 5%, rgba(255, 226, 58, 0.55), transparent 55%),
    radial-gradient(ellipse at 10% 92%, rgba(182, 204, 194, 0.35), transparent 55%);
  background-attachment: fixed;
}

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

::selection { background: var(--tinte); color: var(--gelb); }

/* ---------- Page shell ---------- */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(20px, 2.5vw, 48px);
  position: relative;
  z-index: 1;
}

/* ============================================================
   HERO — full container width with breathing room (.page padding)
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1830 / 980;
  background-color: var(--sand);
  isolation: isolate;
  overflow: hidden;
  border-radius: 28px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: ken-burns 30s ease-in-out infinite alternate;
}
@keyframes ken-burns {
  from { transform: scale(1.0) translate(0, 0); }
  to   { transform: scale(1.06) translate(-1%, -1%); }
}

.hero__logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: clamp(20px, 4vw, 80px);
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.18));
  animation: hero-breathe 9s ease-in-out infinite;
}
@keyframes hero-breathe {
  0%, 100% { transform: translateY(0)   scale(1); }
  50%      { transform: translateY(-4px) scale(1.012); }
}

/* ============================================================
   SPINNING RING (kreis.svg) — sits beside intro text
   ============================================================ */
.ring-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  pointer-events: none;
  align-self: start;
}

.ring {
  width: 100%;
  height: 100%;
  animation: spin 24s linear infinite;
  transform-origin: 50% 50%;
  filter: drop-shadow(2px 4px 0 rgba(0, 0, 0, 0.06));
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================================
   INTRO
   ============================================================ */
.intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(440px, 46vw, 820px);
  gap: clamp(24px, 3vw, 80px);
  align-items: start;
  padding: clamp(72px, 9vw, 200px) clamp(16px, 6vw, 200px) clamp(40px, 5vw, 80px);
  z-index: 2;
}

.intro__content {
  min-width: 0;
}

/* Title — left-aligned, two animated lines */
.intro__title {
  font-family: "Cooper BT", serif;
  font-weight: 700;
  font-size: clamp(28px, 2.8vw, 48px);
  line-height: 1.05;
  margin-bottom: 0.8em;
  text-transform: uppercase;
  text-align: left;
}

.intro__title-line {
  display: inline-block;
  animation: title-wobble 7s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.intro__title-line:nth-child(2) {
  animation-delay: -3.5s;
}
@keyframes title-wobble {
  0%, 100% { transform: rotate(0)         translateY(0); }
  25%      { transform: rotate(-0.6deg)   translateY(-1px); }
  50%      { transform: rotate(0.4deg)    translateY(0); }
  75%      { transform: rotate(-0.3deg)   translateY(-2px); }
}

.intro__body {
  font-family: "Cooper BT", serif;
  font-weight: 300;
  font-size: clamp(17px, 2vw, 38px);
  line-height: 1.22;
  max-width: 28ch;
}

@media (max-width: 900px) {
  .intro__body { max-width: none; }
}

/* ============================================================
   DATE SECTION — centered, sits above the features grid
   ============================================================ */
.date-section {
  text-align: center;
  padding: clamp(8px, 1.5vw, 32px) clamp(16px, 6vw, 200px) clamp(8px, 2vw, 32px);
  position: relative;
  z-index: 2;
}

.date-text {
  font-family: "Cooper BT", serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 72px);
  line-height: 1.05;
  display: inline-flex;
  flex-direction: column;
  gap: 0.1em;
  position: relative;
  text-align: center;
}

.date-text__line {
  white-space: nowrap;
}

.date-text::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.3em;
  width: 68%;
  height: 14px;
  background: var(--tuerkis);
  border-radius: 50% / 100%;
  transform: translateX(-50%) skewX(-12deg) scaleX(0);
  transform-origin: left center;
  transition: transform 1000ms cubic-bezier(.2, .7, .2, 1) 300ms;
  z-index: -1;
  opacity: 0.85;
}
.date-section.is-visible .date-text::after {
  transform: translateX(-50%) skewX(-12deg) scaleX(1);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 80px) clamp(16px, 4vw, 80px);
  padding: clamp(48px, 6vw, 120px) clamp(16px, 6vw, 200px);
  text-align: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 720px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1vw, 18px);
  /* stagger reveal — initial state */
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  transition:
    opacity 600ms cubic-bezier(.34, 1.56, .64, 1),
    transform 700ms cubic-bezier(.34, 1.56, .64, 1);
}

.features.is-visible .feature                 { opacity: 1; transform: none; transition-delay: 0ms;   }
.features.is-visible .feature:nth-child(1)    { transition-delay: 0ms;   }
.features.is-visible .feature:nth-child(2)    { transition-delay: 90ms;  }
.features.is-visible .feature:nth-child(3)    { transition-delay: 180ms; }
.features.is-visible .feature:nth-child(4)    { transition-delay: 270ms; }
.features.is-visible .feature:nth-child(5)    { transition-delay: 360ms; }
.features.is-visible .feature:nth-child(6)    { transition-delay: 450ms; }

.feature:hover {
  transform: translateY(-6px);
  transition-duration: 320ms;
}

.feature img {
  width: clamp(48px, 5vw, 88px);
  height: auto;
  transition: transform 380ms cubic-bezier(.34, 1.56, .64, 1);
  animation: feature-bob 4s ease-in-out infinite;
}
.feature:nth-child(odd)  img { animation-delay: -2s; }
.feature:nth-child(even) img { animation-delay: -0.8s; }

@keyframes feature-bob {
  0%, 100% { transform: translateY(0)   rotate(0); }
  50%      { transform: translateY(-4px) rotate(-2deg); }
}

.feature:hover img {
  transform: rotate(-10deg) scale(1.18);
  animation-play-state: paused;
}

.feature span {
  font-family: "Cooper BT", serif;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 40px);
  line-height: 1.1;
  text-wrap: balance;
}

@media (min-width: 900px) {
  .feature span { white-space: nowrap; }
}

/* ============================================================
   MARQUEE STRIP
   ============================================================ */
.marquee {
  overflow: hidden;
  border-block: 8px solid var(--tinte);
  background: var(--tuerkis);
  padding: clamp(16px, 1.6vw, 32px) 0;
  margin: clamp(24px, 4vw, 64px) calc(-1 * clamp(20px, 2.5vw, 48px));
  position: relative;
  z-index: 2;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 60px);
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
  white-space: nowrap;
}

.marquee__track > span {
  font-family: "Cooper BT", serif;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 56px);
  letter-spacing: 0.01em;
  color: var(--tinte);
}

.marquee__dot {
  font-size: clamp(16px, 2vw, 30px) !important;
  color: var(--gelb) !important;
  -webkit-text-stroke: 2px var(--tinte);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   VIDEO
   ============================================================ */
.video-section {
  position: relative;
  padding: clamp(40px, 6vw, 120px) clamp(8px, 3vw, 60px);
  z-index: 2;
}

.video-card {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  aspect-ratio: 1600 / 900;
  transform: perspective(1600px) rotate(-2.86deg);
  box-shadow: 30px 30px 0 0 var(--tuerkis);
  border-radius: 4px;
  overflow: hidden;
  isolation: isolate;
  background: #2a2418;
  transform-style: preserve-3d;
  transition: transform 400ms cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}

/* Gentle 3D float while playing — feels like the card is breathing in space */
.video-card.is-playing {
  animation: video-float 11s ease-in-out infinite alternate;
}
@keyframes video-float {
  0% {
    transform: perspective(1600px) rotate(-2.86deg)
               rotateX(0deg)   rotateY(0deg)   scale(1);
  }
  33% {
    transform: perspective(1600px) rotate(-2.86deg)
               rotateX(-4deg)  rotateY(6deg)   scale(1.012);
  }
  66% {
    transform: perspective(1600px) rotate(-2.86deg)
               rotateX(3deg)   rotateY(-5deg)  scale(1.018);
  }
  100% {
    transform: perspective(1600px) rotate(-2.86deg)
               rotateX(-2deg)  rotateY(4deg)   scale(1.008);
  }
}

.video-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #2a2418;
}

.video-card__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: opacity .4s ease;
}

.video-card__play {
  position: relative;
  width: clamp(96px, 11vw, 160px);
  height: auto;
  pointer-events: auto;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  transition: transform 240ms cubic-bezier(.2, .7, .2, 1);
  animation: pulse-play 2.6s ease-in-out infinite;
}

.video-card__play img { width: 100%; height: auto; }

.video-card__play:hover {
  transform: scale(1.12);
  animation-play-state: paused;
}
.video-card__play:active { transform: scale(0.97); }

@keyframes pulse-play {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

.video-card.is-playing .video-card__overlay {
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  text-align: center;
  padding: clamp(40px, 6vw, 120px) 16px clamp(80px, 10vw, 200px);
  position: relative;
  z-index: 2;
}

.cta__title {
  font-family: "Cooper BT", serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 80px);
  line-height: 1.05;
  margin-bottom: clamp(28px, 3vw, 64px);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(280px, 30vw, 486px);
  padding: clamp(20px, 2vw, 36px) clamp(28px, 3vw, 56px);
  background: var(--gelb);
  color: var(--tinte);
  border: 10px solid var(--tinte);
  font-family: "Cooper BT", serif;
  font-weight: 700;
  font-size: clamp(22px, 2.3vw, 40px);
  text-decoration: none;
  box-shadow: 20px 20px 0 0 var(--tuerkis);
  transition:
    transform 200ms cubic-bezier(.2, .7, .2, 1),
    box-shadow 200ms cubic-bezier(.2, .7, .2, 1),
    background 200ms ease;
  cursor: pointer;
  overflow: hidden;
}

/* Shine sweep across the button */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.6) 50%, transparent 60%);
  transform: translateX(-120%);
  pointer-events: none;
}

.btn:hover {
  transform: translate(-4px, -4px);
  box-shadow: 24px 24px 0 0 var(--tuerkis);
  background: var(--gelb-hell);
}
.btn:hover::before {
  animation: shine 700ms cubic-bezier(.2, .7, .2, 1) forwards;
}
@keyframes shine {
  from { transform: translateX(-120%); }
  to   { transform: translateX(120%);  }
}

.btn:active {
  transform: translate(8px, 8px);
  box-shadow: 8px 8px 0 0 var(--tuerkis);
}

.btn__label { position: relative; z-index: 1; }

/* ============================================================
   CURSOR TRAIL (sand specks)
   ============================================================ */
.cursor-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.cursor-dot {
  position: absolute;
  width: var(--s, 8px);
  height: var(--s, 8px);
  background: var(--c, var(--tinte));
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: cursor-fade 750ms ease-out forwards;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

@keyframes cursor-fade {
  0%   { opacity: 0.85; scale: 1;   }
  100% { opacity: 0;    scale: 0.2; translate: var(--tx, 0) var(--ty, 6px); }
}

/* ============================================================
   CONFETTI BURST
   ============================================================ */
.confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}

.confetti {
  position: absolute;
  transform: translate(-50%, -50%);
  animation: burst 900ms cubic-bezier(.2, .7, .2, 1) forwards;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes burst {
  0%   { translate: 0 0;                 rotate: 0deg;        opacity: 1; scale: 0.3; }
  20%  { scale: 1; }
  100% { translate: var(--dx) var(--dy); rotate: var(--rot);  opacity: 0; scale: 0.85; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(.2, .7, .2, 1),
              transform 800ms cubic-bezier(.2, .7, .2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ring,
  .hero__bg,
  .hero__logo,
  .intro__title-line,
  .feature img,
  .video-card__play,
  .marquee__track,
  .video-card.is-playing { animation: none !important; }
  .feature { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .intro {
    display: block;
    padding: clamp(56px, 10vw, 120px) clamp(16px, 6vw, 60px);
  }
  .ring-wrap { display: none; }
}

@media (max-width: 720px) {
  .video-card {
    transform: perspective(1200px) rotate(-1.6deg);
    box-shadow: 14px 14px 0 0 var(--tuerkis);
  }
  .video-card.is-playing { animation: video-float-mobile 9s ease-in-out infinite alternate; }
  @keyframes video-float-mobile {
    0%   { transform: perspective(1200px) rotate(-1.6deg) rotateX(0deg)  rotateY(0deg)  scale(1);     }
    50%  { transform: perspective(1200px) rotate(-1.6deg) rotateX(-3deg) rotateY(4deg)  scale(1.012); }
    100% { transform: perspective(1200px) rotate(-1.6deg) rotateX(2deg)  rotateY(-3deg) scale(1.008); }
  }
  .btn {
    border-width: 6px;
    box-shadow: 12px 12px 0 0 var(--tuerkis);
  }
  .btn:hover { box-shadow: 14px 14px 0 0 var(--tuerkis); }
  .cursor-layer { display: none; }
}

@media (max-width: 420px) {
  .features { gap: 28px 16px; }
  .feature img { width: 56px; }
  .feature span { font-size: 18px; }
  .marquee__track > span { font-size: 26px; }
}

@media (hover: none) {
  .cursor-layer { display: none; }
}
