/* Prevent horizontal scrolling globally */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

/* Verbesserte Animationen */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

/* Service Section Animations - FIX für Mobile/iPhone */
.animate-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-item.visible,
.service-card.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Fallback für Geräte ohne IntersectionObserver */
@media (max-width: 768px) {
  .animate-item,
  .service-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

.animate-bounce-in {
  animation: bounceIn 0.6s ease forwards;
}

/* Verbesserter Glassmorphism Effekt */
.glass {
  background: rgba(93, 0, 159, 0.15); /* Verwendet secondary-Farbe */
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.glass:hover {
  background: rgba(93, 0, 159, 0.25);
}

/* Verbesserte Hover Effekte */
.hover-scale {
  transition: all 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(61, 0, 104, 0.2); /* Schatten in primary-Farbe */
}

/* Sprachselektor Styling */
.language-selector {
  position: relative;
}

.language-selector button:focus {
  outline: none;
  ring: 2px;
  ring-color: rgba(139, 69, 219, 0.5);
}

/* Global Text Color - Make all text black */
* {
  color: #000000 !important;
}

/* White text exceptions for specific elements */
.hero-title-left,
.hero-title-right,
.text-white,
nav,
nav *,
footer,
footer * {
  color: white !important;
}

.hero-section {
  height: 100vh;
}

/* Hero Section - Desktop Layout */
.hero-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 70% 30%;
  align-items: center;
}

.hero-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: high-quality;
  image-rendering: -webkit-optimize-contrast;
}

.hero-content-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-text-left {
  display: none;
}

.hero-text-right {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-title-left,
.hero-title-right {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: bold;
  line-height: 1.3;
  margin: 0;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

.hero-text-word {
  display: block;
  width: 100%;
}

/* Single Title for Mobile/Tablet */
.hero-title-single {
  display: none;
}

/* Responsive Design für große Tablets */

/* Responsive Design für mittlere Tablets (901-1024px) */
@media (max-width: 1024px) and (min-width: 901px) {
  .hero-section {
    height: auto;
    min-height: auto;
  }

  .hero-container {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: column;
  }

  .hero-image-container {
    width: 100%;
    height: 65vh;
    order: 1;
    margin-top: 0;
  }

  .hero-image {
    width: 100%;
    height: 65vh;
    object-fit: cover;
    object-position: center;
  }

  .hero-content-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    min-height: auto;
    order: 2;
    display: flex;
    flex-direction: row;
    padding: 2rem 0;
    justify-content: center;
    align-items: center;
  }

  .hero-text-left,
  .hero-text-right {
    display: none !important;
  }

  .hero-title-single {
    display: flex !important;
    flex-direction: row;
    gap: 2rem;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: bold;
    color: white;
    text-align: center;
    margin: 0;
    width: 100%;
    justify-content: space-evenly;
    align-items: center;
  }

  .hero-word-group-left,
  .hero-word-group-right {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
}

/* Responsive Design für Tablets (≤900px) */
@media (max-width: 900px) {
  .hero-section {
    height: auto;
    min-height: auto;
  }

  .hero-container {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: column;
  }

  .hero-image-container {
    width: 100%;
    height: 60vh;
    order: 1;
    margin-top: 0;
  }

  .hero-image {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    object-position: center;
  }

  .hero-content-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    min-height: auto;
    order: 2;
    display: flex;
    flex-direction: row;
    padding: 2rem 0;
    justify-content: center;
    align-items: center;
  }

  .hero-text-left,
  .hero-text-right {
    display: none !important;
  }

  .hero-title-single {
    display: flex !important;
    flex-direction: row;
    gap: 2rem;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: bold;
    color: white;
    text-align: center;
    margin: 0;
    width: 100%;
    justify-content: space-evenly;
    align-items: center;
  }

  .hero-word-group-left,
  .hero-word-group-right {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
}

/* Shimmer Animation - Langsamer */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.animate-shimmer {
  animation: shimmer 6s ease-in-out infinite;
}

/* Responsive Design für Mobile */
@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: auto;
  }

  .hero-container {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: column;
  }

  .hero-image-container {
    width: 100%;
    height: 55vh;
    order: 1;
    margin-top: 0;
  }

  .hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .hero-content-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    min-height: auto;
    order: 2;
    display: flex;
    padding: 2rem 0;
    justify-content: center;
    align-items: center;
  }

  .hero-text-left,
  .hero-text-right {
    display: none !important;
  }

  .hero-title-single {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 1.5rem;
    font-size: clamp(1.3rem, 5vw, 2rem);
    font-weight: bold;
    color: white;
    text-align: center;
    margin: 0;
    justify-content: space-evenly;
    align-items: center;
  }

  .hero-word-group-left,
  .hero-word-group-right {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
}

/* Spezifischer Range für 520px-750px - Vergrößertes Bild */
@media (min-width: 520px) and (max-width: 750px) {
  .hero-image-container {
    height: 55vh !important;
  }

  .hero-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
}

/* Responsive Design für sehr kleine Mobile Geräte */
@media (max-width: 480px) {
  .hero-section {
    min-height: auto;
  }

  .hero-container {
    display: flex !important;
    grid-template-columns: none !important;
  }

  .hero-image-container {
    height: 35vh;
    margin-top: 0;
  }

  .hero-image {
    object-fit: contain;
  }

  .hero-content-wrapper {
    padding: 1.5rem 0;
    min-height: auto;
  }

  .hero-text-left,
  .hero-text-right {
    display: none !important;
  }

  .hero-title-single {
    display: flex !important;
    flex-direction: row;
    gap: 1rem;
    font-size: clamp(1.1rem, 5.5vw, 1.6rem);
    line-height: 1.3;
  }

  .hero-word-group-left,
  .hero-word-group-right {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
  }
}

/* Responsive Design für extra kleine Mobile Geräte */
@media (max-width: 400px) {
  .hero-container {
    display: flex !important;
    grid-template-columns: none !important;
  }

  .hero-image-container {
    height: 28vh;
  }

  .hero-content-wrapper {
    padding: 1.5rem 0;
  }

  .hero-title-single {
    display: flex !important;
    flex-direction: row;
    font-size: clamp(0.9rem, 6vw, 1.3rem);
    gap: 0.8rem;
    line-height: 1.2;
  }

  .hero-word-group-left,
  .hero-word-group-right {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
  }
}
