/* FAQ – angeglichen an Leistungsseiten (Marble, Section-Labels, Breite) */
:root {
  --hrf-page-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

@font-face {
  font-family: "Marble";
  src: url("../payroll/fonts/marble-800.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

.hrf-faq-root {
  color: #0a1b33;
  background: #ffffff;
  line-height: 1.55;
  overflow-x: clip;
  font-family: var(--hrf-page-sans);
}
.hrf-faq-root * {
  box-sizing: border-box;
}

.hrf-faq-root h1,
.hrf-faq-root h2,
.hrf-faq-root .hrf-faq-chapter h2 {
  font-family: "Marble", var(--hrf-page-sans) !important;
  font-weight: 800 !important;
}

/* Section-Label (Pill) wie Payroll / Über uns */
.hrf-faq-root .section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #01408d;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 6px;
  margin: 0 0 18px;
}
.hrf-faq-hero .section-label {
  background: #96add6 !important;
  color: #01408d !important;
  margin-bottom: clamp(22px, 2.5vw, 30px);
}

.hrf-faq-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(44px, 6.4vw, 96px) clamp(20px, 4vw, 48px)
    clamp(28px, 3.5vw, 44px);
}
.hrf-faq-hero h1 {
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #01408d;
  margin: 0;
}
.hrf-faq-intro {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  color: #2e3b4e;
  margin: clamp(20px, 2.5vw, 28px) 0 0;
  max-width: 36em;
  text-wrap: pretty;
}
.hrf-faq-hero-actions {
  margin-top: clamp(24px, 3vw, 36px);
}
.hrf-faq-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #01408d;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 17px;
  padding: 14px 28px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(1, 64, 141, 0.14);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.hrf-faq-btn-primary:hover {
  background: #012d63;
  box-shadow: 0 8px 20px rgba(1, 64, 141, 0.18);
}

.hrf-faq-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(8px, 2vw, 20px) clamp(20px, 4vw, 48px) clamp(72px, 9vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
@media (min-width: 900px) {
  .hrf-faq-shell {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(40px, 5vw, 72px);
  }
}

.hrf-faq-nav {
  position: sticky;
  top: clamp(72px, 10vh, 96px);
  z-index: 2;
}
.hrf-faq-nav-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7b8ba8;
  margin: 0 0 12px;
}
.hrf-faq-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (max-width: 899px) {
  .hrf-faq-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
}
.hrf-faq-nav a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2e3b4e;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1.5px solid #e4e9f2;
  background: #ffffff;
  transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.hrf-faq-nav a:hover {
  color: #01408d;
  background: #f7f9fc;
  border-color: #cad6ea;
}
.hrf-faq-nav a.is-active {
  color: #01408d;
  background: #e7edf7;
  border-color: #01408d;
  box-shadow: 0 2px 0 rgba(1, 64, 141, 0.06);
}

.hrf-faq-main {
  min-width: 0;
}

.hrf-faq-chapter {
  scroll-margin-top: clamp(80px, 12vh, 120px);
  padding-top: clamp(8px, 1.5vw, 16px);
}
.hrf-faq-chapter + .hrf-faq-chapter {
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid #e4e9f2;
  padding-top: clamp(40px, 5vw, 64px);
}
.hrf-faq-chapter h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #0a1b33;
  margin: 0 0 clamp(20px, 2.8vw, 32px);
  max-width: 22ch;
}
.hrf-faq-service h3 {
  font-family: var(--hrf-page-sans) !important;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.35;
  font-weight: 600;
  color: #01408d;
  margin: clamp(24px, 3vw, 36px) 0 12px;
  letter-spacing: -0.01em;
}
.hrf-faq-service h3:first-child {
  margin-top: 0;
}

.hrf-faq-chapter > .hrf-faq-item:first-of-type,
.hrf-faq-chapter > .hrf-faq-service:first-of-type > .hrf-faq-item:first-of-type {
  border-top: none;
}
.hrf-faq-service + .hrf-faq-service {
  margin-top: clamp(20px, 3vw, 28px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid #e4e9f2;
}
.hrf-faq-service + .hrf-faq-service > h3 {
  margin-top: 0;
}
.hrf-faq-service + .hrf-faq-service > .hrf-faq-item:first-of-type {
  border-top: none;
}
.hrf-faq-main > .hrf-faq-chapter:last-of-type > .hrf-faq-item:last-of-type,
.hrf-faq-main
  > .hrf-faq-chapter:last-of-type
  > .hrf-faq-service:last-of-type
  > .hrf-faq-item:last-of-type {
  border-bottom: 1px solid #d7e0f0;
}

.hrf-faq-root .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.hrf-faq-root .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .hrf-faq-root .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.hrf-faq-item {
  border-top: 1px solid #d7e0f0;
  border-bottom: none;
  padding: 0;
  margin: 0;
}
.hrf-faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: clamp(16px, 1.55vw, 18px);
  color: #0a1b33;
  padding: 22px 40px 22px 0;
  position: relative;
  display: block;
  line-height: 1.4;
}
.hrf-faq-item summary::-webkit-details-marker {
  display: none;
}
.hrf-faq-item summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid #01408d;
  border-bottom: 2px solid #01408d;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.hrf-faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}
.hrf-faq-item[open] summary {
  color: #01408d;
}
.hrf-faq-ans {
  padding: 0 0 22px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: #2e3b4e;
}
.hrf-faq-ans p {
  margin: 0 0 0.85em;
}
.hrf-faq-ans p:last-child {
  margin-bottom: 0;
}
.hrf-faq-ans ul,
.hrf-faq-ans ol {
  margin: 0 0 0.85em;
  padding-left: 1.25em;
}
.hrf-faq-ans li {
  margin-bottom: 0.45em;
}
.hrf-faq-ans li:last-child {
  margin-bottom: 0;
}
.hrf-faq-ans strong {
  color: #0a1b33;
  font-weight: 600;
}
.hrf-faq-ans a {
  color: #01408d;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hrf-faq-model-list {
  list-style: none;
  padding-left: 0;
}
.hrf-faq-model-list li {
  margin-bottom: 0.9em;
  padding-left: 0;
}

@media (max-width: 640px) {
  .hrf-faq-root .section-label {
    font-size: 11.5px;
    letter-spacing: 0.09em;
    padding: 7px 13px;
    border-radius: 999px;
  }
  .hrf-faq-chapter h2 {
    max-width: none;
  }
}
