.aa-leistungen-page {
  --aa-leistungen-white: var(--aa-c1, #ffffff);
  --aa-leistungen-ivory: var(--aa-c3, #f7f1e8);
  --aa-leistungen-charcoal: var(--aa-c4, #211d1d);
  --aa-leistungen-green: var(--aa-c5, #263d36);
  --aa-leistungen-stone: var(--aa-c6, #e8dfd2);
  --aa-leistungen-sand: var(--aa-c7, #d8c7ad);
  --aa-leistungen-gold: var(--aa-c9, #b08a4a);
  --aa-leistungen-slate: var(--aa-c10, #596a73);
  color: var(--aa-leistungen-charcoal);
  font-family: var(--aa-font-body, "Libre Franklin", Arial, Helvetica, sans-serif);
  font-size: var(--aa-type-body, clamp(1.03rem, 1.15vw, 1.11rem));
  line-height: 1.68;
  overflow: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.aa-leistungen-page-active {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.aa-leistungen-page *,
.aa-leistungen-page *::before,
.aa-leistungen-page *::after {
  box-sizing: border-box;
}

.aa-leistungen-page h1,
.aa-leistungen-page h2,
.aa-leistungen-page h3,
.aa-leistungen-page p,
.aa-leistungen-page figure,
.aa-leistungen-page ul {
  margin-top: 0;
}

body.aa-leistungen-page-active #main .aa-leistungen-page p,
body.aa-leistungen-page-active #main .aa-leistungen-page li {
  font-family: var(--aa-font-body, "Libre Franklin", Arial, Helvetica, sans-serif) !important;
  font-size: inherit !important;
  line-height: 1.68 !important;
}

body.aa-leistungen-page-active #main .aa-leistungen-page h1,
body.aa-leistungen-page-active #main .aa-leistungen-page h2,
body.aa-leistungen-page-active #main .aa-leistungen-page h3 {
  font-family: var(--aa-font-display, "Cormorant Garamond", Georgia, "Times New Roman", serif) !important;
  font-weight: 500 !important;
  hyphens: none !important;
  overflow-wrap: normal !important;
  text-wrap: balance;
  word-break: normal !important;
}

body.aa-leistungen-page-active #main .aa-leistungen-page h1 {
  color: var(--aa-leistungen-charcoal) !important;
  font-size: clamp(4.1rem, 6.3vw, 5.85rem) !important;
  letter-spacing: -0.025em;
  line-height: 0.96 !important;
  margin-bottom: 1.55rem;
}

body.aa-leistungen-page-active #main .aa-leistungen-page h2 {
  color: var(--aa-leistungen-charcoal) !important;
  font-size: var(--aa-type-h2, clamp(2.55rem, 4vw, 3.72rem)) !important;
  line-height: 1.06 !important;
  margin-bottom: 1.35rem;
}

body.aa-leistungen-page-active #main .aa-leistungen-page h3 {
  color: var(--aa-leistungen-green) !important;
  font-size: clamp(1.62rem, 2.2vw, 2.05rem) !important;
  line-height: 1.12 !important;
  margin-bottom: 0.75rem;
}

.aa-leistungen-page p {
  margin-bottom: 1.08rem;
}

.aa-leistungen-page p:last-child,
.aa-leistungen-page ul:last-child,
.aa-leistungen-page figure:last-child {
  margin-bottom: 0;
}

.aa-leistungen-visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.aa-leistungen-section {
  padding: 5.35rem 0;
  scroll-margin-top: 7rem;
}

.aa-leistungen-section--major {
  padding: 6.35rem 0;
}

.aa-leistungen-section--white {
  background: var(--aa-leistungen-white);
}

.aa-leistungen-section--ivory {
  background: var(--aa-leistungen-ivory);
}

.aa-leistungen-section--stone {
  background: var(--aa-leistungen-stone);
  background: color-mix(in srgb, var(--aa-leistungen-stone) 72%, var(--aa-leistungen-white));
}

.aa-leistungen-shell {
  margin-inline: auto;
  max-width: 1180px;
  width: calc(100% - 6rem);
}

.aa-leistungen-reading {
  max-width: 760px;
}

.aa-leistungen-reading--wide {
  max-width: 920px;
}

.aa-leistungen-section-intro {
  color: var(--aa-leistungen-green);
  font-size: clamp(1.08rem, 1.35vw, 1.2rem) !important;
  line-height: 1.65 !important;
}

.aa-leistungen-eyebrow,
.aa-leistungen-kicker {
  color: var(--aa-leistungen-gold);
  font-size: 0.8rem !important;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.aa-leistungen-hero {
  background: var(--aa-leistungen-ivory);
  border-top: 3px solid var(--aa-leistungen-gold);
  overflow: hidden;
  position: relative;
}

.aa-leistungen-hero::after {
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--aa-leistungen-gold) 38%, transparent), transparent);
  bottom: 0;
  content: "";
  height: 1px;
  left: 10%;
  position: absolute;
  right: 10%;
}

.aa-leistungen-hero__grid {
  align-items: center;
  display: grid;
  gap: clamp(3.5rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.78fr);
}

.aa-leistungen-hero__copy {
  max-width: 710px;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.aa-leistungen-lead {
  color: var(--aa-leistungen-green);
  font-size: clamp(1.15rem, 1.55vw, 1.34rem) !important;
  font-weight: 500;
  line-height: 1.58 !important;
  margin-bottom: 1.25rem;
  max-width: 700px;
}

.aa-leistungen-hero__visual {
  aspect-ratio: 4 / 5;
  background: var(--aa-leistungen-sand);
  border: 1px solid var(--aa-leistungen-sand);
  border-radius: 12rem 12rem 1rem 1rem;
  box-shadow: 0 24px 54px color-mix(in srgb, var(--aa-leistungen-charcoal) 14%, transparent);
  margin: 0;
  overflow: hidden;
  position: relative;
}

.aa-leistungen-hero__visual::after {
  border: 1px solid color-mix(in srgb, var(--aa-leistungen-white) 52%, transparent);
  border-radius: inherit;
  content: "";
  inset: 0.65rem;
  pointer-events: none;
  position: absolute;
}

.aa-leistungen-hero__visual img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  width: 100%;
}

.aa-leistungen-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.9rem;
}

.aa-leistungen-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1.4;
  min-height: 50px;
  padding: 0.78rem 1.45rem;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.aa-leistungen-button--primary {
  background: var(--aa-leistungen-green);
  color: var(--aa-leistungen-ivory) !important;
}

.aa-leistungen-button--primary:hover {
  background: var(--aa-leistungen-charcoal);
  color: var(--aa-leistungen-ivory) !important;
  transform: translateY(-1px);
}

.aa-leistungen-button--gold {
  background: var(--aa-leistungen-gold);
  color: var(--aa-leistungen-green) !important;
}

.aa-leistungen-button--gold:hover {
  background: var(--aa-leistungen-ivory);
  color: var(--aa-leistungen-green) !important;
  transform: translateY(-1px);
}

.aa-leistungen-button:focus-visible,
.aa-leistungen-card-link:focus-visible,
.aa-leistungen-text-link:focus-visible,
.aa-leistungen-service-jump a:focus-visible,
.aa-leistungen-section[tabindex="-1"]:focus-visible {
  outline: 3px solid var(--aa-leistungen-gold);
  outline-offset: 4px;
}

.aa-leistungen-section[tabindex="-1"]:focus:not(:focus-visible) {
  outline: none;
}

.aa-leistungen-audience-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2.8rem;
}

.aa-leistungen-audience-card {
  background: var(--aa-leistungen-ivory);
  border: 1px solid var(--aa-leistungen-sand);
  border-top: 3px solid var(--aa-leistungen-gold);
  border-radius: 10px;
  min-width: 0;
  padding: 1.65rem 1.75rem 1.75rem;
}

.aa-leistungen-audience-icon {
  align-items: center;
  border: 1px solid var(--aa-leistungen-gold);
  border-radius: 999px;
  color: var(--aa-leistungen-gold);
  display: inline-flex;
  height: 2.65rem;
  justify-content: center;
  margin-bottom: 0.8rem;
  width: 2.65rem;
}

.aa-leistungen-audience-icon svg {
  fill: none;
  height: 1.35rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
  width: 1.35rem;
}

.aa-leistungen-format-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.75rem;
}

