/* MateScale / Octuwa: page styles shared by every page */
  /* ---------- hero film: a floor plan draws itself once on drafting paper (Higgsfield), then holds; under the text, washed into the page colour */
  .hero--centred { position: relative; isolation: isolate; }
  .hero__film { position: absolute; left: 0; right: 0; top: 72px; bottom: 0; z-index: 0; width: 100%; height: calc(100% - 72px); object-fit: cover; object-position: 50% 35%; opacity: .55; pointer-events: none; }
  .hero--centred::after { content: ""; position: absolute; left: 0; right: 0; top: 72px; bottom: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(var(--p-bg) 0%, color-mix(in oklab, var(--p-bg) 50%, transparent) 18%, color-mix(in oklab, var(--p-bg) 35%, transparent) 45%, var(--p-bg) 78%); }
  .hero--centred > .wrap { position: relative; z-index: 1; }
  @media (max-width: 1023px) { .hero__film, .hero--centred::after { top: 56px; } .hero__film { height: calc(100% - 56px); } }
  /* ---------- hero: centred head, the use-case switcher rising out of the bottom (Blockbrain-Aufbau) */
  .hero--centred h1 { max-width: 18ch; }
  .hero--centred .hero__window { background: none; box-shadow: none; }
  .hero--centred .hero__window > .ly-piece.uc { left: 0; width: 100%; transform: none; top: 0; }
  .hero--centred .hero__lead { color: #313031; }
  .hero__note { margin: 0; font-size: var(--t-small); color: #313031; }
  .uc { background: #fff; color: #313031; border-radius: 16px; overflow: hidden; text-align: left;
        box-shadow: 0 0 0 1px rgb(49 48 49 / .08), 0 30px 70px -36px rgb(49 48 49 / .55); }
  .uc__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid rgb(0 0 0 / .08); }
  .uc__tab { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 20px; border: 0; background: transparent; color: #6D6A6B;
             font: 500 16px/1.2 var(--font-text); text-align: left; cursor: pointer; border-right: 1px solid rgb(0 0 0 / .06);
             transition: background-color .25s var(--ease), color .25s var(--ease); }
  .uc__tab:last-child { border-right: 0; }
  .uc__tab:hover { background: #F8F7F4; color: #313031; }
  .uc__tab:focus-visible { outline: 2px solid #4A6D50; outline-offset: -4px; }
  .uc__tab[aria-selected="true"] { background: #4A6D50; color: #F8F7F4; }
  .uc__ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; flex: none; background: #D8E6D7; color: #4A6D50; }
  .uc__tab[aria-selected="true"] .uc__ico { background: #F8F7F4; }
  .uc__ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .uc__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; min-height: 300px; }
  .uc__text { grid-column: 1 / span 6; } .uc__stage { grid-column: 7 / -1; }
  .uc__short { display: none; }
  .uc__text { padding: 24px 0 24px 28px; display: grid; align-content: start; gap: 10px; }
  .uc__text h3 { font: 500 24px/1.2 var(--font-display); letter-spacing: -0.02em; margin: 0; color: #313031; }
  .uc__text p { margin: 0; color: #6D6A6B; font-size: 15px; line-height: 1.55; }
  .uc__tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 4px 0 0; padding: 0; }
  .uc__tags li { padding: 5px 10px; border-radius: 7px; background: #D8E6D7; color: #313031; font-size: 13px; }
  .uc__text .link { margin-top: 6px; color: #4A6D50; }
  .uc__stage { position: relative; min-height: 276px; align-self: stretch; overflow: hidden; margin: 24px 0; border-radius: 12px 0 0 12px; --frag: #FFFFFF;
               background: #D8E6D7; }
  .uc__stage > .stage { position: absolute; inset: 0; }
  @media (max-width: 1023px) { .uc__body { grid-template-columns: minmax(0, 1fr); } .uc__text, .uc__stage { grid-column: 1; } .uc__stage { margin: 0 16px 16px; min-height: 300px; } }
  @media (max-width: 639px) {
    .uc__tab { flex-direction: column; justify-content: center; gap: 6px; min-height: 76px; padding: 8px 4px; font-size: 13px; text-align: center; }
    .uc__ico { width: 30px; height: 30px; }
    .uc__long { display: none; } .uc__short { display: inline; }
    .uc__text { display: none !important; }
    .uc__stage { margin: 12px; }
    .uc__text { padding: 20px 18px; }
    .uc__text h3 { font-size: 20px; }
    .uc__text p { font-size: 15px; }
    .uc__stage { min-height: 300px; }
  }

  /* ---------- the three use-case modules: one template, so they read alike */
  .mod__lead { font-size: var(--t-lead, 19px); line-height: 1.5; }
  .mod__for { color: var(--muted); }
  .mod__list { list-style: none; margin-inline: 0; margin-bottom: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
  .mod__list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .mod__list svg { width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

  /* the example stepper: one example at a time, left and right by button or swipe (Patricks Wunsch) */
  .ex { position: relative; display: grid; align-content: center; gap: 16px; padding: clamp(16px, 4vw, 48px); height: 100%; touch-action: pan-y; }
  .ex__bar { display: flex; align-items: center; gap: 12px; }
  .ex__count { font: 500 14px/1 var(--font-text); color: var(--ink); font-variant-numeric: tabular-nums; }
  .ex__kind { margin-right: auto; font-size: 14px; color: var(--muted); }
  .ex__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(49 48 49 / .18); background: #fff; color: #4A6D50; display: grid; place-items: center; cursor: pointer;
             transition: transform .2s var(--ease), background-color .2s var(--ease); }
  .ex__btn:hover { background: #F8F7F4; }
  .ex__pause[aria-pressed="true"] svg { fill: currentColor; }
  .ex__btn:active { transform: scale(.94); }
  .ex__btn:focus-visible { outline: 2px solid #4A6D50; outline-offset: 2px; }
  .ex__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .ex__track { display: grid; align-items: start; }
  .ex__slide { grid-area: 1 / 1; min-width: 0; }
  .ex__slide[aria-hidden="true"] { visibility: hidden; }
  .ex__slide.is-in { animation: ex-in .45s var(--ease-out, cubic-bezier(.2,.7,.2,1)) both; }
  .ex__slide.is-in.from-left { animation-name: ex-in-l; }
  @keyframes ex-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
  @keyframes ex-in-l { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
  .ex__dots { display: flex; gap: 6px; }
  .ex__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgb(49 48 49 / .22); transition: background-color .25s, transform .25s; }
  .ex__dots i.is-on { background: #4A6D50; transform: scale(1.25); }

  /* a small MateScale answer card, drawn as live HTML */
  .msx { background: #fff; color: #313031; border-radius: 12px; overflow: hidden; font: 400 14px/1.45 var(--font-text);
         box-shadow: 0 0 0 1px rgb(0 0 0 / .07), 0 22px 50px -30px rgb(0 0 0 / .45); }
  .msx__bar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-bottom: 1px solid rgb(0 0 0 / .07); font-size: 13px; color: #6D6A6B; }
  .msx__bar b { font-weight: 500; color: #313031; }
  .msx__body { padding: 16px; display: grid; gap: 12px; }
  .msx__q { justify-self: end; max-width: 88%; margin: 0; background: #D8E6D7; border-radius: 12px 12px 4px 12px; padding: 9px 13px; }
  .msx__work { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; margin: 0; font-size: 12.5px; color: #6D6A6B; }
  .msx__prog { height: 4px; border-radius: 4px; background: #D8E6D7; overflow: hidden; }
  .msx__prog i { display: block; height: 100%; background: #4A6D50; transform-origin: left; }
  .msx__a { margin: 0; color: #313031; }
  .msx__a b { font-weight: 500; color: #313031; }
  .msx__srcs { display: grid; gap: 6px; }
  .msx__note { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 8px 10px; border-radius: 9px; background: #F8F7F4; color: #C45730; font-size: 13px; }
  .msx__ok { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 8px 10px; border-radius: 9px; background: #D8E6D7; color: #4A6D50; font-size: 13px; }
  .ms-dots { display: flex; gap: 6px; } .ms-dots i { width: 10px; height: 10px; border-radius: 50%; background: #D8E6D7; }
  .ms-src { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid rgb(0 0 0 / .08); border-radius: 9px; font-size: 13px; }
  .ms-src img { width: 22px; height: 22px; }
  .ms-src span { min-width: 0; overflow-wrap: anywhere; }
  .ms-src small { color: #6D6A6B; font-size: 12px; white-space: nowrap; }
  .ms-ref { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; margin-left: 2px; border-radius: 5px; background: #D8E6D7; color: #4A6D50; font: 500 12px/1 var(--font-text); vertical-align: 1px; }
  /* the answer builds up in a slow loop (10 s): question, search, answer, sources; paused off screen and by its button */
  .ex.is-armed .is-loop :is(.msx__q, .msx__work, .msx__prog i, .msx__a, .msx__srcs > *, .msx__note) { animation: 10s linear infinite both; }
  .ex.is-armed .is-loop .msx__q { animation-name: lp-q; }
  .ex.is-armed .is-loop .msx__work { animation-name: lp-work; }
  .ex.is-armed .is-loop .msx__prog i { animation-name: lp-bar; }
  .ex.is-armed .is-loop .msx__a { animation-name: lp-a; }
  .ex.is-armed .is-loop .msx__srcs > * { animation-name: lp-src; }
  .ex.is-armed .is-loop .msx__srcs > :nth-child(2) { animation-name: lp-src2; }
  .ex.is-armed .is-loop .msx__srcs > :nth-child(3) { animation-name: lp-src3; }
  .ex.is-armed .is-loop .msx__note { animation-name: lp-note; }
  .ex.is-off .is-loop *, .ex.is-paused .is-loop * { animation-play-state: paused !important; }
  @keyframes lp-q { 0% { opacity: 0; transform: translateY(8px); } 4%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes lp-work { 0%, 3% { opacity: 0; } 6%, 95% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes lp-bar { 0%, 4% { transform: scaleX(0); } 16%, 100% { transform: scaleX(1); } }
  @keyframes lp-a { 0%, 15% { opacity: 0; transform: translateY(8px); } 20%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes lp-src { 0%, 19% { opacity: 0; transform: translateY(8px); } 23%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes lp-src2 { 0%, 21% { opacity: 0; transform: translateY(8px); } 25%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes lp-src3 { 0%, 23% { opacity: 0; transform: translateY(8px); } 27%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @keyframes lp-note { 0%, 26% { opacity: 0; transform: translateY(8px); } 31%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { .ex.is-armed .is-loop * { animation: none !important; } .ex__slide.is-in { animation: none; } .ex__pause { display: none; } }
  /* the example frames sit on a faint plan grid, the same drafting paper as the hero film */
  .frame--ex, .frame--calc { background-image:
      linear-gradient(rgb(49 48 49 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(49 48 49 / .06) 1px, transparent 1px);
    background-size: auto, 32px 32px, 32px 32px; background-position: 0 0, -1px -1px, -1px -1px; }
  .frame--ex { display: block; }
  @media (max-width: 1023px) { .frame--ex { min-height: 0; } }
  @media (max-width: 639px) { .ex { padding: 16px; gap: 12px; } .msx__body { padding: 12px; } .msx__q { max-width: 100%; } }

  /* ---------- principle: the three steps share one panel height */
  #prinzip .panel { --p-h: 336px; }
  @media (max-width: 1279px) { #prinzip { --h: 2; } }
  @media (max-width: 639px) { #prinzip .panel { --p-h: 200px; } #prinzip { --hm: 2; } }

  /* ---------- the building blocks and their status */
  .phase { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
  .phase::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  .phase--now { background: #D8E6D7; color: #4A6D50; }
  .phase--next { background: #D8E6D7; color: #4A6D50; }
  .phase--later { background: #D8E6D7; color: #6D6A6B; }
  .ground-inverse .phase--now { background: rgb(158 186 214 / .18); color: #D8E6D7; }
  .ground-inverse .phase--next { background: rgb(158 186 214 / .14); color: #9EBAD6; }
  .ground-inverse .phase--later { background: rgb(255 255 255 / .08); color: #9EBAD6; }
  .blocks > li { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .blocks > li > p { grid-column: 1; margin: 0; }
  .blocks > li > .phase { grid-column: 2; grid-row: 1; }
  .dg-band { margin-top: var(--s-7); padding: var(--s-5); }
  .dg-band > .dg { width: 100%; }
  .dg-band--steps { padding: clamp(24px, 5vw, 72px) clamp(16px, 4vw, 56px); }

  /* ---------- consulting: the digitising window */
  #consulting .at-corner > .ui-win { width: 100%; }
  .frame--lit { --frag: #FFFFFF; }
  .ui-check__label::after { display: none; }


  /* the four steps to an introduction, as a numbered list */
  .steps-list { list-style: none; margin: 0; padding: 0; counter-reset: st; border-top: 1px solid var(--line); }
  .steps-list li { counter-increment: st; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .steps-list li::before { content: counter(st); grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #4A6D50; color: #F8F7F4; font: 500 13px/1 var(--font-text); }
  .steps-list b { font-weight: 500; }
  .steps-list span { color: var(--muted); font-size: var(--t-small); }
  /* ---------- the time-cost calculator: a real form on the lit ground */
  .frame--calc { display: grid; place-items: center; padding: var(--s-6); }
  .calc { width: min(100%, 440px); background: #fff; color: #313031; border-radius: 14px; padding: 28px; display: grid; gap: 14px;
          box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 24px 50px -28px rgb(0 0 0 / .45); font: 400 15px/1.5 var(--font-text); }
  .calc__type { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #D8E6D7; border-radius: 10px; padding: 4px; }
  .calc__type legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .calc__type label { display: grid; place-items: center; min-height: 44px; border-radius: 8px; cursor: pointer; font-weight: 500; color: #313031; transition: background .25s var(--ease-out, ease), color .25s; }
  .calc__type input { position: absolute; opacity: 0; pointer-events: none; }
  .calc__type label:has(input:checked) { background: #fff; color: #4A6D50; box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
  .calc__type label:has(input:focus-visible) { outline: 2px solid #4A6D50; outline-offset: 2px; }
  .calc__label { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 0; color: #313031; font-size: 14px; }
  .calc__label output { font-weight: 600; color: #313031; font-variant-numeric: tabular-nums; }
  .calc__range { width: 100%; accent-color: #4A6D50; height: 32px; cursor: pointer; }
  .calc__num { margin: 0; font: 400 clamp(36px, 4vw, 52px)/1.05 var(--font-display); letter-spacing: -0.03em; color: #4A6D50; font-variant-numeric: tabular-nums; }
  .calc__how { margin: 0; font: 400 13px/1.4 var(--font-mono); color: #6D6A6B; }
  .calc__src { color: var(--ink); }
  .calc__warn { padding-top: 10px; border-top: 2px solid #C45730; color: #C45730; font-size: var(--t-small); font-weight: 500; }
  .calc .calc__cta { justify-self: start; }
  @media (max-width: 1023px) { .frame--calc { min-height: 420px; } }
  @media (max-width: 639px) { .frame--calc { padding: var(--s-4); min-height: 0; } .calc { padding: 20px; } }

  /* ---------- phone */
  @media (max-width: 639px) {
    .hero--centred .btn-row { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
    .hero--centred .btn-row .btn { width: auto; flex: none; white-space: nowrap; }
    .hero--centred .btn-row .btn--secondary { padding-inline: 0; }
    #plattform.mo-io { --mo-gap: 16px; }
    footer.closing .closing__cta > .btn { transition: none; }
    #consulting .dg-band { min-height: 380px; margin-top: 32px; }
    #consulting .at-corner { --ax: 16px !important; --ay: 16px !important; width: calc(100% - 16px) !important; }
    #wissen-finden, #offboarding, #entscheidungen, #plattform, #consulting, #kosten { --hm: 2; }
  }

/* ---------- the use-case pages: one picture in the hero window, a breadcrumb back to the overview */
.hero__crumb { margin: 0; font-size: var(--t-small); }
.uc--solo { min-height: 320px; }
.uc--solo .uc__stage { margin: 0; border-radius: 16px; min-height: 340px; }
@media (max-width: 639px) { .uc--solo .uc__stage { margin: 0; min-height: 300px; } #fragen, #voraussetzungen { --hm: 2; } }

@media (max-width: 639px) { .closing__cta .btn--xl { white-space: normal; max-width: 100%; height: auto; min-height: 56px; padding-block: 12px; text-align: center; } }
@media (max-width: 1023px) { #voraussetzungen .grid > .stack-4 { padding-bottom: var(--s-6); } }

/* ---------- hero: a real MateScale picture (Linus Jessat) rising out of the bottom */
.hero-shot { margin: 0; left: 0; right: 0; top: var(--s-6, 32px); bottom: 0; width: 100%; transform: none; border-radius: 14px 14px 0 0; overflow: hidden;
  box-shadow: 0 0 0 1px rgb(49 48 49 / .1), 0 40px 80px -40px rgb(49 48 49 / .55); background: #D8E6D7; }
.hero-shot { display: grid; place-items: center; background: none; box-shadow: none; overflow: visible; border-radius: 0; }
.hero-shot__btn { height: 100%; max-width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #fff; cursor: zoom-in; box-shadow: 0 24px 60px -24px rgb(49 48 49 / .45), 0 0 0 1px rgb(49 48 49 / .08); transition: transform .3s ease; }
.hero-shot__btn:hover { transform: translateY(-3px); }
.hero-shot__btn:focus-visible { outline: 2px solid #4A6D50; outline-offset: 3px; }
.hero-shot img { display: block; height: 100%; width: auto; max-width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }

/* ---------- use cases: tabs, then one example at a time (picture + short text), clickable left and right */
.ux__frame { margin-top: var(--s-6); }
.faq__cols { margin-top: 40px; }
.faq__cols .faq > .faq__item { padding-block: 28px; }
@media (min-width: 1024px) { .ux__shot { max-width: 600px; justify-self: end; width: 100%; } }
.ux__inner { display: grid; gap: clamp(12px, 2vw, 20px); }
.ux__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: rgb(255 255 255 / .55); border-radius: 14px; padding: 6px; }
.ux__tab { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 6px 14px; border: 0; border-radius: 10px; background: transparent; color: #313031;
  font: 500 15px/1.25 var(--font-text); text-align: left; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease); }
.ux__tab:hover { background: rgb(255 255 255 / .8); color: #313031; }
.ux__tab:focus-visible { outline: 2px solid #4A6D50; outline-offset: 2px; }
.ux__tab[aria-selected="true"] { background: #4A6D50; color: #F8F7F4; }
.ux__ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; background: #D8E6D7; color: #4A6D50; }
.ux__tab[aria-selected="true"] .ux__ico { background: #F8F7F4; }
.ux__ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ux__panel { min-height: 0; }
.ex.ux { padding: 0; align-content: start; height: auto; }
.ux__slide { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(16px, 3vw, 40px); align-items: center; }
.ux__copy { display: grid; gap: 12px; align-content: center; }
.ux__copy h3 { margin: 0; font: 500 clamp(20px, 2vw, 26px)/1.2 var(--font-display); letter-spacing: -0.02em; }
.ux__copy p { margin: 0; color: #313031; }
.ex__gap { margin-right: auto; }
.ux__shot { display: block; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #D8E6D7; cursor: zoom-in;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 24px 50px -30px rgb(0 0 0 / .45); transition: transform .3s var(--ease); }
.ux__shot:hover { transform: translateY(-2px); }
.ux__shot:focus-visible { outline: 2px solid #4A6D50; outline-offset: 3px; }
.ux__shot img { display: block; width: 100%; height: auto; }
@media (max-width: 1023px) {
  .ux__slide { grid-template-columns: minmax(0, 1fr); }
  .ux__shot { order: -1; }
}
@media (max-width: 639px) {
  .ux__tabs { grid-template-columns: minmax(0, 1fr); }
  .ux__tab { min-height: 52px; font-size: 14px; }
  #anwendungen { --hm: 2; }
}

/* the big picture */
.lb { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1600px); max-height: 92vh; overflow: visible; }
.lb::backdrop { background: rgb(49 48 49 / .82); }
.lb img { display: block; max-width: min(96vw, 1600px); max-height: 92vh; width: auto; height: auto; border-radius: 10px; }
.lb__close { position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #F8F7F4; color: #4A6D50; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgb(0 0 0 / .3); }
.lb__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 639px) { .lb__close { top: 8px; right: 8px; } }

/* ---------- consulting: the three principle cards under the steps */
.consult-cards { margin-top: var(--s-7); }
.steps-list li { grid-template-rows: auto; align-items: center; }
.steps-list li::before { grid-row: 1; }

/* ---------- why Octuwa: the three people */
.team { margin-top: var(--s-7); }
.team-card { display: grid; justify-items: start; gap: 10px; }
.team-card h3 { margin: 0; }
.team-card p { margin: 0; color: var(--muted); }
.team-card__av { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 500 20px/1 var(--font-display); color: #F8F7F4; background: #4A6D50; }
.team-card__av[data-tone="3"] { background: #4A6D50; }
.team-card__av[data-tone="4"] { background: #6D6A6B; }

@media (max-width: 639px) { #faq { --hm: 2; } #octuwa { --hm: 2; } #anwendungen { --hm: 2; } }


.hero--centred .hero__window > .ly-piece.hero-uc { left: 0; right: 0; width: 100%; transform: none; top: 16px; bottom: 28px; }
@media (min-width: 1024px) { .hero--centred h1 { max-width: 30ch; } .hero--centred .hero-text > * { max-width: none; } .hero--centred .hero__lead { max-width: 60ch; margin-inline: auto; } }
@media (max-width: 639px) { .hero--centred .hero__window { height: 216px; min-height: 0; flex: none; } }
@media (max-width: 639px) {
  .consult-cards > .grid { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; margin-inline: calc(-1 * var(--gutter, 16px)); padding-inline: var(--gutter, 16px); padding-bottom: 8px; scrollbar-width: thin; }
  .consult-cards > .grid > .card { flex: 0 0 88%; }
}

/* ---------- hero: the three use cases as tiles */
.hero-uc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-content: end; }
.hero-uc__tile { display: grid; grid-template-rows: auto 1fr auto; gap: 14px; min-height: 0; height: 100%; max-height: 220px; padding: 22px 24px; border-radius: 16px; background: transparent; border: 1px solid rgb(49 48 49 / .22); color: #313031; text-decoration: none; text-align: left; transition: transform .25s ease, background-color .25s ease; }
.hero-uc__tile:hover { transform: translateY(-3px); border-color: #4A6D50; }
.hero-uc__tile:focus-visible { outline: 2px solid #4A6D50; outline-offset: 3px; }
.hero-uc__tile .ux__ico { width: 40px; height: 40px; background: #4A6D50; color: #F8F7F4; }
.hero-uc__t { font: 500 clamp(19px, 1.6vw, 23px)/1.22 var(--font-display); letter-spacing: -0.015em; }
.hero-uc__m { font-size: 15px; color: #4A6D50; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 639px) {
  .hero-uc { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero-uc__tile { grid-template-columns: auto 1fr; grid-template-rows: auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; max-height: none; }
  .hero-uc__tile .ux__ico { width: 34px; height: 34px; }
  .hero-uc__t { font-size: 16px; }
  .hero-uc__m { display: none; }
}

/* ---------- v10: grey + light blue, consulting, team photos */
.hero__film { filter: grayscale(1) contrast(.95); }
mark.hl { background: linear-gradient(transparent 58%, #9EBAD6 58%, #9EBAD6 92%, transparent 92%); color: inherit; padding: 0 .06em; }
.consult-cards { margin-top: var(--s-7); min-width: 0; width: 100%; }
.consult-cards .panel { --p-h: 210px; }
.consult-cards .ui-note time { display: none; }
.consult-cards .ui-note__title, .consult-cards .ui-note__body { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.consult-cards .card h3 { font-size: 20px; }
.consult-cards .card > p { font-size: 15px; }
.consult-next { margin-top: var(--s-7); }
.consult-next .steps-list li { padding-block: 16px; }
.consult-bridge { font: 400 clamp(22px, 2vw, 28px)/1.35 var(--font-display); letter-spacing: -0.012em; margin: 0; }
.consult-bridge { position: relative; }
.consult-bridge::before { content: ""; position: absolute; left: 0; top: -22px; width: 56px; height: 4px; border-radius: 2px; background: #9EBAD6; }
main > section#consulting { min-height: 0; height: auto; max-height: none; }
#consulting .consult-next { align-items: start; }
.team { margin-top: 48px; }
.team-card { display: grid; justify-items: center; gap: 16px; padding: 28px 24px 24px; text-align: center; }
.team-card img { width: 100%; max-width: 220px; aspect-ratio: 1; height: auto; border-radius: 50%; object-fit: cover; background: #D8E6D7; }
.team-card h3 { margin: 0; font: 500 19px/1.3 var(--font-display); }
@media (max-width: 639px) { #octuwa { --hm: 1; } }
@media (max-width: 639px) { .team.grid { margin-top: var(--s-6); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .team-card.span-4 { grid-column: auto; padding: 12px 6px; gap: 10px; } .team-card img { max-width: 84px; } .team-card h3 { font-size: 14px; } .consult-cards .panel { --p-h: 200px; } }
.consult-cards .ui-note__btn { display: none; }
.consult-cards .ui-note { min-width: 0; max-width: 100%; }
.hub-legend { display: none; }
@media (max-width: 639px) {
  .hub-legend { display: grid; gap: 10px; list-style: none; margin: var(--s-5) 0 0; padding: 0; }
  .hub-legend li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); font-size: 15px; color: #9EBAD6; }
  .hub-legend b { color: #D8E6D7; font-weight: 500; }
}

/* ---------- v11: compact rhythm - sections run to their content */
:root { --sp-t: 96px; --sp-b: 96px; }
@media (max-width: 1023px) { :root { --sp-t: 80px; --sp-b: 80px; } }
@media (max-width: 639px) { :root { --sp-t: 64px; --sp-b: 64px; } }
main > :is(section, .section):not(.hero), footer.closing {
  height: auto !important; min-height: 0 !important;
  padding-top: var(--sp-t) !important; padding-bottom: var(--sp-b) !important;
  display: block !important;
}
main > :is(section, .section):not(.hero) > .wrap, footer.closing > .wrap { height: auto !important; }
#plattform .dg-band { flex: none; height: clamp(340px, 32vw, 440px); margin-top: 40px; }
@media (max-width: 639px) { #plattform .dg-band { height: 320px; margin-top: 28px; } }
footer.closing .closing__links { margin-top: 64px; }
footer.closing { padding-bottom: calc(var(--sp-b) + var(--bar, 0px)) !important; }
@media (min-width: 640px) {
  main > section.hero { height: auto !important; min-height: 0 !important; padding-bottom: 32px !important; }
  .hero--centred .hero__window { flex: none !important; height: auto !important; min-height: 0 !important; margin-top: 48px; overflow: visible; -webkit-mask-image: none; mask-image: none; background: none; }
  .hero--centred .hero__window > .ly-piece.hero-uc { position: static !important; width: 100% !important; transform: none !important; }
  .hero-uc__tile { height: auto; max-height: none; }
}
@media (max-width: 639px) {
  main > section.hero { height: auto !important; min-height: 0 !important; padding-bottom: 24px !important; }
  .hero--centred .hero__window { flex: none !important; margin-top: 28px; height: auto !important; min-height: 0 !important; overflow: visible; -webkit-mask-image: none; mask-image: none; background: none; }
  .hero--centred .hero__window > .ly-piece.hero-uc { position: static !important; width: 100% !important; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .consult-cards > .grid { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; margin-inline: calc(-1 * var(--gutter, 24px)); padding-inline: var(--gutter, 24px); padding-bottom: 8px; scrollbar-width: thin; }
  .consult-cards > .grid > .card { flex: 0 0 46%; }
  .team.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .team-card.span-4 { grid-column: auto; padding: 20px 12px; }
  .team-card img { max-width: 150px; }
}

/* ---------- v12: stronger light blue, calmer line breaks */
html[data-ground="sky"] { --ground-bg: #9EBAD6; --ground-surface: #D8E6D7; --ground-ink: #313031; --ground-muted: #6D6A6B; --ground-accent: #4A6D50; }
.hero-uc__tile .ux__ico { background: #4A6D50; color: #FFFFFF; }
.ux__tab[aria-selected="true"] .ux__ico { background: #9EBAD6; color: #313031; }
.hero-uc__tile:hover { border-color: #4A6D50; }
.hub-legend b { color: #D8E6D7; }
h1, h2, h3, .hero-uc__t, .consult-bridge { text-wrap: balance; }
p, li, dd, figcaption, .ux__copy p { text-wrap: pretty; }
p, li { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; }
h1, h2, h3, .hero-uc__t, .ux__tab { hyphens: manual; }
footer.closing .closing__cta h2 { max-width: 22ch; }
@media (max-width: 639px) { footer.closing .closing__cta h2 { max-width: none; } }
@media (max-width: 360px) { main h2 { font-size: 27px; } }
.nw { white-space: nowrap; }
@media (max-width: 639px) { footer.closing .closing__cta h2 { font-size: clamp(26px, 8vw, 32px); } }
@media (max-width: 639px) { #close-h { font-size: clamp(24px, 7vw, 30px) !important; max-width: none !important; } }
@media (min-width: 640px) and (max-width: 1399px) {
  .hero-uc { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hero-uc__tile { grid-template-columns: auto 1fr auto; grid-template-rows: auto; align-items: center; gap: 16px; padding: 14px 20px; }
  .hero-uc__t { font-size: 18px; }
  .ux__tabs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) { .hero-uc__m { display: none; } .hero-uc__tile { grid-template-columns: auto 1fr; } }
@media (max-width: 380px) { .hero h1 { font-size: 34px !important; } .hero-uc__t { font-size: 15px; } .ux__tab { font-size: 14px; } }

/* ---------- v14: MateScale logo */
.nav__logo img { height: 40px; width: auto; display: block; }
.nav__logo--foot img { height: 46px; width: auto; }
@media (max-width: 639px) { .nav__logo img { height: 34px; } }

/* ---------- v15: Octuwa colour guidelines */
html[data-ground="sage"] { --ground-bg: #D8E6D7; --ground-surface: #FFFFFF; --ground-ink: #313031; --ground-muted: #6D6A6B; --ground-accent: #4A6D50; }
main > section:not(.ground-inverse) :is(h1, h2) { color: #4A6D50; }
footer.closing { background: #4A6D50 !important; }
footer.closing, footer.closing h2, footer.closing p, footer.closing a { color: #FFFFFF; }
footer.closing .closing__cta .btn { background: #FFFFFF !important; color: #4A6D50 !important; border-color: #FFFFFF !important; }
.hero-uc__tile .ux__ico { background: #4A6D50; color: #FFFFFF; }
.ux__tab[aria-selected="true"] .ux__ico { background: #D8E6D7; color: #4A6D50; }
.hub-legend b { color: #D8E6D7; }
mark.hl { background: linear-gradient(transparent 58%, #9EBAD6 58%, #9EBAD6 92%, transparent 92%); }
.nav__logo--foot { padding: 14px 0; }

/* ---------- v15: client banner */
main > section.clients { padding: 28px 0 36px !important; background: #FFFFFF; border-block: 1px solid #D8E6D7; display: block !important; height: auto !important; min-height: 0 !important; }
.clients__label { margin: 0 0 18px; font-size: 14px; color: #6D6A6B; }
.clients__track { overflow: hidden; }
.clients__move { display: flex; width: max-content; animation: clients-run 40s linear infinite; }
.clients__track:hover .clients__move { animation-play-state: paused; }
.clients__row { display: flex; align-items: center; gap: 72px; margin: 0; padding: 0 36px; list-style: none; }
.clients__item { flex: none; display: flex; align-items: center; height: 48px; }
.clients__item img { height: 40px; width: auto; max-width: 220px; object-fit: contain; filter: grayscale(1); opacity: .85; }
.clients__name { font: 500 clamp(17px, 1.5vw, 21px)/1.2 var(--font-display); color: #6D6A6B; white-space: nowrap; letter-spacing: -0.01em; }
@keyframes clients-run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .clients__move { animation: none; width: auto; }
  .clients__row[aria-hidden] { display: none; }
  .clients__row { flex-wrap: wrap; gap: 16px 48px; justify-content: center; }
}
@media (max-width: 639px) { .clients__row { gap: 48px; padding: 0 24px; } .clients__move { animation-duration: 28s; } }

/* ---------- v15: callback dialog */
dialog.cb { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 18px; background: #FFFFFF; color: #313031; box-shadow: 0 30px 80px -20px rgb(49 48 49 / .45); overflow: auto; }
dialog.cb::backdrop { background: rgb(49 48 49 / .55); }
.cb__body { padding: 36px 32px 30px; display: grid; gap: 16px; }
.cb__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #F8F7F4; color: #313031; cursor: pointer; display: grid; place-items: center; }
.cb__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cb__close:focus-visible { outline: 2px solid #4A6D50; outline-offset: 2px; }
.cb__who { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: #D8E6D7; margin-right: 36px; }
.cb__who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.cb__who p { margin: 0; font-size: 15px; line-height: 1.4; color: #313031; }
.cb h2 { margin: 4px 0 0; font: 500 28px/1.15 var(--font-display); color: #4A6D50; letter-spacing: -0.02em; }
.cb__lead { margin: 0; color: #313031; font-size: 16px; line-height: 1.5; }
.cb__form { display: grid; gap: 14px; margin-top: 4px; }
.cb__field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: #313031; }
.cb__field input { font: inherit; font-size: 17px; font-weight: 400; padding: 13px 14px; border: 1.5px solid #6D6A6B; border-radius: 10px; background: #FFFFFF; color: #313031; min-height: 48px; }
.cb__field input:focus { outline: 2px solid #4A6D50; outline-offset: 1px; border-color: #4A6D50; }
.cb__field input[aria-invalid="true"] { border-color: #C45730; }
.cb__err { margin: 0; padding-left: 26px; position: relative; font-size: 14px; color: #313031; }
.cb__err::before { content: "!"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: #C45730; color: #FFFFFF; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.cb__err a { color: #4A6D50; }
.cb__send { width: 100%; justify-content: center; min-height: 52px; font-size: 17px; }
.cb__privacy { margin: 0; font-size: 13px; line-height: 1.45; color: #6D6A6B; }
.cb__privacy a { color: #4A6D50; }
.cb__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 639px) { .cb__body { padding: 28px 20px 24px; } .cb h2 { font-size: 24px; } }
.dg-node--core-pill .dg-meta { color: #6D6A6B; }
.dg-node--core-pill .dg-label { color: #4A6D50; }
main > section.clients.clients { padding: 28px 0 32px !important; }

/* ---------- v15: Octuwa logo animation */
.octuwa-intro { align-items: center; }
.octuwa-anim { position: relative; margin: 0; border-radius: 18px; background: #FFFFFF; overflow: hidden; border: 1px solid #D8E6D7; }
.octuwa-anim video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; mix-blend-mode: multiply; }
.octuwa-anim__replay { position: absolute; right: 12px; top: 12px; padding: 7px 12px; border: 1px solid #D8E6D7; border-radius: 999px; background: #FFFFFF; color: #4A6D50; font: 500 14px/1 var(--font-body, inherit); cursor: pointer; }
.octuwa-anim__replay:focus-visible { outline: 2px solid #4A6D50; outline-offset: 2px; }
@media (max-width: 1023px) { .octuwa-anim { margin-top: var(--s-6, 32px); } }

/* ---------- v16: client logos, one colour from the palette */
.clients__track { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clients__row { gap: 104px; padding: 0 52px; }
.clients__item { height: 64px; }
.clients__logo { display: block; background-color: #6D6A6B; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; transition: background-color .3s ease; }
.clients__item:hover .clients__logo { background-color: #4A6D50; }
.clients__name--vm { font-size: 15px; line-height: 1.25; font-weight: 600; white-space: nowrap; border-left: 3px solid #9EBAD6; padding-left: 12px; }
@media (max-width: 639px) { .clients__row { gap: 64px; padding: 0 32px; } .clients__logo { transform: scale(.85); } }
main > section.clients.clients { background: #D8E6D7; border-block: 0; padding: 32px 0 36px !important; }
.clients__label { color: #313031; font-weight: 500; }
.clients__logo { background-color: #4A6D50; }
.clients__item:hover .clients__logo { background-color: #313031; }
.clients__item { height: 72px; }
.clients__name--vm { color: #4A6D50; font-size: 17px; border-left-color: #4A6D50; }

/* ---------- v18: calmer colour rhythm, flat surfaces (CD: no gradients) */
main > section#plattform { background: #D8E6D7; }
#plattform .frame--lit { --ground-bg: #FFFFFF; --ground-surface: #F8F7F4; --ground-ink: #313031; --ground-muted: #6D6A6B; --ground-accent: #4A6D50; background: #FFFFFF !important; border: 0; }
#plattform .t-small.muted, #plattform p { color: #313031; }
#plattform .hub-legend li { background: #FFFFFF; border-color: #D8E6D7; color: #313031; }
#plattform .hub-legend b { color: #4A6D50; }
.frame--lit, .frame--lit .panel, .consult-cards .panel { background-image: none !important; }
.frame > .frame__fx { display: none; }
.dg-node--core-pill { background: #FFFFFF !important; background-image: none !important; }
.dg-node:is(.dg-node--core, .dg-node--core-pill)::before { display: none; }
.consult-cards .panel { background: #D8E6D7 !important; }
.ux__slide .ux__shot { background: #D8E6D7; }
#plattform .dg-node--core-pill { border: 2px solid #4A6D50 !important; color: #4A6D50 !important; }
#plattform .dg-node--core-pill .dg-label, #plattform .dg-node--core-pill .dg-ic { color: #4A6D50 !important; }
#plattform .dg-node--core-pill .dg-meta { color: #6D6A6B !important; }
#plattform .dg-node:not(.dg-node--core-pill) { background: #FFFFFF !important; border-color: #D8E6D7 !important; color: #313031 !important; }
#plattform .dg-node--core { background: #FFFFFF !important; background-image: none !important; border: 2px solid #4A6D50 !important; color: #4A6D50 !important; }
#plattform .dg-node--core .dg-ic { color: #4A6D50 !important; }
/* ---------- v20: no automatic hyphenation anywhere */
html, body, body * { -webkit-hyphens: manual !important; hyphens: manual !important; }
/* never break inside a word: headings scale so their longest word fits */
h1, h2, h3, p, li { overflow-wrap: normal !important; word-break: normal !important; }
@media (min-width: 1024px) and (max-width: 1399px) {
  .grid > h2.span-5 { grid-column: 1 / span 7; }
  .grid > h2.span-5 + .span-6.start-7 { grid-column: 8 / span 5; }
}
