/* New Color Scheme: Gold/Yellow (CB9A39) and Dark Green (334626) */
:root {
  --primary: #334626;
  --secondary: #CB9A39;
  --primary-rgb: 51, 70, 38;
  --secondary-rgb: 203, 154, 57;
}

/* Override Tailwind Primary Blue */
.text-primary, .bg-primary, .border-primary {
  --tw-text-opacity: 1;
  color: rgb(51 70 38 / var(--tw-text-opacity)) !important;
}
.bg-primary {
  --tw-bg-opacity: 1;
  background-color: rgb(51 70 38 / var(--tw-bg-opacity)) !important;
}
.border-primary {
  --tw-border-opacity: 1;
  border-color: rgb(51 70 38 / var(--tw-border-opacity)) !important;
}

/* 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 Gold/Green theme */
img[src*="shape"],
img[src*="icon"] {
  /* Greenish tint: hue-rotate(approx 80-100 deg for green from blue) or similar */
  /* For Dark Green #334626 */
  filter: sepia(100%) hue-rotate(50deg) saturate(100%) brightness(0.5);
}

/* 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.3);
}

/* Neutralize Feature Icon Backgrounds (Kindergarten colors -> Light Green/Sand) */
.mh,
.nh,
.oh {
  background-color: #F3F4F1 !important; /* Very light greenish gray */
}

/* 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: #CB9A39; /* Gold/Yellow */
  transition: all 0.3s ease;
}

a:not([class]):hover {
  color: #334626; /* Dark Green */
  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: #CB9A39;
}

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

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

/* Global Overrides for common blue-related classes in this project */
.bg-blue-600, .bg-blue-700, .bg-indigo-600,
.gh, .sh, .wh {
  background-color: #334626 !important;
  fill: #334626 !important;
}
.text-blue-600, .text-blue-700, .text-indigo-600,
.aj, .sj, .xj {
  color: #CB9A39 !important;
}
.border-blue-600, .border-indigo-600,
.gk, .hk, .kk, .ok, .pk, .tk, .uk {
  border-color: #334626 !important;
}

/* Specifically for buttons often used in templates */
.ud-main-btn {
  background-color: #334626 !important;
  color: white !important;
  border-color: #334626 !important;
}
.ud-main-btn:hover {
  background-color: #CB9A39 !important;
  border-color: #CB9A39 !important;
  color: white !important;
}

/* 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 */
}
