/* bjern.studio – Stylesheet auf Basis des Templates „Inertia“ von 8B (MIT, siehe /LICENSE).
   Die Inline-<style>-Blöcke des Templates stehen hier in derselben Reihenfolge; jeder Block ist mit seinem data-8b-part markiert.
   Die Scene-Blöcke liegen als eigene Dateien (scene-*.css) mit data-8b-part am <link>, damit das Motion-Kit sie einzeln abschalten kann. */

/* Schriften selbst gehostet (SIL OFL 1.1, Lizenzen in /assets/fonts/), nur latin und latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/fonts/geist-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/fonts/geist-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'TikTok Sans';
  font-style: normal;
  font-weight: 300;
  font-stretch: 75% 150%;
  font-display: swap;
  src: url(/assets/fonts/tiktok-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'TikTok Sans';
  font-style: normal;
  font-weight: 300;
  font-stretch: 75% 150%;
  font-display: swap;
  src: url(/assets/fonts/tiktok-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* data-8b-part="layers" */
@layer tokens, base, atoms, layout, sections, scenes;

/* data-8b-part="tokens" */
@layer tokens {
:root {
  --color-1: #f4f4f5;
  --color-2: #e3e3e5;
  --color-3: #0c0c0d;
  --color-4: #5f5f64;
  --color-5: #c9472f;
  --color-6: #ffffff;
  --color-7: #7b7b80;
  --color-8: #a3a3a8;
  --font-1: "Geist", "Geist Fallback", Arial, sans-serif;
  --font-2: "TikTok Sans", "TikTok Sans Fallback", Arial, sans-serif;
  --radius-1: 28px;
  --radius-2: 999px;
  --radius-3: 20px;
  --space-1: clamp(16px, 2.6vw, 40px);
  --space-2: clamp(96px, 11vw, 168px);
}
}

/* data-8b-part="base" */
@layer base {
  @font-face { font-family: "Geist Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"); font-weight: 100 549; size-adjust: 104.5%; ascent-override: 96.7%; descent-override: 28.7%; line-gap-override: 0%; }
  @font-face { font-family: "Geist Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"); font-weight: 550 799; size-adjust: 98.2%; ascent-override: 102.8%; descent-override: 30.5%; line-gap-override: 0%; }
  @font-face { font-family: "TikTok Sans Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"); font-weight: 100 549; size-adjust: 105.6%; ascent-override: 94.7%; descent-override: 28.4%; line-gap-override: 0%; }
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; background: var(--color-1); }
  body { margin: 0; background: var(--color-1); color: var(--color-3); -webkit-font-smoothing: antialiased; }
  h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  img { display: block; max-width: 100%; }
  picture { display: contents; }
  video { display: block; max-width: 100%; }
  a { color: inherit; }
  button, input, textarea, select { font: inherit; color: inherit; }
  :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
  main > section, footer { overflow-x: clip; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
}

