/* ============================================
   RUHESTÖRUNG – Landing Page Styles
   Dark Brutalist Techno Event Design
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Colors */
  --c-bg: #0A0A0A;
  --c-bg-elevated: #111111;
  --c-bg-card: #141414;
  --c-white: #FFFFFF;
  --c-white-muted: rgba(255, 255, 255, 0.6);
  --c-white-subtle: rgba(255, 255, 255, 0.12);
  --c-orange: #FF6B00;
  --c-orange-light: #FF8C00;
  --c-green: #00FF66;
  --c-green-dark: #00CC44;

  /* Typography */
  --f-heading: 'Anton', sans-serif;
  --f-body: 'Inter', sans-serif;

  /* Spacing */
  --s-xs: 0.25rem;
  --s-sm: 0.5rem;
  --s-md: 1rem;
  --s-lg: 1.5rem;
  --s-xl: 2rem;
  --s-2xl: 3rem;
  --s-3xl: 4rem;
  --s-4xl: 6rem;
  --s-5xl: 8rem;

  /* Z-Index Scale */
  --z-grain: 1;
  --z-content: 10;
  --z-nav: 100;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;

  /* Navbar */
  --nav-height: 72px;
  --nav-height-compact: 56px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.landing-page {
  background: var(--c-bg);
  color: var(--c-white);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

/* --- Grain Overlay (Canvas only, no SVG tile) --- */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

/* --- Navigation --- */
.rs-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s-lg);
  transition: all var(--t-base);
  background: transparent;
}

.rs-nav.scrolled {
  height: var(--nav-height-compact);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-white-subtle);
}

.rs-nav__brand {
  font-family: var(--f-heading);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-white);
}

.rs-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  padding: 0.6rem 1.4rem;
  background: var(--c-orange);
  color: var(--c-bg);
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--t-base);
  text-decoration: none;
}

.rs-nav__cta:hover {
  background: var(--c-orange-light);
  box-shadow: 0 0 30px rgba(255, 107, 0, 0.4);
}

/* --- Hero --- */
.rs-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s-3xl) var(--s-lg);
  overflow: hidden;
}

.rs-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Abstract radial glow effects inspired by the plakat's 3D form */
.rs-hero__bg::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(255, 107, 0, 0.15) 0%,
    rgba(0, 255, 102, 0.08) 40%,
    transparent 70%
  );
  filter: blur(60px);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

.rs-hero__bg::after {
  content: '';
  position: absolute;
  top: 40%;
  left: 55%;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(0, 255, 102, 0.12) 0%,
    rgba(255, 107, 0, 0.06) 50%,
    transparent 70%
  );
  filter: blur(80px);
  animation: heroGlow 8s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

.rs-hero__content {
  position: relative;
  z-index: var(--z-content);
}

.rs-hero__presenter {
  font-family: var(--f-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-white-muted);
  margin-bottom: var(--s-2xl);
}

.rs-hero__title {
  font-family: var(--f-heading);
  font-size: clamp(2.5rem, 12vw, 14rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: var(--s-xl);
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}

.rs-hero__date {
  font-family: var(--f-heading);
  font-size: clamp(1rem, 3vw, 1.8rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-white-muted);
  margin-bottom: var(--s-2xl);
}

/* Countdown */
.rs-countdown {
  display: flex;
  justify-content: center;
  gap: var(--s-md);
  margin-bottom: var(--s-2xl);
}

.rs-countdown__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.rs-countdown__number {
  font-family: var(--f-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  color: var(--c-orange);
}

.rs-countdown__label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-white-muted);
  margin-top: var(--s-xs);
}

/* Divider bars between countdown blocks */
.rs-countdown__block + .rs-countdown__block::before {
  content: '';
  display: none;
}

.rs-countdown__divider {
  font-family: var(--f-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  color: var(--c-white-subtle);
  align-self: flex-start;
}

/* Hero CTA */
.rs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-sm);
  padding: 1rem 2.5rem;
  background: var(--c-orange);
  color: var(--c-bg);
  font-family: var(--f-body);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--t-base);
  position: relative;
  text-decoration: none;
}

