/* Base */
@import 'base/variables.css';
@import 'base/reset.css';
@import 'base/animations.css';

/* Components */
@import 'components/header.css';
@import 'components/footer.css';
@import 'components/buttons.css';
@import 'components/labels.css';
@import 'components/accordion.css';
@import 'components/forms.css';
@import 'components/timeline.css';
@import 'components/cards.css';
@import 'components/floating-contact.css';
@import 'components/faq.css';

/* Pages */
@import 'pages/home.css';

/* Rocket Animation */
@keyframes rocketFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes gaugeSpeed {
  0% { transform: rotate(-45deg); }
  50% { transform: rotate(90deg); }
  100% { transform: rotate(-45deg); }
}

@keyframes userFocus {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes seoAnalyze {
  0% { transform: translateX(0) scale(1); }
  25% { transform: translateX(-3px) scale(1.1); }
  50% { transform: translateX(3px) scale(1.2); }
  75% { transform: translateX(-3px) scale(1.1); }
  100% { transform: translateX(0) scale(1); }
}

.adv-icon .fa-rocket {
  display: inline-block;
  transition: transform 0.3s ease;
}

.adv-item:hover .fa-rocket {
  animation: rocketFloat 2s ease-in-out infinite;
}

.adv-icon .fa-gauge-high {
  display: inline-block;
  transform-origin: center;
  transition: transform 0.3s ease;
}

.adv-item:hover .fa-gauge-high {
  animation: gaugeSpeed 2s ease-in-out infinite;
}

.adv-icon .fa-user-group {
  display: inline-block;
  transition: all 0.3s ease;
}

.adv-item:hover .fa-user-group {
  animation: userFocus 1.5s ease-in-out infinite;
}

.adv-icon .fa-magnifying-glass-chart {
  display: inline-block;
  transition: all 0.3s ease;
  transform-origin: center;
}

.adv-item:hover .fa-magnifying-glass-chart {
  animation: seoAnalyze 2s ease-in-out infinite;
}

/* Warum Wir Animationen */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

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

@keyframes glow {
  0%, 100% { text-shadow: 0 0 5px rgba(255,255,255,0.4), 0 0 10px rgba(52, 152, 219, 0.3); }
  50% { text-shadow: 0 0 8px rgba(255,255,255,0.5), 0 0 15px rgba(52, 152, 219, 0.4); }
}

.floating-icon {
  animation: float 3s ease-in-out infinite;
}

.pulse-icon {
  animation: pulse 2s ease-in-out infinite;
}

.shake-icon {
  animation: shake 3s ease-in-out infinite;
}

.rotate-icon {
  animation: rotate 8s linear infinite;
}

.glow-text {
  animation: glow 3s ease-in-out infinite;
}

.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 8px 40px rgba(52, 152, 219, 0.2);
}

.highlight-text {
  position: relative;
  display: inline-block;
}

.highlight-text::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background: #3498db;
  transition: all 0.3s ease;
}

.feature-card:hover .highlight-text::after {
  width: 100%;
  left: 0;
}

/* Animated Background */
.animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(52, 152, 219, 0.1) 100%);
  opacity: 0.5;
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
}

/* Reduzierte Bewegung wenn vom System gewünscht */
@media (prefers-reduced-motion: reduce) {
  .floating-icon,
  .pulse-icon,
  .shake-icon,
  .rotate-icon,
  .glow-text,
  .animated-bg {
    animation: none;
  }
  
  .feature-card:hover {
    transform: none;
  }
}

/* ------- Global Responsive Media & Layout Fixes ------- */
/* Ensure media scales on small screens */
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

/* Avoid inline images causing extra gaps */
img { display: block; }

/* Space for fixed header so content isn't overlapped */
main {
  padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 1rem);
}