/* Custom styles for responsive hero image */
.hero-image-container {
  display: block;
  position: relative;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 0 1.5rem;
  width: 100%;
  height: auto;
  z-index: 10;
}

.hero-image-container img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

@media (min-width: 1024px) {
  .hero-image-container {
    margin-top: 2rem;
    margin-bottom: 4rem;
  }
  .hero-image-container img {
    max-width: 80%;
  }
}

@media (min-width: 1280px) {
  .hero-image-container {
    position: absolute;
    right: 5% !important;
    top: 100px !important;
    width: 600px;
    /* Base width */
    max-width: 45vw;
    /* Responsive constraint */
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
  }
  .hero-image-container img {
    max-width: 100%;
  }
}

/* Override colorful design elements (shapes/icons) to Blue/Gray theme */
img[src*="shape"],
img[src*="icon"] {
  filter: grayscale(100%) sepia(100%) hue-rotate(190deg) saturate(150%) brightness(0.95);
}

/* Make some shapes more subtle/gray */
img[src*="shape-02"],
img[src*="shape-04"],
img[src*="shape-08"],
img[src*="shape-10"] {
  filter: grayscale(100%) opacity(0.5);
}

/* Neutralize Feature Icon Backgrounds (Kindergarten colors -> Slate Gray) */
.mh,
.nh,
.oh {
  background-color: #F1F5F9 !important;
  /* Slate-100 */
}

/* Container for 4 columns on desktop */
.vorteile-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}

@media (min-width: 768px) {
  .vorteile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .vorteile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Make images larger and responsive */
.benefit-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.benefit-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Links optisch hervorheben */
a:not([class]) {
  text-decoration: underline;
  color: #3c52b2; /* Ein Blau-Ton, der zum Design passt */
  transition: all 0.3s ease;
}

a:not([class]):hover {
  color: #1d2a6d; /* Dunklerer Blau-Ton für Hover */
  text-decoration: none;
}

/* Spezifische Behandlung für Links in Textabschnitten, falls sie Klassen haben */
p a, li a:not(.xl):not(.sc) {
  text-decoration: underline;
  color: #3c52b2;
}

p a:hover, li a:not(.xl):not(.sc):hover {
  text-decoration: none;
  color: #1d2a6d;
}

.benefit-image-wrapper:hover img {
  transform: scale(1.05);
}

/* Scroll-Offset für Anker-Links wegen des Sticky Headers */
html {
    scroll-behavior: smooth;
  }

  /* Sicherstellen, dass Zielelemente nicht unter dem Sticky Header verschwinden */
  section[id] {
    scroll-margin-top: 100px; /* Erhöht von 80px auf 100px für mehr Abstand zum Header */
  }

.lang-switcher-wrapper {
    display: flex;
    align-items: center;
}

@media (max-width: 1023px) {
    .lang-switcher-wrapper {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        justify-content: flex-start;
    }
}

/* Language Switcher Styles */
.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    color: inherit;
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.lang-btn span {
    color: white !important;
}

.lang-dropdown {
    position: absolute;
    right: 0;
    margin-top: 0.5rem;
    width: 10rem;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    overflow: hidden;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #1e293b; /* dark slate */
    text-decoration: none !important;
    transition: background-color 0.2s;
}

.lang-item:hover {
    background-color: #f1f5f9; /* slate-100 */
}
