/* Erfahrungsberichte Custom CSS */

/* Hero Section Styles */
.hero-section {
  background: linear-gradient(135deg, #4a7c59 0%, #6b9b7a 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="paw" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23paw)"/></svg>');
  opacity: 0.3;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.min-vh-50 {
  min-height: 50vh;
}

/* Card Styles */
.experience-card {
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* Testimonial Card Styles */
.testimonial-card {
  transition: all 0.3s ease;
  border-radius: 15px;
  border-left: 4px solid transparent;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-left-color: #4a7c59;
}

.testimonial-card .card-body {
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 60px;
  color: #4a7c59;
  opacity: 0.2;
  font-family: serif;
}

/* Case Study Card Styles */
.case-study-card {
  transition: all 0.3s ease;
  border-radius: 15px;
  border-top: 4px solid #4a7c59;
}

.case-study-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.case-study-card .card-body {
  position: relative;
}

/* Video Card Styles */
.video-card {
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.video-card .card-img-top {
  transition: transform 0.3s ease;
}

.video-card:hover .card-img-top {
  transform: scale(1.05);
}

/* Comparison Card Styles */
.comparison-card {
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
}

.comparison-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.comparison-card .row {
  height: 300px;
}

.comparison-card img {
  transition: transform 0.3s ease;
}

.comparison-card:hover img {
  transform: scale(1.02);
}

/* Badge Styles */
.badge {
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
}

/* Button Styles */
.btn {
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

/* Filter Section */
.filter-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  border: 1px solid #dee2e6;
}

.form-select {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.form-select:focus {
  border-color: #4a7c59;
  box-shadow: 0 0 0 0.2rem rgba(74, 124, 89, 0.25);
}

/* Animation Classes */
.animate__animated {
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

.animate__fadeInUp {
  animation-name: fadeInUp;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Loading Animation */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .icon-circle {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .comparison-card .row {
    height: 250px;
  }
  
  .btn-lg {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section .lead {
    font-size: 1rem;
  }
  
  .comparison-card .row {
    height: 200px;
  }
  
  .card-body {
    padding: 1rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #4a7c59;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a6b49;
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .filter-section,
  footer {
    display: none !important;
  }
  
  .hero-section {
    background: none !important;
    color: #000 !important;
  }
  
  .card {
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid #000;
  }
  
  .btn {
    border: 2px solid #000;
  }
  
  .badge {
    border: 1px solid #000;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .experience-card:hover,
  .testimonial-card:hover,
  .case-study-card:hover,
  .video-card:hover,
  .comparison-card:hover {
    transform: none;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .card {
    background-color: #2d3748;
    color: #e2e8f0;
  }
  
  .text-muted {
    color: #a0aec0 !important;
  }
  
  .bg-light {
    background-color: #4a5568 !important;
  }
  
  .form-select {
    background-color: #4a5568;
    color: #e2e8f0;
    border-color: #718096;
  }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-select:focus,
.nav-link:focus {
  outline: 2px solid #4a7c59;
  outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #4a7c59;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #4a7c59;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Error States */
.error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Success States */
.success {
  border-color: #28a745 !important;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

.success-message {
  color: #28a745;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}