.aa-leistungen-format-card {
  background: var(--aa-leistungen-white);
  border: 1px solid var(--aa-leistungen-sand);
  border-radius: 10px;
  min-width: 0;
  padding: 1.7rem;
}

.aa-leistungen-closing-row {
  align-items: end;
  border-top: 1px solid var(--aa-leistungen-sand);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 2.5rem;
  padding-top: 1.7rem;
}

.aa-leistungen-closing-row p {
  margin-bottom: 0;
  max-width: 860px;
}

.aa-leistungen-context {
  align-items: start;
  display: grid;
  gap: clamp(3rem, 6vw, 5.5rem);
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.aa-leistungen-context__copy {
  border-left: 2px solid var(--aa-leistungen-gold);
  font-size: clamp(1.08rem, 1.35vw, 1.2rem) !important;
  padding-left: 2rem;
}

.aa-leistungen-card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2.8rem;
}

.aa-leistungen-card-link {
  align-items: center;
  background: var(--aa-leistungen-white);
  border: 1px solid var(--aa-leistungen-sand);
  border-radius: 12px;
  color: var(--aa-leistungen-green) !important;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 9.25rem;
  min-width: 0;
  padding: 1.5rem;
  text-decoration: none !important;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.aa-leistungen-card-link:hover {
  border-color: var(--aa-leistungen-gold);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--aa-leistungen-charcoal) 8%, transparent);
  transform: translateY(-2px);
}

