:root {
  --sun: #ffb400;
  --bg-gradient-dark: linear-gradient(-45deg, #000000, #0a0a0a, #1a1400, #000000);
  --bg-gradient-light: linear-gradient(-45deg, #ffffff, #fff4d1, #ffffff, #fff4d1);
  --text-dark: #ffb400;
  --text-light: #111111;
  --nav-bg-dark: #000000;
  --nav-bg-light: #ffffff;
}


/* =========================
   PROGRESS LINE (COFTS)
========================= */
.progress-section{
  width: 90%;
  max-width: 900px;
  margin: 40px auto 0;
  position: relative;
  text-align: center;
  z-index: 5;
}

.progress-line{
  width: 100%;
  height: 4px;
  background-color: var(--sun);
  border-radius: 999px;
  position: relative;
  margin-top: 22px;
  opacity: 0.9;
}

.progress-marker{
  position: absolute;
  left: 40%;
  top: -18px;
  width: 3px;
  height: 42px;
  background: #ffffff;
  transform: translateX(-50%);
}


.progress-percent{
  position: absolute;
  left: 40%;
  top: -5px;                 /* steuert wie "hoch" es wirkt */
  transform: translate(-50%, -100%); /* perfektes Zentrieren über Marker */
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  color: #ffffff;
  line-height: 1;
}


.progress-text{
  margin-top: 18px;
  letter-spacing: 3px;
  font-size: 13px;
  color: #ffffff;
  opacity: 0.85;
}

/* Light Mode anpassen */
body.light-mode .progress-percent,
body.light-mode .progress-text {
  color: var(--text-light);
}
body.light-mode .progress-marker {
  background: var(--text-light);
}

/* GLOBAL */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg-gradient-dark);
  background-size: 400% 400%;
  animation: gradientMove 14s ease infinite;
  color: var(--text-dark);
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.8s ease, background 0.5s ease;
}

body.loaded { opacity: 1; }
body.light-mode { background: var(--bg-gradient-light); color: var(--text-light); }

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* HAMBURGER */
.hamburger {
  width: 32px;
  height: 22px;
  cursor: pointer;
  position: relative;
}
.hamburger span {
  position: absolute;
  width: 100%;
  height: 3px;
  background: var(--sun);
  transition: 0.35s ease;
  border-radius: 2px;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* THEME TOGGLE */
.theme-toggle { cursor: pointer; }
.toggle-track {
  width: 60px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease;
}
body.light-mode .toggle-track {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.15);
}
.toggle-track .sun { font-size: 14px; color: #ffb400; opacity: 0.9; }
.toggle-track .moon { font-size: 14px; color: #ffffff; opacity: 0.9; margin-left: 8px; }
body.light-mode .moon { color: #111111; }
.toggle-thumb {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  top: 2px;
  left: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: transform 0.25s ease;
}
body.light-mode .toggle-thumb { transform: translateX(43px); }

/* SIDE NAV */
.side-nav {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100vh;
  background: var(--nav-bg-dark);
  padding: 120px 40px;
  transition: left 0.4s cubic-bezier(.25,.46,.45,1), opacity 0.3s ease;
  z-index: 999;
  border-right: 1px solid rgba(255,180,0,0.15);
  opacity: 0;
}
body.light-mode .side-nav {
  background: var(--nav-bg-light);
  border-right: 1px solid rgba(0,0,0,0.08);
}
.side-nav.open { left: 0; opacity: 1; }
.side-nav a {
  display: block;
  color: var(--sun);
  text-decoration: none;
  font-size: 1.3rem;
  margin: 22px 0;
  letter-spacing: 1px;
  transition: 0.2s ease;
}
.side-nav a:hover { opacity: 0.6; }

/* SECTIONS */
.section {
  display: none;
  height: 100vh;
  width: 100%;
  padding: 120px 20px 40px;
  box-sizing: border-box;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.section.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* TITLES */
.section h1 {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 4px;
  margin-bottom: 25px;
  text-transform: uppercase;
  color: var(--sun) !important;
}

/* HOME LOGOS + Lade-Animationen */
.logo-main {
  width: 380px;
  max-width: 80vw;
  transition: transform 0.1s linear;
  opacity: 0;
  transform: translateY(20px);
}
body.loaded .logo-main {
  animation: homeFadeIn 0.9s ease forwards;
}
.logo-sub {
  width: 180px;
  max-width: 50vw;
  margin-top: -5px;
  opacity: 0;
  transform: translateY(20px);
}
body.loaded .logo-sub {
  animation: homeFadeIn 0.9s ease 0.15s forwards;
}
#home h1 {
  margin-top: -50px;
  font-weight: 300;
  letter-spacing: 8px;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(20px);
  color: var(--sun);
}
body.loaded #home h1 {
  animation: homeFadeInSubtitle 0.9s ease 0.3s forwards;
}
#home .vote-btn {
  opacity: 0;
  transform: translateY(20px);
}
body.loaded #home .vote-btn {
  animation: homeFadeIn 0.9s ease 0.45s forwards;
}
#home .progress-section {
  opacity: 0;
  transform: translateY(20px);
}
body.loaded #home .progress-section {
  animation: homeFadeIn 0.9s ease 0.6s forwards;
}
@keyframes homeFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes homeFadeInSubtitle {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 0.8;
    transform: translateY(0);
  }
}

