/* ==========================================================================
   Personal Training Basel - Landing Page Styles
   Optimiert für: Delight, Conversion, Shareable Experience
   ========================================================================== */

/* ==========================================================================
   0. GLOBAL OVERFLOW FIX - Prevent horizontal scrolling
   ========================================================================== */

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */

.hero-pt-basel {
  position: relative;
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 56px; /* Navbar height */
}

.hero-pt-basel .hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(40, 167, 69, 0.3) 100%), url("/img/768/hoch.jpg");
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: -1;
}

@media (orientation: landscape) {
  .hero-pt-basel .hero-bg-image {
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(40, 167, 69, 0.3) 100%), url("/img/768/quer.jpg");
  }
}

@media screen and (min-width: 1024px) {
  .hero-pt-basel .hero-bg-image {
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(40, 167, 69, 0.3) 100%), url("/img/1024/quer.jpg");
  }
}

.hero-pt-basel .hero-content {
  position: relative;
  z-index: 2;
  color: white;
}

.hero-pt-basel h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  text-align: left;
  margin-bottom: 1rem;
}

.hero-pt-basel .hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  opacity: 0.95;
  margin-bottom: 2rem;
}

.hero-pt-basel .hero-qualifications {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.hero-pt-basel .hero-qualifications span {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-pt-basel .hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Scroll Indicator - Now part of CTA group */
.scroll-indicator {
  animation: bounce 2s infinite;
  color: white;
  opacity: 0.8;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   2. BUTTON STYLES WITH MICRO-INTERACTIONS
   ========================================================================== */

.btn-hero-primary {
  position: relative;
  overflow: hidden;
  background-color: #28a745;
  border-color: #28a745;
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-hero-primary:hover::before {
  width: 400px;
  height: 400px;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(40, 167, 69, 0.4);
  background-color: #218838;
  border-color: #218838;
  color: white;
}

.btn-hero-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Focus states for keyboard navigation (WCAG 2.1 AA) */
.btn-hero-primary:focus {
  outline: 2px solid #28a745;
  outline-offset: 4px;
}

.btn-hero-primary:focus-visible {
  outline: 3px solid #2ecc71;
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(46, 204, 113, 0.25);
}

.btn-hero-primary:focus:not(:focus-visible) {
  outline: none;
}

.btn-hero-secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
  background: white;
  color: #28a745;
  transform: translateY(-3px);
}

.btn-hero-secondary:focus {
  outline: 2px solid white;
  outline-offset: 4px;
}

.btn-hero-secondary:focus-visible {
  outline: 3px solid white;
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary:focus:not(:focus-visible) {
  outline: none;
}

/* ==========================================================================
   3. FULL-WIDTH BANNER SECTIONS
   ========================================================================== */

.banner-section {
  padding: 4rem 0;
  text-align: center;
}

.banner-section h2 {
  margin-bottom: 1rem;
}

.banner-section.bg-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.banner-section.bg-dark-blue {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

.banner-section.bg-warm {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.text-bigger-banner {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.text-lead-banner {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
}

/* ==========================================================================
   4. SERVICE CARDS
   ========================================================================== */

.service-cards-section {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.service-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

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

.service-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.service-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}

.service-card:hover .service-card-image img {
  transform: scale(1.1);
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-body {
  padding: 1.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: left;
}

.service-card p {
  color: #666;
  margin-bottom: 0;
  text-align: left;
}

.service-card .icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: white;
  font-size: 1.5rem;
}

/* ==========================================================================
   5. USP SECTION (2-Column Cards)
   ========================================================================== */

.usp-section {
  padding: 5rem 0;
}

.usp-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  transition: all 0.4s ease;
}

.usp-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.usp-card:hover .usp-card-bg {
  transform: scale(1.05);
}

.usp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
}

.usp-card-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  color: white;
  width: 100%;
}

.usp-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: left;
}

.usp-card p {
  opacity: 0.9;
  margin-bottom: 1rem;
  text-align: left;
}

.usp-card .btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid white;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.usp-card .btn:hover {
  background: white;
  color: #333;
}

/* ==========================================================================
   6. TESTIMONIALS SECTION - HORIZONTAL SLIDER
   ========================================================================== */

.testimonials-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden; /* Prevent layout shift */
}

.testimonials-section h2 {
  color: white;
}

/* Fix for layout shift during slide transitions - MUST use fixed height, not min-height */
.testimonials-section .carousel-inner {
  height: 320px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .testimonials-section .carousel-inner {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .testimonials-section .carousel-inner {
    height: 480px;
  }
}

/* Slider Styles */
.testimonial-slide {
  text-align: center;
  padding: 1rem 3rem 3rem; /* Less top, more bottom for nav dots spacing */
  max-width: 800px;
  margin: 0 auto;
  min-height: 240px; /* Fixed min-height for consistent sizing */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align content to top */
}

.testimonial-stars {
  color: #ffc107;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.testimonial-quote-slider {
  font-size: 1.25rem;
  font-style: italic;
  color: white;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.testimonial-author-slider {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

/* Carousel Controls */
#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

#testimonialCarousel .carousel-control-prev {
  left: 10px;
}

#testimonialCarousel .carousel-control-next {
  right: 10px;
}

#testimonialCarousel .carousel-control-prev:hover,
#testimonialCarousel .carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Carousel Indicators */
#testimonialCarousel .carousel-indicators {
  bottom: -30px;
}

#testimonialCarousel .carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 5px;
}

#testimonialCarousel .carousel-indicators li.active {
  background-color: white;
}