.aa-leistungen-card-link__text {
  font-size: clamp(1.55rem, 2.25vw, 1.95rem);
  font-family: var(--aa-font-display, "Cormorant Garamond", Georgia, "Times New Roman", serif) !important;
  font-weight: 500 !important;
  hyphens: manual !important;
  -webkit-hyphens: manual !important;
  line-height: 1.08;
  min-width: 0;
  overflow-wrap: normal !important;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-wrap: balance;
  transition: text-decoration-color 180ms ease;
  word-break: normal !important;
}

.aa-leistungen-card-link:hover .aa-leistungen-card-link__text,
.aa-leistungen-card-link:focus-visible .aa-leistungen-card-link__text {
  text-decoration-color: var(--aa-leistungen-gold);
}

.aa-leistungen-card-link__arrow {
  color: var(--aa-leistungen-gold);
  font-size: 2rem;
  justify-self: end;
  line-height: 1;
  transition: transform 180ms ease;
}

.aa-leistungen-card-link:hover .aa-leistungen-card-link__arrow {
  transform: translateX(4px);
}

.aa-leistungen-icon {
  align-items: center;
  border: 1px solid var(--aa-leistungen-gold);
  border-radius: 999px;
  color: var(--aa-leistungen-gold);
  display: inline-flex;
  flex: 0 0 auto;
  height: 3.4rem;
  justify-content: center;
  width: 3.4rem;
}

.aa-leistungen-icon svg {
  fill: none;
  height: 1.55rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
  width: 1.55rem;
}

.aa-leistungen-service {
  border-top: 1px solid color-mix(in srgb, var(--aa-leistungen-gold) 40%, var(--aa-leistungen-sand));
  position: relative;
}

.aa-leistungen-service::before {
  background: var(--aa-leistungen-gold);
  content: "";
  height: 3px;
  left: max(3rem, calc((100% - 1180px) / 2));
  position: absolute;
  top: -1px;
  width: 4.5rem;
}

.aa-leistungen-service__grid {
  align-items: start;
  display: grid;
  column-gap: clamp(3rem, 6vw, 5.5rem);
  grid-template-areas:
    "copy card"
    "boundary boundary"
    "footer footer";
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  row-gap: 1.8rem;
}

.aa-leistungen-service__grid--reverse {
  grid-template-areas:
    "card copy"
    "boundary boundary"
    "footer footer";
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
}

.aa-leistungen-service__copy {
  grid-area: copy;
}

.aa-leistungen-detail-card {
  align-self: start;
  background: var(--aa-leistungen-white);
  border: 1px solid var(--aa-leistungen-sand);
  border-radius: 12px;
  box-shadow: 0 16px 38px color-mix(in srgb, var(--aa-leistungen-charcoal) 7%, transparent);
  grid-area: card;
  padding: 2rem;
}

