/* ===== Base ===== */
:root {
  /* wenn deine Navbar fixed ist: Höhe hier anpassen */
  --navbar-height: 72px;
  --c1: #C8A46A;
  --c2: #D8BD79;
  --c3: #0E0B0A;
  --txt: #EDE6D8;
  --mut: #CDBFA6;
}

/* ===== Hero: BG bleibt, Content wächst ===== */
#hero {
  position: relative;
  min-height: 100vh;
  /* Start: volle Höhe */
  height: auto;
  /* wächst mit Content */
  overflow: hidden;
}

/* BG bleibt absolut */
.parallax-layer.bg {
  position: absolute;
  inset: 0;
  transform: translateZ(-200px) scale(1.2);
  will-change: transform;
  z-index: 0;
}

.parallax-layer.bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Canvas über BG, unter Content */
#sand-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* FG JETZT RELATIVE → lässt #hero mitwachsen */
.parallax-layer.fg {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: calc(var(--navbar-height) + 12px);
  /* nicht unter die Nav rutschen */
  padding-bottom: 32px;
}

/* Logo + Countdown */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(.6)
  }

  to {
    opacity: 1;
    transform: scale(1)
  }
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 22px
}

#logo {
  width: 45vmin;
  opacity: 0;
  transform: scale(.6);
  animation: fadeInScale 1.2s ease-out .4s forwards
}

#countdown {
  display: flex;
  gap: 1rem;
  margin-top: .5rem
}

.time-block {
  background: rgba(0, 0, 0, .6);
  padding: 1rem .6rem;
  border-radius: .6rem;
  min-width: 4.5rem;
  text-align: center
}

.time-block .num {
  font-family: monospace;
  font-size: 3rem;
  line-height: 1;
  color: #ffdd7a
}

.time-block .label {
  font-size: .75rem;
  color: #fff;
  margin-top: .25rem
}

@media (max-width: 860px) {
  .hero-content {
    flex-direction: column;
    gap: 1rem
  }

  #logo {
    width: min(56vmin, 380px)
  }
}

/* ===== Stack unterhalb des Logos ===== */
.ena-stack {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Glas-Panels */
.glass {
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .45));
  border: 1px solid rgba(96, 170, 255, .18);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  backdrop-filter: blur(6px);
  padding: 16px;
}

/* Headings */
.ena-heading {
  font-family: 'Stoneage', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-align: center;
  margin: 0 0 8px;
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3));
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 14px rgba(96, 170, 255, .35);
}

.ena-subheading {
  font-family: 'Stoneage', sans-serif;
  color: #e7f0ff;
  letter-spacing: .4px;
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
}

/* Story */
.story .ena-story {
  color: #cfe0ff;
  line-height: 1.5;
  margin: .3rem 0
}

.story.collapsed .ena-story:nth-of-type(n+2) {
  display: none
}

.ena-btn.ghost {
  margin-top: 8px;
  background: rgba(255, 255, 255, .08);
  color: #e7f0ff;
  border: 1px solid rgba(96, 170, 255, .25);
  padding: .55rem .9rem;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

/* ===== Rails (Klassen & Roadmap) ===== */
.rail {
  position: relative;
  padding: 5%;
}

.rail-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding: 8px 0;
  border-radius: 12px;
}

.rail-viewport::-webkit-scrollbar {
  height: 8px
}

.rail-viewport::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--c3), var(--c2));
  border-radius: 999px
}

.rail-viewport::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .08);
  border-radius: 999px
}

.rail-track {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin: 0 44px;
}

/* Cards */
.class-card {
  flex: 0 0 clamp(260px, 36vw, 340px);
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(96, 170, 255, .18);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: inset 0 0 40px rgba(96, 170, 255, .05);
  transform: translateY(6px);
  opacity: 0;
  /* wird per JS revealed */
}

.class-art {
  width: 110px;
  height: 110px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 12px rgba(96, 170, 255, .25)
}

.class-info h4 {
  color: #e7f0ff;
  margin: 0 0 4px
}

.class-info p {
  color: #b9c9ff;
  margin: 0
}

/* Nav-Pfeile */
.rail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--c3), var(--c2));
  color: #001530;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(101, 42, 117, .35);
  z-index: 2
}

.rail-nav.prev {
  left: 6px
}

.rail-nav.next {
  right: 6px
}

.rail-nav:disabled {
  opacity: .5;
  filter: grayscale(1) brightness(.9);
  cursor: default
}

/* Roadmap Chips */
.roadmap-track {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px
}

.road-chip {
  flex: 0 0 clamp(220px, 30vw, 320px);
  scroll-snap-align: start;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(96, 170, 255, .18);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 4px
}

.road-chip .when {
  color: #cfe0ff;
  font-weight: 900
}

.road-chip .what {
  color: #b9c9ff
}

/* Fallback falls GSAP aus ist */
.revealed {
  opacity: 1 !important;
  transform: none !important
}

/* Mobile Tweaks */
@media (max-width:580px) {
  .class-card {
    grid-template-columns: 90px 1fr
  }

  .class-art {
    width: 90px;
    height: 90px
  }
  .rail {
  position: relative;
  padding: 15%;
}
}


.classes {
  text-align: center;
  padding: 3rem 2rem;
}

.class-tabs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.class-tab-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.tab-btn:hover,
.tab-btn.active {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255,255,255,0.4);
}

.class-tab-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  perspective: 1000px;
}

.class-panel {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: all 0.6s ease;
  pointer-events: none;
  position: absolute;
  inset: 0;
}
.class-panel.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
  position: relative;
}

.class-large-img {
  max-height: 800px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.class-text {
  margin-top: 1.5rem;
}
.class-text h4 {
  font-size: 1.6rem;
  letter-spacing: 0.05em;
}
.class-text p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 650px;
  margin: 0.5rem auto;
}

@media (max-width: 700px) {
  .class-large-img { max-height: 300px; }
  .tab-btn { font-size: 0.9rem; padding: 0.5rem 1rem; }
}