/* data-8b-part="system" */
@layer atoms {
.m-text { font-family: var(--font-1); font-size: 16px; font-weight: 400; line-height: 1.55; letter-spacing: 0; text-transform: none; font-style: normal; }

.m-text-2 { font-family: var(--font-1); font-size: 14px; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; font-style: normal; color: var(--color-4); }

.m-text-3 { font-family: var(--font-1); font-size: clamp(36px, 4.4vw, 62px); font-weight: 500; line-height: 1; letter-spacing: -0.04em; text-transform: none; font-style: normal; }

.m-text-4 { font-family: var(--font-1); font-size: clamp(28px, 3.7vw, 52px); font-weight: 500; line-height: 1.12; letter-spacing: -0.035em; text-transform: none; font-style: normal; }

.m-text-5 { font-family: var(--font-1); font-size: 21px; font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; text-transform: none; font-style: normal; }

.m-text-6 { font-family: var(--font-2); font-size: 1em; font-weight: 300; line-height: .82; letter-spacing: -0.03em; text-transform: none; font-style: normal; font-variation-settings: "wdth" var(--wdth, 100); }

.m-text-7 { font-family: var(--font-1); font-size: 14px; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; font-style: normal; color: var(--color-8); }

.m-btn { display: inline-flex; align-items: center; gap: 14px; padding: 6px 24px 6px 6px; border: 0; border-radius: var(--radius-2); background: var(--color-6); color: var(--color-3); font-family: var(--font-1); font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: -0.01em; text-decoration: none; cursor: pointer; }
.m-btn__streak { display: block; width: 56px; height: 36px; border-radius: var(--radius-2); overflow: hidden; transform-origin: 0 50%; transition: transform .5s cubic-bezier(.2,.9,.1,1); }
.m-btn__streak img { width: 100%; height: 100%; object-fit: cover; }
.m-btn__label { display: block; transition: transform .5s cubic-bezier(.2,.9,.1,1); }
@media (hover: hover) {
  .m-btn:hover .m-btn__streak { transform: scaleX(1.3); }
  .m-btn:hover .m-btn__label { transform: translateX(14px); animation: m-btn-brake .55s cubic-bezier(.2,.9,.1,1); }
}
@keyframes m-btn-brake { 0% { transform: translateX(0) skewX(0); } 35% { transform: translateX(20px) skewX(-14deg); } 100% { transform: translateX(14px) skewX(0); } }

.m-btn-2 { display: inline-flex; align-items: center; gap: 12px; padding: 13px 22px 13px 18px; border: 1px solid var(--color-3); border-radius: var(--radius-2); background: transparent; color: var(--color-3); font-family: var(--font-1); font-size: 14px; font-weight: 500; line-height: 1; letter-spacing: -0.01em; text-decoration: none; cursor: pointer; }
.m-btn-2__streak { display: block; width: 8px; height: 8px; border-radius: var(--radius-2); background: var(--color-5); transform-origin: 0 50%; transition: transform .5s cubic-bezier(.2,.9,.1,1); }
.m-btn-2__label { display: block; transition: transform .5s cubic-bezier(.2,.9,.1,1); }
@media (hover: hover) {
  .m-btn-2:hover .m-btn-2__streak { transform: scaleX(3); }
  .m-btn-2:hover .m-btn-2__label { transform: translateX(14px); animation: m-btn-brake .55s cubic-bezier(.2,.9,.1,1); }
}

.m-link { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; }
@media (hover: hover) {
  .m-link:hover { background-image: linear-gradient(90deg, var(--color-5), var(--color-5)); background-size: 100% 2px; animation: m-link-run .5s cubic-bezier(.2,.9,.1,1); }
}
@keyframes m-link-run { from { background-size: 0% 2px; } }

.m-badge { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid currentColor; border-radius: var(--radius-2); font-family: var(--font-1); font-size: 12px; font-weight: 400; line-height: 1; letter-spacing: 0; text-transform: none; font-style: normal; }

.m-badge-2 { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid color-mix(in srgb, var(--color-6) 35%, transparent); border-radius: var(--radius-2); background: var(--color-3); color: var(--color-6); font-family: var(--font-1); font-size: 12px; font-weight: 400; line-height: 1; letter-spacing: 0; text-transform: none; font-style: normal; }

.m-pill { display: inline-block; width: 2.3em; height: .8em; border-radius: var(--radius-2); overflow: hidden; vertical-align: -0.04em; }
.m-pill img { width: 100%; height: 100%; object-fit: cover; }

.m-dot { display: inline-block; width: 10px; height: 10px; border-radius: var(--radius-2); background: var(--color-5); }

.m-surface { background: var(--color-3); color: var(--color-6); border-radius: var(--radius-3); }

.m-surface-2 { background: var(--color-2); color: var(--color-3); border-radius: var(--radius-3); }

.m-surface-3 { position: relative; overflow: hidden; isolation: isolate; background: var(--color-3); color: var(--color-6); border-radius: var(--radius-3); }
.m-surface-3__img { position: absolute; inset: 0 0 auto 0; width: 100%; height: 60%; object-fit: cover; z-index: -2; mask-image: linear-gradient(180deg, var(--color-3) 62%, transparent); }
.m-surface-3::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 30%; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--color-3) 30%, transparent), transparent); }
.m-surface-3__body { position: relative; height: 100%; }

}

/* data-8b-part="layout" */
@layer layout {
  .wrap { width: min(100%, 1400px); margin-inline: auto; }
}

/* data-8b-part="section:site-nav" */
@layer sections {
  #site-nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: transform .45s cubic-bezier(.2,.8,.2,1), background-color .3s; }
  #site-nav.is-hidden { transform: translateY(-110%); }
  #site-nav.is-solid { background: color-mix(in srgb, var(--color-1) 90%, transparent); }
  #site-nav .nav__bar { display: flex; align-items: center; gap: 24px; padding: 18px calc(var(--space-1) + 6px); }
  #site-nav .nav__logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-1); font-weight: 500; font-size: 17px; letter-spacing: -0.02em; }
  #site-nav .nav__logo { flex-direction: column; align-items: flex-start; gap: 0; font-family: "Helvetica Neue", "Arial Narrow", Arial, sans-serif; line-height: .78; letter-spacing: 0; }
  #site-nav .wordmark-main { font-size: 30px; font-weight: 900; letter-spacing: -.11em; }
  #site-nav .wordmark-dot { color: var(--color-5); }
  #site-nav .wordmark-sub { align-self: flex-end; margin-top: 6px; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 9px; font-weight: 700; letter-spacing: .3em; }
  #site-nav .nav__links { display: flex; gap: clamp(18px, 2.4vw, 40px); margin-inline: auto; font-size: 15px; }
  #site-nav .nav__links .m-link { background-size: 0 1px; }
  @media (hover: hover) {
    #site-nav .nav__links .m-link:hover { background-size: 100% 2px; }
  }
  #site-nav .nav__menu { display: none; }
  #site-nav .nav__overlay { position: fixed; inset: 0; z-index: 60; background: var(--color-3); color: var(--color-6); padding: 22px var(--space-1) 40px; display: flex; flex-direction: column; overflow-y: auto; }
  #site-nav .nav__overlay[hidden] { display: none; }
  #site-nav .nav__overlay nav { margin-top: auto; display: grid; gap: 6px; }
  #site-nav .nav__overlay nav a { font-family: var(--font-1); font-size: clamp(40px, 12vw, 64px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.08; text-decoration: none; }
  #site-nav .nav__close { align-self: flex-end; border-color: var(--color-6); color: var(--color-6); }
  @media (max-width: 860px) {
    #site-nav .nav__links, #site-nav .nav__cta { display: none; }
    #site-nav .nav__menu { display: inline-flex; margin-left: auto; padding-block: 11px; }
  }
}

