/* Custom CSS for Modern Schlüsseldienst Website */

:root {
  --primary-color: #0d47a1;
  --primary-gradient: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
  --secondary-color: #43a047;
  --warning-color: #ffa000;
  --success-color: #2e7d32;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --border-radius: 0.75rem;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Global Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  scroll-behavior: smooth;
}

.section-title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

/* Custom Gradients */
.bg-gradient-primary {
  background: var(--primary-gradient);
}

/* Navbar Customization */
.navbar-dark .navbar-brand {
  font-size: 1.8rem !important;
}

.navbar-dark .navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--warning-color) !important;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at top right, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-buttons .btn {
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.hero-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-features .feature-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.hero-features .feature-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
}

.hero-image img {
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Service Cards */
.service-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.service-card h4 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Process Steps */
.process-step {
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.process-step h4 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.step-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.process-step:hover .step-image {
  transform: scale(1.05);
}

/* Pricing Table */
.pricing-table {
  border: none;
  overflow: hidden;
}

.pricing-table .table {
  margin-bottom: 0;
}

.pricing-table .table th,
.pricing-table .table td {
  border: none;
  vertical-align: middle;
}

.pricing-table .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(13, 71, 161, 0.03);
}

/* Benefits List */
.benefits-list {
  padding: 2rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.benefit-item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.benefit-content h4 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0;
}

/* Review Cards */
.review-card .card {
  transition: var(--transition);
}

.review-card .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.review-rating {
  font-size: 1.2rem;
}

/* Info Cards */
.info-card {
  display: flex;
  align-items: flex-start;
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.info-content h4 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.form-control {
  border-radius: var(--border-radius);
  border: 1px solid #ddd;
  padding: 0.875rem 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 71, 161, 0.15);
}

.form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  border: none;
  padding: 0.75rem 1.5rem;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0a3d91 0%, #1565c0 100%);
}

.btn-warning {
  background: var(--warning-color);
  color: white;
}

.btn-warning:hover {
  background: #f57c00;
  color: white;
}

.btn-success {
  background: var(--success-color);
}

.btn-success:hover {
  background: #1b5e20;
}

/* Fixed Call Button */
.fixed-call-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.fixed-call-btn .btn {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  animation: pulse 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 160, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(255, 160, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 160, 0, 0);
  }
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
}

footer .contact-info i {
  width: 20px;
}

/* Standorte Links */
.standorte-links .btn {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 100px 0 60px;
    text-align: center;
  }
  
  .hero-content .display-4 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    margin-top: 2rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .service-card,
  .process-step {
    margin-bottom: 2rem;
  }
  
  .benefit-item {
    flex-direction: row;
    text-align: left;
  }
  
  .benefit-icon {
    margin-right: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .benefit-content h4 {
    font-size: 1rem;
    line-height: 1.4;
  }
  
  .info-card {
    flex-direction: column;
    text-align: center;
  }
  
  .info-icon {
    margin: 0 0 1rem 0;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .hero-features .row {
    gap: 0.5rem;
  }
  
  .hero-features .feature-item {
    font-size: 0.875rem;
  }
  
  .step-image {
    height: 150px;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem !important;
  }
}

/* Animation Classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth scrolling for internal links */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Loading animation */
.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 #f3f3f3;
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
  .service-card,
  .benefit-item,
  .info-card {
    border: 2px solid var(--primary-color);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .fixed-call-btn .btn {
    animation: none;
  }
}