/* --- Variables & Tokens --- */
:root[data-theme="light"] {
  /* Background Layer */
  --bg: #e6e6e6;
  --bg-l3: #dddddd;
  /* Text */
  --text-main: #000000;
  --text-muted: hsl(0, 0%, 10%);
  /* Glass */
  --card-bg: rgba(255, 255, 255, 0.25);
  --card-border: rgba(255, 255, 255, 0.75);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  --dropdown-bg: #ffffff;
  --dropdown-hover: #f1f5f9;
  /* Scrolllbar */
  --sb-thumb-color: hsl(0, 0%, 65%);
  --sb-thumb-hover: hsl(0, 0%, 55%);
}

/* Explicit Dark Theme Variables */
:root[data-theme="dark"] {
  /* Background Layer */
  --bg: #0f172a;
  --bg-l3: #334155;
  /* Text */
  --text-main: #ffffff;
  --text-muted: hsl(0, 0%, 90%);
  /* Glass */
  --card-bg: rgba(15, 23, 42, 0.6);
  --card-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --dropdown-bg: #1e293b;
  --dropdown-hover: #334155;
  /* Scrolllbar */
  --sb-thumb-color: hsl(0, 0%, 30%);
  --sb-thumb-hover: hsl(0, 0%, 20%);
}

/* Common Variables */
:root {
  /* Scrolllbar */
  --sb-width: 0.5vw;
  --sb-track-color: transparent;
  --accent-glow: 120deg;
  /* Brand Colors */
  --brand: #cc33cc;
  --brand-gradient: linear-gradient(135deg, #cc33cc 0%, #ed1c65 100%);
  --error-color: #ff4b4b;
  --success-color: #10b981;
  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
}

/* --- Reset & Base --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

*::selection {
  background: var(--brand);
  color: white;
}

/* Scrollbar */
/* width */
::-webkit-scrollbar {
  width: var(--sb-width);
}
  
/* Track */
::-webkit-scrollbar-track {
  background: none;
}
  
/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
}
  
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--sb-thumb-hover);
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
  transition: all .5s ease;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
}

/* --- Animated Background (Aurora) --- */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
  transition: background .5s ease;
}

.blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s infinite alternate;
  border-radius: 50%;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, #cc33cc 0%, transparent 70%);
  animation-delay: 0s;
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, #ed1c65 0%, transparent 70%);
  animation-delay: -5s;
}

.blob-3 {
  top: 40%;
  left: 40%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, #4f46e5 0%, transparent 70%);
  animation-delay: -10s;
  opacity: 0.4;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 50px) scale(1.1); }
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.glass-panel {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  transition: all .5s ease;
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: all .5s ease;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--card-border);
  border-bottom-color: var(--brand);
  border-radius: 50%;
  animation: rotation 1s linear infinite;
  transition: all .5s ease;
}

@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Header --- */
header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
  transition: all .5s ease;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  width: 192px;
  height: auto;
}

/* --- Theme Switcher --- */
.switch {
  display: inline-block;
  position: relative;
  width: 3em;
  height: 1.75em;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--card-bg);
  transition: .4s;
  border-radius: 30px;
  border: 1px solid var(--card-border);
  transition: all .5s ease;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.1em;
  width: 1.1em;
  border-radius: 50%;
  left: 0.4em;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(40deg,#ff0080,#ff8c00 70%);
  transition: .4s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background-color: var(--bg-mod-alt);
  transition: all .5s ease;
}

input:checked + .slider:before {
  left: calc(100% - (1.1em + 0.4em));
  background: transparent;
  box-shadow: inset -2px -2px 0 -1.5px #8983f7, inset -6px -3px 0 0 #a3dafb;
}