/* data-8b-part="section:opening" */
@layer sections {
  #opening { position: relative; }
  #opening .op-hero { height: 100svh; min-height: 620px; padding: 0 clamp(8px, 1vw, 14px); }
  #opening .op-panel { position: relative; height: 100%; overflow: hidden; isolation: isolate; border-radius: 0 0 var(--radius-1) var(--radius-1); background: radial-gradient(110% 80% at 50% 0%, color-mix(in srgb, var(--color-6) 45%, var(--color-2)) 0%, var(--color-2) 70%); }
  #opening .op-figure { position: absolute; left: 30%; width: 44%; top: 10%; bottom: 0; z-index: 1; mix-blend-mode: multiply; mask-image: linear-gradient(90deg, transparent, var(--color-3) 20%, var(--color-3) 80%, transparent); }
  #opening .op-photo { position: absolute; inset: 0; filter: brightness(1.12) contrast(1.12); mask-image: linear-gradient(180deg, transparent, var(--color-3) 16%); }
  #opening .op-photo__img, #opening .op-slice__img { width: 100%; height: 100%; object-fit: cover; object-position: 22% 18%; }
  #opening .op-slice { position: absolute; inset: 0; }
  #opening .op-streak-wrap { position: absolute; left: 24%; width: 52%; top: 47%; height: 84px; z-index: 2; pointer-events: none; }
  #opening .op-streak { position: absolute; inset: 0; }
  #opening .op-streak::before, #opening .op-streak::after { content: ""; position: absolute; left: 0; right: 0; border-radius: var(--radius-2); }
  #opening .op-streak::before { top: 18%; height: 46%; filter: blur(10px); background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--color-5) 55%, transparent) 16%, var(--color-5) 46%, color-mix(in srgb, var(--color-6) 70%, var(--color-5)) 60%, var(--color-5) 72%, transparent 100%); }
  #opening .op-streak::after { top: 70%; height: 12%; left: 12%; right: 20%; filter: blur(4px); background: linear-gradient(90deg, transparent, var(--color-5) 30%, color-mix(in srgb, var(--color-6) 60%, var(--color-5)) 55%, transparent); }
  #opening .op-copy { position: absolute; z-index: 3; left: clamp(20px, 3.4vw, 48px); top: clamp(104px, 15vh, 136px); width: min(32vw, 430px); }
  #opening .op-title { font-size: clamp(40px, 4.2vw, 60px); }
  #opening .op-line { display: block; }
  #opening .op-line--quiet { color: var(--color-7); }
  #opening .op-lead { margin-top: 18px; max-width: 34ch; }
  #opening .op-actions { margin-top: 28px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 15px; }
  #opening .op-pile { position: absolute; z-index: 3; right: clamp(20px, 3.4vw, 48px); top: clamp(104px, 15vh, 136px); width: clamp(230px, 21vw, 300px); aspect-ratio: 1.5; }
  #opening .op-card { position: absolute; inset: 0; display: block; border: 4px solid var(--color-6); text-decoration: none; }
  #opening .op-card--back { inset: 18% 7% -18% 7%; height: auto; z-index: -1; border-radius: var(--radius-3); }
  #opening .op-card .m-surface-3__body { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 12px 14px 14px; }
  #opening .op-card__title { font-size: 19px; }
  #opening .op-card .m-surface-3__img { inset: 0 -10% auto; width: 120%; height: 56%; }
  #opening .op-word { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; pointer-events: none; }
  #opening .op-word__text { display: block; color: var(--color-6); white-space: nowrap; font-kerning: none; font-size: min(52vh, calc((100vw - 2 * clamp(8px, 1vw, 14px) - 24px) / (var(--len) * .39))); translate: 0 9%; }
  #opening .op-about { min-height: 100svh; display: grid; align-items: center; padding: var(--space-2) var(--space-1); }
  #opening .op-about__inner { position: relative; width: min(100%, 1240px); margin-inline: auto; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; }
  #opening .op-statement { grid-column: 5 / 13; grid-row: 1; text-indent: 3em; }
  #opening .op-quiet { color: var(--color-7); }
  #opening .op-statement .m-pill, #opening .op-statement .op-w { text-indent: 0; }
  #opening .op-star { position: absolute; width: clamp(26px, 2.6vw, 38px); height: auto; color: var(--color-5); left: 0; top: .2em; }
  #opening .op-star-cell { grid-column: 5 / 13; grid-row: 1; position: relative; pointer-events: none; }
  #opening .op-note { grid-column: 7 / 12; grid-row: 2; margin-top: 36px; max-width: 46ch; }
  @media (prefers-reduced-motion: no-preference) {
    #opening .op-line, #opening .op-actions, #opening .op-lead { animation: op-rise .95s cubic-bezier(.2,.8,.2,1) backwards; }
    #opening .op-line--quiet { animation-delay: .08s; }
    #opening .op-lead { animation-delay: .16s; }
    #opening .op-actions { animation-delay: .22s; }
    #opening .op-figure { animation: op-settle 1.1s cubic-bezier(.2,.8,.2,1) backwards; }
    #opening .op-word { animation: op-lift 1.05s cubic-bezier(.2,.8,.2,1) .05s backwards; }
    #opening .op-pile { animation: op-rise 1s cubic-bezier(.2,.8,.2,1) .12s backwards; }
    #opening .op-streak { animation: op-sweep 3.4s ease-in-out infinite alternate; }
    #opening .op-card .m-surface-3__img { animation: op-pan 7s ease-in-out infinite alternate; }
    #opening.is-idle .op-streak, #opening.is-idle .op-card .m-surface-3__img { animation-play-state: paused; }
  }
  @keyframes op-rise { from { transform: translateY(26px); } }
  @keyframes op-settle { from { transform: scale(1.06); } }
  @keyframes op-lift { from { transform: translateY(26%); } }
  @keyframes op-sweep { 0% { transform: translateX(-14%) scaleX(.78); } 100% { transform: translateX(12%) scaleX(1.18); } }
  @keyframes op-pan { 0% { transform: translateX(-6%); } 100% { transform: translateX(6%); } }
  @media (max-width: 1024px) {
    #opening .op-copy { width: min(46vw, 430px); }
    #opening .op-figure { left: 26%; width: 56%; }
  }
  @media (max-width: 767.98px) {
    #opening .op-hero { min-height: 640px; padding: 0 6px; }
    #opening .op-copy { left: 18px; right: 18px; top: 92px; width: auto; }
    #opening .op-title { font-size: clamp(38px, 11vw, 46px); }
    #opening .op-lead { max-width: 32ch; }
    #opening .op-actions { margin-top: 22px; }
    #opening .op-figure { left: 2%; width: 96%; top: 46%; }
    #opening .op-photo__img, #opening .op-slice__img { object-position: 18% 15%; }
    #opening .op-streak-wrap { left: 4%; width: 92%; top: 62%; height: 64px; }
    #opening .op-pile { top: auto; bottom: calc(26vw + 36px); right: 16px; width: 46vw; }
    #opening .op-card__title { font-size: 15px; }
    #opening .op-card .m-text-7 { display: none; }
    #opening .op-card .m-surface-3__img { height: 44%; }
    #opening .op-about__inner { display: block; }
    #opening .op-statement { text-indent: 1.7em; }
    #opening .op-star { top: .25em; width: 24px; }
    #opening .op-star-cell { position: absolute; inset: 0; }
    #opening .op-note { margin-top: 28px; }
  }
  #opening .op-statement, #opening .op-star-cell { grid-column: 2 / 12; }
  #opening .op-note { grid-column: 5 / 10; }
  #opening .op-actions { grid-column: 5 / 10; grid-row: 3; }
  /* bjern.studio: Der Hero ist genau ein Bildschirm (mindestens so hoch wie sein Inhalt) und enthält unten den Ticker #kunden.
     Oben Platz für die fixierte Navigation (--nav-h, gemessen in site.js); .op-about füllt den Rest und zentriert den Hero-Block,
     symmetrisches Padding (--space-1) ist der Mindestabstand oben und unten, wenn der Inhalt höher als der Viewport ist. */
  #opening { --nav-h: 78px; display: flex; flex-direction: column; min-height: 100svh; padding-top: var(--nav-h); }
  #opening .op-about { flex: 1 0 auto; min-height: 0; padding: var(--space-1); }
  #opening > #kunden { flex: none; }
  @media (max-width: 860px) {
    #opening { --nav-h: 74px; }
  }
}