.rs-btn:hover {
  background: var(--c-orange-light);
  box-shadow: 0 0 40px rgba(255, 107, 0, 0.5), 0 0 80px rgba(255, 107, 0, 0.2);
  transform: translateY(-2px);
}

.rs-btn--glow {
  animation: btnPulse 2.5s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 0, 0.3); }
  50% { box-shadow: 0 0 40px rgba(255, 107, 0, 0.6), 0 0 80px rgba(255, 107, 0, 0.2); }
}

.rs-btn--green {
  background: var(--c-green);
}

.rs-btn--green:hover {
  background: var(--c-green-dark);
  box-shadow: 0 0 40px rgba(0, 255, 102, 0.5), 0 0 80px rgba(0, 255, 102, 0.2);
}

.rs-btn--green.rs-btn--glow {
  animation: btnPulseGreen 2.5s ease-in-out infinite;
}

@keyframes btnPulseGreen {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 102, 0.3); }
  50% { box-shadow: 0 0 40px rgba(0, 255, 102, 0.6), 0 0 80px rgba(0, 255, 102, 0.2); }
}

/* Hero entrance animation (CSS, won't conflict with GSAP scroll) */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.rs-hero__content > * {
  animation: heroFadeIn 0.8s ease-out both;
}

.rs-hero__presenter { animation-delay: 0.2s; }
.rs-hero__title { animation-delay: 0.4s; }
.rs-hero__date { animation-delay: 0.6s; }
.rs-countdown { animation-delay: 0.7s; }
.rs-hero__content > .rs-btn { animation-delay: 0.8s; }

/* Scroll indicator */
.rs-hero__scroll {
  position: absolute;
  bottom: var(--s-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-sm);
  color: var(--c-white-muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: var(--z-content);
}

.rs-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--c-white-muted), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Section Base --- */
.rs-section {
  position: relative;
  z-index: var(--z-content);
  padding: var(--s-5xl) var(--s-lg);
}

.rs-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.rs-section__label {
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-orange);
  margin-bottom: var(--s-lg);
}

.rs-section__title {
  font-family: var(--f-heading);
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: var(--s-2xl);
}

/* --- Lineup --- */
.rs-lineup {
  border-top: 1px solid var(--c-white-subtle);
}

.rs-lineup__list {
  list-style: none;
}

.rs-lineup__item {
  border-bottom: 1px solid var(--c-white-subtle);
  transition: all var(--t-base);
}

.rs-lineup__item:hover {
  background: var(--c-bg-elevated);
  border-color: var(--c-white-subtle);
}

.rs-lineup__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-xl) 0;
  cursor: default;
}

.rs-lineup__name {
  font-family: var(--f-heading);
  font-size: clamp(2.5rem, 7vw, 5rem);
  text-transform: uppercase;
  line-height: 1;
  color: var(--c-white);
  transition: color var(--t-base);
}

.rs-lineup__item:nth-child(odd):hover .rs-lineup__name {
  color: var(--c-orange);
}

.rs-lineup__item:nth-child(even):hover .rs-lineup__name {
  color: var(--c-green);
}

.rs-lineup__tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-white-muted);
  transition: color var(--t-base);
}

.rs-lineup__item:nth-child(odd):hover .rs-lineup__tag {
  color: var(--c-orange);
}

.rs-lineup__item:nth-child(even):hover .rs-lineup__tag {
  color: var(--c-green);
}

/* --- Info Grid --- */
.rs-info__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--c-white-subtle);
  border: 1px solid var(--c-white-subtle);
}

.rs-info__cell {
  background: var(--c-bg);
  padding: var(--s-2xl);
  transition: background var(--t-base);
}

.rs-info__cell:hover {
  background: var(--c-bg-elevated);
}

.rs-info__cell-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-orange);
  margin-bottom: var(--s-sm);
}

