/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  color: #2c3e50;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(52, 152, 219, 0.1);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 20px;
}

.nav-brand .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3498db;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand .logo i {
  font-size: 1.25rem;
  color: #2980b9;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: rgba(52, 152, 219, 0.08);
  color: #1f5f8b;
}

/* Icons in Top-Navbar erben Linkfarbe */
.nav-link i {
  color: inherit;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.welcome-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 800px;
  width: 100%;
  text-align: center;
}

.welcome-icon {
  font-size: 4rem;
  color: #3498db;
  margin-bottom: 1.5rem;
}

.welcome-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.welcome-description {
  font-size: 0.8rem;
  color: #7f8c8d;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  text-align: left;
}

/* ===== QUIZ PHASES ===== */
.quiz-phases {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.phase-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  padding: 1.5rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.phase-card.active {
  border-color: #3498db;
  background: rgba(52, 152, 219, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(52, 152, 219, 0.15);
}

.phase-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Ensure active phase cards show pointer cursor */
.phase-card.active {
  cursor: pointer !important;
}

.phase-card:hover:not(.disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.phase-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.phase-icon {
  font-size: 2rem;
  color: #3498db;
  width: 60px;
  height: 60px;
  background: rgba(52, 152, 219, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phase-info {
  flex: 1;
  text-align: left;
}

.phase-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.phase-info p {
  color: #7f8c8d;
  font-size: 0.85rem;
}

.phase-status {
  text-align: right;
}

.status-badge {
  background: #27ae60;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-badge.locked {
  background: #e74c3c;
}

.phase-details ul {
  list-style: none;
  text-align: left;
}

.phase-details li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  color: #7f8c8d;
  font-size: 0.9rem;
}

.phase-details li i {
  color: #3498db;
  width: 16px;
}

/* ===== START BUTTON ===== */
.start-section {
  margin-bottom: 2rem;
}

.start-btn {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

.start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(52, 152, 219, 0.4);
  background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
}

.start-btn:active {
  transform: translateY(0);
}

.pixelify-font {
  font-family: "Pixelify Sans", sans-serif;
}

/* ===== INSTRUCTIONS ===== */
.instructions {
  background: rgba(52, 152, 219, 0.05);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: left;
  border-left: 4px solid #3498db;
}

.instructions h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.instructions h3 i {
  color: #3498db;
}

.instructions ul {
  list-style: none;
}

.instructions li {
  margin-bottom: 0.5rem;
  color: #7f8c8d;
  font-size: 0.9rem;
  position: relative;
  padding-left: 1.5rem;
}

.instructions li::before {
  content: "•";
  color: #3498db;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 2rem 0;
  color: #7f8c8d;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(52, 152, 219, 0.1);
  margin-top: 2rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-card {
  animation: fadeInUp 0.6s ease-out;
}

.phase-card {
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.phase-card:nth-child(2) {
  animation-delay: 0.2s;
}

.start-btn {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.instructions {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* ===== MOBILE BOTTOM NAVBAR ===== */
/* Bottom-Nav auch f fcr Tablets/kleine Laptops erzwingen */
@media (max-width: 1024px) {
  .header {
    position: static;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .navbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: env(safe-area-inset-bottom, 0);
    height: 56px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(52, 152, 219, 0.1);
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    width: 100%;
  }

  .nav-brand .logo {
    display: none;
  }

  .nav-links {
    width: 100%;
    justify-content: space-around;
    align-items: center;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 0.5rem;
  }

  body {
    padding-bottom: calc(
      56px + env(safe-area-inset-bottom, 0)
    ); /* Platz f fcr Bottom-Nav */
  }
}

/* Mobile-only Bottom Navbar (separate Leiste) */
.mobile-navbar {
  display: none;
}

@media (max-width: 768px) {
  /* Desktop-Header und Top-Navbar mobil ausblenden */
  .header {
    display: none;
  }
  .navbar {
    display: none;
  }

  /* Neue mobile Bottom-Navigation */
  .mobile-navbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: env(safe-area-inset-bottom, 0);
    height: 60px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(52, 152, 219, 0.12);
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.06);
    z-index: 9999;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
  }

  .mobile-nav-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9rem;
    min-width: 72px;
    height: 100%;
    padding: 8px 8px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .mobile-nav-link i {
    color: inherit;
    font-size: 1.2rem;
  }
  .mobile-nav-link span {
    font-size: 0.8rem;
  }

  .mobile-nav-link:hover {
    background: rgba(52, 152, 219, 0.08);
    color: #1f5f8b;
  }

  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0));
  }
}