/* data-8b-part="section:clients" */
@layer sections {
  #kunden { padding: 0 var(--space-1) clamp(56px, 7vw, 104px); }
  #kunden .cl-head { margin-bottom: 16px; }
  #kunden .cl-marquee { overflow: hidden; padding: clamp(18px, 2vw, 26px) 0; border-block: 1px solid color-mix(in srgb, var(--color-3) 22%, transparent); mask-image: linear-gradient(90deg, transparent, var(--color-3) 4%, var(--color-3) 96%, transparent); }
  #kunden .cl-track { display: flex; width: max-content; }
  #kunden .cl-set { display: flex; align-items: center; flex: none; }
  #kunden .cl-set li { display: flex; align-items: center; flex: none; white-space: nowrap; font-size: clamp(22px, 2.3vw, 34px); font-weight: 500; line-height: 1.1; letter-spacing: -0.035em; }
  #kunden .cl-set li::after { content: ""; flex: none; width: 8px; height: 8px; margin: 0 clamp(22px, 2.4vw, 36px); border-radius: var(--radius-2); background: var(--color-5); }
  @media (prefers-reduced-motion: no-preference) {
    #kunden .cl-track { animation: cl-run 52s linear infinite; }
  }
  @media (prefers-reduced-motion: no-preference) and (hover: hover) {
    #kunden .cl-marquee:hover .cl-track { animation-play-state: paused; }
  }
  @keyframes cl-run { to { transform: translateX(-50%); } }
  @media (prefers-reduced-motion: reduce) {
    #kunden .cl-marquee { mask-image: none; }
    #kunden .cl-track { display: block; width: auto; }
    #kunden .cl-set { width: auto; flex-wrap: wrap; row-gap: 12px; }
    #kunden .cl-set[aria-hidden="true"] { display: none; }
    #kunden .cl-set li { flex: 0 1 auto; white-space: normal; }
  }
}

