/* Alyende Startseiten Slider, 28.11.2026, v2 gross */
body#index #header { margin-bottom: 0; }

.aly-hero {
  --aly-green: #046d14;
  --aly-green-dark: #086324;
  --aly-yellow: #fee366;
  --aly-ink: #1d2b1f;
  --aly-muted: #4d5a4f;
  --aly-bg: #f5f7ef;
  --aly-pad-x: clamp(24px, 6vw, 115px);
  background: var(--aly-bg);
  font-family: Poppins, Arial, sans-serif;
  color: var(--aly-ink);
}
.aly-hero__inner {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
}
.aly-hero__track { display: grid; }
.aly-slide {
  grid-area: 1 / 1;
  display: none;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  align-items: stretch;
  height: clamp(480px, 62vh, 680px);
}
.aly-slide.is-active,
.aly-slide.is-preload { display: grid; }
.aly-slide.is-preload { visibility: hidden; }
.aly-slide.is-active { animation: aly-fade .6s ease both; }
@keyframes aly-fade { from { opacity: 0; } to { opacity: 1; } }

.aly-slide__media {
  grid-column: 2;
  grid-row: 1;
  height: 100%;
  overflow: hidden;
  background: #e7ebdc;
}
.aly-slide__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.aly-slide__text {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  padding: 40px 32px 96px var(--aly-pad-x);
  border-left: 6px solid var(--aly-yellow);
}
.aly-slide__cat {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--aly-green);
  background: rgba(4, 109, 20, .08);
  padding: 4px 10px;
  border-radius: 999px;
}
.aly-slide__title {
  margin: 0;
  font-size: clamp(28px, 2.6vw, 46px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--aly-green);
  text-transform: none;
  overflow-wrap: anywhere;
}
.aly-slide__desc {
  margin: 0;
  font-size: clamp(15px, 1.1vw, 19px);
  line-height: 1.55;
  color: var(--aly-muted);
  max-width: 32ch;
}
.aly-slide__btn {
  display: inline-block;
  margin-top: 8px;
  padding: 16px 32px;
  font-size: 16px;
  line-height: 1.2;
  background: var(--aly-yellow);
  color: var(--aly-ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .12);
  transition: background-color .2s, transform .2s;
}
.aly-slide__btn:hover,
.aly-slide__btn:focus-visible {
  background: #fdd835;
  color: var(--aly-ink);
  text-decoration: none;
  transform: translateY(-1px);
}

.aly-hero__nav {
  position: absolute;
  left: calc(var(--aly-pad-x) + 6px);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.aly-hero__arrow,
.aly-hero__pause {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--aly-green);
  border-radius: 50%;
  background: #fff;
  color: var(--aly-green);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.aly-hero__arrow:hover,
.aly-hero__pause:hover { background: var(--aly-green); color: #fff; }
.aly-hero__dots { display: flex; align-items: center; gap: 2px; }
.aly-hero__dot {
  min-width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.aly-hero__dot::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(4, 109, 20, .25);
  transition: width .25s, background-color .25s;
}
.aly-hero__dot[aria-current="true"] { min-width: 28px; }
.aly-hero__dot[aria-current="true"]::before { width: 28px; background: var(--aly-green); }
.aly-hero__dot:hover::before { background: rgba(4, 109, 20, .5); }
.aly-hero__dot[aria-current="true"]:hover::before { background: var(--aly-green); }
.aly-hero__pause span {
  display: block;
  width: 10px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.aly-hero__pause[aria-pressed="true"] span {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
  margin-left: 3px;
}
.aly-hero button:focus-visible,
.aly-slide__btn:focus-visible { outline: 3px solid var(--aly-green-dark); outline-offset: 2px; }

@media (max-width: 767px) {
  .aly-slide { grid-template-columns: 1fr; height: auto; }
  .aly-slide__media { grid-column: 1; grid-row: 1; height: auto; aspect-ratio: 16 / 9; }
  .aly-slide__text {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 12px;
    box-sizing: border-box;
    min-height: 360px;
    padding: 20px 16px 76px;
    border-left: 0;
    border-top: 5px solid var(--aly-yellow);
  }
  .aly-slide__title { font-size: 22px; line-height: 1.25; }
  .aly-slide__desc { font-size: 15px; max-width: none; }
  .aly-slide__btn { padding: 14px 28px; }
  .aly-hero__nav { left: 12px; right: 12px; bottom: 20px; gap: 6px; }
  .aly-hero__arrow, .aly-hero__pause { width: 36px; height: 36px; font-size: 20px; }
  .aly-hero__dots { gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .aly-slide.is-active { animation: none; }
  .aly-slide__btn, .aly-hero__dot::before { transition: none; }
}
