/* =============================================
   GEHEXTOS – HAUPTSTYLESHEET
   Minimalistisches Dark-Theme mit Gold-Akzenten
   ============================================= */

/* Schriftarten */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400&family=Inter:wght@300;400&display=swap');

/* =============================================
   FARB-TOKENS & VARIABLEN
   ============================================= */
:root {
  --gold: #C9A95E;
  --gold-dark: #9c7e3a;
  --gold-glow: rgba(201, 169, 94, 0.15);
  --gold-glow-soft: rgba(201, 169, 94, 0.06);
  --bg: #000000;
  --bg-surface: #080808;
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.45);
  --text-dim: rgba(255, 255, 255, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --transition-slow: 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-med: 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================
   RESET & BASIS
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* =============================================
   CUSTOM CURSOR
   ============================================= */
.cursor {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}

.cursor-trail {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(201, 169, 94, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.18s ease;
}

/* =============================================
   HILFSFUNKTIONEN
   ============================================= */
.text-gold       { color: var(--gold); }
.text-gold-dark  { color: var(--gold-dark); }

/* Reveal-Animation beim Scrollen */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* =============================================
   AMBIENT-PARTIKEL-CANVAS (Hintergrundebene)
   ============================================= */
#ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* =============================================
   SEITENCONTAINER
   ============================================= */
.page-wrapper {
  position: relative;
  z-index: 1;
}

/* =============================================
   SECTION ALLGEMEIN
   ============================================= */
.section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 8rem 2rem;
  text-align: center;
}

.section__inner {
  max-width: 760px;
  width: 100%;
}

/* Horizontaler Trenner */
.section__line {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--gold-dark), transparent);
  margin: 0 auto 4rem;
  opacity: 0.5;
}

/* =============================================
   HERO-SECTION
   ============================================= */
.gehextos {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gehextos__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, #000, rgba(0, 0, 0, 0.85), #000);
}

/* Glüh-Ring hinter dem Titel */
.gehextos__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(300px, 60vw, 700px);
  height: clamp(300px, 60vw, 700px);
  background: radial-gradient(ellipse, rgba(201, 169, 94, 0.07) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: glowPulse 8s ease-in-out infinite;
}

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

.gehextos__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Haupttitel */
.gehextos__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Subline */
.gehextos__sub {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition-delay: 0.3s;
}

/* Scroll-Indikator */
.gehextos__scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.35;
  animation: scrollBounce 3s ease-in-out infinite;
}

.gehextos__scroll span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--gold));
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* =============================================
   VISION-SECTION
   ============================================= */
.vision__text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  line-height: 1.35;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.vision__text em {
  font-style: normal;
  color: var(--gold);
}

/* =============================================
   STATE-SECTION
   ============================================= */
.state__label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1.5rem;
  transition-delay: 0.1s;
}

.state__text {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  line-height: 2;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  transition-delay: 0.2s;
}

/* Statusindikator-Punkte */
.state__dots {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
  transition-delay: 0.35s;
}

.state__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-dark);
  opacity: 0.4;
}

.state__dot--active {
  background: var(--gold);
  opacity: 1;
  box-shadow: 0 0 8px var(--gold-glow);
  animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 8px var(--gold-glow); }
  50%       { box-shadow: 0 0 16px rgba(201, 169, 94, 0.4); }
}

/* =============================================
   TIME-SECTION
   ============================================= */
.time__year {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  position: relative;
}

.time__year::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--gold-dark);
  opacity: 0.6;
}

.time__label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 2.5rem;
  transition-delay: 0.2s;
}

/* =============================================
   FINAL-SECTION
   ============================================= */
.final {
  min-height: 80vh;
}

.final__line {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  font-style: italic;
}

.final__line em {
  font-style: normal;
  color: var(--gold);
  font-style: italic;
}

/* =============================================
   SPRACHWECHSLER
   ============================================= */
.lang-switch {
  position: fixed;
  top: 1.8rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  /* inaktiv = gold – sichtbar und klickbar wirkend */
  color: var(--gold);
  padding: 0.2rem 0.1rem;
  transition: color 0.3s ease, opacity 0.3s ease;
}

/* aktive Sprache = weiß */
.lang-btn--active {
  color: rgba(255, 255, 255, 0.85);
}

/* inaktiv beim Hover etwas heller */
.lang-btn:not(.lang-btn--active):hover {
  opacity: 0.7;
}

.lang-divider {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.25);
  user-select: none;
}

/* =============================================
   FOOTER
   ============================================= */
.footer-meta {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* "gehext" explizit weiß damit es nicht unsichtbar wird */
.footer-brand {
  color: rgba(255, 255, 255, 0.55);
}

.footer-sep {
  color: var(--border-subtle);
  user-select: none;
}

.footer-link {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--gold);
}

/* =============================================
   FEINER RASTER-OVERLAY (Textur)
   ============================================= */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 640px) {
  .section {
    padding: 6rem 1.5rem;
  }
  .vision__text {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
}