/* data-8b-part="section:practice" */
@layer sections {
  #leistungen { padding: clamp(8px, 2vw, 24px) var(--space-1) var(--space-2); }
  #leistungen .pr-row { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 28px); align-items: start; }
  #leistungen .pr-card { position: relative; aspect-ratio: 254 / 448; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: clamp(16px, 1.6vw, 22px); }
  #leistungen .pr-card:nth-child(odd) { --practice-article-pr-card-translate-from: -60vw; --practice-article-pr-card-rotate-from: -8deg; }
  #leistungen .pr-card:nth-child(even) { --practice-article-pr-card-translate-from: 60vw; --practice-article-pr-card-rotate-from: 8deg; }
  #leistungen .pr-card:nth-child(even) { aspect-ratio: 254 / 395; margin-top: clamp(56px, 8.4vw, 118px); }
  #leistungen .m-surface-3__body { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; }
  #leistungen .pr-foot { display: grid; gap: 10px; }
  #leistungen .m-surface-3 .pr-foot { background: var(--color-3); }
  #leistungen .pr-foot .m-text-5 { max-width: 15ch; }
  #leistungen .pr-foot p:last-child { max-width: 30ch; }
  @media (max-width: 1024px) {
    #leistungen .pr-row { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 600px) {
    #leistungen .pr-row { grid-template-columns: 1fr; gap: 14px; }
    #leistungen .pr-card, #leistungen .pr-card:nth-child(even) { aspect-ratio: 1 / 1.08; margin-top: 0; }
    #leistungen .m-surface-3__img { height: 46%; }
  }
}

/* data-8b-part="section:work" */
@layer sections {
  #arbeiten { padding: var(--space-2) var(--space-1); }
  #arbeiten .wk-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: clamp(36px, 5vw, 72px); }
  #arbeiten .wk-head .m-text { max-width: 40ch; justify-self: end; }
  #arbeiten .wk-list { border-top: 1px solid var(--color-3); }
  #arbeiten .wk-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 32vw); grid-template-areas: "title shot" "meta shot"; align-items: center; column-gap: clamp(20px, 3vw, 48px); row-gap: 14px; padding: clamp(18px, 2.2vw, 30px) 0; border-bottom: 1px solid color-mix(in srgb, var(--color-3) 22%, transparent); }
  /* Zweizeilige Titel: Schriftgröße aus der Titelspalte (Liste als Container), damit sie bei wdth 150 vollständig passen */
  #arbeiten .wk-list { container-type: inline-size; --wk-k: 11; }
  #arbeiten .wk-title { grid-area: title; align-self: end; font-size: calc((100cqi - 32vw - clamp(20px, 3vw, 48px)) / var(--wk-k)); line-height: .98; white-space: nowrap; }
  #arbeiten .wk-meta { grid-area: meta; align-self: start; display: flex; flex-wrap: wrap; gap: 6px 22px; }
  #arbeiten .wk-meta span:first-child { color: var(--color-3); }
  #arbeiten .wk-row { position: relative; }
  #arbeiten .wk-watch { color: var(--color-3); }
  #arbeiten .wk-watch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
  #arbeiten .wk-watch:focus-visible { outline: none; }
  #arbeiten .wk-watch:focus-visible::after { outline: 2px solid var(--color-3); outline-offset: 4px; }
  #arbeiten .wk-shot { grid-area: shot; aspect-ratio: 16 / 10; overflow: hidden; clip-path: inset(0% 0% 0% 0% round 18px); background: var(--color-2); }
  #arbeiten .wk-shot img { width: 100%; height: 100%; object-fit: cover; }
  #arbeiten .wk-shot img.wk-shot__img--high { object-position: 50% 30%; }
  @media (max-width: 767.98px) {
    #arbeiten .wk-head { grid-template-columns: 1fr; }
    #arbeiten .wk-head .m-text { justify-self: start; }
    #arbeiten .wk-row { grid-template-columns: 1fr; grid-template-areas: "title" "meta" "shot"; }
    #arbeiten .wk-title { font-size: calc(100cqi / var(--wk-k)); }
  }
}

