/* =====================================================
   LEISTUNGEN – Seitenstyles
   ===================================================== */




/* =========================================
   Accordion: 2 Spalten (full width im page-wrapper)
   ========================================= */

.leistungen-accordion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  width: 100%;
  margin: 0;
}

@media (max-width: 900px) {
  .leistungen-accordion-grid {
    grid-template-columns: 1fr;
    gap: 0px;
  }
}

/* =========================================
   Accordion (Checkbox + max-height Transition)
   ========================================= */

.ls-accordion {
  width: 100%;
}

.ls-item {
  border-top: 1px solid rgba(108, 96, 95, 0.45);
}

.ls-item:last-child {
  border-bottom: 1px solid rgba(108, 96, 95, 0.45);
}

/* Toggle input verstecken (aber zugänglich lassen) */
.ls-toggle {
  position: absolute !important;
  opacity: 0;
  pointer-events: none;
}

/* Trigger/Label */
.ls-label {
  display: block;
  position: relative;
  padding: 16px 48px 16px 0;
  cursor: pointer;
  user-select: none;

  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 21px;
}

@media (min-width: 1400px) {
  .ls-label {
    font-size: 26px;
  }
}

/* Hover: dezentes Feedback */
.ls-label:hover {
  background-color: rgba(108, 96, 95, 0.06);
}

/* Fokus sichtbar */
.ls-label:focus,
.ls-label:focus-visible {
  outline: 2px solid rgba(108, 96, 95, 0.55);
  outline-offset: 6px;
}

/* Plus/Minus Icon rechts */
.ls-icon {
  position: absolute;
  right: 0;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
}

.ls-icon::before,
.ls-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--accent);
  transform: translateY(-50%);
}

.ls-icon::after {
  transform: translateY(-50%) rotate(90deg);
}

/* geöffnet: Minus */
.ls-toggle:checked + .ls-label .ls-icon::after {
  opacity: 0;
}

/* Optional: linke Akzentlinie im geöffneten Zustand */
.ls-toggle:checked + .ls-label {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  padding-right: 48px;
}

/* Panel */
.ls-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
  padding: 0;
}

.ls-content-inner {
  padding: 0 0 16px 0;
}

.ls-content-inner p {
  margin: 0 0 12px;
}

.ls-content-inner p:last-child {
  margin-bottom: 0;
}

/* geöffnet */
.ls-toggle:checked + .ls-label + .ls-content {
  max-height: 1000px;
}


/* =========================================
   CTA Button Position 
   ========================================= */


@media (max-width: 900px) {
  body.leistungen .content-grid .content-cta {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .grid-text .content-cta {
    margin-top: 20px;
  }
}



/* =========================================
   LEISTUNGEN – Mobile: Abstände Intro + Accordion 
   ========================================= */
@media (max-width: 900px) {

  /* Intro unten kürzer */
  body.leistungen .section.section-intro {
    padding-bottom: 20px; /* statt 60px */
  }

  /* Background der Intro-Section optisch passend */
  body.leistungen .section.section-intro::before {
    height: calc(100% - 30px);
  }

  /* letzter Absatz ohne Zusatzabstand */
  body.leistungen .section.section-intro .grid-text p:last-of-type {
    margin-bottom: 0;
  }

  /* Nächste Section (Accordion) oben weniger Luft */
  body.leistungen .section.section-intro + .section {
    padding-top: 30px; /* statt 60px */
  }
}

