/* Custom CSS for EB-ETA Dienstleistung */

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.02em;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle section separators */
section {
  position: relative;
}

/* Smooth Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Enhanced Service Tabs */
.service-tab {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(146, 18, 25, 0.1);
  border-color: rgb(146, 18, 25) !important;
}

.service-tab.active {
  background-color: white !important;
  color: black !important;
  border: 2px solid rgb(146, 18, 25) !important;
  box-shadow: 0 4px 12px rgba(146, 18, 25, 0.15);
}

/* Modern Hero Section */
.hero-video-overlay {
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
}

/* Enhanced Button Styles */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(146, 18, 25, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(146, 18, 25, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Dropdown menu animations */
.group:hover .group-hover\:opacity-100 {
  animation: dropdownSlide 0.3s ease-out;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile menu styles */
#mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 50;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
}

#mobile-menu.hidden {
  display: none;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
}

#mobile-menu:not(.hidden) {
  display: block;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Header scroll effect - enhanced */
.sticky-header {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Mobile menu animation */
@media (max-width: 1023px) {
  #mobile-menu {
    animation: slideDown 0.3s ease-out;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Form focus styles */
input, select, textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgb(146, 18, 25);
  box-shadow: 0 0 0 4px rgba(146, 18, 25, 0.1);
  outline: none;
}

/* Statistics counter animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.stats-counter {
  animation: countUp 0.6s ease-out;
}

/* Parallax effect for About section */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Loading spinner */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid rgb(146, 18, 25);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: rgb(146, 18, 25);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8b1219;
}

/* Social icons hover effect */
.social-icon {
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  color: rgb(146, 18, 25) !important;
}

/* Card hover effects */
.service-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgb(146, 18, 25);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(45deg, rgb(146, 18, 25), #d73027);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom list bullets */
.custom-list li::before {
  content: '✓';
  color: rgb(146, 18, 25);
  font-weight: bold;
  margin-right: 8px;
}

/* Video container responsive */
.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navigation sticky effect */
.nav-sticky {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

/* Typography improvements */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .service-tab {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
  .dark-mode {
    background-color: #1a1a1a;
    color: #ffffff;
  }
}

/* Fixed contact buttons */
.fixed-contact-buttons {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  visibility: visible !important;
}

.contact-btn {
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  font-size: 24px !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.3s ease !important;
  border: none !important;
  outline: none !important;
}

.contact-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  animation: none;
}

.phone-btn {
  background-color: rgb(146, 18, 25);
  animation: pulse 2s infinite;
}

.phone-btn:hover {
  background-color: #8b1219;
}

.whatsapp-btn {
  background-color: #25d366;
  animation: pulseWhatsApp 2s infinite;
}

.whatsapp-btn:hover {
  background-color: #128c7e;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(174, 38, 36, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(174, 38, 36, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(174, 38, 36, 0);
  }
}

@keyframes pulseWhatsApp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .service-tab {
    font-size: 0.85rem;
    padding: 0.6rem 1.1rem;
  }

  .fixed-contact-buttons {
    bottom: 15px !important;
    right: 15px !important;
    gap: 8px !important;
  }

  .contact-btn {
    width: 50px !important;
    height: 50px !important;
    font-size: 20px !important;
  }
}

/* Smooth page transitions */
html {
  scroll-behavior: smooth;
}

/* Better focus states for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgb(146, 18, 25);
  outline-offset: 2px;
}

/* Subtle background gradients */
.bg-gradient-brand {
  background: linear-gradient(135deg, rgb(146, 18, 25) 0%, #8b1219 100%);
}