/* Automaten Haßelbacher - Bright Dart & Slot Machines Theme */
:root {
  --neon-red: #ff2a6d;
  --neon-gold: #ffd700;
  --neon-cyan: #00f0ff;
  --neon-purple: #b967ff;
  --bg-base: #1a1025;
  --card-bg: rgba(30, 15, 40, 0.75);
  --text: #ffffff;
  --accent: #ff6b35;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-base);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

/* Bright Animated Multi-Layer Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('bg-dart-slots.jpg') center/cover no-repeat fixed;
  opacity: 0.55;
  z-index: -3;
  animation: bgZoom 25s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, rgba(255, 42, 109, 0.15) 0%, transparent 50%),
    linear-gradient(45deg, rgba(0, 240, 255, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 20%, rgba(255, 215, 0, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(185, 103, 255, 0.15) 0%, transparent 50%);
  z-index: -2;
  animation: colorShift 12s ease-in-out infinite alternate;
}

@keyframes bgZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

@keyframes colorShift {
  0% { opacity: 0.6; }
  100% { opacity: 0.9; }
}

/* Extra animated overlay layer */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('bg-animated.jpg') center/cover no-repeat fixed;
  opacity: 0.18;
  z-index: -1;
  animation: overlayDrift 30s linear infinite;
  pointer-events: none;
}

@keyframes overlayDrift {
  0% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(-2%) translateY(1%); }
  100% { transform: translateX(0) translateY(0); }
}

/* Enhanced Particles - Darts & Coins style */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  animation: float linear infinite;
  box-shadow: 0 0 12px currentColor;
}

.particle.dart {
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(to bottom, #ffd700, #ff2a6d);
  transform: rotate(45deg);
}

@keyframes float {
  to { transform: translateY(-110vh) rotate(720deg); opacity: 0; }
}

/* Header - brighter */
header {
  position: sticky;
  top: 0;
  background: rgba(25, 10, 35, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--neon-gold);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.35), 0 0 40px rgba(255, 42, 109, 0.2);
  z-index: 1000;
  padding: 1rem 0;
}