/* data-8b-part="section:einfachrecht" */
@layer sections {
  /* Gestaltung auf Basis des Template-Bands „tempo“ (dunkles Band, Kopf links/rechts, Haarlinien) */
  #einfachrecht { padding: var(--space-2) var(--space-1); background: var(--color-3); color: var(--color-6); }
  #einfachrecht .ef-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: clamp(40px, 6vw, 88px); }
  #einfachrecht .ef-head .m-text-7 { max-width: 44ch; justify-self: end; font-size: 16px; }
  #einfachrecht .ef-figure { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 22px; padding: clamp(22px, 3vw, 40px) 0; border-top: 1px solid color-mix(in srgb, var(--color-6) 22%, transparent); }
  #einfachrecht .ef-figure .m-text-3 { font-size: clamp(48px, 7vw, 104px); }
  #einfachrecht .ef-figure .m-dot { align-self: center; }
  #einfachrecht .ef-reels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); padding-top: clamp(22px, 3vw, 40px); border-top: 1px solid color-mix(in srgb, var(--color-6) 22%, transparent); }
  #einfachrecht .ef-reel { display: grid; gap: 12px; align-content: start; }
  #einfachrecht .ef-phone { aspect-ratio: 9 / 16; border-radius: var(--radius-3); overflow: hidden; background: color-mix(in srgb, var(--color-6) 8%, var(--color-3)); }
  #einfachrecht .ef-phone video { width: 100%; height: 100%; object-fit: cover; }
  #einfachrecht .ef-press { display: flex; align-items: center; gap: 22px; margin-top: clamp(40px, 6vw, 88px); padding: clamp(22px, 3vw, 40px) 0; border-top: 1px solid color-mix(in srgb, var(--color-6) 22%, transparent); }
  #einfachrecht .ef-press__img { flex: none; width: 88px; height: 88px; border-radius: var(--radius-2); overflow: hidden; }
  #einfachrecht .ef-press__img img { width: 100%; height: 100%; object-fit: cover; }
  #einfachrecht .ef-press .m-text-7 { max-width: 60ch; font-size: 16px; }
  #einfachrecht .ef-press .m-link { color: var(--color-6); }
  @media (max-width: 860px) {
    #einfachrecht .ef-reels { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(62vw, 260px); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-inline: calc(var(--space-1) * -1); padding-inline: var(--space-1); scroll-padding-inline: var(--space-1); padding-bottom: 6px; }
    #einfachrecht .ef-reel { scroll-snap-align: start; }
  }
  @media (max-width: 767.98px) {
    #einfachrecht .ef-head { grid-template-columns: 1fr; }
    #einfachrecht .ef-head .m-text-7 { justify-self: start; }
    #einfachrecht .ef-press { align-items: flex-start; }
    #einfachrecht .ef-press__img { width: 64px; height: 64px; }
  }
}

/* data-8b-part="section:method" */
@layer sections {
  #ablauf { --mt-w: min(40vw, 540px); position: relative; padding: var(--space-2) 0; }
  #ablauf .mt-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; padding: 0 var(--space-1); margin-bottom: clamp(36px, 5vw, 64px); }
  #ablauf .mt-head .m-text { max-width: 40ch; justify-self: end; }
  #ablauf .mt-rail { position: relative; }
  #ablauf .mt-playhead { display: none; }
  #ablauf .mt-track { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 28px; padding: 0 var(--space-1); }
  #ablauf .mt-step { display: grid; align-content: start; gap: 18px; }
  #ablauf .mt-shot { aspect-ratio: 16 / 10; border-radius: var(--radius-3); overflow: hidden; background: var(--color-2); }
  #ablauf .mt-shot img { width: 100%; height: 100%; object-fit: cover; }
  #ablauf .mt-text { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: baseline; }
  #ablauf .mt-num { grid-row: span 2; }
  #ablauf .mt-text .m-text-2 { max-width: 44ch; }
  @media (max-width: 767.98px) {
    #ablauf { --mt-w: 80vw; }
    #ablauf .mt-head { grid-template-columns: 1fr; }
    #ablauf .mt-head .m-text { justify-self: start; }
    #ablauf .mt-track { grid-template-columns: 1fr; }
  }
}

/* data-8b-part="section:studio" */
@layer sections {
  #ueber-mich { padding: var(--space-2) var(--space-1); }
  #ueber-mich .st-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
  #ueber-mich .st-head .m-text { max-width: 44ch; justify-self: end; }
  #ueber-mich .st-room { position: relative; aspect-ratio: 21 / 9; border-radius: var(--radius-1); overflow: hidden; background: var(--color-2); }
  #ueber-mich .st-room__img, #ueber-mich .st-col__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
  #ueber-mich .st-col, #ueber-mich .st-ground { position: absolute; inset: 0; }
  #ueber-mich .st-ground { background: var(--color-1); }
  #ueber-mich .st-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 28px); margin-top: clamp(20px, 2.4vw, 32px); }
  #ueber-mich .st-person { display: grid; gap: 4px; }
  #ueber-mich .st-face { aspect-ratio: 4 / 5; border-radius: var(--radius-3); overflow: hidden; margin-bottom: 12px; background: var(--color-2); }
  #ueber-mich .st-face img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
  /* Eine Person statt vier: Porträt als Kreis, Text daneben */
  #ueber-mich .st-team > .st-person { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); column-gap: clamp(20px, 3vw, 48px); align-items: start; margin-top: clamp(12px, 2vw, 28px); }
  #ueber-mich .st-person .st-face { grid-row: 1 / span 4; aspect-ratio: 1; border-radius: var(--radius-2); margin-bottom: 0; }
  #ueber-mich .st-person .m-text { max-width: 62ch; margin-top: 14px; }
  #ueber-mich .st-person .st-facts { margin-top: 14px; }
  @media (max-width: 767.98px) {
    #ueber-mich .st-team > .st-person { grid-template-columns: 1fr; }
    #ueber-mich .st-person .st-face { grid-row: auto; width: min(52vw, 220px); margin-bottom: 16px; }
  }
  @media (max-width: 767.98px) {
    #ueber-mich .st-head { grid-template-columns: 1fr; }
    #ueber-mich .st-head .m-text { justify-self: start; }
    #ueber-mich .st-room { aspect-ratio: 4 / 3; }
    #ueber-mich .st-team { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
    #ueber-mich .st-person .m-text-5 { font-size: 18px; }
  }
}