/* --- Language Dropdown --- */
.lang-dropdown {
  position: relative;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 0 16px;
  height: 44px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all .5s ease;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  background: var(--dropdown-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 8px;
  min-width: 120px;
  box-shadow: var(--glass-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all .5s ease;
  z-index: 101;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--text-main);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  transition: all .5s;
}

.dropdown-item:hover {
  background: var(--dropdown-hover);
}

.dropdown-item.active {
  color: var(--brand);
  background: rgba(204, 51, 204, 0.1);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: calc(var(--header-height) + 15px);
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(204, 51, 204, 0.1);
  border: 1px solid rgba(204, 51, 204, 0.2);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 24px;
  animation: slideDown 0.8s ease-out;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 24px;
  letter-spacing: -2px;
  animation: slideUp 0.8s ease-out 0.2s backwards;
}

.hero-title span {
  background: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 48px;
  text-wrap: balance;
  transition: all .5s ease;
  animation: slideUp 0.8s ease-out 0.4s backwards;
}

/* --- Countdown --- */
.countdown-grid {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
  animation: slideUp 0.8s ease-out 0.6s backwards;
  flex-wrap: wrap;
  justify-content: center;
}

.count-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 110px; 
  min-width: 110px;
  flex-shrink: 0;
  height: 110px;
}

.count-number {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  line-height: 1;
  margin-bottom: 4px;
}

.count-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  transition: color .5s ease;
}

/* --- Notify Form --- */
.notify-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 100px;
  animation: slideUp 0.8s ease-out 0.8s backwards;
}

.notify-form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 512px;
}

.notify-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 6px;
  border-radius: 50px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  transition: all .5s ease;
  margin-bottom: 15px;
}

.notify-input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
}

.notify-btn {
  padding: 12px 28px;
  border-radius: 40px;
  border: none;
  background: var(--brand-gradient);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.notify-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(118, 75, 162, 0.5); }
.notify-btn.loading { opacity: 0.7; pointer-events: none; }

/* --- Legal Text Style --- */
.legal-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0 15px;
  line-height: 1.4;
  opacity: 0.8;
  text-wrap: balance;
  transition: all .5s ease;
}

.legal-text a {
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-muted);
  transition: all .5s ease;
}

.legal-text a:hover {
  color: var(--brand);
}

/* --- Toast Notifications --- */
#toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 128px;
  max-width: 576px;
  background: var(--bg-l3);
  color: var(--text-main);
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  border-left: 5px solid;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  animation: slideDownFade 0.5s ease forwards;
  font-size: 0.95rem;
}

.toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast.success { border-left-color: var(--success-color); }
.toast.error { border-left-color: var(--error-color); }

@keyframes slideDownFade {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.9); }
}

/* --- Honeypot --- */
.hp-field { opacity: 0; position: absolute; top: 0; left: 0; height: 0; width: 0; z-index: -1; }

/* --- Roadmap Section --- */
.roadmap-section {
  padding: 80px 0;
  position: relative;
}

.roadmap-container {
  max-width: 800px;
  margin: 0 auto;
}

.roadmap-header {
  text-align: center;
  margin-bottom: 50px;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3rem;     
  bottom: 3rem;  
  width: 2px;
  background: linear-gradient(to bottom, var(--brand), rgba(204, 51, 204, 0.2));
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
  display: flex; 
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -35px;
  top: 50%; 
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text-muted);
  z-index: 2;
  transition: all .5s;
}

.timeline-item.done .timeline-marker {
  background: var(--brand); 
  border-color: var(--brand);
  box-shadow: 0 0 10px var(--brand);
}

.timeline-item.active .timeline-marker {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 15px var(--brand);
  animation: pulse 1.5s infinite;
}

.timeline-content {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.timeline-item:hover .timeline-content {
  transform: translateX(5px);
}

.timeline-icon {
  font-size: 1.4rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--card-border);
  border-radius: 12px;
  flex-shrink: 0;
  transition: all .5s ease;
}

.timeline-item.done .timeline-icon { 
  color: var(--success-color); 
  background: rgba(16, 185, 129, 0.1); 
}

.timeline-item.active .timeline-icon { 
  color: var(--brand); 
  background: rgba(204, 51, 204, 0.1); 
}

.timeline-item.final .timeline-icon { 
  color: #ed1c65; 
  background: rgba(237, 28, 101, 0.1); 
}

.timeline-text {
  flex: 1;
}

.roadmap-title {
  font-size: 1.05rem;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
  transition: color .5s ease;
}