/* ABOUT TEXT */
.about-text {
  max-width: 650px;
  line-height: 1.7;
  font-weight: 300;
  font-size: 1.15rem;
  text-align: center;
  color: var(--sun) !important;
}

/* SOCIAL ICONS */
.social-icons img {
  width: 70px;
  opacity: 0.85;
  transition: 0.25s ease;
  cursor: pointer;
}
.social-icons img:hover {
  opacity: 1;
  transform: scale(1.12);
}

/* BUTTON */
.vote-btn {
  background: transparent;
  border: 2px solid var(--sun);
  color: var(--sun);
  padding: 12px 26px;
  font-size: 1.1rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: 0.3s ease;
  margin: 10px;
  border-radius: 10px;
}
.vote-btn:hover {
  background: var(--sun);
  color: #000;
}

/* VOTE POPUP */
#voteOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(20px);
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.4s ease forwards;
}
body.light-mode #voteOverlay { background: rgba(255,255,255,0.7); }

#votePopup {
  width: 90%;
  height: 85%;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,180,0,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  backdrop-filter: blur(25px);
  border-radius: 24px;
  padding: 50px 30px;
  color: var(--sun);
  text-align: center;
  transform: scale(0.92);
  opacity: 0;
  animation: popupIn 0.45s ease forwards;
  overflow-y: auto;
}
body.light-mode #votePopup {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  color: var(--text-light);
}

