/* Häufige Fragen: topic list beside the numbered questions */
.phero .h1 { max-width: 18ch; }

.fq { padding-bottom: clamp(4.5rem, 9vw, 6.5rem); }
.fq__wrap { display: grid; grid-template-columns: 15rem 1fr; gap: 4.5rem; align-items: start; }
.fq__nav { position: sticky; top: 6rem; }
.fq__h { padding-left: .75rem; font-size: .85rem; font-weight: 600; letter-spacing: 0; color: var(--brand); }
.fq__nav ol { position: relative; display: grid; gap: .15rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.fq__nav ol::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--h, 2.6rem); border-radius: .55rem; background: var(--paper); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(29, 27, 24, .06); opacity: 0; transform: translateY(var(--y, 0)); pointer-events: none; }
.fq__nav ol.has-mark::before { opacity: 1; }
.fq__nav li { position: relative; }
.fq__nav a { display: grid; grid-template-columns: 1.3rem 1fr auto; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: .55rem; font-size: .94rem; line-height: 1.3; color: var(--ink-2); }
.fq__nav a:hover { color: var(--brand); }
.fq__nav a[aria-current] { color: var(--ink); font-weight: 600; }
.fq__nav .px { width: 1.3rem; height: 1.3rem; }
.fq__nav small { font: 600 .7rem var(--mono); color: var(--faint); }

.fq__groups { min-width: 0; max-width: 48rem; }
.fq__group + .fq__group { margin-top: 3.5rem; }
.fq__label { display: flex; align-items: center; gap: .75rem; padding-bottom: .9rem; border-bottom: 1.5px solid var(--ink); font-size: 1.55rem; font-weight: 650; line-height: 1.2; letter-spacing: -.03em; }
.fq__label .px { width: 1.6rem; height: 1.6rem; }
.fq__label span { margin-left: auto; font: 600 .72rem var(--mono); letter-spacing: .02em; color: var(--faint); white-space: nowrap; }
.qa p a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.qa p a:hover { color: var(--brand); }

.fq__help { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.1rem 1.4rem; margin-top: 4rem; padding: 1.6rem 1.7rem; border-radius: .875rem; background: var(--dark); color: var(--on-dark); }
.fq__help > .px { width: 2.2rem; height: 2.2rem; }
.fq__help h2 { font-size: 1.35rem; font-weight: 650; line-height: 1.2; letter-spacing: -.025em; }
.fq__help p { margin-top: .3rem; font-size: .95rem; color: var(--on-dark-2); }

@media (max-width: 66.25em) {
  .fq__wrap { grid-template-columns: 13rem 1fr; gap: 3rem; }
}

@media (max-width: 53.75em) {
  .fq__wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .fq__nav { position: static; }
  .fq__h { padding-left: 0; }
  .fq__nav ol { display: flex; flex-wrap: wrap; gap: .45rem; }
  .fq__nav ol::before { display: none; }
  .fq__nav a { grid-template-columns: 1.1rem auto auto; gap: .5rem; padding: .45rem .75rem; background: var(--paper); box-shadow: 0 0 0 1px var(--line-ui); font-size: .88rem; }
  .fq__nav a[aria-current] { font-weight: 400; color: var(--ink-2); }
  .fq__nav .px { width: 1.1rem; height: 1.1rem; }
  .fq__help { grid-template-columns: auto 1fr; }
  .fq__help .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 37.5em) {
  .fq__label { font-size: 1.3rem; }
  .fq__help { padding: 1.4rem 1.25rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .fq__nav ol::before { transition: transform .4s cubic-bezier(.2, .7, .2, 1), height .4s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
  .fq__nav a { transition: color .2s; }
  .fq__nav a[aria-current] .px, .fq__nav a:hover .px { animation: hop .5s steps(2); }
  .fq__label.in .px { animation: pop .45s steps(3) both; animation-delay: .2s; }
  .fq__group:target .fq__label { animation: flag 1.4s ease-out .3s; }
}

@keyframes flag { 0% { border-bottom-color: var(--ink); } 30% { border-bottom-color: var(--brand); box-shadow: 0 1.5px 0 var(--brand); } 100% { border-bottom-color: var(--ink); box-shadow: none; } }
