/* ==========================================================================
   FAQ — hairline rows on the deep band, one answer open at a time.
   ========================================================================== */

.faq__hint {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
}

.faq__list-wrap {
  margin-block-start: clamp(2.5rem, 5vw, 4rem);
  border-block-start: 1px solid var(--c-line);
}

.faq__item {
  border-block-end: 1px solid var(--c-line);
}

/* ------------------------------------------------------------- Question -- */

.faq__question {
  font-family: inherit;
  letter-spacing: normal;
}

.faq__toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-5);
  width: 100%;
  padding-block: clamp(1.15rem, 2vw, 1.6rem);
  text-align: left;
}

.faq__question-text {
  color: var(--c-ink);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.75vw, 1.45rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.012em;
  text-wrap: pretty;
  transition: color var(--dur-hover) var(--ease-out-soft);
}

@media (hover: hover) {
  .faq__toggle:hover .faq__question-text {
    color: var(--c-accent);
  }
}

.faq__item.is-open .faq__question-text {
  color: var(--c-accent);
}

.faq__toggle:focus-visible {
  outline: none;
}

.faq__item:has(.faq__toggle:focus-visible) {
  outline: 2px solid var(--c-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* --------------------------------------------------------------- Marker -- */

/* A plus that becomes a minus — the whole rotation carries the state. */
.faq__marker {
  position: relative;
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  /* Optical centring against the first line of the question. */
  margin-block-start: 0.15rem;
  border-radius: 50%;
  border: 1px solid var(--c-line-strong);
  transition: background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}

.faq__marker::before,
.faq__marker::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.62rem;
  height: 1px;
  background: var(--c-ink);
  transform: translate(-50%, -50%);
  transition: transform var(--dur-base) var(--ease-in-out),
    background-color var(--dur-base) var(--ease-out);
}

.faq__marker::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

@media (hover: hover) {
  .faq__toggle:hover .faq__marker {
    border-color: var(--c-accent);
  }
}

.faq__item.is-open .faq__marker {
  background: var(--c-accent);
  border-color: var(--c-accent);
  transform: rotate(180deg);
}

.faq__item.is-open .faq__marker::before,
.faq__item.is-open .faq__marker::after {
  background: var(--c-accent-on);
}

.faq__item.is-open .faq__marker::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

/* ----------------------------------------------------------------- Fold -- */

.faq__fold {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows var(--dur-base) var(--ease-in-out),
    opacity var(--dur-fast) var(--ease-out);
}

.faq__fold-inner {
  overflow: hidden;
  min-height: 0;
}

.faq__item.is-open .faq__fold {
  grid-template-rows: 1fr;
  opacity: 1;
  transition-delay: 60ms;
}

.faq__answer {
  display: grid;
  gap: var(--sp-4);
  /* Clear of the marker column so the answer never sits under the button. */
  max-width: 58ch;
  padding-block-end: clamp(1.35rem, 2.4vw, 1.9rem);
  padding-inline-end: 2.6rem;
  color: var(--c-ink-soft);
  font-size: var(--fs-small);
  line-height: 1.72;
}

.faq__list {
  display: grid;
  gap: 0.5rem;
}

.faq__list li {
  position: relative;
  padding-inline-start: 1.1rem;
}

.faq__list li::before {
  content: '';
  position: absolute;
  left: 0;
  /* Sits on the x-height rather than the line box centre. */
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-accent);
}

/* Label + value pairs (check-in / check-out) — a small table, not a list. */
.faq__list--pairs li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.75rem;
  padding-inline-start: 0;
}

.faq__list--pairs li::before {
  display: none;
}

.faq__list--pairs span {
  min-width: 7rem;
  color: var(--c-ink);
  font-weight: 500;
}

/* Auf dem Telefon steht unter der Antwort ohnehin kein Knopf mehr rechts. */
@media (max-width: 640px) {
  .faq__answer {
    padding-inline-end: 0;
  }
}
