/* HYPER MODERN CHAOS MODE */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  background: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff, #06ffa5);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, transparent 1px, transparent 2px, rgba(255,255,255,0.03) 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0px, transparent 1px, transparent 2px, rgba(255,255,255,0.03) 3px);
  pointer-events: none;
  animation: scanlines 8s linear infinite;
  z-index: 1000;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(20px); }
}

h1 {
  text-align: center;
  font-size: clamp(2rem, 8vw, 5rem);
  font-weight: 700;
  background: linear-gradient(90deg, #ff006e, #8338ec, #3a86ff, #06ffa5, #ff006e);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShine 3s linear infinite, glitch 5s infinite;
  margin: 40px 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  filter: drop-shadow(0 0 20px rgba(255, 0, 110, 0.5));
}

@keyframes textShine {
  to { background-position: 200% center; }
}

@keyframes glitch {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-2px, 2px) skew(2deg); }
  94% { transform: translate(2px, -2px) skew(-2deg); }
  96% { transform: translate(-1px, 1px) skew(1deg); }
}

table {
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px) saturate(180%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 0 60px rgba(131, 56, 236, 0.4),
    0 0 100px rgba(255, 0, 110, 0.2),
    inset 0 0 40px rgba(255, 255, 255, 0.05);
  animation: tableFloat 6s ease-in-out infinite, tablePulse 4s ease infinite;
  transform-style: preserve-3d;
}

@keyframes tableFloat {
  0%, 100% { transform: translateY(0px) rotateX(0deg); }
  50% { transform: translateY(-20px) rotateX(2deg); }
}

@keyframes tablePulse {
  0%, 100% { box-shadow: 
    0 0 60px rgba(131, 56, 236, 0.4),
    0 0 100px rgba(255, 0, 110, 0.2),
    inset 0 0 40px rgba(255, 255, 255, 0.05); }
  50% { box-shadow: 
    0 0 80px rgba(131, 56, 236, 0.6),
    0 0 120px rgba(255, 0, 110, 0.4),
    inset 0 0 60px rgba(255, 255, 255, 0.1); }
}

th,
td {
  padding: 15px 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

th {
  background: linear-gradient(135deg, rgba(131, 56, 236, 0.8), rgba(255, 0, 110, 0.8));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  animation: headerWave 3s ease-in-out infinite;
}

@keyframes headerWave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

th:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 10px 30px rgba(131, 56, 236, 0.6);
}

td {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: 300;
  animation: cellFade 0.5s ease-in;
}

@keyframes cellFade {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

td:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05) translateZ(20px);
  box-shadow: 0 5px 20px rgba(58, 134, 255, 0.4);
  cursor: pointer;
}

tr.highlight {
  animation: rowGlow 2s ease-in-out infinite;
}


@keyframes rowGlow {
  0%, 100% { 
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.3), rgba(255, 140, 0, 0.3));
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  }
  50% { 
    background: linear-gradient(90deg, rgba(255, 140, 0, 0.4), rgba(255, 215, 0, 0.4));
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
  }
}

@keyframes lightning {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-5px) rotate(-10deg); }
  75% { transform: translateX(5px) rotate(10deg); }
}

td:empty {
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 10px,
    rgba(0, 0, 0, 0.1) 10px,
    rgba(0, 0, 0, 0.1) 20px
  );
  animation: stripeMove 20s linear infinite;
}

@keyframes stripeMove {
  0% { background-position: 0 0; }
  100% { background-position: 100px 100px; }
}

/* Farbzuweisungen pro Person */
.lukas {
  background: linear-gradient(135deg, rgba(58, 134, 255, 0.8), rgba(6, 255, 165, 0.6)) !important;
  font-weight: 700;
  animation: personPulse 2s ease-in-out infinite, rotate3d 10s linear infinite;
  position: relative;
  overflow: hidden;
}

