/* Leistungen page. Shared header, contacts and footer come from styles.css. */
.leistungen-hero :where(h1, p), .leistungen-overview :where(h2, h3, p),
.leistungen-faq :where(h2, h3, p) { margin: 0; }

.leistungen-hero { height: 430px; overflow: hidden; background: white; }
.leistungen-hero-inner { position: relative; height: 100%; max-width: 1440px; margin: 0 auto; }
.leistungen-hero-eyebrow { position: absolute; left: 76px; top: 68px; width: 260px; font-size: 12px; font-weight: 600; line-height: 16px; color: var(--ao-orange); }
.leistungen-hero h1 { position: absolute; left: 76px; top: 106px; width: 1160px; font-size: 52px; font-weight: 900; line-height: 58px; letter-spacing: -1.3px; }
.leistungen-hero h1 span { color: var(--ao-orange); }
.leistungen-hero-copy { position: absolute; left: 76px; top: 270px; width: 880px; font-size: 18px; line-height: 29px; }
.leistungen-hero-art { position: absolute; left: 970px; top: 0; width: 402px; height: 453px; pointer-events: none; }
.leistungen-accent-blue { position: absolute; left: 122px; top: 48px; }
.leistungen-accent-orange { position: absolute; left: 0; top: 220px; }
.leistungen-hero-portrait { position: absolute; left: 19px; top: 38px; width: 375px; height: 415px; object-fit: fill; object-position: bottom; }

.leistungen-overview { height: auto; padding-bottom: 6px; background: var(--ao-light-blue); }
.leistungen-overview-inner { max-width: 1440px; height: 100%; padding: 0 76px; margin: 0 auto; }
.leistungen-overview-header { position: relative; height: 199px; border-bottom: 1px solid var(--ao-divider); }
.leistungen-eyebrow { position: absolute; top: 56px; left: 0; font-size: 13px; font-weight: 600; line-height: 18px; color: var(--ao-orange); }
.leistungen-overview h2 { position: absolute; top: 84px; left: 0; font-size: 42px; font-weight: 900; line-height: 50px; }
.leistungen-intro { position: absolute; top: 142px; left: 0; font-size: 17px; line-height: 27px; color: var(--ao-text-muted); }
.leistungen-row { position: relative; display: block; height: 152px; border-bottom: 1px solid var(--ao-divider); cursor: default; scroll-margin-top: 24px; }
.leistungen-row:last-child { border-bottom: 0; }
.leistungen-number { position: absolute; left: 0; top: 59px; width: 70px; font-size: 26px; font-weight: 900; line-height: 34px; color: var(--ao-orange); }
.leistungen-service-name { position: absolute; left: 155px; top: 43px; width: 390px; }
.leistungen-service-name h3 { font-size: 25px; font-weight: 700; line-height: 32px; }
.leistungen-service-name p { margin-top: 7px; font-size: 12.5px; font-weight: 500; line-height: 20px; color: var(--ao-text-muted); }
.leistungen-description { position: absolute; left: 575px; top: 45px; width: 500px; font-size: 15.5px; line-height: 24px; }
/* Figma's 52px instance retains the master's 56px interactive surface. */
.leistungen-arrow { position: absolute; left: 1216px; top: 50px; width: 52px; height: 52px; border-radius: 50%; }
.leistungen-arrow > img { position: absolute; left: 2px; top: 2px; transition: opacity var(--ao-hover-fast) ease-out; }
.leistungen-arrow::before { content: ""; position: absolute; left: 2px; top: 2px; width: 52px; height: 52px; border-radius: 50%; background: var(--ao-blue); opacity: 0; transition: left var(--ao-hover-fast) ease-out, top var(--ao-hover-fast) ease-out, width var(--ao-hover-fast) ease-out, height var(--ao-hover-fast) ease-out, opacity var(--ao-hover-fast) ease-out, box-shadow var(--ao-hover-fast) ease-out; }
.leistungen-arrow > span { position: absolute; left: 0; top: 12px; display: flex; align-items: center; justify-content: center; width: 56px; height: 32px; font-size: 20px; font-weight: 500; transition: color var(--ao-hover-fast) ease-out, transform var(--ao-hover-fast) ease-out; }
.leistungen-arrow:hover > img, .leistungen-row:focus-visible .leistungen-arrow > img { opacity: 0; }
.leistungen-arrow:hover::before, .leistungen-row:focus-visible .leistungen-arrow::before { left: 0; top: 0; width: 56px; height: 56px; opacity: 1; box-shadow: 0 5px 12px rgba(16,42,67,.16); }
.leistungen-arrow:hover > span, .leistungen-row:focus-visible .leistungen-arrow > span { color: white; transform: translateX(1.5px); }
.leistungen-row:focus-visible { outline: 2px solid var(--ao-orange); outline-offset: -4px; border-radius: 4px; }

