#MainContent[data-template="page.ueber-uns"] {
  --p8-about-ink: #050526;
  --p8-about-blue: #131380;
  --p8-about-line: #e1e1ef;
  background: #fff;
  .section-content-wrapper { width: 100%; max-width: 1120px; margin-inline: auto; align-items: stretch; }
  .group-block, .text-block { min-width: 0; }
  :is(h1,h2,h3,h4,h5,h6,p) { margin: 0; }
  .text-block :is(h1,h2,h3,h5) { text-wrap: balance; }
  .text-block.h1 h1 { font-size: clamp(2.7rem,4.6vw,4.1rem); line-height: 1.04; letter-spacing: -.04em; font-weight: var(--font-h1--weight); }
  .text-block.h2 h2 { font-size: clamp(1.9rem,3.1vw,2.6rem); line-height: 1.12; letter-spacing: -.028em; font-weight: var(--font-h2--weight); }
  .text-block.h5 h3 { font-size: clamp(1.15rem,1.8vw,1.35rem); line-height: 1.25; font-weight: 650; }
  .text-block.paragraph p { font-size: 17px; line-height: 1.6; text-wrap: pretty; }
  .text-block p + p { margin-top: 14px; }
  .text-block.paragraph strong { font-weight: 650; }
  .text-block.h6 :is(p,h6) { font-size: 12px; font-weight: 650; line-height: 1.4; letter-spacing: .09em; text-transform: uppercase; }
  .text-block a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
  :is(a,summary):focus-visible { outline: 2px solid var(--p8-about-blue); outline-offset: 5px; border-radius: 3px; }
  :is(.button,.button-secondary) { min-height: 48px; padding: 14px 22px; font-size: 16px; line-height: 1.25; text-align: center; }
  .image-block { overflow: hidden; }

  :is([id$="__ueber_hero"],[id$="__ueber_lebensgefuehl"],[id$="__ueber_anspruch"],[id$="__ueber_ursprung"],[id$="__ueber_abschluss"]) {
    .section-content-wrapper > .group-block > .group-block-content { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: clamp(28px,4vw,56px); }
  }

  [id$="__ueber_hero"] {
    .section-content-wrapper > .group-block > .group-block-content { grid-template-columns: minmax(0,1fr) minmax(0,1.06fr); }
    .image-block { height: 500px; border-radius: 120px 18px 18px 18px; }
    .image-block__image { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 64% center; }
    .text-block.paragraph { max-width: 47ch; }
    .group-block-content > .text-block.paragraph:first-of-type p { font-size: 20px; line-height: 1.45; }
    .group-block-content > .text-block:last-child p { font-size: 16px; }
  }

  [id$="__ueber_schlafzahlen"] {
    > .section-background { background: linear-gradient(180deg,#fff 0%,#f6f6fe 24%,#f6f6fe 75%,#fff 100%); }
    .section-content-wrapper > .group-block:first-child { max-width: 820px; }
    .section-content-wrapper > .group-block:nth-child(2) > .group-block-content { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; align-items: stretch; }
    .section-content-wrapper > .group-block:nth-child(2) > .group-block-content > .group-block { border-top: 1px solid #c9c9e7; padding-top: 22px; }
    .text-block.h1 p { font-size: clamp(3rem,5vw,4.5rem); line-height: 1; font-weight: 700; letter-spacing: -.045em; font-variant-numeric: lining-nums; margin-bottom: 6px; }
    .section-content-wrapper > .group-block:nth-child(2) .group-block-content > .text-block:last-child p { font-size: 13px; line-height: 1.45; }
    .accordion { margin-top: 4px; }
    .details__header { min-height: 48px; font-size: 15px; font-weight: 600; color: #131380; }
    .details-content { padding-block: 8px 16px; max-width: 95ch; }
    .details-content .text-block.paragraph p { font-size: 14px; line-height: 1.6; }
  }

  [id$="__ueber_lebensgefuehl"] {
    .section-content-wrapper > .group-block > .group-block-content { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); }
    .section-content-wrapper > .group-block > .group-block-content > .group-block:first-child > .group-block-content { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.4fr); align-items: end; gap: 0; }
    .image-block { height: 390px; border-radius: 18px; grid-column: 1 / -1; grid-row: 1; }
    .image-block:last-child { grid-column: 2; height: 195px; margin-bottom: -24px; border: 6px solid #fff; border-radius: 18px 18px 56px 18px; }
    .image-block__image { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
    .image-block:first-child .image-block__image { object-position: center; }
    .image-block:last-child .image-block__image { object-position: 75% center; }
  }

  [id$="__ueber_vision"] {
    .section-content-wrapper > .group-block { border-radius: 24px; padding: clamp(28px,4vw,52px); background: radial-gradient(ellipse at 105% 0,#3c3caa 0,transparent 60%),#131380; overflow: hidden; }
    .section-content-wrapper > .group-block > .group-block-content { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 16px 64px; align-items: center; }
    .text-block:first-child { grid-column: 1 / -1; opacity: .8; }
    .text-block.h2 { grid-column: 1; grid-row: 2 / 4; }
    .text-block.paragraph { grid-column: 2; }
    .text-block.paragraph:last-child p { font-weight: 650; }
    .text-block.h2 h2 { font-size: clamp(2rem,3.5vw,3rem); }
  }

  [id$="__ueber_anspruch"] {
    .section-content-wrapper > .group-block > .group-block-content { grid-template-columns: minmax(0,1.5fr) minmax(0,.8fr); gap: clamp(32px,7vw,88px); align-items: center; }
    .section-content-wrapper > .group-block > .group-block-content > .group-block:first-child > .group-block-content > .group-block > .group-block-content > .group-block { border-left: 2px solid #dcdcf1; padding-left: 16px; }
    .text-block.paragraph p { font-size: 16px; line-height: 1.55; }
    .image-block { height: 480px; border-radius: 18px 88px 18px 18px; }
    .image-block__image { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center 30%; }
    .section-content-wrapper > .group-block > .group-block-content > .group-block:last-child .text-block p { font-size: 12px; line-height: 1.4; }
    .button-secondary { align-self: flex-start; }
  }

  [id$="__ueber_ursprung"] {
    .section-content-wrapper { border-top: 1px solid var(--p8-about-line); }
    .section-content-wrapper > .group-block > .group-block-content { grid-template-columns: minmax(0,1fr) 230px; gap: clamp(36px,7vw,100px); }
    .text-block.paragraph { max-width: 68ch; }
    .image-block { height: 260px; border-radius: 16px; }
    .image-block__image { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center 35%; }
    .section-content-wrapper > .group-block > .group-block-content > .group-block:last-child .text-block p { font-size: 14px; line-height: 1.45; }
  }

  [id$="__ueber_beirat"] {
    .section-content-wrapper > .group-block:nth-child(2) .text-block.paragraph p { font-size: 15px; line-height: 1.5; }
    .text-block.h5 h5 { font-size: 24px; line-height: 1.2; }
  }

  [id$="__ueber_partner"] {
    .section-content-wrapper { border-top: 1px solid var(--p8-about-line); }
    .text-block.h3 h2 { font-size: clamp(1.5rem,2.4vw,1.9rem); line-height: 1.2; }
    .section-content-wrapper > .group-block > .group-block-content { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
    .section-content-wrapper > .group-block > .group-block-content > .group-block > .group-block-content { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: start; }
    .group-block { width: 100%; }
    .text-block.h6 h3 { font-size: 15px; line-height: 1.25; font-weight: 600; letter-spacing: 0; }
    .text-block.paragraph p { font-size: 14px; line-height: 1.4; }
    .icon-block { height: 86px; display: flex; align-items: center; justify-content: center; }
    .icon-block img { width: 108px; max-height: 86px; object-fit: contain; }
  }

  [id$="__ueber_abschluss"] {
    .section-content-wrapper > .group-block { border: 1px solid var(--p8-about-line); border-radius: 22px; padding: clamp(24px,3vw,40px); background: linear-gradient(115deg,#f7f7ff,#fff 70%); }
    .section-content-wrapper > .group-block > .group-block-content { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 44px; }
    .section-content-wrapper > .group-block > .group-block-content > .group-block:last-child { border-left: 1px solid var(--p8-about-line); padding-left: 36px; }
    .text-block.h4 h3 { font-size: 24px; line-height: 1.25; }
    .text-block a { display: inline-block; padding-block: 6px; overflow-wrap: anywhere; }
    .section-content-wrapper > .group-block > .group-block-content > .group-block:first-child .text-block:last-child p { font-size: 20px; font-weight: 650; }
  }
}

@media (max-width: 749px) {
  #MainContent[data-template="page.ueber-uns"] {
    .section-content-wrapper { padding-block: 30px; gap: 22px; }
    .text-block.paragraph p { font-size: 16px; line-height: 1.55; }
    .text-block.h1 h1 { font-size: clamp(2.5rem,10vw,3.4rem); }
    :is([id$="__ueber_hero"],[id$="__ueber_lebensgefuehl"],[id$="__ueber_anspruch"],[id$="__ueber_ursprung"],[id$="__ueber_abschluss"]) {
      .section-content-wrapper > .group-block > .group-block-content { grid-template-columns: minmax(0,1fr); gap: 26px; }
    }
    [id$="__ueber_hero"] {
      .section-content-wrapper { padding-top: 24px; padding-bottom: 16px; }
      .image-block { height: 290px; border-radius: 64px 16px 16px 16px; }
      .group-block-content > .text-block.paragraph:first-of-type p { font-size: 18px; }
    }
    [id$="__ueber_schlafzahlen"] {
      .section-content-wrapper > .group-block:nth-child(2) > .group-block-content { grid-template-columns: 1fr; gap: 20px; }
      .section-content-wrapper > .group-block:nth-child(2) > .group-block-content > .group-block { padding-top: 18px; }
      .section-content-wrapper > .group-block:nth-child(2) > .group-block-content > .group-block > .group-block-content { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 4px 14px; align-items: center; }
      .text-block.h1 { grid-row: 1 / 3; }
      .text-block.h1 p { font-size: 36px; margin: 0; white-space: nowrap; }
      .text-block.paragraph { grid-column: 2; }
      .text-block.paragraph p { font-size: 15px; line-height: 1.4; }
      .details-content .text-block.paragraph { grid-column: auto; }
    }
    [id$="__ueber_lebensgefuehl"] {
      .section-content-wrapper > .group-block > .group-block-content > .group-block:first-child { order: 2; margin-bottom: 16px; }
      .image-block { height: 280px; }
      .image-block:last-child { height: 150px; margin-bottom: -16px; border-width: 4px; }
    }
    [id$="__ueber_vision"] {
      .section-content-wrapper { padding-block: 14px; }
      .section-content-wrapper > .group-block { padding: 28px 24px; border-radius: 18px; }
      .section-content-wrapper > .group-block > .group-block-content { grid-template-columns: 1fr; gap: 16px; }
      .text-block, .text-block.h2, .text-block.paragraph { grid-column: auto; grid-row: auto; }
    }
    [id$="__ueber_anspruch"] {
      .section-content-wrapper > .group-block > .group-block-content > .group-block:last-child { max-width: 340px; margin-inline: auto; }
      .image-block { height: 360px; border-radius: 16px 64px 16px 16px; }
      .image-block__image { object-position: center 28%; }
      .button-secondary { width: 100%; }
    }
    [id$="__ueber_ursprung"] {
      .section-content-wrapper > .group-block > .group-block-content > .group-block:last-child > .group-block-content { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 16px; align-items: center; }
      .image-block { height: 108px; border-radius: 12px; }
      .text-block.paragraph p { font-size: 16px; }
    }
    [id$="__ueber_partner"] {
      .section-content-wrapper > .group-block > .group-block-content { grid-template-columns: 1fr; gap: 24px; }
      .section-content-wrapper > .group-block > .group-block-content > .group-block > .group-block-content { gap: 16px; }
    }
    [id$="__ueber_abschluss"] {
      .section-content-wrapper > .group-block { padding: 24px; }
      .section-content-wrapper > .group-block > .group-block-content > .group-block:last-child { border-left: 0; border-top: 1px solid var(--p8-about-line); padding-left: 0; padding-top: 24px; }
      .button { width: 100%; }
    }
  }
}


#MainContent[data-template="page.ueber-uns"] [id$="__ueber_schlafzahlen"] {
  .section-content-wrapper > .group-block:nth-child(2) > .group-block-content { grid-template-columns: 1fr 1fr 1.18fr; gap: 32px; align-items: stretch; }
  .section-content-wrapper > .group-block:nth-child(2) > .group-block-content > .group-block:last-child { position: relative; overflow: visible !important; border-top: 0; padding: 26px; background: #131380; border-radius: 20px; box-shadow: 0 10px 30px #13138010; }
  .section-content-wrapper > .group-block:nth-child(2) > .group-block-content > .group-block:last-child::before { content: "→"; position: absolute; left: -21px; top: 48%; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #ddddef; border-radius: 50%; background: #fff; color: #131380; font-size: 22px; }
  .section-content-wrapper > .group-block:nth-child(2) > .group-block-content > .group-block:last-child .text-block.h1 p { font-size: clamp(36px,3.7vw,49px); white-space: nowrap; }
  .section-content-wrapper > .group-block:nth-child(2) > .group-block-content > .group-block:last-child .text-block.h6 p { font-size: 10px; letter-spacing: .09em; opacity: .8; }
  .section-content-wrapper > .group-block:nth-child(2) > .group-block-content > .group-block:last-child .text-block:last-child p { opacity: .8; }
}
#MainContent[data-template="page.ueber-uns"] [id$="__ueber_lebensgefuehl"] {
  .section-content-wrapper > .group-block > .group-block-content > .group-block:first-child > .group-block-content { grid-template-columns: minmax(0,1fr) minmax(0,.78fr); padding-right: 22px; padding-bottom: 46px; }
  .image-block:first-child { height: 390px; }
  .image-block:last-child { width: calc(100% + 22px); max-width: none; height: 248px; transform: translateX(22px); margin-bottom: -46px; border: 7px solid #fff; border-radius: 18px 18px 48px 18px; box-shadow: 0 12px 30px #05052612; }
}
@media(max-width:749px) {
  #MainContent[data-template="page.ueber-uns"] [id$="__ueber_schlafzahlen"] {
    .section-content-wrapper > .group-block:nth-child(2) > .group-block-content { grid-template-columns: 1fr; gap: 20px; }
    .section-content-wrapper > .group-block:nth-child(2) > .group-block-content > .group-block:last-child { margin-top: 14px; padding: 24px; }
    .section-content-wrapper > .group-block:nth-child(2) > .group-block-content > .group-block:last-child::before { left: calc(50% - 19px); top: -20px; transform: rotate(90deg); }
    .section-content-wrapper > .group-block:nth-child(2) > .group-block-content > .group-block:last-child > .group-block-content { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
    .section-content-wrapper > .group-block:nth-child(2) > .group-block-content > .group-block:last-child .text-block.h1 p { font-size: 44px; }
  }
  #MainContent[data-template="page.ueber-uns"] [id$="__ueber_lebensgefuehl"] {
    .section-content-wrapper > .group-block > .group-block-content > .group-block:first-child { margin-bottom: 0; }
    .section-content-wrapper > .group-block > .group-block-content > .group-block:first-child > .group-block-content { grid-template-columns: minmax(0,1fr) minmax(0,.95fr); padding-right: 14px; padding-bottom: 42px; }
    .image-block:first-child { height: 290px; }
    .image-block:last-child { width: calc(100% + 14px); height: 188px; transform: translateX(14px); margin-bottom: -42px; border-width: 5px; }
  }
}