.aa-leistungen-detail-card--green {
  background: var(--aa-leistungen-green);
  border-color: var(--aa-leistungen-green);
  color: var(--aa-leistungen-ivory);
}

.aa-leistungen-detail-card__label {
  color: var(--aa-leistungen-gold);
  font-size: 0.76rem !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.aa-leistungen-detail-card ul,
.aa-leistungen-partner-checklist ul {
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
}

.aa-leistungen-detail-card li,
.aa-leistungen-partner-checklist li {
  border-top: 1px solid color-mix(in srgb, var(--aa-leistungen-sand) 62%, transparent);
  padding: 0.82rem 0 0.82rem 1.25rem;
  position: relative;
}

.aa-leistungen-detail-card li::before,
.aa-leistungen-partner-checklist li::before {
  color: var(--aa-leistungen-gold);
  content: "•";
  left: 0;
  position: absolute;
  top: 0.82rem;
}

.aa-leistungen-detail-card li:first-child,
.aa-leistungen-partner-checklist li:first-child {
  border-top: 0;
  padding-top: 0;
}

.aa-leistungen-detail-card li:first-child::before,
.aa-leistungen-partner-checklist li:first-child::before {
  top: 0;
}

.aa-leistungen-service-count {
  border-right: 1px solid color-mix(in srgb, var(--aa-leistungen-gold) 55%, transparent);
  display: inline-block;
  margin-right: 0.72rem;
  padding-right: 0.72rem;
}

.aa-leistungen-service__boundary {
  background: color-mix(in srgb, var(--aa-leistungen-white) 58%, transparent);
  border-left: 2px solid var(--aa-leistungen-gold);
  grid-area: boundary;
  margin-top: 0.25rem;
  max-width: 980px;
  padding: 1rem 1.25rem;
}

.aa-leistungen-service__boundary p {
  margin-bottom: 0;
}

.aa-leistungen-service__footer {
  align-items: center;
  border-top: 1px solid var(--aa-leistungen-sand);
  display: flex;
  gap: 1.5rem;
  grid-area: footer;
  justify-content: space-between;
  margin-top: 0.35rem;
  padding-top: 1.25rem;
}

.aa-leistungen-text-link {
  align-items: center;
  color: var(--aa-leistungen-green) !important;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 700;
  gap: 0.5rem;
  min-height: 44px;
  text-decoration: none !important;
}

.aa-leistungen-text-link__label {
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, var(--aa-leistungen-gold) 70%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.aa-leistungen-text-link__arrow {
  color: var(--aa-leistungen-gold);
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none !important;
  transition: transform 180ms ease;
}

.aa-leistungen-text-link:hover .aa-leistungen-text-link__arrow {
  transform: translateX(4px);
}

.aa-leistungen-service-jump {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.35rem;
  justify-content: flex-end;
}

.aa-leistungen-service-jump a {
  align-items: center;
  color: var(--aa-leistungen-slate) !important;
  display: inline-flex;
  font-size: 0.83rem;
  font-weight: 600;
  min-height: 44px;
  padding-block: 0.62rem;
  text-decoration-color: color-mix(in srgb, var(--aa-leistungen-slate) 45%, transparent) !important;
  text-underline-offset: 0.22em;
}

.aa-leistungen-section--partner {
  background: var(--aa-leistungen-green);
  color: var(--aa-leistungen-ivory);
  position: relative;
}

.aa-leistungen-section--partner::before {
  background: linear-gradient(90deg, transparent, var(--aa-leistungen-gold), transparent);
  content: "";
  height: 2px;
  left: 10%;
  position: absolute;
  right: 10%;
  top: 0;
}

body.aa-leistungen-page-active #main .aa-leistungen-section--partner h2 {
  color: var(--aa-leistungen-ivory) !important;
}

.aa-leistungen-partner-grid {
  align-items: start;
  display: grid;
  gap: 2rem clamp(3rem, 6vw, 5rem);
  grid-template-areas:
    "copy checklist"
    "action checklist";
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

.aa-leistungen-partner-grid > .aa-leistungen-reading {
  grid-area: copy;
}

.aa-leistungen-partner-checklist {
  background: color-mix(in srgb, var(--aa-leistungen-white) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--aa-leistungen-sand) 48%, transparent);
  border-radius: 12px;
  grid-area: checklist;
  padding: 2rem;
}

.aa-leistungen-partner-action {
  grid-area: action;
}

.aa-leistungen-boundary-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}