.pascal {
  background: linear-gradient(135deg, rgba(131, 56, 236, 0.8), rgba(255, 0, 110, 0.6)) !important;
  font-weight: 700;
  animation: personPulse 2s ease-in-out infinite 0.3s, rotate3d 10s linear infinite;
  position: relative;
  overflow: hidden;
}

.felix {
  background: linear-gradient(135deg, rgba(255, 0, 110, 0.8), rgba(255, 215, 0, 0.6)) !important;
  font-weight: 700;
  animation: personPulse 2s ease-in-out infinite 0.6s, rotate3d 10s linear infinite;
  position: relative;
  overflow: hidden;
}

.lukas::after, .pascal::after, .felix::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  animation: shine 3s linear infinite;
}

@keyframes personPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes rotate3d {
  0% { transform: perspective(1000px) rotateY(0deg); }
  100% { transform: perspective(1000px) rotateY(360deg); }
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Abschnitt Wichtige Links */
#links {
  width: 90%;
  max-width: 1200px;
  margin: 60px auto;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(30px) saturate(200%);
  padding: 40px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  box-shadow: 
    0 20px 80px rgba(131, 56, 236, 0.3),
    inset 0 0 60px rgba(255, 255, 255, 0.03);
  animation: linksFloat 8s ease-in-out infinite;
}

@keyframes linksFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}

#links h2 {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(90deg, #06ffa5, #3a86ff, #8338ec, #ff006e);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShine 3s linear infinite;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

#links ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

#links li {
  animation: itemPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) backwards;
}

#links li:nth-child(1) { animation-delay: 0.1s; }
#links li:nth-child(2) { animation-delay: 0.2s; }
#links li:nth-child(3) { animation-delay: 0.3s; }
#links li:nth-child(4) { animation-delay: 0.4s; }
#links li:nth-child(5) { animation-delay: 0.5s; }
#links li:nth-child(6) { animation-delay: 0.6s; }
#links li:nth-child(7) { animation-delay: 0.7s; }
#links li:nth-child(8) { animation-delay: 0.8s; }
#links li:nth-child(9) { animation-delay: 0.9s; }
#links li:nth-child(10) { animation-delay: 1.0s; }

@keyframes itemPop {
  0% { opacity: 0; transform: scale(0) rotate(-180deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

#links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(131, 56, 236, 0.6), rgba(58, 134, 255, 0.6));
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(131, 56, 236, 0.3);
}

#links a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

#links a:hover::before {
  width: 300px;
  height: 300px;
}

#links a:hover {
  transform: translateY(-10px) scale(1.05) rotate(2deg);
  box-shadow: 
    0 20px 50px rgba(131, 56, 236, 0.6),
    0 0 30px rgba(58, 134, 255, 0.4);
  border-color: rgba(6, 255, 165, 0.8);
}

#links a:active {
  transform: translateY(-5px) scale(0.95);
}

#links .icon {
  font-size: 24px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
  animation: iconSpin 3s linear infinite;
  position: relative;
  z-index: 1;
}

@keyframes iconSpin {
  0%, 90%, 100% { transform: rotate(0deg); }
  95% { transform: rotate(360deg); }
}

#links .text {
  position: relative;
  z-index: 1;
}

/* Floating particles */
body::after {
  content: '✨💫⭐🌟✨💫⭐🌟';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: 30px;
  pointer-events: none;
  animation: floatParticles 20s linear infinite;
  opacity: 0.3;
  z-index: 999;
}

@keyframes floatParticles {
  0% { transform: translateY(100vh) rotate(0deg); }
  100% { transform: translateY(-100vh) rotate(360deg); }
}

/* Cursor trail effect */
@keyframes cursorRipple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Scroll indicator */
body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff006e, #8338ec, #3a86ff);
  border-radius: 10px;
  animation: gradientScroll 3s linear infinite;
}

@keyframes gradientScroll {
  0% { background-position: 0% 0%; }
  100% { background-position: 0% 100%; }
}