.logo {
  text-align: center;
  font-size: 2.4rem;
  font-weight: bold;
  background: linear-gradient(90deg, var(--neon-gold), var(--neon-cyan), var(--neon-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: neonGlow 1.8s ease-in-out infinite alternate;
  letter-spacing: 2px;
}

@keyframes neonGlow {
  from { filter: drop-shadow(0 0 8px var(--neon-gold)) drop-shadow(0 0 4px var(--neon-cyan)); }
  to { filter: drop-shadow(0 0 22px var(--neon-red)) drop-shadow(0 0 12px var(--neon-gold)); }
}

.tagline {
  text-align: center;
  color: var(--neon-cyan);
  font-size: 1rem;
  margin-top: 0.3rem;
  letter-spacing: 3px;
  text-shadow: 0 0 10px var(--neon-cyan);
}

/* Dropdown Submenus */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  padding: 0 1rem;
  position: relative;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: all 0.3s;
  font-weight: 500;
  font-size: 0.95rem;
  display: block;
  white-space: nowrap;
}

.nav-item > a:hover,
.nav-item:hover > a {
  color: var(--neon-gold);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(20, 10, 30, 0.95);
  border: 1px solid var(--neon-gold);
  border-radius: 10px;
  padding: 0.5rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px rgba(255, 215, 0, 0.3);
  z-index: 1001;
  backdrop-filter: blur(10px);
}

.nav-item:hover .submenu {
  display: block;
  animation: fadeInDown 0.25s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.submenu a {
  display: block;
  padding: 0.5rem 1.2rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.submenu a:hover {
  background: rgba(255, 215, 0, 0.15);
  color: var(--neon-cyan);
  padding-left: 1.5rem;
}

nav a:hover {
  color: var(--neon-gold);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 18px var(--neon-cyan);
  transform: translateY(-3px);
  background: rgba(0, 240, 255, 0.1);
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card-bg);
  border-radius: 20px;
  border: 2px solid var(--neon-gold);
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.4), 0 0 30px rgba(0, 240, 255, 0.2), inset 0 0 40px rgba(255, 42, 109, 0.08);
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease-out, heroPulse 4s ease-in-out infinite;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroPulse {
  0%, 100% { box-shadow: 0 0 50px rgba(255, 215, 0, 0.4), 0 0 30px rgba(0, 240, 255, 0.2); }
  50% { box-shadow: 0 0 70px rgba(255, 215, 0, 0.6), 0 0 50px rgba(255, 42, 109, 0.3); }
}

h1, h2, h3 {
  color: var(--neon-gold);
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.7), 0 0 4px var(--neon-cyan);
}

h1 { font-size: 3.2rem; margin-bottom: 1rem; }

.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 12px 35px rgba(0,0,0,0.4);
  transition: transform 0.35s, box-shadow 0.35s;
  animation: slideIn 0.8s ease-out;
  backdrop-filter: blur(4px);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(255, 42, 109, 0.45), 0 0 30px rgba(0, 240, 255, 0.3);
  border-color: var(--neon-cyan);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

ul {
  list-style: none;
  padding-left: 0;
}

li {
  padding: 0.5rem 0;
  border-left: 3px solid var(--neon-gold);
  padding-left: 1rem;
  margin: 0.5rem 0;
  transition: all 0.3s;
}

li:hover {
  border-left-color: var(--neon-cyan);
  padding-left: 1.5rem;
  color: var(--neon-gold);
  text-shadow: 0 0 8px var(--neon-gold);
}

/* Dart Neon Effects */
.dart-neon {
  position: relative;
  display: inline-block;
  color: var(--neon-cyan);
  text-shadow: 
    0 0 5px var(--neon-cyan),
    0 0 10px var(--neon-cyan),
    0 0 20px var(--neon-cyan),
    0 0 40px var(--neon-gold);
  animation: dartGlow 1.5s ease-in-out infinite alternate;
}

@keyframes dartGlow {
  from { text-shadow: 0 0 5px var(--neon-cyan), 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan); }
  to { text-shadow: 0 0 10px var(--neon-gold), 0 0 25px var(--neon-gold), 0 0 50px var(--neon-cyan), 0 0 80px var(--neon-red); }
}

.dart-board-glow {
  position: fixed;
  top: 50%;
  right: -150px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  animation: boardPulse 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
}

.dart-board-glow::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 3px solid rgba(255, 215, 0, 0.4);
  border-radius: 50%;
  animation: spinSlow 20s linear infinite;
  box-shadow: 0 0 30px var(--neon-gold), inset 0 0 30px var(--neon-cyan);
}

@keyframes boardPulse {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.6; }
  50% { transform: translateY(-50%) scale(1.15); opacity: 0.9; }
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

/* Animated Slot Machines & Gaming Devices in Background */
.slot-machine {
  position: fixed;
  width: 180px;
  height: 280px;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  border: 3px solid var(--neon-gold);
  border-radius: 12px;
  box-shadow: 
    0 0 20px var(--neon-gold),
    0 0 40px rgba(255, 42, 109, 0.4),
    inset 0 0 30px rgba(0, 240, 255, 0.1);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  animation: machineGlow 3s ease-in-out infinite alternate;
}

.slot-machine::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 15px;
  right: 15px;
  height: 140px;
  background: #0a0a15;
  border-radius: 8px;
  border: 2px solid var(--neon-cyan);
  box-shadow: inset 0 0 20px var(--neon-cyan);
  overflow: hidden;
}

