/* Kundeservice / FAQ page
 * Editorial layout: sticky TOC + accordion sections.
 * Matches variations/faq.jsx in the design canvas.
 *
 * Naming: BEM under .kunde. No token vars used here — values match
 * the design canvas literals so this can drop in without depending on
 * the token bundle, but feel free to swap to existing custom props
 * (e.g. var(--ink-1), var(--rule-soft)) if they match.
 */

.kunde {
  background: oklch(0.99 0.003 80);
  color: oklch(0.2 0.01 260);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.65;
}

/* Breadcrumb */
.kunde__crumb {
  padding: 16px 56px;
  max-width: 1180px;
  margin: 0 auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: oklch(0.5 0.01 250);
  text-transform: uppercase;
  display: flex;
  gap: 8px;
}
.kunde__crumb a { color: oklch(0.5 0.01 250); text-decoration: none; }
.kunde__crumb a:hover { color: oklch(0.2 0.01 260); }
.kunde__crumb-sep { color: oklch(0.7 0.01 250); }
.kunde__crumb-cur { color: oklch(0.2 0.01 260); }

/* Layout */
.kunde__layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  padding: 32px 56px 96px;
  max-width: 1180px;
  margin: 0 auto;
}

/* TOC */
.kunde__toc {
  position: sticky;
  top: 24px;
  align-self: start;
}
.kunde__toc-h {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: oklch(0.5 0.01 250);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid oklch(0.92 0.005 250);
}
.kunde__toc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kunde__toc-link {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: oklch(0.4 0.01 260);
  text-decoration: none;
}
.kunde__toc-link:hover { color: oklch(0.18 0.01 260); }
.kunde__toc-meta {
  padding-top: 16px;
  border-top: 1px solid oklch(0.92 0.005 250);
}
.kunde__toc-meta-k {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: oklch(0.55 0.01 250);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.kunde__toc-meta-link {
  font-size: 13px;
  color: oklch(0.18 0.01 260);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Article */
.kunde__article { max-width: 720px; }
.kunde__eye {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #2F80ED;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.kunde__h1 {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 14px 0;
}
.kunde__sub {
  font-size: 16px;
  color: oklch(0.4 0.01 250);
  margin: 0 0 56px 0;
  line-height: 1.6;
  max-width: 560px;
  text-wrap: pretty;
}

/* Sections */
.kunde__sec { margin-bottom: 48px; scroll-margin-top: 24px; }
.kunde__h2 {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid oklch(0.92 0.005 250);
}
.kunde__qlist { display: flex; flex-direction: column; }
.kunde__q {
  border-bottom: 1px solid oklch(0.94 0.005 250);
}
.kunde__q > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  cursor: pointer;
  color: oklch(0.2 0.01 260);
}
.kunde__q > summary::-webkit-details-marker { display: none; }
.kunde__q-text {
  font-size: 15px;
  font-weight: 400;
  padding-right: 24px;
}
/* Chevron drawn in pure CSS — + collapsed, − open */
.kunde__q-chev {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: oklch(0.5 0.01 250);
}
.kunde__q-chev::before,
.kunde__q-chev::after {
  content: '';
  position: absolute;
  background: currentColor;
  left: 50%;
  top: 50%;
  transition: opacity 180ms ease, transform 180ms ease;
}
.kunde__q-chev::before { /* horizontal bar — always visible */
  width: 12px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}
.kunde__q-chev::after { /* vertical bar — fades out when open */
  width: 1.5px;
  height: 12px;
  transform: translate(-50%, -50%);
}
.kunde__q[open] > summary .kunde__q-chev {
  color: #2F80ED;
}
.kunde__q[open] > summary .kunde__q-chev::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}
.kunde__q-body {
  padding-bottom: 18px;
  padding-right: 32px;
}
.kunde__q-body p {
  margin: 0;
  font-size: 14px;
  color: oklch(0.35 0.01 260);
  line-height: 1.7;
  text-wrap: pretty;
}
.kunde__q-body a {
  color: oklch(0.18 0.01 260);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Contact card */
.kunde__contact {
  margin-top: 56px;
  padding: 28px;
  background: oklch(0.97 0.005 250);
  border-left: 2px solid oklch(0.18 0.01 260);
}
.kunde__contact-h {
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}
.kunde__contact p {
  font-size: 14px;
  color: oklch(0.4 0.01 250);
  margin: 0 0 12px 0;
  line-height: 1.6;
}
.kunde__contact-link {
  font-size: 14px;
  color: oklch(0.18 0.01 260);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mobile */
@media (max-width: 840px) {
  .kunde__crumb { padding: 16px 20px; }
  .kunde__layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 16px 20px 64px;
  }
  .kunde__toc {
    position: static;
    padding: 20px;
    background: oklch(0.97 0.005 250);
    border-radius: 6px;
  }
  .kunde__toc-meta { display: none; } /* contact CTA already at page bottom */
  .kunde__h1 { font-size: 32px; }
  .kunde__sub { margin-bottom: 32px; }
  .kunde__sec { margin-bottom: 36px; }
  .kunde__contact { padding: 20px; }
}
