/* =========================================================
   HERO
========================================================= */
.faq-group .hero-title {
  padding-top: 1rem;
}

.faq-group .hero-title h2 {
  color: #111827;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 0.5;
}

.faq-group .hero-title h3 {
  color: #ff0098;
  font-size: clamp(1.2rem, 2.4vw, 2.5rem);
  font-weight: 400;
  line-height: 0.5;
}

.faq-item__hero-text {
  overflow: hidden;

  background: #ffffff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  padding: 2rem;

  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.faq-item__hero-text p {
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
}

.hero-title .divider-line {
  background: #ff0098;
  
  height: 5px;
  width: 50px;

  margin: 1rem 0 1rem;
}

/* =========================================================
   LAYOUT
========================================================= */

.faq-section {
  background: #f3f4f6;
}

.faq-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 3.3rem;
    align-items: stretch;
    padding-top: 2rem;
}

.faq-content {
  display: flex;
  flex-direction: column;
  margin-top: 3rem;
  min-width: 0;
}


/* =========================================================
   FAQ SIDEBAR
========================================================= */

.faq-nav {
  display: flex;
  flex-direction: column;
  height: 100%;

  padding: 6rem 0 25rem;

  background: #ffffff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;

  overflow: hidden;
}

.faq-nav__head {
  display: block;
  padding: 1rem 2rem;

  color: #111827;
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-weight: 700;
  line-height: 1.35;

  cursor: default;
}