/* Override Multi-Slide Carousel Styles from home.css */
#testimonialCarousel .carousel-inner .carousel-item {
  display: none !important;
}
#testimonialCarousel .carousel-inner .carousel-item.active {
  display: block !important;
}
#testimonialCarousel .carousel-inner .active + .carousel-item,
#testimonialCarousel .carousel-inner .active + .carousel-item + .carousel-item {
  display: none !important;
}

@media (max-width: 768px) {
  .testimonial-slide {
    padding: 0.5rem 1rem 2.5rem; /* Less top, more bottom for nav dots */
    min-height: 280px; /* Consistent height on mobile */
  }

  .testimonial-quote-slider {
    font-size: 1rem;
  }

  #testimonialCarousel .carousel-control-prev,
  #testimonialCarousel .carousel-control-next {
    display: none;
  }
}

/* ==========================================================================
   7. PROCESS SECTION
   ========================================================================== */

.process-section {
  padding: 5rem 0;
  background: white;
}

.process-step {
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 50px;
  right: -15%;
  width: 30%;
  height: 2px;
  background: linear-gradient(90deg, #28a745, transparent);
}

.process-step:last-child::after {
  display: none;
}

.process-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.process-step h4 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.process-step p {
  color: #666;
  font-size: 0.95rem;
}

/* ==========================================================================
   8. SCROLL ANIMATIONS
   ========================================================================== */

/* Progressive Enhancement: Content visible by default, animate if JS available */
.fade-in-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* JS adds this class to enable animations */
.js-enabled .fade-in-up {
  opacity: 0;
  transform: translateY(40px);
}

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

/* Stagger delays */
.fade-in-up.delay-1 { transition-delay: 0.1s; }
.fade-in-up.delay-2 { transition-delay: 0.2s; }
.fade-in-up.delay-3 { transition-delay: 0.3s; }
.fade-in-up.delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   9. CTA SECTION
   ========================================================================== */

.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-hero-primary {
  font-size: 1.25rem;
  padding: 1.25rem 2.5rem;
}

/* Contact buttons in CTA section */
.cta-section .contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0;
}

.cta-section .btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-section .btn-contact:hover {
  background: white;
  color: #28a745;
  border-color: white;
  transform: translateY(-3px);
  text-decoration: none;
}

.cta-section .btn-contact img {
  width: 25px;
  border-radius: 3px;
}

/* ==========================================================================
   10. TRUST SIGNALS
   ========================================================================== */

.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.trust-badge i {
  color: #28a745;
  font-size: 1.25rem;
}

/* ==========================================================================
   11. CONTACT SECTION
   ========================================================================== */

.contact-section {
  padding: 4rem 0;
  background: #28a745;
  color: white;
}