/* data-8b-part="section:lab" */
@layer sections {
  #animation { padding: var(--space-2) var(--space-1); background: var(--color-3); color: var(--color-6); }
  #animation .lb-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: clamp(36px, 5vw, 72px); }
  #animation .lb-head .m-text-7 { max-width: 44ch; justify-self: end; font-size: 16px; }
  /* Trennung zum EinfachRecht-Band davor: Hairline über dem Inhalt statt doppeltem Abstand */
  #animation { padding-top: 0; }
  #animation > .wrap { padding-top: var(--space-2); border-top: 1px solid color-mix(in srgb, var(--color-6) 22%, transparent); }
  /* Vier Elemente im Originalformat: kein Zuschnitt, kein Zoom, kein Drift; zwei ruhige Spalten */
  #animation .lb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(14px, 2vw, 28px); align-items: start; }
  #animation .lb-tile { display: grid; gap: 8px; }
  #animation .lb-shot { border-radius: var(--radius-3); overflow: hidden; margin-bottom: 10px; background: var(--color-3); }
  #animation .lb-shot:has(video) { aspect-ratio: 16 / 9; }
  #animation .lb-shot--scene:not(:has(video)) { aspect-ratio: 1672 / 941; }
  #animation .lb-shot--sheet { aspect-ratio: 1536 / 1024; }
  #animation .lb-shot img { width: 100%; height: 100%; object-fit: contain; }
  #animation .lb-shot video { width: 100%; height: 100%; object-fit: cover; }
  @media (max-width: 860px) {
    #animation .lb-head { grid-template-columns: 1fr; }
    #animation .lb-head .m-text-7 { justify-self: start; }
    #animation .lb-tile .m-text-5 { font-size: 18px; }
  }
  @media (max-width: 600px) {
    #animation .lb-grid { grid-template-columns: 1fr; }
  }
}

/* data-8b-part="section:contact" */
@layer sections {
  #kontakt { position: relative; padding: var(--space-2) var(--space-1); background: var(--color-2); }
  #kontakt .ct-top { position: relative; margin-bottom: clamp(40px, 6vw, 88px); }
  #kontakt .ct-title { position: relative; z-index: 1; font-size: clamp(48px, 8vw, 124px); max-width: 12ch; }
  #kontakt .ct-title .m-dot { width: .22em; height: .22em; vertical-align: .12em; margin-right: .18em; }
  /* Schmales Band in der Akzentfarbe statt Foto-Streifen; wächst mit der Template-Animation aus dem Punkt */
  #kontakt .ct-band { position: relative; height: clamp(8px, .9vw, 12px); margin-top: clamp(18px, 2.4vw, 32px); border-radius: var(--radius-2); background: var(--color-5); }
  #kontakt .ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); }
  #kontakt .ct-info { display: grid; align-content: start; gap: 22px; }
  #kontakt .ct-mail { font-family: var(--font-1); font-size: clamp(22px, 2.4vw, 34px); font-weight: 500; letter-spacing: -0.03em; justify-self: start; }
  #kontakt .ct-info .m-text { color: var(--color-4); }
  #kontakt .ct-info .m-btn { justify-self: start; margin-top: 8px; }
  @media (max-width: 860px) {
    #kontakt .ct-grid { grid-template-columns: 1fr; }
  }
}

/* data-8b-part="section:footer" */
@layer sections {
  #footer { background: var(--color-3); color: var(--color-6); padding: clamp(56px, 7vw, 96px) var(--space-1) 0; }
  #footer .ft-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
  #footer .ft-top .m-text-7 { max-width: 34ch; }
  #footer .ft-list { display: grid; gap: 10px; align-content: start; }
  #footer .ft-word { display: block; margin-top: clamp(40px, 6vw, 80px); color: var(--color-2); font-size: calc((100vw - 2 * var(--space-1)) / (var(--len) * .39)); translate: 0 12%; white-space: nowrap; font-kerning: none; }
  /* Wortmarke vollständig sichtbar: Größe aus der Inhaltsbreite (.wrap als Container, auch über 1400 px), ohne Versatz nach unten, Platz für die j-Unterlänge */
  #footer .wrap { container-type: inline-size; }
  #footer .ft-word { --len: 12; --wdth: 89; font-size: calc(100cqi / (var(--len) * .39)); translate: none; line-height: 1; padding-bottom: .16em; }
  #footer .ft-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0 22px; border-top: 1px solid color-mix(in srgb, var(--color-6) 20%, transparent); position: relative; background: var(--color-3); }
  @media (max-width: 760px) {
    #footer .ft-top { grid-template-columns: 1fr 1fr; }
    #footer .ft-top > :first-child { grid-column: 1 / -1; }
  }
}

