/* ======================================
   EXTERNE CSS-DATEI: styles.css
   Alle nicht-kritischen Styles
   ====================================== */

/* Navigation Styles - Erweitert */
.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #434343, #9d9d9d);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::before {
  width: 80%;
}

.nav-link:hover {
  color: #2E8B57;
  background: rgba(46, 139, 87, 0.05);
}

/* Dropdown Styles */
.dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(46, 139, 87, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.dropdown-container:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  border-radius: 6px;
  margin: 2px;
  position: relative;
  overflow: hidden;
}

.dropdown-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(46, 139, 87, 0.1), transparent);
  transition: left 0.5s ease;
}

.dropdown-item:hover::before {
  left: 100%;
}

.dropdown-item:hover {
  background: rgba(46, 139, 87, 0.05);
  color: #2E8B57;
  transform: translateX(4px);
}

/* Logo Animation */
.logo {
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Mobile Menu Improvements */
.mobile-menu {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
}

.mobile-menu-item {
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.mobile-menu-item:hover {
  background: rgba(46, 139, 87, 0.05);
  border-left-color: #2E8B57;
  transform: translateX(4px);
}

/* CTA Button Animations - Korrigiert */
.cta-button {
  background: linear-gradient(135deg, #2E8B57, #66C2A5);
  box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 139, 87, 0.4);
  background: linear-gradient(135deg, #66C2A5, #2E8B57);
}

/* Service Cards */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover .ri-plant-line,
.service-card:hover .ri-gift-line,
.service-card:hover .ri-time-line {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Award Cards */
.award-card {
  transition: all 0.3s ease;
}

.award-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.award-card img {
  transition: all 0.3s ease;
}

.award-card:hover img {
  transform: scale(1.05);
}

/* Progress Bars */
.progress-bar {
  height: 30px;
  border-radius: 4px;
  background-color: #f0f0f0;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
}

.progress {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  transition: width 1s ease;
  position: relative;
}

.progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Form Styling */
.form-input {
  transition: all 0.3s ease;
}

.form-input:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(46, 139, 87, 0.2);
}

/* Newsletter Styling */
.newsletter-input {
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  box-shadow: 0 0 0 2px rgba(46, 139, 87, 0.2);
}

.newsletter-btn {
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  background-color: #2A7A4F;
  transform: translateY(-1px);
}

/* Social Icons */
.social-icon {
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 12px rgba(46, 139, 87, 0.3);
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Loading Animation */
.loading-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #2E8B57;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Pulsing Effect für wichtige Elemente */
.pulse-on-hover {
  transition: all 0.3s ease;
}

.pulse-on-hover:hover {
  animation: gentle-pulse 1.5s ease-in-out infinite;
}

@keyframes gentle-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, #2E8B57, #66C2A5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }
  
  .progress-bar {
    height: 24px;
  }
  
  .progress {
    font-size: 0.875rem;
  }
  
  .service-card,
  .award-card {
    margin-bottom: 1.5rem;
  }
  
  .mobile-menu {
    backdrop-filter: blur(15px);
  }
}

@media (max-width: 480px) {
  .cta-button {
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
  }
  
  .service-card,
  .award-card {
    padding: 1.5rem;
  }
  
  .navbar {
    padding: 0.75rem 0;
  }
  
  .logo {
    height: 3rem;
  }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
  .dark-mode .navbar {
    background: rgba(30, 30, 30, 0.95);
  }
  
  .dark-mode .dropdown {
    background: rgba(30, 30, 30, 0.98);
    border-color: rgba(46, 139, 87, 0.3);
  }
  
  .dark-mode .service-card,
  .dark-mode .award-card {
    background: #2a2a2a;
    color: #e0e0e0;
  }
  
  .dark-mode .mobile-menu {
    background: rgba(30, 30, 30, 0.98);
  }
}

/* Print Styles */
@media print {
  .navbar,
  .mobile-menu,
  .cta-button,
  #mobile-menu-button {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
  
  .service-card,
  .award-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* Accessibility Improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Styles für bessere Zugänglichkeit */
.nav-link:focus,
.cta-button:focus,
.form-input:focus,
.dropdown-item:focus {
  outline: 2px solid #2E8B57;
  outline-offset: 2px;
}

/* Reduced Motion für Benutzer die es bevorzugen */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}