.aa-leistungen-boundary-grid li {
  background: var(--aa-leistungen-white);
  border: 1px solid var(--aa-leistungen-sand);
  border-radius: 10px;
  min-width: 0;
  padding: 1rem 1rem 1rem 2.65rem;
  position: relative;
}

.aa-leistungen-boundary-grid li::before {
  color: var(--aa-leistungen-gold);
  content: "—";
  font-weight: 700;
  left: 1rem;
  position: absolute;
}

.aa-leistungen-boundary-note {
  border-left: 2px solid var(--aa-leistungen-gold);
  max-width: 940px;
  padding-left: 1.5rem;
}

.aa-leistungen-final {
  background: var(--aa-leistungen-sand);
  background: color-mix(in srgb, var(--aa-leistungen-sand) 48%, var(--aa-leistungen-ivory));
  border-bottom: 1px solid var(--aa-leistungen-sand);
}

.aa-leistungen-final__grid {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.aa-leistungen-final__grid .aa-leistungen-button {
  white-space: nowrap;
}

@media (max-width: 1020px) {
  .aa-leistungen-shell {
    width: calc(100% - 4rem);
  }

  .aa-leistungen-hero__grid {
    gap: 3.5rem;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.78fr);
  }

  .aa-leistungen-service__grid {
    column-gap: 3rem;
    grid-template-columns: minmax(0, 1.08fr) minmax(250px, 0.92fr);
  }

  .aa-leistungen-service__grid--reverse {
    column-gap: 3rem;
    grid-template-columns: minmax(250px, 0.92fr) minmax(0, 1.08fr);
  }

  .aa-leistungen-partner-grid {
    gap: 2rem 3rem;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  }
}

@media (min-width: 821px) and (max-width: 960px) {
  .aa-leistungen-format-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aa-leistungen-format-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 0.575rem);
  }
}

@media (max-width: 820px) {
  .aa-leistungen-section,
  .aa-leistungen-section--major {
    padding: 4.35rem 0;
  }

  .aa-leistungen-hero__grid,
  .aa-leistungen-context,
  .aa-leistungen-service__grid,
  .aa-leistungen-service__grid--reverse,
  .aa-leistungen-partner-grid,
  .aa-leistungen-final__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .aa-leistungen-hero__grid {
    gap: 2.8rem;
  }

  .aa-leistungen-hero__visual {
    justify-self: center;
    max-width: 520px;
    width: 100%;
  }

  .aa-leistungen-context {
    gap: 1.7rem;
  }

  .aa-leistungen-context__copy {
    padding-left: 1.35rem;
  }

  .aa-leistungen-format-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .aa-leistungen-service__grid,
  .aa-leistungen-service__grid--reverse {
    grid-template-areas:
      "copy"
      "card"
      "boundary"
      "footer";
    row-gap: 1.6rem;
  }

  .aa-leistungen-detail-card {
    width: 100%;
  }

  .aa-leistungen-partner-grid {
    grid-template-areas:
      "copy"
      "checklist"
      "action";
  }

  .aa-leistungen-final__grid {
    gap: 2rem;
  }

  .aa-leistungen-final__grid .aa-leistungen-button {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .aa-leistungen-section,
  .aa-leistungen-section--major {
    padding: 3.65rem 0;
  }

  .aa-leistungen-shell {
    width: calc(100% - 2rem);
  }

  body.aa-leistungen-page-active #main .aa-leistungen-page h1 {
    font-size: clamp(3.05rem, 13.4vw, 4.1rem) !important;
    letter-spacing: -0.025em;
  }

  body.aa-leistungen-page-active #main .aa-leistungen-page h2 {
    font-size: clamp(2rem, 8.8vw, 2.65rem) !important;
    line-height: 1.07 !important;
  }

  .aa-leistungen-audience-grid,
  .aa-leistungen-card-grid,
  .aa-leistungen-boundary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .aa-leistungen-closing-row {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }

  .aa-leistungen-service__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .aa-leistungen-service-jump {
    justify-content: flex-start;
  }

  .aa-leistungen-actions,
  .aa-leistungen-actions .aa-leistungen-button,
  .aa-leistungen-partner-action .aa-leistungen-button,
  .aa-leistungen-final__grid .aa-leistungen-button {
    justify-self: stretch;
    width: 100%;
  }

  .aa-leistungen-final__grid .aa-leistungen-button {
    white-space: normal;
  }

  .aa-leistungen-service::before {
    left: 1rem;
  }
}

