@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter/InterVariable.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter/InterVariable-Italic.woff2") format("woff2");
}

/* Eigene Familie ohne Kursivdatei: oblique wird dadurch bewusst aus dem
   aufrechten Inter-Schnitt synthetisiert. */
@font-face {
  font-family: "Inter Upright";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter/InterVariable.woff2") format("woff2");
}

:root {
  --sf-ink: #191a18;
  --sf-green: #365441;
  --sf-orange: #d66a2c;
  --sf-sage: #dde7df;
  --sf-apricot: #f3dfd2;
  /* Vom Kunden gewählter, heller Buttergelbton für die großen
     zusammenhängenden Seitenflächen. */
  --sf-paper: #fff7d6;
  --sf-soft-white: #fefefe;
  --sf-line: rgba(54, 84, 65, 0.14);
  --sf-glass-line: rgba(255, 255, 255, 0.82);
  --sf-glass: rgba(255, 255, 255, 0.62);
  --sf-shadow: 0 22px 70px rgba(35, 48, 39, 0.09);
  --sf-shadow-small: 0 10px 30px rgba(35, 48, 39, 0.07);
  --sf-radius: clamp(1.5rem, 3vw, 2.75rem);
  --sf-page-gutter: clamp(1.25rem, 4vw, 4rem);
  --sf-shell-width: 1240px;
  --sf-shell-space: clamp(2.5rem, 8vw, 8rem);
  --sf-shell-inset: clamp(1.1rem, 2.4vw, 2rem);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  margin: 0;
  background: var(--sf-paper);
  color: var(--sf-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Inter, Arial, sans-serif;
  font-optical-sizing: auto;
  font-feature-settings: "liga" 1, "calt" 1;
}

/* Auch native Bedienelemente und WordPress-Buttons bleiben Teil des
   einheitlichen lokalen Inter-Systems. */
:where(button, input, select, textarea, .wp-element-button, .wp-block-button__link) {
  font-family: Inter, Arial, sans-serif;
}

/*
 * Ein einziger, allgemeingültiger Seitenhintergrund. Auch neu angelegte
 * Gruppen und Abschnitte übernehmen dadurch das helle Buttergelb.
 */
body,
.wp-site-blocks,
main,
.sf-home,
.sf-section,
.sf-intro,
.sf-topics,
.sf-support,
.preview-statement {
  background-color: var(--sf-paper);
}

/* Ruhige, flache Navigation nach dem Vorbild der Referenzen. */
.sf-site-header {
  position: fixed;
  top: 0.75rem;
  right: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  border: 0;
  background: transparent;
  box-shadow: none;
}

header.wp-block-template-part:has(.sf-site-header) {
  min-height: 100px;
}

.admin-bar .sf-site-header {
  top: calc(32px + 0.75rem);
}

.sf-site-header__inner {
  min-height: 76px;
  width: min(var(--sf-shell-width), calc(100% - var(--sf-shell-space)));
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  padding-inline: var(--sf-shell-inset);
  flex-wrap: nowrap !important;
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 34px rgba(35, 48, 39, 0.1);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
}

.sf-site-header .sf-wordmark {
  max-width: none;
  margin: 0;
  color: var(--sf-green);
  font-family: "Inter Upright", Inter, Arial, sans-serif !important;
  font-size: clamp(0.9rem, 1.15vw, 1.05rem);
  font-style: normal;
  font-weight: 800;
  font-synthesis: none;
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}

.sf-brand {
  gap: 0.85rem;
  flex-shrink: 1;
  min-width: 0;
}

.sf-brand__mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.sf-brand__mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.sf-brand--header .sf-brand__mark {
  width: 2.65rem;
  height: 2.65rem;
}

.sf-brand--header .sf-wordmark {
  margin: 0;
}

.sf-wordmark a,
.sf-main-nav a {
  color: inherit;
  text-decoration: none;
}

.sf-wordmark a {
  display: inline-block;
  transform: skewX(-10deg);
  transform-origin: center;
}

@media (min-width: 768px) {
  .sf-site-header .sf-wordmark a {
    white-space: nowrap !important;
  }
}

.sf-main-nav {
  flex: 0 0 auto;
  color: var(--sf-ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.sf-main-nav .wp-block-navigation__container {
  flex-wrap: nowrap !important;
}

.sf-main-nav .wp-block-navigation-item__content {
  padding: 0.65rem 0.15rem;
  transition: color 180ms ease, opacity 180ms ease;
}

.sf-main-nav a:hover,
.sf-main-nav a:focus-visible {
  color: var(--sf-orange);
}

.sf-main-nav__support > a {
  min-height: 2.55rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(214, 106, 44, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  padding: 0.65rem 1rem !important;
  color: var(--sf-orange);
  box-shadow: var(--sf-shadow-small);
}

.sf-home {
  background: var(--sf-paper);
}

.sf-home > .wp-block-post-content,
.sf-home.wp-block-post-content {
  width: 100%;
  max-width: none;
  margin: 0;
}

.sf-home > .wp-block-post-content > *,
.sf-home.wp-block-post-content > * {
  margin-block: 0;
}

/* Große, zentrierte Bühne mit viel Weißraum. */
.sf-hero {
  position: relative;
  min-height: min(850px, calc(100svh - 76px));
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(5.5rem, 11vw, 9rem) 0;
  background: var(--sf-paper);
}

.sf-hero__content {
  position: relative;
  z-index: 3;
  width: min(var(--sf-shell-width), calc(100% - var(--sf-shell-space)));
  margin-inline: auto;
  padding-inline: var(--sf-shell-inset);
  text-align: left;
}

.sf-kicker {
  margin-bottom: 1.35rem;
  color: var(--sf-orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sf-hero__title {
  max-width: 12ch;
  margin: 0;
  color: var(--sf-green);
  font-family: "Inter Upright", Inter, Arial, sans-serif !important;
  font-style: normal;
  font-weight: 900;
  font-synthesis: none;
  font-variation-settings: "opsz" 32, "wght" 900;
  font-size: clamp(3.6rem, 8.4vw, 8rem) !important;
  letter-spacing: -0.04em;
  line-height: 0.94;
  text-wrap: balance;
  transform: skewX(-10deg);
  transform-origin: center;
}

.sf-hero__lead {
  max-width: 34ch;
  margin: 1.75rem 0 0;
  color: var(--sf-ink);
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.24;
  text-wrap: balance;
}

.sf-hero__actions {
  justify-content: flex-start;
  margin-top: 2.4rem;
}

/* Einheitliche typografische Achse – auch für später ergänzte Textblöcke. */
.sf-home :where(h1, h2, h3, h4, h5, h6, p, blockquote) {
  text-align: left;
}

/* Stiftungsgrün gilt global – auch für neue Seiten und native WordPress-Blöcke. */
.wp-site-blocks :where(h1, h2, h3, h4, h5, h6) {
  color: var(--sf-green) !important;
}

.sf-home :where(p, blockquote) {
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 8 4 4;
  hyphenate-limit-lines: 2;
  hyphenate-limit-zone: 8%;
  overflow-wrap: normal;
  word-break: normal;
}

.wp-site-blocks :where(h1, h2, h3, h4, h5, h6) {
  -webkit-hyphens: none;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

/* Navigation und Bedienelemente bleiben stets als ganze Begriffe lesbar. */
.sf-site-header :where(a, button),
.sf-wordmark,
.wp-element-button,
.wp-block-button__link,
.sf-site-footer nav {
  -webkit-hyphens: none;
  hyphens: none;
  white-space: normal;
  word-break: normal;
}

.sf-hero__content > :where(h1, h2, h3, p, .wp-block-buttons) {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sf-hero__content {
  text-align: center;
}

.sf-hero__actions {
  justify-content: center;
}

.sf-home a:not(.wp-element-button):not(.wp-block-button__link):not(.preview-button) {
  color: var(--sf-orange);
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.sf-home a:not(.wp-element-button):not(.wp-block-button__link):not(.preview-button):hover,
.sf-home a:not(.wp-element-button):not(.wp-block-button__link):not(.preview-button):focus-visible {
  color: var(--sf-green);
}

.preview-scroll-hint {
  display: none !important;
}

.wp-element-button,
.wp-block-button__link {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(214, 106, 44, 0.32);
  border-radius: 999px !important;
  padding: 0.85rem 1.45rem;
  box-shadow: 0 9px 26px rgba(214, 106, 44, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.wp-element-button:hover,
.wp-element-button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
  background: var(--sf-green);
  box-shadow: 0 12px 30px rgba(54, 84, 65, 0.18);
  transform: translateY(-2px);
}

/* Dekorative Hintergrundformen bleiben grundsätzlich ausgeschaltet. */
.sf-orbit {
  display: none;
}

.sf-ellipse {
  position: absolute;
  display: block;
  width: clamp(18rem, 38vw, 41rem);
  aspect-ratio: 1.9 / 1;
  overflow: hidden;
  border: 1px solid var(--sf-glass-line);
  border-radius: 999px;
  background: var(--sf-glass);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.95), var(--sf-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
  transform: translate3d(0, var(--sf-shift, 0px), 0) rotate(var(--sf-rotate, 0deg));
  will-change: transform;
}

.sf-ellipse::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: inherit;
}

.sf-ellipse--sage {
  top: 10%;
  right: -13%;
  background: rgba(221, 231, 223, 0.46);
  --sf-rotate: -7deg;
}

.sf-ellipse--orange {
  right: 5%;
  bottom: -8%;
  width: clamp(13rem, 25vw, 26rem);
  background: rgba(243, 223, 210, 0.48);
  --sf-rotate: 10deg;
}

.sf-ellipse--outline {
  top: 18%;
  left: -19%;
  width: clamp(16rem, 31vw, 33rem);
  background: rgba(255, 255, 255, 0.5);
  --sf-rotate: 6deg;
}

.sf-section-ellipse,
.preview-statement__ellipse {
  display: none !important;
}

/* Wiederverwendbare Inhaltsflächen für Unterseiten und Startseitenblöcke. */
.sf-intro,
.sf-section {
  position: relative;
  z-index: 3;
}

.sf-intro {
  margin-block: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  background: rgba(255, 255, 255, 0.74);
  padding-inline: clamp(1.5rem, 5vw, 4.5rem) !important;
  box-shadow: var(--sf-shadow-small);
}

.sf-section {
  padding: clamp(6rem, 11vw, 10rem) 0;
}

.sf-section__content,
.sf-topics > .alignwide,
.preview-statement__inner,
.sf-statement__inner {
  width: min(var(--sf-shell-width), calc(100% - var(--sf-shell-space)));
  margin-inline: auto;
  padding-inline: var(--sf-shell-inset);
  text-align: left;
}

.sf-section h2,
.sf-topics h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: clamp(2.75rem, 6vw, 5rem);
}

.sf-section h3 {
  font-size: clamp(1.55rem, 2.1vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.sf-mission__lead {
  max-width: 34ch;
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
  line-height: 1.35;
}

.sf-section--mission .sf-section__content {
  max-width: var(--sf-shell-width);
}

.sf-section--mission .preview-intro {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.sf-section--mission .preview-text-link {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.sf-topics {
  padding-top: clamp(7rem, 12vw, 11rem);
  padding-bottom: clamp(8rem, 14vw, 13rem);
}

.sf-topic-grid {
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(0.75rem, 2vw, 1.5rem);
}

.sf-topic-card,
.sf-support__ellipse {
  border: 1px solid var(--sf-line);
  border-radius: var(--sf-radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--sf-shadow-small);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
}

.sf-topic-card {
  min-height: clamp(22rem, 38vw, 32rem);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.75rem);
  align-items: flex-start;
  text-align: left;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.sf-card-number {
  color: var(--sf-orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.sf-card-link {
  margin-top: auto;
  font-size: 0.86rem;
  font-weight: 700;
}

.sf-text-link {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

.sf-statement {
  min-height: 680px;
  display: grid;
  align-items: center;
}

.sf-statement__quote {
  max-width: 18ch;
  margin: 0;
  border: 0;
  padding: 0;
  color: var(--sf-green);
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.04;
  -webkit-hyphens: none;
  hyphens: none;
  word-break: normal;
}

.sf-statement__quote p {
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: -0.035em;
  -webkit-hyphens: none;
  hyphens: none;
  word-break: normal;
}

.sf-topic-card:hover {
  box-shadow: var(--sf-shadow);
  transform: translateY(-5px);
}

.sf-topic-card--sage {
  background: rgba(221, 231, 223, 0.48);
}

.sf-topic-card--apricot {
  background: rgba(243, 223, 210, 0.48);
}

.sf-support__ellipse {
  width: min(var(--sf-shell-width), calc(100% - var(--sf-shell-space)));
  margin-inline: auto;
  text-align: left;
  padding: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 6vw, 5rem);
}

.sf-support__ellipse p:not(.sf-kicker) {
  margin-inline: 0;
}

.sf-site-footer {
  width: 100%;
  margin: clamp(4rem, 8vw, 8rem) 0 0;
  border: 0;
  border-radius: 0;
  background: var(--sf-paper);
  padding: 3rem 0;
  box-shadow: none;
  color: var(--sf-green);
  font-size: 0.78rem;
  text-align: left;
}

.sf-site-footer > .alignwide,
.sf-site-footer__inner,
.sf-copyright {
  width: min(var(--sf-shell-width), calc(100% - var(--sf-shell-space)));
  margin-inline: auto;
  padding-inline: var(--sf-shell-inset);
}

.sf-site-footer .wp-block-site-title,
.sf-site-footer p {
  margin: 0;
}

.sf-site-footer .wp-block-site-title {
  font-family: "Inter Upright", Inter, Arial, sans-serif !important;
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 800;
  font-synthesis: none;
  letter-spacing: -0.025em;
  text-transform: none;
}

.sf-brand--footer {
  gap: 1.15rem;
}

.sf-brand--footer .sf-brand__mark {
  width: 4rem;
  height: 4rem;
}

.sf-footer-nav {
  color: var(--sf-ink);
  font-size: 0.8rem;
}

.sf-footer-nav a {
  color: inherit;
  text-decoration: none;
}

.sf-footer-nav a:hover,
.sf-footer-nav a:focus-visible {
  color: var(--sf-orange);
}

.sf-copyright {
  margin-top: 1.25rem !important;
}

:focus-visible {
  outline: 2px solid var(--sf-orange);
  outline-offset: 4px;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .sf-brand--header {
    gap: 0.65rem;
  }

  .sf-brand--header .sf-brand__mark {
    width: 2.25rem;
    height: 2.25rem;
  }

  .sf-site-header .sf-wordmark {
    max-width: none;
    font-size: 0.9rem;
  }

  .sf-main-nav,
  .preview-navigation {
    gap: 0.55rem;
    font-size: 0.7rem;
  }

  .sf-main-nav__support > a,
  .preview-navigation .sf-main-nav__support {
    padding-inline: 0.75rem !important;
  }

  .sf-main-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }

  .sf-main-nav .wp-block-navigation__responsive-container-open {
    min-width: 4.75rem;
    min-height: 3.25rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(54, 84, 65, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
  }

  .sf-main-nav .wp-block-navigation__responsive-container-open svg {
    display: none;
  }

  .sf-main-nav .wp-block-navigation__responsive-container-open::after {
    content: "Menü";
  }
}

@media (max-width: 767px) {
  .sf-site-header__inner {
    gap: 0.75rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding-inline: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .sf-site-header .sf-brand--header {
    min-height: 3.75rem;
    max-width: calc(100% - 5.5rem);
    display: inline-flex;
    align-items: center;
    align-self: center;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    padding: 0.8rem 1.35rem;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      0 12px 34px rgba(35, 48, 39, 0.1);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    backdrop-filter: blur(24px) saturate(145%);
  }

  .sf-site-header .sf-wordmark {
    min-height: 0;
    max-width: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .sf-brand--header .sf-brand__mark {
    width: 2.2rem;
    height: 2.2rem;
  }

  .sf-main-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }

  .sf-main-nav .wp-block-navigation__responsive-container-open {
    display: flex !important;
  }

  .sf-main-nav .wp-block-navigation__responsive-container.is-menu-open {
    margin: 0.75rem;
    border: 1px solid var(--sf-glass-line);
    border-radius: 2rem;
    background: rgba(253, 254, 253, 0.93);
    padding: 2rem;
    box-shadow: var(--sf-shadow);
    -webkit-backdrop-filter: blur(42px) saturate(155%);
    backdrop-filter: blur(42px) saturate(155%);
  }

  .sf-main-nav .wp-block-navigation__responsive-container-open svg {
    display: none;
  }

  .sf-main-nav .wp-block-navigation__responsive-container-open::after {
    content: "Menü";
  }

  .sf-main-nav .wp-block-navigation__responsive-container-content,
  .sf-main-nav .wp-block-navigation__container {
    align-items: center !important;
    text-align: center;
  }

  .sf-main-nav .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content,
  .sf-main-nav .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__responsive-container-content
    .wp-block-navigation__container {
    width: 100%;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
  }

  .sf-main-nav .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item,
  .sf-main-nav .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item__content {
    width: fit-content;
    align-self: center;
    justify-content: center;
    text-align: center;
  }

  .sf-main-nav .wp-block-navigation-item,
  .sf-main-nav .wp-block-navigation-item__content {
    justify-content: center;
    text-align: center;
  }

  .preview-navigation {
    right: 0;
    left: 0;
    width: 100%;
    align-items: center;
    border-color: var(--sf-glass-line);
    background: rgba(253, 254, 253, 0.93);
    padding: 1.75rem;
    box-shadow: var(--sf-shadow);
    -webkit-backdrop-filter: blur(42px) saturate(155%);
    backdrop-filter: blur(42px) saturate(155%);
    text-align: center;
  }

  .preview-navigation a {
    width: fit-content;
    align-self: center;
    padding-inline: 1rem;
    text-align: center;
  }

  .preview-navigation .sf-main-nav__support,
  .sf-main-nav__support,
  .sf-main-nav__support > a {
    width: fit-content;
    align-self: center;
    justify-content: center;
    padding-inline: 1rem !important;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  :root {
    --sf-shell-space: 1.3rem;
    --sf-shell-inset: 1.15rem;
  }

  .sf-site-header {
    top: 0.65rem;
  }

  header.wp-block-template-part:has(.sf-site-header) {
    min-height: 92px;
  }

  .admin-bar .sf-site-header {
    top: calc(46px + 0.65rem);
  }

  .sf-site-header__inner {
    min-height: 76px;
    width: calc(100% - 1.3rem);
    padding: 0;
  }

  .sf-site-header .sf-brand--header {
    min-height: 3.5rem;
    max-width: calc(100% - 5.25rem);
    padding: 0.75rem 1.05rem;
  }

  .preview-menu-button,
  .sf-main-nav .wp-block-navigation__responsive-container-open {
    min-width: 4.75rem;
    min-height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(54, 84, 65, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 12px 34px rgba(35, 48, 39, 0.1);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    backdrop-filter: blur(24px) saturate(145%);
  }

  .sf-hero {
    min-height: 0;
    align-items: start;
    padding-top: clamp(5rem, 18vw, 7rem);
    padding-bottom: clamp(5.5rem, 16vw, 7rem);
  }

  .sf-hero__title {
    max-width: 100%;
    font-size: clamp(2.55rem, 10.8vw, 3.35rem) !important;
    letter-spacing: -0.045em;
    overflow-wrap: normal;
  }

  .sf-hero .sf-kicker {
    max-width: 24rem;
    margin-inline: 0;
    padding-inline: 0;
    line-height: 1.55;
  }

  .sf-section {
    padding: 6.5rem 0;
  }

  .sf-section__content,
  .sf-topics > .alignwide,
  .preview-statement__inner,
  .sf-statement__inner {
    padding-inline: var(--sf-shell-inset);
  }

  .sf-section h2,
  .sf-topics h2 {
    margin-bottom: 3.5rem;
  }

  .sf-section--mission .sf-section__content {
    padding-inline: var(--sf-shell-inset);
  }

  .sf-topics {
    padding-top: 7.5rem;
    padding-bottom: 9rem;
  }

  .sf-topic-grid {
    gap: 2.5rem;
    padding: 0.75rem 0;
  }

  .sf-topic-card {
    margin-inline: 0;
    padding: 2.25rem 1.75rem;
  }

  .sf-statement {
    min-height: 620px;
  }

  .sf-statement__quote {
    max-width: 100%;
    font-size: clamp(2.4rem, 10.5vw, 3.2rem);
  }

  .sf-site-footer {
    width: 100%;
    margin-top: 5rem;
    margin-bottom: 0;
    padding: 2.5rem 0;
  }

  .sf-site-footer__inner,
  .sf-footer-nav {
    align-items: flex-start;
  }

  .sf-brand--footer .sf-brand__mark {
    width: 3.5rem;
    height: 3.5rem;
  }

  .sf-footer-nav .wp-block-navigation__container {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .sf-ellipse--sage {
    top: 6%;
    right: -55%;
  }

  .sf-ellipse--outline {
    top: 58%;
    left: -55%;
  }

  .sf-ellipse--orange {
    right: -18%;
    bottom: -2%;
  }
}

/* Individuell befüllbares Seitenraster für alle Unterseiten. */
.sf-page {
  --sf-subpage-gap: clamp(1.25rem, 3vw, 3.5rem);
}

/* Der administrative Seitentitel bleibt in WordPress erhalten, erscheint aber
   nicht als automatisch erzeugte Überschrift im sichtbaren Seiteninhalt. */
.sf-page > .wp-block-post-title {
  display: none !important;
}

.sf-subpage-grid {
  width: min(100% - (2 * var(--sf-shell-inset)), var(--wp--style--global--wide-size));
  max-width: none;
  align-items: stretch !important;
  gap: var(--sf-subpage-gap);
  margin-top: 0;
}

.sf-subpage-grid__side,
.sf-subpage-grid__main {
  min-width: 0;
}

.sf-subpage-grid__side {
  font-size: 0.9em;
}

.sf-subpage-grid__side > .wp-block-group {
  height: 100%;
}

/* Normale Textseiten nutzen eine einheitliche, gut lesbare Mittelspalte.
   Die seitlichen Spalten bleiben für die einfache WordPress-Struktur erhalten,
   nehmen aber nur den tatsächlich übrigen Raum ein. Beitragsübersichten haben
   ihr eigenes breiteres Raster und sind von dieser Regel ausgenommen. */
@media (min-width: 701px) {
  .sf-subpage-grid:not(.sf-collection-grid) {
    position: relative;
    left: 50%;
    width: min(calc(100vw - (2 * var(--sf-page-gutter))), 86rem);
    max-width: none !important;
    justify-content: center;
    transform: translateX(-50%);
  }

  .sf-subpage-grid:not(.sf-collection-grid) > .sf-subpage-grid__side {
    flex: 1 1 0 !important;
  }

  .sf-subpage-grid:not(.sf-collection-grid) > .sf-subpage-grid__main {
    flex: 0 1 48rem !important;
    max-width: 48rem;
  }
}

@media (max-width: 700px) {
  .sf-subpage-grid {
    flex-direction: column;
    gap: 2.5rem;
  }

  .sf-subpage-grid > .wp-block-column {
    flex-basis: auto !important;
    width: 100%;
  }
}

/* Dynamische Beitragsübersichten: Kategorien steuern nur die Abfrage und
   werden im Frontend bewusst nicht ausgegeben. */
.sf-collection-title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: clamp(3.25rem, 5vw, 5rem) !important;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

/* Die Beitragsseiten erhalten mehr Raum als normale Textunterseiten. */
.sf-collection-grid {
  position: relative;
  left: 50%;
  width: min(calc(100vw - (2 * var(--sf-page-gutter))), 86rem);
  max-width: none !important;
  display: grid !important;
  grid-template-columns: minmax(9rem, 0.17fr) minmax(0, 1fr) minmax(9rem, 0.17fr);
  align-items: start !important;
  margin-inline: 0;
  transform: translateX(-50%);
}

.sf-collection-grid > .wp-block-column {
  width: auto;
  flex-basis: auto !important;
}

.sf-collection-main {
  display: contents;
}

.sf-collection-rail {
  grid-column: 2;
  grid-row: 2;
  border: 0;
  padding: 0;
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.25vw, 1.15rem);
  line-height: 1.55;
}

.sf-collection-rail .sf-kicker {
  display: none;
}

.sf-collection-rail > .wp-block-group,
.sf-collection-rail p {
  height: auto;
  margin: 0;
}

.sf-collection-rail:not(.sf-collection-rail--right) p {
  max-width: 38.75rem;
}

.sf-collection-rail--right {
  grid-column: 3;
  grid-row: 1 / span 3;
  visibility: hidden;
}

.sf-post-query {
  grid-column: 2;
  grid-row: 3;
  margin-top: clamp(3rem, 5vw, 4rem);
}

/* Zusätzliche redaktionelle Hinweise auf Übersichtsseiten gehören in den
   breiten Inhaltsbereich. Auf der Förderungsseite folgt der ausführliche
   Stipendientext auf die kurze Einleitung; die Beitragsabfrage rückt danach
   eine Zeile weiter. */
.sf-funding-info {
  grid-column: 2;
  grid-row: 3;
  min-width: 0;
  width: 100%;
  margin-top: 2.75rem;
}

.sf-funding-info + .sf-post-query {
  grid-row: 4;
}

.sf-post-query .wp-block-post-template {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  gap: clamp(2rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0 0 4rem;
}

.sf-post-card {
  display: grid;
  overflow: hidden;
  min-height: 17.5rem;
  border: 1px solid rgba(54, 84, 65, 0.1);
  border-radius: clamp(1.75rem, 3vw, 2.125rem);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 60px rgba(35, 48, 39, 0.075);
  transform: translate3d(0, var(--sf-shift, 0px), 0);
  transition: box-shadow 220ms ease, transform 220ms ease;
  will-change: transform;
  width: 100%;
}

.sf-post-card,
.sf-post-card__body,
.sf-post-card__title {
  min-width: 0;
  max-width: 100%;
}

.sf-post-card:has(.sf-post-card__image img) {
  min-height: 27.5rem;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

.sf-post-card:hover {
  box-shadow: 0 28px 68px rgba(35, 48, 39, 0.11);
}

.sf-post-card__image {
  height: 100%;
  margin: 0;
}

.sf-post-card__image a,
.sf-post-card__image img {
  display: block;
  width: 100%;
  height: 100%;
}

.sf-post-card__image img {
  object-fit: cover;
}

.sf-post-card__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(2.25rem, 4vw, 3.25rem);
}

.sf-post-card__date {
  margin-bottom: 1.25rem;
  color: var(--sf-orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.sf-post-card__title {
  margin: 0;
  display: block;
  overflow: visible;
  font-size: clamp(2.15rem, 2.8vw, 2.75rem) !important;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.sf-post-card__title a {
  display: block;
  overflow: visible;
  padding: 0.02em 0.18em 0.08em 0.02em;
  color: var(--sf-green);
  text-decoration: none;
  overflow-wrap: normal;
  word-break: normal;
}

.sf-post-card__excerpt {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: 1.5rem 0 0;
}

.sf-post-card__excerpt .wp-block-post-excerpt__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.sf-post-card__excerpt .wp-block-post-excerpt__more-text {
  margin-top: auto;
  padding-top: 1.75rem;
  border: 0;
}

.sf-post-card__excerpt .wp-block-post-excerpt__more-link {
  color: var(--sf-orange);
  font-weight: 600;
  text-decoration: none;
}

.sf-post-query .wp-block-query-pagination {
  margin-top: 2rem;
}

/* Einzelbeitrag im gleichen 19 / 62 / 19-Raster. */
.sf-single {
  padding: clamp(10rem, 15vw, 14rem) var(--sf-shell-inset) clamp(6rem, 10vw, 10rem);
}

.sf-single-grid {
  width: min(100%, var(--wp--style--global--wide-size));
  max-width: none;
  align-items: flex-start !important;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  margin-inline: auto;
}

.sf-single-rail {
  border-top: 1px solid rgba(54, 84, 65, 0.17);
  padding-top: 1.25rem;
  font-size: 0.82rem;
}

.sf-single-meta-label {
  margin-bottom: 0.5rem;
  color: var(--sf-orange);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sf-system-page__title {
  margin-bottom: 1.5rem;
  color: var(--sf-ink);
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.sf-system-page__text {
  max-width: 42rem;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.sf-single-title {
  margin: 0 0 2rem;
  font-size: clamp(3rem, 5vw, 4.75rem) !important;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.sf-single-excerpt {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  color: var(--sf-ink);
  font-family: Inter, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  line-height: 1.3;
}

.sf-single-image {
  overflow: hidden;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  border-radius: clamp(1.5rem, 3vw, 2.5rem);
}

.sf-single-main .wp-block-post-content {
  font-size: clamp(1rem, 1.25vw, 1.16rem);
}

.sf-single-main .wp-block-post-content > * + * {
  margin-top: 1.5rem;
}

.sf-single-main .wp-block-post-content h2 {
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
  font-size: clamp(2.25rem, 3.7vw, 3.5rem) !important;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.sf-single-lead {
  color: var(--sf-green);
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 400;
  line-height: 1.28;
}

.sf-single-main blockquote {
  margin: clamp(3.5rem, 6vw, 5rem) 0;
  border-left: 2px solid var(--sf-orange);
  padding-left: clamp(1.5rem, 3vw, 3rem);
  font-size: clamp(1.65rem, 3vw, 2.75rem);
}

.sf-publication-download {
  margin-top: clamp(4rem, 7vw, 6rem) !important;
  border-top: 1px solid rgba(54, 84, 65, 0.17);
  padding-top: 1.5rem;
  font-size: 0.86rem;
}

.sf-publication-download .wp-block-file__button {
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
  margin: 1rem 0 0;
  border: 1px solid var(--sf-orange);
  border-radius: 999px;
  background: transparent;
  padding: 0.8rem 1.1rem;
  color: var(--sf-orange);
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 700px) {
  .sf-collection-title {
    font-size: clamp(2.75rem, 12vw, 3.05rem) !important;
  }

  .sf-post-card:has(.sf-post-card__image img) {
    grid-template-columns: 1fr;
  }

  .sf-post-card__image {
    min-height: 18rem;
  }

  .sf-post-card__body {
    padding: 2.1rem 1.75rem 1.9rem;
  }

  .sf-post-card__title {
    font-size: 1.85rem !important;
    line-height: 1.12;
  }

  .sf-single-grid {
    flex-direction: column;
    gap: 3rem;
  }

  .sf-single-grid > .wp-block-column {
    flex-basis: auto !important;
    width: 100%;
  }

  .sf-single-rail--right:empty {
    display: none;
  }

  .sf-single-title {
    font-size: clamp(2.15rem, 10vw, 2.75rem) !important;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .sf-collection-grid {
    width: min(calc(100vw - (2 * var(--sf-page-gutter))), 66rem);
    max-width: none !important;
    grid-template-columns: minmax(8rem, 0.2fr) minmax(0, 1fr);
  }

  .sf-post-card__title {
    font-size: clamp(2rem, 4.2vw, 2.7rem) !important;
  }
}

@media (max-width: 700px) {
  .sf-collection-grid {
    display: flex !important;
    flex-direction: column;
    width: calc(100vw - (2 * var(--sf-page-gutter)));
  }

  .sf-collection-title {
    order: 1;
  }

  .sf-collection-rail:not(.sf-collection-rail--right) {
    order: 2;
  }

  .sf-post-query {
    order: 3;
    margin-top: 2.75rem;
  }

  .sf-funding-info {
    order: 3;
    margin-top: 2.75rem;
  }

  .sf-funding-info + .sf-post-query {
    order: 4;
  }

  .sf-collection-rail--right {
    display: none;
  }

  .sf-post-card {
    min-height: 0;
  }

  .sf-post-card__excerpt .wp-block-post-excerpt__excerpt {
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sf-ellipse {
    transform: rotate(var(--sf-rotate, 0deg));
  }

  .wp-element-button,
  .wp-block-button__link,
  .sf-topic-card {
    transition: none;
  }

  .sf-post-card {
    transform: none;
    transition: none;
  }
}