@keyframes popupIn {
  0% { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* CATEGORY BUTTONS */
.category-btn {
  background: rgba(255,180,0,0.1);
  border: 2px solid rgba(255,180,0,0.6);
  padding: 16px 40px;
  font-size: 1.3rem;
  letter-spacing: 3px;
  color: var(--sun);
  cursor: pointer;
  margin: 15px;
  border-radius: 12px;
  transition: 0.3s ease;
  animation: slideUp 0.5s ease forwards;
  font-weight: 600;
}
.category-btn:hover {
  background: rgba(255,180,0,0.25);
  box-shadow: 0 0 20px rgba(255,180,0,0.5);
  transform: translateY(-3px);
}
body.light-mode .category-btn {
  color: var(--text-light);
  border-color: rgba(0,0,0,0.3);
  background: rgba(0,0,0,0.05);
}
body.light-mode .category-btn:hover {
  background: rgba(0,0,0,0.1);
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
}
@keyframes slideUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* IMAGE GRID */
#voteGrid {
  display: none;
  margin-top: 40px;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
}
.vote-item {
  position: relative;
  width: 240px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}
.vote-item-inner {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255,180,0,0.2);
  border-radius: 16px;
  padding: 15px;
  backdrop-filter: blur(15px);
  transition: 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
body.light-mode .vote-item-inner {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.vote-item-inner:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(255,180,0,0.3);
  border-color: rgba(255,180,0,0.5);
}
body.light-mode .vote-item-inner:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.vote-item-inner.selected {
  border-color: var(--sun);
  border-width: 3px;
  box-shadow: 0 0 30px rgba(255,180,0,0.6);
  background: rgba(255,180,0,0.15);
}
body.light-mode .vote-item-inner.selected {
  border-color: #ffb400;
  box-shadow: 0 0 30px rgba(255,180,0,0.4);
  background: rgba(255,180,0,0.1);
}
.vote-img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  border-radius: 10px;
  background: transparent;
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* BACK + SEND */
#backBtn, #sendBtn {
  display: none;
  margin-top: 30px;
  padding: 14px 35px;
  font-size: 1.15rem;
  border-radius: 12px;
  font-weight: 600;
}
#selectedCount {
  margin-top: 25px;
  font-size: 1.5rem;
  letter-spacing: 3px;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(255,180,0,0.5);
}
body.light-mode #selectedCount { color: var(--text-light); text-shadow: none; }

/* EARLY ACCESS POPUP */
#earlyOverlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(20px);
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2600;
  animation: fadeIn 0.4s ease forwards;
}
body.light-mode #earlyOverlay { background: rgba(255,255,255,0.7); }

#earlyPopup {
  width: 92%;
  max-width: 720px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,180,0,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  backdrop-filter: blur(25px);
  border-radius: 24px;
  padding: 40px 26px;
  color: var(--sun);
  text-align: center;
  transform: scale(0.92);
  opacity: 0;
  animation: popupIn 0.45s ease forwards;
}
body.light-mode #earlyPopup {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  color: var(--text-light);
}
#earlyTitle {
  margin: 0 0 10px;
  letter-spacing: 3px;
  font-size: 1.8rem;
  text-transform: uppercase;
}
.earlyText {
  max-width: 560px;
  margin: 0 auto 22px;
  line-height: 1.6;
  opacity: 0.9;
}
#earlyForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
#earlyForm input {
  width: min(520px, 92%);
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,180,0,0.25);
  background: rgba(255,255,255,0.06);
  color: var(--sun);
  outline: none;
  font-size: 1rem;
}
body.light-mode #earlyForm input {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.12);
  color: var(--text-light);
}
#earlyForm input::placeholder { opacity: 0.75; }
#website { display: none; }

.earlyBtns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
#earlyMsg {
  margin-top: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  min-height: 24px;
}

/* Erfolgs-Anzeige Early Access */
#earlyPopup.early-success #earlyForm {
  display: none;
}
#earlyPopup.early-success #earlyMsg {
  display: block !important;
  font-size: 1.4rem;
  letter-spacing: 3px;
  margin-top: 20px;
  padding: 20px;
  color: var(--sun);
  text-shadow: 0 0 20px rgba(255,180,0,0.5);
}
body.light-mode #earlyPopup.early-success #earlyMsg {
  color: var(--text-light);
  text-shadow: none;
}

/* MOBILE */
@media (max-width: 768px) {
  .logo-main { width: 260px; }
  .logo-sub { width: 140px; }
  #home h1 { margin-top: -30px; font-size: 0.9rem; }
  .section h1 { font-size: 1.8rem; }

  #votePopup {
    width: 95%;
    height: 90%;
    padding: 30px 20px;
  }

  .vote-item { width: 42vw; }
  .vote-img { height: 240px; }

  .category-btn {
    padding: 12px 28px;
    font-size: 1.1rem;
  }

  #earlyPopup { padding: 30px 18px; }


  
  
}