@media (max-width: 480px) {
  .aa-leistungen-shell {
    width: calc(100% - 1.5rem);
  }

  body.aa-leistungen-page-active #main .aa-leistungen-page h1 {
    font-size: clamp(2.85rem, 12.4vw, 3.55rem) !important;
  }

  body.aa-leistungen-page-active #main .aa-leistungen-page h2 {
    font-size: clamp(1.78rem, 8vw, 2.25rem) !important;
  }

  body.aa-leistungen-page-active #main .aa-leistungen-page h3 {
    font-size: clamp(1.48rem, 7vw, 1.85rem) !important;
  }

  .aa-leistungen-hero__visual {
    border-radius: 8rem 8rem 0.8rem 0.8rem;
  }

  .aa-leistungen-audience-card,
  .aa-leistungen-format-card {
    padding: 1.35rem;
  }

  .aa-leistungen-card-link {
    gap: 0.82rem;
    grid-template-columns: auto minmax(0, 1fr) 1.75rem;
    min-height: 8.65rem;
    padding: 1.15rem;
  }

  .aa-leistungen-card-link__text {
    font-size: clamp(1.32rem, 6.25vw, 1.65rem);
  }

  .aa-leistungen-icon {
    height: 2.85rem;
    width: 2.85rem;
  }

  .aa-leistungen-icon svg {
    height: 1.25rem;
    width: 1.25rem;
  }

  .aa-leistungen-card-link__arrow {
    font-size: 1.55rem;
  }

  .aa-leistungen-detail-card,
  .aa-leistungen-partner-checklist {
    padding: 1.4rem;
  }

  .aa-leistungen-service__boundary {
    padding: 0.9rem 1rem;
  }
}

@media (max-width: 360px) {
  body.aa-leistungen-page-active #main .aa-leistungen-page h2 {
    font-size: 1.72rem !important;
  }

  .aa-leistungen-card-link {
    grid-template-columns: minmax(0, 1fr) 1.75rem;
  }

  .aa-leistungen-icon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aa-leistungen-button,
  .aa-leistungen-card-link,
  .aa-leistungen-card-link__text,
  .aa-leistungen-card-link__arrow,
  .aa-leistungen-text-link__arrow {
    transition: none;
  }
}

@media print {
  .aa-leistungen-page {
    overflow: visible;
  }

  .aa-leistungen-section {
    break-inside: avoid;
  }

  .aa-leistungen-button,
  .aa-leistungen-text-link {
    border: 1px solid var(--aa-leistungen-charcoal);
    color: var(--aa-leistungen-charcoal) !important;
  }
}

/* v0.2.2 — Leistungen Hero hierarchy aligned with the approved page system. */
body.aa-leistungen-page-active #main .aa-leistungen-hero h1 {
  font-size: clamp(3.1rem, 4.25vw, 4.25rem) !important;
  line-height: 1.01 !important;
  margin-bottom: 1.35rem;
  max-width: 15ch;
}

.aa-leistungen-hero h1 > span {
  white-space: nowrap;
}

.aa-leistungen-hero__copy {
  max-width: 680px;
}

.aa-leistungen-hero .aa-leistungen-eyebrow {
  margin-bottom: 1.15rem;
}

.aa-leistungen-hero .aa-leistungen-lead {
  font-weight: 700;
  line-height: 1.48 !important;
  margin-bottom: 1.25rem;
  max-width: 43rem;
}

.aa-leistungen-hero .aa-leistungen-lead + p {
  color: color-mix(in srgb, var(--aa-leistungen-charcoal) 72%, var(--aa-leistungen-ivory));
  max-width: 43rem;
}

@media (max-width: 680px) {
  body.aa-leistungen-page-active #main .aa-leistungen-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.45rem) !important;
    line-height: 1.02 !important;
    max-width: 13ch;
  }

  .aa-leistungen-hero h1 > span {
    white-space: normal;
  }
}
