/* Reset und Basis-Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

/* Karrierter Hintergrund-Effekt */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}

/* Animierte Hintergrund-Shapes */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(100, 255, 218, 0.1);
  backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Haupt-Container */
.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  padding: 20px;
}

/* Wartungskarte */
.maintenance-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Icon-Container */
.icon-container {
  margin-bottom: 24px;
}

.maintenance-icon {
  font-size: 3rem;
  color: #64ffda;
  text-shadow: 0 0 20px rgba(100, 255, 218, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Typografie */
.title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #64ffda;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
  background: linear-gradient(45deg, #64ffda, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 5px rgba(100, 255, 218, 0.5));
  }
  to {
    filter: drop-shadow(0 0 20px rgba(100, 255, 218, 0.8));
  }
}

.subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  font-weight: 400;
}

/* Fortschrittsbalken */
.progress-container {
  margin-bottom: 32px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(100, 255, 218, 0.2);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #64ffda 0%, #00d4ff 100%);
  border-radius: 4px;
  width: 50%;
  animation: progressAnimation 2s ease-out;
  box-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

@keyframes progressAnimation {
  from {
    width: 0%;
  }
  to {
    width: 50%;
  }
}

.progress-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Animierte Notice-Sektion */
.notice {
  font-size: 1rem;
  color: #64ffda;
  margin-bottom: 2rem;
  font-style: italic;
  padding: 1rem 2rem;
  background: rgba(100, 255, 218, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(100, 255, 218, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 360px;
  min-width: 0;
  max-width: 100%;
  text-align: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
}

.notice.word-phase {
  font-size: 1.15rem;
  color: #64ffda;
  background: rgba(100,255,218,0.08);
  border-radius: 12px;
  padding: 0.7rem 1.5rem;
  border: 1px solid rgba(100,255,218,0.18);
  box-shadow: 0 2px 12px rgba(100,255,218,0.07);
  letter-spacing: 0.04em;
  font-weight: 600;
  display: inline-block;
  transition: background 0.3s, color 0.3s;
  animation: fadeIn 0.5s;
}

.notice.loading-phase {
  font-size: 1.15rem;
  color: #ffcc00;
  background: rgba(255,204,0,0.08);
  border-radius: 12px;
  padding: 0.7rem 1.5rem;
  border: 1px solid rgba(255,204,0,0.18);
  box-shadow: 0 2px 12px rgba(255,204,0,0.07);
  letter-spacing: 0.04em;
  font-weight: 600;
  display: inline-block;
  transition: background 0.3s, color 0.3s;
  animation: fadeIn 0.5s;
}

/* Pixel-Staub-Effekt */
.notice.word-phase.dissolve,
.notice.loading-phase.dissolve {
  animation: glitchEffect 1.2s ease-out forwards;
}

.notice.word-phase.dissolve::before,
.notice.loading-phase.dissolve::before,
.notice.word-phase.dissolve::after,
.notice.loading-phase.dissolve::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: glitchLayers 1.2s ease-out forwards;
}

.notice.word-phase.dissolve::before {
  color: #ff0000;
  animation-delay: 0.1s;
  z-index: 1;
}

.notice.word-phase.dissolve::after {
  color: #00ffff;
  animation-delay: 0.2s;
  z-index: 2;
}

.notice.loading-phase.dissolve::before {
  color: #ff00ff;
  animation-delay: 0.1s;
  z-index: 1;
}

.notice.loading-phase.dissolve::after {
  color: #ffff00;
  animation-delay: 0.2s;
  z-index: 2;
}

@keyframes glitchLayers {
  0% {
    transform: translate(0, 0);
    opacity: 0.8;
  }
  10% {
    transform: translate(-1px, 0);
    opacity: 0.9;
  }
  20% {
    transform: translate(1px, 0);
    opacity: 0.7;
  }
  30% {
    transform: translate(-2px, 1px);
    opacity: 0.8;
  }
  40% {
    transform: translate(2px, -1px);
    opacity: 0.6;
  }
  50% {
    transform: translate(-3px, 0);
    opacity: 0.7;
  }
  60% {
    transform: translate(3px, 0);
    opacity: 0.5;
  }
  70% {
    transform: translate(-4px, 2px);
    opacity: 0.6;
  }
  80% {
    transform: translate(4px, -2px);
    opacity: 0.4;
  }
  90% {
    transform: translate(-5px, 0);
    opacity: 0.5;
  }
  100% {
    transform: translate(5px, 0);
    opacity: 0;
  }
}

@keyframes glitchEffect {
  0% {
    opacity: 1;
    transform: translate(0, 0);
    filter: hue-rotate(0deg) brightness(1);
  }
  5% {
    opacity: 1;
    transform: translate(-1px, 0);
    filter: hue-rotate(0deg) brightness(1.05);
  }
  10% {
    opacity: 1;
    transform: translate(1px, 0);
    filter: hue-rotate(2deg) brightness(0.95);
  }
  15% {
    opacity: 0.95;
    transform: translate(-0.5px, 0.5px);
    filter: hue-rotate(-2deg) brightness(1.1);
  }
  20% {
    opacity: 1;
    transform: translate(0.5px, -0.5px);
    filter: hue-rotate(5deg) brightness(0.9);
  }
  25% {
    opacity: 0.9;
    transform: translate(-1.5px, 0);
    filter: hue-rotate(-5deg) brightness(1.15);
  }
  30% {
    opacity: 1;
    transform: translate(1.5px, 0);
    filter: hue-rotate(7deg) brightness(0.85);
  }
  35% {
    opacity: 0.85;
    transform: translate(-1px, 1px);
    filter: hue-rotate(-7deg) brightness(1.2);
  }
  40% {
    opacity: 1;
    transform: translate(1px, -1px);
    filter: hue-rotate(10deg) brightness(0.8);
  }
  45% {
    opacity: 0.8;
    transform: translate(-2px, 0);
    filter: hue-rotate(-10deg) brightness(1.25);
  }
  50% {
    opacity: 1;
    transform: translate(2px, 0);
    filter: hue-rotate(12deg) brightness(0.75);
  }
  55% {
    opacity: 0.75;
    transform: translate(-1.5px, 1.5px);
    filter: hue-rotate(-12deg) brightness(1.3);
  }
  60% {
    opacity: 1;
    transform: translate(1.5px, -1.5px);
    filter: hue-rotate(15deg) brightness(0.7);
  }
  65% {
    opacity: 0.7;
    transform: translate(-2.5px, 0);
    filter: hue-rotate(-15deg) brightness(1.35);
  }
  70% {
    opacity: 1;
    transform: translate(2.5px, 0);
    filter: hue-rotate(18deg) brightness(0.65);
  }
  75% {
    opacity: 0.65;
    transform: translate(-2px, 2px);
    filter: hue-rotate(-18deg) brightness(1.4);
  }
  80% {
    opacity: 1;
    transform: translate(2px, -2px);
    filter: hue-rotate(20deg) brightness(0.6);
  }
  85% {
    opacity: 0.6;
    transform: translate(-3px, 0);
    filter: hue-rotate(-20deg) brightness(1.45);
  }
  90% {
    opacity: 1;
    transform: translate(3px, 0);
    filter: hue-rotate(25deg) brightness(0.55);
  }
  95% {
    opacity: 0.55;
    transform: translate(-2.5px, 2.5px);
    filter: hue-rotate(-25deg) brightness(1.5);
  }
  100% {
    opacity: 0;
    transform: translate(3px, -3px);
    filter: hue-rotate(30deg) brightness(0.5);
  }
}

.pixel-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: currentColor;
  border-radius: 50%;
  pointer-events: none;
  animation: pixelFloat 1.5s ease-out forwards;
}

@keyframes pixelFloat {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Info-Sektion */
.info-section {
  margin-bottom: 32px;
}

.info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.info-item i {
  color: #64ffda;
  font-size: 1.1rem;
  text-shadow: 0 0 5px rgba(100, 255, 218, 0.5);
}

/* Kontakt-Sektion */
.contact-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.contact-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 255, 218, 0.2),
    transparent
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.contact-btn:hover::before {
  transform: scaleX(1);
  opacity: 1;
}

.contact-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: rgba(100, 255, 218, 0.3);
}

.contact-btn i {
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }
  
  .maintenance-card {
    padding: 30px 20px;
  }
  
  .title {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-btn {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }
  
  .notice {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 1.8rem;
  }
  
  .maintenance-icon {
    font-size: 2.5rem;
  }
  
  .floating-shape {
    display: none;
  }
  
  .notice.word-phase,
  .notice.loading-phase {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus-Styles für Accessibility */
.contact-btn:focus {
  outline: 2px solid rgba(100, 255, 218, 0.5);
  outline-offset: 2px;
}