.faq-nav a {
  display: flex;
  align-items: center;

  width: 100%;
  min-height: 48px;
  padding: 1rem 2rem;
  box-sizing: border-box;

  color: #111827;
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-weight: 300;
  line-height: 1.35;
  text-decoration: none;

  border-radius: 0;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.faq-nav a.faq-nav__head {
  font-weight: 700;
  cursor: pointer;
}


.faq-nav a:hover {
  color: #111827;
  background: #ececf0;
}

.faq-nav a.is-active {
  color: #ff0098;
}

.faq-nav a.faq-nav__head.is-active {
  color: #ff0098;
}

.faq-nav a:focus-visible {
  outline: 2px solid #ff0098;
  outline-offset: -2px;
}


.faq-nav a.faq-nav__head:focus-visible {
  outline: 2px solid #ff0098;
  outline-offset: -2px;
}


/* =========================================================
   FAQ-GRUPPEN
========================================================= */


.faq-group + .faq-group {
  margin-top: 3rem;
}

.faq-group__header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* Nummern 01 bis 08 ausblenden */
.faq-group__header > span {
  display: none;
}

.faq-group__header h2 {
  margin: 0;

  color: #111827;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.add-plus-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;

  fill: currentColor;
}

.delivery-address-buttons {
  width: calc(50% - 0.75rem);

  display: flex;
  flex-direction: column;
  gap: 1rem;

  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* =========================================================
   ACCORDION
========================================================= */

.faq-item {
  overflow: hidden;

  background: #ffffff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);

  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.faq-item + .faq-item {
  margin-top: 1rem;
}

.faq-item:hover,
.faq-item[open] {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.13);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  min-height: 64px;
  padding: 1rem 1.5rem;
  box-sizing: border-box;

  color: #111827;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;

  cursor: pointer;
  list-style: none;

  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
  content: "";
}

.faq-item summary:hover {
  background: #ececf0;
}

.faq-item[open] summary {
  color: #ff0098;
}

/* Altes CSS-Plus deaktivieren */
.faq-item summary::before,
.faq-item summary::after {
  display: none;
  content: none;
}

/* SVG-Plus */
.faq-item summary .add-plus-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;

  color: currentColor;
  fill: currentColor;

  transition: transform 0.2s ease;
}

/* Plus wird beim Öffnen zum X */
.faq-item[open] summary .add-plus-icon {
  transform: rotate(45deg);
}

.faq-item summary:focus-visible {
  outline: 2px solid #ff0098;
  outline-offset: -2px;
}

/* =========================================================
   ACCORDION-INHALT
========================================================= */

.faq-item__answer {
  padding: 0 1.5rem 1.5rem;

  color: var(--sx-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item__answer::before {
  content: "";

  display: block;

  width: 100%;
  height: 1px;
  margin-bottom: 1.25rem;

  background: var(--sx-border);
}

.faq-item__answer p {
  margin: 0;
}

.faq-item__answer p + p,
.faq-item__answer p + ul,
.faq-item__answer p + ol,
.faq-item__answer ul + p,
.faq-item__answer ol + p {
  margin-top: 1rem;
}

.faq-item__answer ul,
.faq-item__answer ol {
  margin-bottom: 0;
  padding-left: 1.35rem;
}

.faq-item__answer li + li {
  margin-top: 0.45rem;
}

.faq-item__answer li::marker {
  color: var(--sx-pink);
}


/* =========================================================
   CTA
========================================================= */

.faq-cta {
  margin-top: 3rem;
  padding: 0 0 5rem;
  background: #f3f4f6;
}

.faq-cta__inner {
  gap: 3rem;
  align-items: center;

  padding: 2.5rem 3rem;

  background: #ffffff;
  color: #111827;

  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.faq-cta__eyebrow {
  display: block;

  color: var(--sx-pink);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.faq-cta h2 {
  margin: 0.75rem 0 0;

  color: #111827;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.faq-cta p {
  margin: 1rem 0 0;

  color: #4b5563;
  line-height: 1.7;
}


.faq-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;

  min-height: 48px;
  margin: 1rem 0 2rem;
  padding: 0.8rem 1.25rem;

  background: #ff0098;
  color: #ffffff;
  border: 1px solid #ff0098;
  border-radius: 8px;

  font-weight: 400;
  text-align: center;
  text-decoration: none;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.faq-cta__button:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.faq-cta__button span {
  font-size: 1.1rem;
}

.faq-legal {
  color: #6b7280;
  font-size: 0.78rem;
  line-height: 1.6;
}

/* =========================================================
   RESPONSIVE BASIS-KORREKTUREN
========================================================= */

.faq-section,
.faq-section *,
.faq-section *::before,
.faq-section *::after {
  box-sizing: border-box;
}

.faq-section {
  padding: 4rem 0 5rem;
  background: #f3f4f6;
}

.faq-layout {
  width: min(100% - 3rem, 1280px);
  margin-inline: auto;
}

.faq-group {
  scroll-margin-top: 6rem;
}

/* Hero */

.faq-group .hero-title {
  padding-top: 0;
}

.faq-group .hero-title h2 {
  margin: 0;

  color: #111827;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.faq-group .hero-title h3 {
  margin: 0;

  color: #ff0098;
  font-size: clamp(1.2rem, 2.4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
}

.hero-title .divider-line {
  width: 50px;
  height: 5px;
  margin: 1.25rem 0;

  background: #ff0098;
  border-radius: 999px;
}

.faq-item__hero-text {
  margin-top: 2rem;
}

.faq-item__hero-text p {
  margin: 0;

  color: #4b5563;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
}

/* Sidebar */

.faq-nav {
  align-self: start;
  height: auto;
  padding: 2rem 0;

  position: sticky;
  top: 6rem;
}

/* Kein künstliches Auffüllen der Sidebar */
.faq-nav {
  min-height: 0;
}

/* Inhalt */

.faq-content {
  margin-top: 0;
}

/* Accordion */

.faq-item summary > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.faq-item summary .add-plus-icon {
  margin-left: auto;
}

/* Buttons innerhalb von Antworten */

.delivery-address-buttons {
  width: min(100%, 420px);
}

/* CTA */

.faq-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 960px) {
  .faq-section {
    padding: 3rem 0 4rem;
  }

  .faq-layout {
    width: min(100% - 2.5rem, 860px);

    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 0;
  }

  /*
    Sidebar wird zu einer horizontalen Kategorienleiste.
    Sie bleibt beim Scrollen oben sichtbar.
  */

  .faq-nav {
    position: sticky;
    top: 4rem;
    z-index: 10;

    width: 100%;
    padding: 0.75rem;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;

    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;

    border-radius: 8px;
  }

  .faq-nav__head,
  .faq-nav a {
    width: auto;
    min-width: max-content;
    min-height: 42px;
    padding: 0.65rem 1rem;

    display: inline-flex;
    justify-content: center;

    border-radius: 6px;

    font-size: 0.875rem;
    white-space: nowrap;
  }

  .faq-nav a:hover {
    background: #f3f4f6;
  }

  .faq-nav a.is-active {
    background: rgba(255, 0, 152, 0.08);
  }

  .faq-content {
    margin-top: 0;
  }

  .faq-group + .faq-group {
    margin-top: 2.75rem;
  }

  .faq-item__hero-text {
    padding: 1.75rem;
  }

  .faq-cta__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.25rem;
  }

  .faq-cta__button {
    width: fit-content;
    margin-bottom: 0;
  }
}