.rs-info__cell-value {
  font-family: var(--f-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* --- Location --- */
.rs-location__address {
  font-size: 1rem;
  color: var(--c-white-muted);
  letter-spacing: 0.05em;
  margin-bottom: var(--s-sm);
}

.rs-location__map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--c-white-subtle);
  overflow: hidden;
  margin-top: var(--s-xl);
}

.rs-location__map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(1) contrast(1.1) brightness(0.6);
  transition: filter var(--t-slow);
}

.rs-location__map-wrap:hover iframe {
  filter: grayscale(0.5) invert(1) contrast(1) brightness(0.7);
}

/* --- Final CTA --- */
.rs-cta {
  text-align: center;
  padding: var(--s-5xl) var(--s-lg);
  position: relative;
}

.rs-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(255, 107, 0, 0.08) 0%,
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
}

.rs-cta__title {
  font-family: var(--f-heading);
  font-size: clamp(2.5rem, 8vw, 6rem);
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: var(--s-md);
  position: relative;
  z-index: 1;
}

.rs-cta__sub {
  font-size: 1rem;
  color: var(--c-white-muted);
  margin-bottom: var(--s-2xl);
  position: relative;
  z-index: 1;
}

.rs-cta .rs-btn {
  position: relative;
  z-index: 1;
}

/* --- Footer --- */
.rs-footer {
  border-top: 1px solid var(--c-white-subtle);
  padding: var(--s-2xl) var(--s-lg);
  position: relative;
  z-index: var(--z-content);
}

.rs-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-md);
}

.rs-footer__brand {
  font-family: var(--f-heading);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rs-footer__links {
  display: flex;
  gap: var(--s-lg);
  list-style: none;
}

.rs-footer__links a {
  font-size: 0.8rem;
  color: var(--c-white-muted);
  letter-spacing: 0.05em;
  transition: color var(--t-fast);
  cursor: pointer;
}

.rs-footer__links a:hover {
  color: var(--c-white);
}

.rs-footer__copy {
  width: 100%;
  text-align: center;
  margin-top: var(--s-lg);
  padding-top: var(--s-lg);
  border-top: 1px solid var(--c-white-subtle);
  font-size: 0.7rem;
  color: var(--c-white-muted);
  letter-spacing: 0.05em;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Geometric Accents --- */
.rs-geo {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.rs-geo--cross {
  width: 20px;
  height: 20px;
}

.rs-geo--cross::before,
.rs-geo--cross::after {
  content: '';
  position: absolute;
  background: var(--c-white-subtle);
}

.rs-geo--cross::before {
  width: 100%;
  height: 1px;
  top: 50%;
}

.rs-geo--cross::after {
  width: 1px;
  height: 100%;
  left: 50%;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* --- Responsive --- */

/* Mobile (default) */
@media (max-width: 767px) {
  .rs-nav {
    padding: 0 var(--s-md);
  }

  .rs-hero {
    padding: var(--s-3xl) var(--s-md);
  }

  .rs-countdown {
    gap: var(--s-sm);
  }

  .rs-countdown__block {
    min-width: 55px;
  }

  .rs-countdown__divider {
    font-size: 1.5rem;
  }

  .rs-section {
    padding: var(--s-3xl) var(--s-md);
  }

  .rs-info__grid {
    grid-template-columns: 1fr;
  }

  .rs-info__cell {
    padding: var(--s-lg);
  }

  .rs-lineup__link {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-xs);
    padding: var(--s-lg) 0;
  }

  .rs-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .rs-footer__links {
    justify-content: center;
  }

  .rs-location__map-wrap {
    aspect-ratio: 4 / 3;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .rs-hero__title {
    font-size: clamp(4rem, 14vw, 8rem);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .rs-nav {
    padding: 0 var(--s-2xl);
  }

  .rs-section {
    padding: var(--s-5xl) var(--s-2xl);
  }

  .rs-lineup__link {
    padding: var(--s-xl) var(--s-lg);
  }
}

/* Large Desktop */
@media (min-width: 1440px) {
  .rs-hero__title {
    font-size: 14rem;
  }
}