.launch-date {
  font-size: 0.75rem;
  background: var(--brand-gradient);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

/* --- LAUNCH MESSAGE STYLES --- */
.launch-container {
  text-align: center;
  grid-column: 1 / -1;
  padding: 30px;
  animation: fadeInUp 1s ease;
}

.launch-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Animationen */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(204, 51, 204, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(204, 51, 204, 0); }
  100% { box-shadow: 0 0 0 0 rgba(204, 51, 204, 0); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(204, 51, 204, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(204, 51, 204, 0); }
  100% { box-shadow: 0 0 0 0 rgba(204, 51, 204, 0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Footer --- */
.site-footer {
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--card-border);
  font-size: 0.9rem;
  background: var(--card-bg);
  transition: all .5s ease;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.social-links a {
  color: var(--text-main);
  font-size: 1.2rem;
  transition: color .5s;
}

.social-links a:hover {
  color: var(--brand);
}

.legal-link {
  color: var(--text-muted);
  font-size: 1em;
  text-decoration: none;
  margin: 0 10px;
}

/* --- MOBILE READY OVERRIDES --- */

/* Tablet & Mobile (unter 992px) */
@media (max-width: 992px) {
  :root {
    --container-width: 100%; /* Volle Breite nutzen */
  }
  
  .hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Titel etwas kleiner skalieren */
  }
}

/* Mobile Standard (unter 768px) */
@media (max-width: 768px) {
  /* Header Optimierung: Platz sparen */
  .nav-inner {
    padding: 0 15px; /* Weniger Randabstand */
  }

  .logo {
    width: 140px; /* Logo kleiner machen, damit Buttons Platz haben */
  }

  .lang-btn {
    padding: 0 10px; /* Button kompakter */
  }

  .hero {
    padding-top: calc(var(--header-height) + 20px);
  }

  /* Countdown: Sauberer 2x2 Grid statt Flex-Chaos */
  .countdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Spalten */
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Begrenzen, damit es nicht zu breit wird */
    margin-left: auto;
    margin-right: auto;
  }

  .count-item {
    width: 100%; /* Volle Breite der Grid-Zelle */
    min-width: auto; /* Min-Width entfernen */
    height: 90px; /* Etwas flacher */
  }

  .count-number {
    font-size: 1.8rem;
  }

  /* Notify Formular: Untereinander statt nebeneinander */
  .notify-form-wrapper {
    width: 100%;
    padding: 0 15px;
  }

  .notify-form {
    flex-direction: column; /* Input oben, Button unten */
    padding: 8px;
    border-radius: 24px; /* Radius anpassen */
    gap: 10px;
  }

  .notify-input {
    width: 100%;
    text-align: center; /* Text zentrieren sieht auf Mobile oft besser aus */
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Visuelle Trennung */
  }

  .notify-btn {
    width: 100%; /* Button über volle Breite */
    padding: 14px 0; /* Großes Touch-Target */
  }

  /* Roadmap Anpassungen */
  .roadmap-section {
    padding: 50px 0;
  }
  
  .timeline-content {
    flex-direction: column; /* Icon oben, Text unten */
    align-items: flex-start;
    text-align: left;
    padding: 20px;
  }

  .timeline-icon {
    margin-bottom: 10px;
  }

  .timeline::before {
    top: 5.5rem;
    bottom: 7.5rem;
  }
  
  .roadmap-title {
    flex-direction: row; /* Titel und Datum nebeneinander lassen wenn möglich */
    justify-content: space-between;
    width: 100%;
    align-items: center;
  }
  
  /* Falls der Titel zu lang ist, Datum umbrechen */
  .roadmap-title {
    flex-wrap: wrap;
    gap: 5px;
  }
}

/* Small Mobile (unter 380px - z.B. iPhone SE) */
@media (max-width: 380px) {
  .logo {
    width: 120px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 40px);
  }
  
  .hero-title {
    font-size: 1.8rem; /* Noch etwas kleiner für sehr schmale Displays */
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }

  /* Countdown noch kompakter */
  .countdown-grid {
    gap: 10px;
  }
  
  .count-number {
    font-size: 1.5rem;
  }
}