/* data-8b-part="motion" */
@layer scenes {
[data-8b-live] { --ease-power4-out: linear(0, 0.1189, 0.2262, 0.3228, 0.4095, 0.4871, 0.5563, 0.6178, 0.6723, 0.7204, 0.7627, 0.7997, 0.8319, 0.8599, 0.884, 0.9046, 0.9222, 0.9372, 0.9497, 0.9601, 0.9688, 0.9758, 0.9816, 0.9861, 0.9898, 0.9926, 0.9948, 0.9964, 0.9976, 0.9984, 0.999, 0.9994, 0.9997, 0.9998, 0.9999, 1, 1, 1, 1, 1, 1); }
[data-8b-live] :has(> [data-8b-motion~="drift"]):not(picture), [data-8b-live] :has(> picture > [data-8b-motion~="drift"]) { view-timeline: --motion-drift block; view-timeline-inset: 0; }
[data-8b-live] [data-8b-motion~="drift"] { animation-name: motion-drift-translate; animation-timeline: --motion-drift; animation-range: cover 0% cover 100%; animation-timing-function: linear; animation-fill-mode: both; transform: none; }
[data-8b-live] [data-8b-motion~="streak"] { animation-name: motion-streak-scale, motion-streak-translate; animation-duration: 0.9s; animation-delay: 0s; animation-timing-function: linear, var(--ease-power4-out); animation-fill-mode: both; animation-play-state: paused; transform: none; transform-origin: 100% 50%; }
[data-8b-live] [data-8b-motion~="streak"].is-in { animation-play-state: running; }
[data-8b-live] [data-8b-motion~="brake"] { animation-name: motion-brake; animation-duration: 1.05s; animation-delay: 0s; animation-timing-function: linear(0, 0.1591, 0.2929, 0.4054, 0.5, 0.5796, 0.6464, 0.7027, 0.75, 0.7898, 0.8232, 0.8513, 0.875, 0.8949, 0.9116, 0.9257, 0.9375, 0.9474, 0.9558, 0.9628, 0.9688, 0.9737, 0.9779, 0.9814, 0.9844, 0.9869, 0.989, 0.9907, 0.9922, 0.9934, 0.9945, 0.9954, 0.9961, 0.9967, 0.9972, 0.9977, 0.998, 0.9984, 0.9986, 0.9988, 1); animation-fill-mode: both; animation-play-state: paused; transform-origin: 0% 50%; }
[data-8b-live] [data-8b-motion~="brake"].is-in { animation-play-state: running; }
@keyframes motion-brake { 0% { transform: translateX(24%) skewX(-16deg) scaleX(1.2); } 100% { transform: translateX(0%) skewX(0deg) scaleX(1); } }
@keyframes motion-drift-translate { 0% { translate: 5% 0px; } 100% { translate: -5% 0px; } }
@keyframes motion-streak-scale { 0% { scale: 4.5 1; } 0.0111% { scale: 4.4981 1; } 1.6667% { scale: 4.2179 1; } 3.3333% { scale: 3.9543 1; } 5% { scale: 3.7082 1; } 6.6667% { scale: 3.4789 1; } 8.3333% { scale: 3.2653 1; } 10% { scale: 3.0667 1; } 11.6667% { scale: 2.8823 1; } 13.3333% { scale: 2.7113 1; } 15% { scale: 2.553 1; } 16.6667% { scale: 2.4066 1; } 18.3333% { scale: 2.2714 1; } 20% { scale: 2.1469 1; } 21.6667% { scale: 2.0323 1; } 23.3333% { scale: 1.927 1; } 25% { scale: 1.8306 1; } 26.6667% { scale: 1.7423 1; } 28.3333% { scale: 1.6617 1; } 30% { scale: 1.5882 1; } 31.6667% { scale: 1.5215 1; } 33.3333% { scale: 1.4609 1; } 35% { scale: 1.4061 1; } 36.6667% { scale: 1.3566 1; } 38.3333% { scale: 1.3121 1; } 40% { scale: 1.2722 1; } 41.6667% { scale: 1.2364 1; } 43.3333% { scale: 1.2045 1; } 45% { scale: 1.1761 1; } 46.6667% { scale: 1.151 1; } 48.3333% { scale: 1.1289 1; } 50% { scale: 1.1094 1; } 51.6667% { scale: 1.0923 1; } 53.3333% { scale: 1.0775 1; } 55% { scale: 1.0646 1; } 56.6667% { scale: 1.0535 1; } 58.3333% { scale: 1.044 1; } 60% { scale: 1.0358 1; } 61.6667% { scale: 1.029 1; } 63.3333% { scale: 1.0232 1; } 65% { scale: 1.0184 1; } 66.6667% { scale: 1.0144 1; } 68.3333% { scale: 1.0111 1; } 70% { scale: 1.0085 1; } 71.6667% { scale: 1.0064 1; } 73.3333% { scale: 1.0047 1; } 75% { scale: 1.0034 1; } 76.6667% { scale: 1.0024 1; } 78.3333% { scale: 1.0017 1; } 80% { scale: 1.0011 1; } 81.6667% { scale: 1.0007 1; } 83.3333% { scale: 1.0005 1; } 85% { scale: 1.0003 1; } 86.6667% { scale: 1.0001 1; } 88.3333% { scale: 1.0001 1; } 90% { scale: 1; } 91.6667% { scale: 1; } 93.3333% { scale: 1; } 95% { scale: 1; } 96.6667% { scale: 1; } 98.3333% { scale: 1; } 99.9889% { scale: 1; } 100% { scale: 1; } }
@keyframes motion-streak-translate { 0% { translate: -160% 0px; } 100% { translate: 0px 0px; } }
}
