/* Gemeinsame Abschnittsabstände: oben = unten, ohne Nummernüberschriften. */
section.section-with-heading {
  --section-space: 80px;
  padding-block: var(--section-space);
}
.section-with-heading > :last-child { margin-bottom: 0; }
.freedom.section-with-heading { row-gap: 0; }

.discover-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 44px;
  padding: 6px 0;
  color: var(--color-text);
  font: var(--text-meta)/1.5 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.discover-link .arrow {
  width: 18px;
  height: 22px;
  transition: transform 180ms ease;
}

.discover-link:hover > span {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.discover-link:hover .arrow { transform: translateY(4px); }

@media (max-width: 800px) {
  section.section-with-heading { --section-space: 56px; }
  .section-with-heading > .section-heading {
    gap: 12px;
    letter-spacing: .045em;
  }
  .section-with-heading > .section-heading::before,
  .section-with-heading > .section-heading::after {
    flex-basis: 24px;
    width: 24px;
  }
  .freedom .kiss-copy { padding-top: 32px; }
}

@media (max-width: 560px) {
  .section-with-heading > .section-heading { letter-spacing: .025em; }
}

@media (prefers-reduced-motion: reduce) {
  .discover-link .arrow { transition: none; }
}

/* Abschnittsanker beginnen am sichtbaren oberen Rand. */
#leistungen, #ansatz { scroll-margin-top: 0; }

#leistungen, #ansatz {
  --section-content-gap: clamp(18px, 2.4vw, 34px);
}

/* An den Abschnittsrändern zählt die sichtbare Schriftkante. */
#services-title,
#ansatz .kiss-center > p {
  text-box: trim-start cap alphabetic;
}

#ansatz .kiss-values > span {
  text-box: trim-end cap alphabetic;
}

@supports not (text-box: trim-start cap alphabetic) {
  #services-title,
  #ansatz .kiss-center > p {
    margin-block-start: calc((1cap - 1lh) / 2);
  }
  #ansatz .kiss-center > .kiss-values {
    margin-block-end: calc((1cap - 1lh) / 2);
  }
}

/* V26: KISS als kompakter, mittiger Typografie-Abschnitt statt Textkolumnen. */
#ansatz.freedom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
#ansatz .kiss-center {
  display: grid;
  row-gap: var(--section-content-gap);
  align-self: stretch;
  text-align: center;
}
#ansatz .kiss-center h2 {
  margin: 0;
  font-size: clamp(58px, 7.4vw, 148px);
  line-height: 1.05;
  font-weight: 550;
  letter-spacing: -.067em;
  color: var(--color-text);
}
#ansatz .kiss-center h2 span {
  font-size: 1em;
  color: var(--color-primary);
}
#ansatz .kiss-note {
  margin: 0;
  max-width: none;
  color: var(--color-muted);
}
#ansatz .kiss-values {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px clamp(18px, 3vw, 44px);
}
#ansatz .kiss-values > span { white-space: nowrap; }
@media (max-width: 700px) {
  #ansatz .kiss-center h2 { font-size: clamp(42px, 9.8vw, 64px); }
  #ansatz .kiss-values { gap: 6px 18px; }
}
@media (max-width: 390px) {
  #ansatz .kiss-center h2 span { display: block; }
}