.leistungen-faq { padding: 50px max(24px, calc((100% - 1160px) / 2)); background: white; }
.leistungen-faq > h2 { font-size: 28px; font-weight: 900; line-height: 42px; }
.leistungen-faq-list { display: grid; grid-template-columns: repeat(4, 260px); align-items: start; gap: 40px; margin-top: 48px; }
.leistungen-faq-item { position: relative; height: 100px; overflow: hidden; border-radius: 20px; background: transparent; transition: height 220ms ease-out, background var(--ao-hover-fast) ease-out; }
.leistungen-faq-item:has(.leistungen-faq-toggle:hover), .leistungen-faq-item.is-open { background: var(--ao-light-blue); }
.leistungen-faq-toggle { position: relative; display: flex; align-items: flex-start; width: 100%; height: 100px; padding: 18px 18px 12px 54px; border: 0; border-radius: 20px; color: #566570; background: transparent; font-size: 16px; font-weight: 400; line-height: 23px; text-align: left; cursor: pointer; transition: color var(--ao-hover-fast) ease-out; }
.leistungen-faq-toggle > img { position: absolute; top: 18px; left: 16px; transform-origin: center; transition: transform 220ms ease-out; }
.leistungen-faq-toggle > span { display: block; align-self: start; }
.leistungen-faq-toggle:hover, .leistungen-faq-item.is-open .leistungen-faq-toggle { color: var(--ao-blue); }
.leistungen-faq-toggle:focus-visible { outline: 2px solid var(--ao-orange); outline-offset: -3px; }
.leistungen-faq-item.is-open { height: max(220px, var(--faq-open-height, 220px)); }
.leistungen-faq-item.is-open .leistungen-faq-toggle > img { transform: rotate(90deg); }
.leistungen-faq-answer { position: absolute; left: 54px; top: 92px; width: calc(100% - 72px); font-size: 13.5px; line-height: 18px; color: rgba(16,42,67,.72); opacity: 0; transition: opacity 220ms ease-out, top 220ms ease-out; }
.leistungen-faq-item.is-open .leistungen-faq-answer { top: 104px; opacity: .72; }
@media (min-width: 1201px) {
  :is(.leistungen-page, .about-page) .leistungen-faq-toggle { align-items: center; padding-block: 18px; }
  :is(.leistungen-page, .about-page) .leistungen-faq-toggle > span { align-self: center; }
  :is(.leistungen-page, .about-page) .leistungen-faq-toggle > img { top: 38px; }
}

@media (max-width: 1399px) {
  .leistungen-hero-inner { margin: 0 48px; }
  .leistungen-hero-eyebrow, .leistungen-hero h1, .leistungen-hero-copy { left: 0; }
  .leistungen-hero h1 { width: 70%; font-size: clamp(36px, 3.62vw, 52px); line-height: 1.12; }
  .leistungen-hero-copy { width: 68%; }
  .leistungen-hero-art { left: auto; right: -12px; }
  .leistungen-overview { height: auto; padding-bottom: 6px; }
  .leistungen-overview-inner { padding: 0 48px; }
  .leistungen-overview h2 { font-size: 38px; }
  .leistungen-intro { max-width: 100%; }
  .leistungen-row { display: grid; grid-template-columns: 60px minmax(0, .9fr) minmax(0, 1.1fr) 56px; gap: 24px; align-items: start; height: auto; min-height: 152px; padding: 43px 0; }
  .leistungen-number, .leistungen-service-name, .leistungen-description, .leistungen-arrow { position: relative; top: auto; left: auto; width: auto; }
  .leistungen-number { padding-top: 16px; }
  .leistungen-service-name h3 { font-size: 23px; }
  .leistungen-description { padding-top: 2px; }
  .leistungen-arrow { width: 52px; height: 52px; margin-top: 7px; }
  .leistungen-faq { padding: 50px 48px; }
  .leistungen-faq-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 1100px) {
  .leistungen-hero-art { right: 0; transform: scale(.82); transform-origin: bottom right; }
  .leistungen-hero h1 { width: 75%; }
  .leistungen-hero-copy { width: 65%; }
  .leistungen-service-name h3 { font-size: 21px; line-height: 28px; }
  .leistungen-faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 950px) {
  .leistungen-hero-inner { display: flex; flex-direction: column; margin: 0 28px; padding-top: 44px; }
  .leistungen-hero { height: auto; }
  .leistungen-hero-eyebrow, .leistungen-hero h1, .leistungen-hero-copy { position: static; width: 100%; }
  .leistungen-hero h1 { margin-top: 16px; font-size: 36px; line-height: 1.14; letter-spacing: -.9px; hyphens: auto; overflow-wrap: anywhere; }
  .leistungen-hero-copy { margin-top: 22px; font-size: 16px; line-height: 26px; }
  .leistungen-hero-art { position: relative; left: auto; right: auto; order: 1; align-self: center; width: 402px; height: 453px; margin-top: 4px; margin-bottom: -23px; zoom: .85; transform: none; }
  .leistungen-overview-inner { padding: 0 28px; }
  .leistungen-overview-header { height: auto; padding: 44px 0 28px; }
  .leistungen-eyebrow, .leistungen-overview h2, .leistungen-intro { position: static; }
  .leistungen-overview h2 { margin-top: 10px; font-size: 34px; line-height: 42px; }
  .leistungen-intro { margin-top: 8px; font-size: 16px; line-height: 25px; }
  .leistungen-row { grid-template-columns: 42px minmax(0, 1fr) 56px; gap: 16px 20px; padding: 28px 0; }
  .leistungen-number { padding: 0; }
  .leistungen-service-name { grid-column: 2; }
  .leistungen-description { grid-column: 2; padding: 0; }
  .leistungen-arrow { grid-column: 3; grid-row: 1 / 3; margin-top: 0; }
  .leistungen-faq { padding: 44px 28px; }
}
@media (max-width: 600px) {
  .leistungen-hero { height: auto; }
  .leistungen-hero-inner { display: flex; flex-direction: column; margin: 0 24px; padding-top: 36px; }
  .leistungen-hero-eyebrow, .leistungen-hero h1, .leistungen-hero-copy { position: static; width: 100%; }
  .leistungen-hero h1 { margin-top: 16px; font-size: clamp(26px, 7.8vw, 36px); line-height: 1.14; letter-spacing: -.025em; }
  .leistungen-hero h1 br { display: none; }
  .leistungen-hero-copy { margin-top: 22px; }
  .leistungen-hero-art { position: relative; left: auto; right: auto; order: 1; align-self: center; width: 402px; height: 453px; margin-top: 4px; margin-bottom: -23px; zoom: .72; transform: none; }
  .leistungen-overview-inner { padding: 0 24px; }
  .leistungen-overview h2 { font-size: 30px; line-height: 37px; }
  .leistungen-row { grid-template-columns: 32px minmax(0, 1fr) 56px; gap: 12px; }
  .leistungen-number { font-size: 23px; line-height: 30px; }
  .leistungen-service-name h3 { font-size: 19px; line-height: 27px; }
  .leistungen-service-name p { font-size: 12px; line-height: 19px; }
  .leistungen-description { grid-column: 2 / -1; padding-right: 12px; font-size: 15px; line-height: 23px; }
  .leistungen-faq { padding: 40px 24px; }
  .leistungen-faq > h2 { font-size: 25px; line-height: 34px; }
  .leistungen-faq-list { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .leistungen-page .leistungen-arrow, .leistungen-page .leistungen-arrow *, .leistungen-page .leistungen-arrow::before,
  .leistungen-faq-item, .leistungen-faq-toggle, .leistungen-faq-toggle > img, .leistungen-faq-answer { transition: none; }
}

/* Preserve the established footer emblem size at the 1200px breakpoint boundary. */
body.leistungen-page .ao-footer-emblem { max-width: 84px; }