.slot-reels {
  position: absolute;
  top: 20px;
  left: 15px;
  right: 15px;
  height: 140px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.reel {
  width: 40px;
  height: 100px;
  background: linear-gradient(180deg, 
    #ff2a6d 0%, #ffd700 25%, #00f0ff 50%, #b967ff 75%, #ff2a6d 100%);
  background-size: 100% 400%;
  border-radius: 4px;
  animation: spinReel 0.8s linear infinite;
  box-shadow: 0 0 10px var(--neon-gold);
}

.reel:nth-child(2) { animation-delay: 0.2s; animation-duration: 0.9s; }
.reel:nth-child(3) { animation-delay: 0.4s; animation-duration: 0.7s; }

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

@keyframes machineGlow {
  0% { box-shadow: 0 0 20px var(--neon-gold), 0 0 40px rgba(255, 42, 109, 0.4); }
  100% { box-shadow: 0 0 35px var(--neon-cyan), 0 0 60px rgba(255, 215, 0, 0.6); }
}

.slot-machine::after {
  content: 'JACKPOT';
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--neon-gold);
  font-weight: bold;
  font-size: 0.9rem;
  text-shadow: 0 0 10px var(--neon-gold);
  animation: jackpotBlink 1.5s ease-in-out infinite;
}

@keyframes jackpotBlink {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
footer {
  text-align: center;
  padding: 2rem;
  background: rgba(25, 10, 35, 0.9);
  border-top: 2px solid var(--neon-gold);
  margin-top: 4rem;
  color: #ddd;
  box-shadow: 0 -10px 30px rgba(255, 215, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .logo { font-size: 1.7rem; }
  nav { gap: 0.7rem; }
  h1 { font-size: 2.2rem; }
  main { padding: 1rem; }
}

/* Flying rotating manufacturer logos (Home only) */
.flying-logo {
  position: fixed;
  width: 140px;
  height: 140px;
  pointer-events: none;
  z-index: 1;
  animation: flyRotate 18s linear infinite;
  filter: drop-shadow(0 0 15px var(--neon-gold));
  opacity: 0.85;
}

.flying-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

@keyframes flyRotate {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30vw, 20vh) rotate(90deg); }
  50% { transform: translate(60vw, -10vh) rotate(180deg); }
  75% { transform: translate(20vw, 40vh) rotate(270deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

.flying-logo.logo2 {
  animation-duration: 22s;
  animation-delay: -8s;
  width: 120px;
  height: 120px;
}


/* Slowly flying rotating home graphics - optimized */
.flying-home-graphic {
  position: fixed;
  width: 220px;
  pointer-events: none;
  z-index: 1;
  animation: slowFlyRotate 28s linear infinite;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.6));
  opacity: 0.85;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.flying-home-graphic img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.flying-home-graphic.graphic2 {
  width: 180px;
  animation-duration: 35s;
  animation-delay: -12s;
}

@keyframes slowFlyRotate {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  20%  { transform: translate3d(22vw, 12vh, 0) rotate(72deg); }
  40%  { transform: translate3d(48vw, -4vh, 0) rotate(144deg); }
  60%  { transform: translate3d(32vw, 22vh, 0) rotate(216deg); }
  80%  { transform: translate3d(8vw, 8vh, 0) rotate(288deg); }
  100% { transform: translate3d(0, 0, 0) rotate(360deg); }
}


/* Optimized flying graphics for Spielerschutz and other pages */
.flying-graphic {
  position: fixed;
  width: 360px;
  pointer-events: none;
  z-index: 1;
  animation: smoothFly 32s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
  opacity: 0.85;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flying-graphic img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.flying-graphic:nth-child(2) {
  animation-duration: 38s;
  width: 340px;
}

.flying-graphic:nth-child(3) {
  animation-duration: 42s;
  width: 320px;
}

@keyframes smoothFly {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  25%  { transform: translate3d(8vw, 6vh, 0) rotate(90deg); }
  50%  { transform: translate3d(-5vw, 12vh, 0) rotate(180deg); }
  75%  { transform: translate3d(10vw, 4vh, 0) rotate(270deg); }
  100% { transform: translate3d(0, 0, 0) rotate(360deg); }
}

/* Reduce motion for accessibility and performance */
@media (prefers-reduced-motion: reduce) {
  .flying-graphic,
  .flying-home-graphic,
  .flying-logo,
  .particle {
    animation: none !important;
  }
}
