/* --- Garden Accordion: Komplett-CSS (angepasst) --- */
.garden-accordion {
  --gap: clamp(12px, 2vw, 20px);
  --radius: 20px;
  --speed: 380ms;
  --easing: cubic-bezier(.22,.61,.36,1);
  padding: clamp(10px, 4vw, 40px);
  background: #432918;
}

.garden-accordion h3 {
	color: #FFF;
}

.ga-track {
  display: flex;
  gap: var(--gap);
  align-items: stretch;
}

/* --- Card --- */
.ga-card {
  position: relative;
  flex: 1 1 0;
  min-width: 180px;
  height: clamp(380px, 60vh, 560px);
  border-radius: var(--radius);
  border: 3px solid #FFF;
  overflow: hidden;
  cursor: pointer;
  transition:
    flex-basis var(--speed) var(--easing),
    flex-grow var(--speed) var(--easing),
    height var(--speed) var(--easing),
    transform var(--speed) var(--easing);
  background: transparent;
  isolation: isolate;
}

/* aktive Karte wird breiter */
.ga-card.is-active { flex: 3 1 0; }

/* Wir rendern das Bild über <img.ga-bg>, nicht mehr über ::before */
.ga-card::before { content: none !important; }

/* Verlauf darüber für bessere Lesbarkeit */
.ga-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,.55) 85%,
    rgba(0,0,0,.8) 100%
  );
  z-index: 1; /* über dem Bild */
}

/* Hover-Verlauf etwas kräftiger */
.ga-card:hover::after {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.08) 0%,
    rgba(0,0,0,.65) 85%,
    rgba(0,0,0,.9) 100%
  );
}

/* --- Bild: füllt die Karte, zentriert, mit sanftem Zoom auf aktiver Karte --- */
.ga-card .ga-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;       /* füllt ohne Verzerrung */
  object-position: center; /* zentriertes Motiv */
  transform: scale(1);
  transition: transform var(--speed) var(--easing);
  z-index: 0;              /* unter Verlauf & Content */
}
.ga-card.is-active .ga-bg { transform: scale(1.05); }

/* --- Content --- */
.ga-content {
  position: absolute;
  inset-inline: clamp(16px, 2.5vw, 28px);
  bottom: clamp(16px, 2.5vw, 28px);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
  z-index: 2; /* über Verlauf & Bild */
}

.ga-kicker {
  font: 600 12px/1.2 system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .85;
  margin: 0 0 .35rem;
  color: #FFF; 
}

.ga-title {
  font: 800 clamp(20px, 4vw, 38px)/1.1 system-ui, sans-serif;
  margin: 0 0 .4rem;
  word-wrap: break-word; /* Zeilenumbruch bei langen Wörtern */
  hyphens: auto;
  white-space: normal;
  color: #FFF; 
}

.ga-card:not(.is-active) .ga-title {
  font-size: clamp(20px, 3vw, 22px); /* kleiner in geschlossenen Cards */
  line-height: 1.2;
}

.ga-text {
  font: 400 clamp(14px, 1.6vw, 16px)/1.5 system-ui, sans-serif;
  max-width: 40ch;
  margin: 0 0 .9rem;
  opacity: .95;
}

.ga-cta {
  display: inline-block;
  padding: .6rem 1.0rem;
  border-radius: 5px;
  background: var(--bg-ga-cta);
  color: var(--color-ga-cta);
  text-decoration: none;
  /*backdrop-filter: blur(4px);*/
  border: 1px solid rgba(255,255,255,.25);
  transition:
    transform var(--speed) var(--easing),
    background-color var(--speed) var(--easing) !important;
	box-shadow: 5px 5px 0px #DDD;
	text-shadow: none;
	text-transform: uppercase;
}
.ga-cta:hover { transform: translateY(-2px) !important; background: var(--bg-ga-cta-hover); color: var(--color-ga-cta); }

/* --- Toggle-Pfeil: immer oben rechts --- */
.ga-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: #95C11F;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    transform var(--speed) var(--easing),
    background-color var(--speed) var(--easing),
    opacity var(--speed) var(--easing);
  z-index: 2;
}
.ga-toggle:hover { transform: scale(1.06); }

/* Pfeil-Icon */
.ga-toggle svg {
  width: 22px; height: 22px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--speed) var(--easing), stroke var(--speed) var(--easing);
	color: #FFF
}

/* Geschlossen: Pfeil nach links */
.ga-card:not(.is-active) .ga-toggle svg {
  stroke: #0a0a0a;
  transform: rotate(135deg); /* zeigt nach links */
}

/* Offen: Pfeil nach rechts */
.ga-card.is-active .ga-toggle {
  background: #FFF;
}
.ga-card.is-active .ga-toggle svg {
  stroke: #fff;
  transform: rotate(-50deg); /* zeigt nach rechts */
	color: #95C11F;
}

/* --- Responsiv: vertikales Accordion --- */
@media (max-width: 1199.98px) {
  .ga-track { flex-direction: column; }
  .ga-card {
    flex: 0 0 auto;
    height: clamp(140px, 28vh, 220px);
  }
  .ga-card.is-active {
    height: min(68vh, 560px);
    flex: 0 0 auto;
  }
}