.contact-section h2 {
  margin-bottom: 1.5rem;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid white;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-contact:hover {
  background: white;
  color: #28a745;
  transform: translateY(-3px);
  text-decoration: none;
}

.btn-contact img {
  width: 25px;
  border-radius: 3px;
}

/* ==========================================================================
   12. MOBILE RESPONSIVE (Mobile First!)
   ========================================================================== */

@media (max-width: 768px) {
  /* Hero Mobile - Full Viewport */
  .hero-pt-basel {
    min-height: calc(100vh - 56px);
    padding: 2rem 1rem 6rem;
    display: flex;
    align-items: center;
  }

  .hero-pt-basel .container {
    padding: 0;
  }

  .hero-pt-basel h1 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .hero-pt-basel .hero-subtitle {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .hero-pt-basel .hero-qualifications {
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .hero-pt-basel .hero-qualifications span {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
  }

  /* Hide scroll indicator on mobile */
  .scroll-indicator {
    display: none;
  }

  /* Hero CTA Group */
  .hero-pt-basel .hero-cta-group {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
  }

  /* Hero Button - match floating button style */
  .hero-pt-basel .hero-cta-group .btn-hero-primary {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 8px;
  }

  .hero-pt-basel .hero-cta-group .btn-hero-primary i {
    font-size: 0.95rem;
  }

  /* Phone buttons side by side */
  .hero-phone-row {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
  }

  .hero-phone-row .btn-hero-secondary {
    flex: 1;
    padding: 0.7rem 0.35rem;
    font-size: 0.75rem;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
  }

  .hero-phone-row .btn-hero-secondary img {
    width: 18px !important;
    margin-right: 3px !important;
  }

  /* USP Section - Mobile Fullscreen */
  .usp-section {
    padding: 0;
  }

  .usp-section .container-fluid {
    padding: 0 !important;
  }

  .usp-section .row {
    margin: 0;
  }

  .usp-section .col-md-6 {
    padding: 0;
    margin-bottom: 0 !important;
  }

  .usp-card {
    min-height: 320px;
    border-radius: 0;
  }

  .usp-card .btn {
    width: 100%;
    text-align: center;
    border-radius: 8px;
  }

  /* Process Section - smaller margins */
  .process-section {
    padding: 3rem 0;
  }

  .process-section h2 {
    margin-bottom: 2rem !important;
  }

  .process-step {
    padding: 1rem 0.5rem;
    margin-bottom: 0.5rem;
  }

  .process-step::after {
    display: none;
  }

  .process-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .process-step h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .process-step p {
    font-size: 0.9rem;
  }

  /* Banners */
  .banner-section {
    padding: 2.5rem 1rem;
  }

  .text-bigger-banner {
    font-size: 1.25rem;
  }

  .text-lead-banner {
    font-size: 0.95rem;
  }

  /* CTA Button in Banner - fix overflow and icon spacing */
  .banner-section .btn-hero-primary {
    max-width: calc(100% - 2rem);
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    white-space: normal;
    line-height: 1.4;
  }

  .banner-section .btn-hero-primary i {
    margin-right: 0.5rem;
  }

  /* Service sections */
  .service-cards-section {
    padding: 3rem 0;
  }

  /* CTA Section */
  .cta-section {
    padding: 3rem 1rem;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .cta-section .contact-buttons {
    gap: 0.75rem;
  }

  .cta-section .btn-contact {
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
  }

  /* Location section - Mobile Fullscreen */
  section.py-5.bg-light {
    padding: 0 !important;
  }

  section.py-5.bg-light .container {
    padding: 0;
    max-width: 100%;
  }

  section.py-5.bg-light .col-lg-10 {
    padding: 0;
  }

  section.py-5.bg-light h2,
  section.py-5.bg-light .lead {
    padding: 1rem;
    margin-bottom: 0 !important;
  }

  section.py-5.bg-light .row .col-md-6 {
    padding: 0;
    margin-bottom: 0 !important;
  }

  .location-box {
    padding: 1.5rem !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }

  .location-box:last-child {
    border-bottom: none;
  }

  .location-box h4 {
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   18. ENHANCED LOCATION CARDS - WOW EDITION
   ========================================================================== */

/* Desktop: Enhanced card styling */
@media (min-width: 769px) {
  .location-box {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(40, 167, 69, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow:
      0 2px 4px rgba(0, 0, 0, 0.04),
      0 8px 16px rgba(0, 0, 0, 0.06) !important;
  }

  /* Green accent bar on top */
  .location-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745 0%, #20c997 50%, #28a745 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
  }

  /* Shimmer effect */
  .location-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
  }

  .location-box:hover {
    transform: translateY(-8px) scale(1.02) !important;
    border-color: rgba(40, 167, 69, 0.25) !important;
    box-shadow:
      0 4px 8px rgba(0, 0, 0, 0.06),
      0 16px 32px rgba(0, 0, 0, 0.12),
      0 0 0 1px rgba(40, 167, 69, 0.15) !important;
  }

  .location-box:hover::before {
    transform: scaleX(1);
  }

  .location-box:hover::after {
    left: 100%;
  }

  .location-box:hover h4 {
    color: #1e7e34;
  }

  /* Icon pulse on hover */
  .location-box:hover i.text-success {
    animation: iconPulse 0.6s ease;
  }

  @keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
  }
}

/* ==========================================================================
   19. TRAINING LOCATION SECTION BACKGROUND
   ========================================================================== */

section.py-5.bg-light:has(.location-box) {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%) !important;
  position: relative;
}

/* Left floating blob */
section.py-5.bg-light:has(.location-box)::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -10%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(40, 167, 69, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatBlob 15s ease-in-out infinite;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

/* ==========================================================================
   13. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in-up {
    opacity: 1;
    transform: none;
  }

  .scroll-indicator {
    animation: none;
  }
}

/* ==========================================================================
   14. LIST STYLES
   ========================================================================== */

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefit-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.benefit-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #28a745;
}

.benefit-list li:last-child {
  border-bottom: none;
}

/* ==========================================================================
   15. SECTION DIVIDERS
   ========================================================================== */

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
  margin: 0;
}

/* ==========================================================================
   16. STICKY CTA - Mobile only (Desktop has hero button)
   ========================================================================== */

.sticky-mobile-cta {
  position: fixed;
  top: 56px; /* Below navbar */
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  background: white;
  padding: 8px 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 999;
  display: none; /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  box-sizing: border-box;
  overflow: hidden;
}

.sticky-mobile-cta.visible {
  opacity: 1;
  visibility: visible;
}

/* Mobile only - show sticky CTA */
@media (max-width: 768px) {
  .sticky-mobile-cta {
    display: block;
  }

  body {
    padding-bottom: 0;
  }
}

/* Desktop: hide completely */
@media (min-width: 769px) {
  .sticky-mobile-cta {
    display: none !important;
  }
}

.sticky-mobile-cta .btn,
.sticky-mobile-cta .btn.btn-success,
.sticky-mobile-cta .btn.btn-lg {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  font-size: 0.95rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.sticky-mobile-cta .btn i {
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ==========================================================================
   17. HERO DESKTOP OPTIMIZATION
   ========================================================================== */

/* Desktop Hero - Full Viewport, Centered Layout */
@media (min-width: 769px) {
  .hero-pt-basel {
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
  }

  .hero-pt-basel .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-pt-basel h1 {
    margin-bottom: 1.5rem;
  }

  /* ==========================================================================
     SYMMETRIC HERO LAYOUT - Desktop
     All elements (qualifications, CTA button, phone buttons) have same width
     Optimized for German text: Dipl.-Sportwissenschaftler, Bewegungstherapeut, K.O.R.E. Health Coach
     ========================================================================== */

  /* Hero Qualifications - Wider for single-line display */
  .hero-pt-basel .hero-qualifications {
    width: 680px;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .hero-pt-basel .hero-qualifications span {
    flex: 1;
    text-align: center;
    padding: 0.6rem 1rem;
    white-space: nowrap;
  }

  /* CTA Group - Aligned with qualifications */
  .hero-pt-basel .hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 680px;
  }

  /* Primary Button - Full width of container */
  .hero-pt-basel .btn-hero-primary {
    padding: 1.1rem 2rem;
    font-size: 1.15rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
  }

  /* Phone Row - Full width, buttons side by side */
  .hero-phone-row {
    display: flex;
    gap: 0.75rem;
    width: 100%;
  }

  .hero-phone-row .btn-hero-secondary {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    white-space: nowrap;
  }

  .hero-phone-row .btn-hero-secondary img {
    width: 20px !important;
    margin-right: 8px !important;
    flex-shrink: 0;
  }

  /* Scroll Indicator - Centered below */
  .hero-pt-basel .scroll-indicator {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

/* Default phone row for smaller screens */
.hero-phone-row {
  display: flex;
  gap: 0.75rem;
}

/* WebP Background Images */
.webp .hero-bg-pt-basel {
  background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(40, 167, 69, 0.3) 100%), url("/img/768/hoch.webp");
}
@media screen and (min-width: 576px) {
  .webp .hero-bg-pt-basel { background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(40, 167, 69, 0.3) 100%), url("/img/768/quer.webp"); }
}
@media screen and (min-width: 992px) {
  .webp .hero-bg-pt-basel { background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(40, 167, 69, 0.3) 100%), url("/img/1024/quer.webp"); }
}

/* ========== FOOTER MOBILE FIXES ========== */
@media screen and (max-width: 767px) {
  /* 1. Tel/Mail Links: gleicher Zeilenabstand wie Text */
  #footer-sm a[href^="tel:"],
  #footer-sm a[href^="mailto:"] {
    min-height: auto;
    min-width: auto;
    display: inline;
    padding: 0;
    line-height: inherit;
  }

  /* Kontakt-Links Block: kompakter Zeilenabstand */
  #footer-sm .kontakt-links p {
    line-height: 1.6;
  }

  /* 2. Infos-Links: weniger Zeilenabstand */
  #footer-sm .related-links-list li {
    padding: 0.15rem 0;
  }

  #footer-sm .related-links-list a {
    padding: 0.1rem 0;
  }

  /* 3. Copyright-Zeile: kompakter und optisch ansprechender */
  #copyright-line2 {
    padding: 0.4rem 0;
    text-align: center;
  }

  #copyright-line2 .col-md-6 {
    padding: 0;
  }

  #copyright-line2 .cp-left,
  #copyright-line2 .cp-right {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 0;
  }

  #copyright-line2 ul li {
    padding: 0;
    margin: 0;
    line-height: 1.3;
  }

  /* Datenschutz/Impressum: auf einer Zeile, näher am Copyright */
  #copyright-line2 .cp-right {
    margin-top: -0.2rem;
  }

  #copyright-line2 .cp-right li {
    display: inline;
  }

  #copyright-line2 .cp-right li a {
    padding: 0 0.5rem;
  }
}
