/* Base Styles */
body {
    font-family: Open Sans, sans-serif;
    scroll-behavior: smooth;
}
.font-serif {
    font-family: Open Sans, serif;
}

/* Color Gradients */
.bg-primary {
    background: linear-gradient(135deg, rgb(126, 74, 155) 0%, rgb(158, 98, 186) 100%);
}
.bg-primary-light {
    background: linear-gradient(135deg, rgb(243, 233, 250) 0%, rgb(250, 240, 255) 100%);
}
.text-primary {
    color: #2e2e2e;
}
.border-primary {
    border-color: rgb(126, 74, 155);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, rgb(126, 74, 155) 0%, rgb(158, 98, 186) 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(126, 74, 155, 0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(126, 74, 155, 0.3);
    background: linear-gradient(135deg, rgb(136, 84, 165) 0%, rgb(168, 108, 196) 100%);
}
.btn-secondary {
    background: transparent;
    border: 2px solid white;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: white;
    color: rgb(126, 74, 155);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Icon Backgrounds */
.icon-bg {
    background: linear-gradient(135deg, rgba(126, 74, 155, 0.1) 0%, rgba(158, 98, 186, 0.1) 100%);
    transition: all 0.3s ease;
}
.icon-bg:hover {
    background: linear-gradient(135deg, rgba(126, 74, 155, 0.2) 0%, rgba(158, 98, 186, 0.2) 100%);
    transform: translateY(-2px);
}
.icon-bg-white {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.icon-bg-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, rgba(126, 74, 155, 0.97) 0%, rgba(158, 98, 186, 0.97) 100%);
    position: relative;
    overflow: hidden;
}
.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 60%);
}

/* Card Styles */
.service-card {
    transition: all 0.3s ease;
    background: white;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(126, 74, 155, 0.15);
}

/* Utility Classes */
.transition-all {
    transition: all 0.3s ease;
}
.soft-shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.quote-mark {
    font-family: Merriweather, serif;
    font-size: 80px;
    line-height: 0;
    color: rgb(126, 74, 155);
    opacity: 0.3;
}

/* Navigation Styles */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: 60px;
}

.nav-container.nav-initial {
    background: linear-gradient(135deg, rgb(126, 74, 155) 0%, rgb(158, 98, 186) 100%);
}

.nav-container.nav-scrolled {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-container.nav-initial .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.nav-container.nav-initial .nav-link:hover {
    color: white;
}

.nav-container.nav-scrolled .nav-link {
    color: rgb(55, 65, 81);
}

.nav-container.nav-scrolled .nav-link:hover {
    color: rgb(126, 74, 155);
}

.nav-container.nav-initial .nav-brand {
    color: white;
}

.nav-container.nav-scrolled .nav-brand {
    color: rgb(126, 74, 155);
}

.nav-container.nav-initial .mobile-menu-button {
    color: white;
}

.nav-container.nav-scrolled .mobile-menu-button {
    color: rgb(55, 65, 81);
}

/* Mobile Navigation */
#mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(126, 74, 155, 0.1);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

/* Main Content Spacing */
main {
    margin-top: 60px;
}

/* Section Gradients */
.section-gradient-light {
    background: linear-gradient(135deg, rgb(243, 233, 250) 0%, rgb(250, 240, 255) 100%);
    position: relative;
}
.section-gradient-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.8) 0%, transparent 60%);
}

/* Contact Box Gradient */
.contact-box-gradient {
    background: linear-gradient(135deg, rgba(243, 233, 250, 0.5) 0%, rgba(250, 240, 255, 0.8) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(126, 74, 155, 0.1);
}

/* Hero Section Spacing */
.hero-section {
    padding-top: 0;
    padding-bottom: 6rem;
}

/* Einheitliche Icon-Größe für Kontakt-Icons (Questions Section) */
.icon-fixed {
  width: 2rem;   /* 32px, passend zu text-2xl */
  height: 2rem;  /* 32px */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Testimonial Slider Styles */
.testimonials-slider {
  position: relative;
  padding: 0 40px;
  overflow: hidden; /* Verhindert Scrollbars */
  max-width: 100%;
}

.testimonials-slider .swiper-container {
  overflow: hidden;
  padding-bottom: 40px; /* Platz für Pagination */
}

.testimonials-slider .swiper-slide {
  height: auto;
  box-sizing: border-box;
}

.testimonials-slider .swiper-button-next,
.testimonials-slider .swiper-button-prev {
  color: rgb(126, 74, 155);
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.testimonials-slider .swiper-button-next:after,
.testimonials-slider .swiper-button-prev:after {
  font-size: 20px;
}

.testimonials-slider .swiper-button-next {
  right: 0;
}

.testimonials-slider .swiper-button-prev {
  left: 0;
}

.testimonials-slider .swiper-pagination {
  bottom: 0;
}

.testimonials-slider .swiper-pagination-bullet-active {
  background: rgb(126, 74, 155);
}

/* Blog Slider Styles */
.blog-slider {
  position: relative;
  padding: 0 40px;
  overflow: hidden; /* Verhindert Scrollbars */
  max-width: 100%;
}

.blog-slider .swiper-container {
  overflow: hidden;
  padding-bottom: 40px; /* Platz für Pagination */
}

.blog-slider .swiper-slide {
  height: auto;
  box-sizing: border-box;
}

.blog-slider .swiper-button-next,
.blog-slider .swiper-button-prev {
  color: rgb(126, 74, 155);
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.blog-slider .swiper-button-next:after,
.blog-slider .swiper-button-prev:after {
  font-size: 20px;
}

.blog-slider .swiper-button-next {
  right: 0;
}

.blog-slider .swiper-button-prev {
  left: 0;
}

.blog-slider .swiper-pagination {
  bottom: 0;
}

.blog-slider .swiper-pagination-bullet-active {
  background: rgb(126, 74, 155);
}

/* Language Dropdown Styles */
.language-dropdown {
  transition: all 0.3s ease;
  margin-top: 20px; /* Increased space between button and dropdown */
  padding-top: 10px; /* Add padding to create a hoverable area */
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  display: block;
}

/* Show dropdown on hover */
.group:hover .language-dropdown {
  opacity: 1;
  visibility: visible;
}

/* Fix für horizontale Scrollbars */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Breadcrumb Title Truncation */
nav[aria-label="Breadcrumb"] .breadcrumb-title {
  display: inline-block !important;
  max-width: 60ch !important; /* Approximately 60 characters */
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  vertical-align: top !important;
}

/* Responsive adjustments for breadcrumb */
@media (max-width: 768px) {
  nav[aria-label="Breadcrumb"] .breadcrumb-title {
    max-width: 40ch !important; /* Shorter on mobile */
  }
}

@media (max-width: 480px) {
  nav[aria-label="Breadcrumb"] .breadcrumb-title {
    max-width: 25ch !important; /* Even shorter on very small screens */
  }
}

/* Blog Post H1 Responsive Sizing */
@media (max-width: 768px) {
  .blog-post-title {
    font-size: 2rem !important; /* Smaller on tablet */
    line-height: 2.5rem !important;
  }
}

@media (max-width: 480px) {
  .blog-post-title {
    font-size: 1.75rem !important; /* Even smaller on mobile */
    line-height: 2.25rem !important;
  }
}