.ww-header,.ww-hero,.ww-review{box-sizing:border-box}
/* Einheitlicher Textumbruch im Frontend und im Gutenberg-Inhaltsbereich. */
:is(.wp-site-blocks,.editor-styles-wrapper),:is(.wp-site-blocks,.editor-styles-wrapper) :is(h1,h2,h3,h4,h5,h6,p,li,blockquote,figcaption){text-wrap:pretty}
/* Footer: native blocks own layout, palette, typography and spacing. */
footer.wp-block-template-part:has(.ww-footer){margin-block-start:0}
.ww-footer,.ww-footer *{box-sizing:border-box}
.ww-footer .wp-block-column{min-width:0}
.ww-footer a{ text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.25em;overflow-wrap:anywhere}
.ww-footer a:focus-visible,.ww-footer .wp-block-navigation .wp-block-navigation-item__content:focus-visible{outline:3px solid var(--wp--preset--color--base);outline-offset:4px}
.ww-footer a:hover,.ww-footer .wp-block-navigation .wp-block-navigation-item__content:hover{color:#67B403}
.ww-footer .wp-block-navigation-item__content{white-space:normal}
.ww-footer .wp-block-image img{max-width:100%;height:auto}
.ww-footer .ww-footer-linkedin .wp-social-link a{display:flex;align-items:center;justify-content:flex-start;min-width:44px;min-height:44px;padding:0;text-decoration:none}
.ww-footer .ww-footer-linkedin .wp-social-link a:hover{color:#FFFFFF;outline:1px solid currentColor;outline-offset:3px}
.ww-footer .ww-footer-linkedin .wp-social-link:has(a:hover){transform:none}
.ww-footer .ww-footer-linkedin .wp-social-link a:focus-visible{outline:3px solid #FFFFFF;outline-offset:3px}
.ww-back-to-top{position:fixed;z-index:1000;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));display:grid;place-items:center;width:48px;height:48px;padding:0;border:2px solid #F1F1F1;border-radius:4px;background:#293D2B;color:#F1F1F1;box-shadow:0 0 0 1px #293D2B;cursor:pointer;font:inherit;font-size:26px;line-height:1}
.ww-back-to-top[hidden]{display:none}
.ww-back-to-top:hover{color:#67B403}
.ww-back-to-top:focus-visible{outline:3px solid #F1F1F1;outline-offset:4px;box-shadow:0 0 0 8px #293D2B}
.ww-header{max-width:1200px!important;margin-inline:auto!important;padding:28px 32px!important;gap:32px;border-bottom:1px solid #EAEAEA}
.ww-header .wp-block-image{width:184px;margin:0!important}.ww-header img{width:184px;height:auto;display:block}
.ww-header p{font-size:15px;margin:0}.ww-header a{color:#181D17;text-underline-offset:5px}
.ww-hero{max-width:none!important;padding:clamp(56px,8vw,112px) 32px 88px!important;margin:0!important}
.ww-hero-inner{max-width:1200px!important;margin-inline:auto!important}
.ww-hero h1{font-size:clamp(38px,5.5vw,76px)!important;font-weight:800;line-height:1.08;letter-spacing:-.045em;max-width:1160px;margin:0 0 32px!important}
.ww-hero h1:after{content:"";display:block;width:96px;height:6px;background:var(--wp--preset--color--accent);margin-top:30px}
.ww-hero .ww-intro{font-size:clamp(18px,1.8vw,21px);line-height:1.6;max-width:65ch;margin:0 0 32px!important;color:#555555}
.ww-hero .wp-block-button__link{background:#181D17;color:#FFFFFF;font-size:16px;font-weight:500;line-height:1.3;border-radius:0;padding:17px 25px;text-decoration:none}
.ww-hero .wp-block-button__link:hover{background:var(--wp--preset--color--link)}
.ww-header a:focus-visible,.ww-hero a:focus-visible{outline:3px solid var(--wp--preset--color--link);outline-offset:5px}
.ww-review{max-width:1200px!important;margin:0 auto!important;padding:24px 32px 40px!important;border-top:1px solid #EAEAEA;font-size:14px;line-height:1.6}
body.home .wp-site-blocks{padding-top:0;padding-bottom:0}body.home main{margin-top:0!important}body.home .wp-block-post-content{margin-top:0!important}
body.home .wp-block-post-content > section + section{margin-block-start:0}
@media(max-width:600px){.ww-header{padding:20px!important;gap:16px}.ww-header .wp-block-image,.ww-header img{width:145px}.ww-header p{font-size:13px}.ww-hero{padding:52px 20px 60px!important}.ww-hero h1{font-size:clamp(35px,8.8vw,50px)!important;letter-spacing:-.035em}.ww-review{padding:24px 20px!important}}

.ww-hero{width:100vw!important;max-width:none!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important}.ww-header .wp-block-image{flex-shrink:0}@media(max-width:600px){.ww-header p{max-width:150px;text-align:right;line-height:1.5}}

/* So arbeite ich: native content; optional future image and overlay on section. */
.ww-work{position:relative;isolation:isolate;box-sizing:border-box;background-image:var(--ww-work-background-image,none);background-size:cover;background-position:center}
.ww-work::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--ww-work-overlay,transparent)}
.ww-work .ww-work-inner{max-width:1200px;margin-inline:auto}
.ww-work .ww-work-title{margin:0;max-width:760px}
.ww-work .ww-work-intro{max-width:65ch;margin:24px 0 0}
.ww-work .ww-work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:48px;row-gap:64px;margin:56px 0 0;align-items:start}
.ww-work .ww-work-item{min-width:0;margin:0;padding:0;border:0;background:none;box-shadow:none}
.ww-work .ww-work-item .ww-work-number{margin:0 0 20px;color:var(--wp--preset--color--link);font-size:16px;font-weight:500;line-height:1.4;font-variant-numeric:tabular-nums}
.ww-work .ww-work-item h3{margin:0;overflow-wrap:break-word}
.ww-work .ww-work-item p:not(.ww-work-number){margin:20px 0 0}
@media(max-width:1023px){.ww-work .ww-work-grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px;row-gap:48px}}
@media(max-width:599px){.ww-work .ww-work-grid{grid-template-columns:minmax(0,1fr);row-gap:40px;margin-top:40px}.ww-work .ww-work-item .ww-work-number{margin-bottom:12px}}

/* Native grid rows stretch their cards independently; text may wrap at narrow widths. */
.ww-services-grid{align-items:stretch}
.ww-services-grid > .wp-block-group{min-width:0;overflow-wrap:anywhere}
@media(min-width:1280px){
 body.home #leistungen > :is(h2,.ww-services-grid){position:relative;left:clamp(-100px,calc(640px - 50vw),0px)}
}

/* Contact Form 7: native plugin fields, scoped to the contact section. */
#kontakt .wpcf7{max-width:680px;margin-top:32px}
#kontakt .wpcf7 form p{margin:0 0 24px}
#kontakt .wpcf7 label{display:block;font-size:1rem;font-weight:500;line-height:1.5}
#kontakt .wpcf7 input[type="email"],#kontakt .wpcf7 input[type="text"],#kontakt .wpcf7 textarea{box-sizing:border-box;display:block;width:100%;max-width:100%;min-height:48px;margin-top:8px;padding:14px 16px;font:inherit;line-height:1.5;color:#181D17;background:#FAFAF6;border:1px solid #747D70;border-radius:4px}
#kontakt .wpcf7 textarea{min-height:200px;resize:vertical}
#kontakt .wpcf7 :is(input,textarea,a):focus-visible{outline:3px solid var(--wp--preset--color--link);outline-offset:4px}
/* Referenz für primäre Buttons: Waldgrün, warme Schrift, dezente Rundung. */
#kontakt .wpcf7 input[type="submit"]{box-sizing:border-box;max-width:100%;min-height:52px;padding:14px 26px;border:2px solid #293D2B;border-radius:4px;background:#293D2B;color:#FAFAF6;font:inherit;font-size:1rem;font-weight:600;line-height:1.4;white-space:normal;cursor:pointer}
#kontakt .wpcf7 input[type="submit"]:hover{background:#3A5435;border-color:#3A5435}
#kontakt .wpcf7 input[type="submit"]:active{background:#181D17;border-color:#181D17}
#kontakt .wpcf7 input[type="submit"]:disabled{opacity:.6;cursor:not-allowed}
#kontakt .wpcf7 .wpcf7-list-item{margin:0}
#kontakt .wpcf7 .wpcf7-acceptance label{display:flex;align-items:flex-start;gap:12px;font-weight:400}
#kontakt .wpcf7 input[type="checkbox"]{flex:none;width:20px;height:20px;margin:2px 0 0;accent-color:#293D2B}
#kontakt .wpcf7 a{color:var(--wp--preset--color--link);text-underline-offset:3px}
#kontakt .wpcf7 [aria-invalid="true"]{border-color:#9C3028}
#kontakt .wpcf7 .wpcf7-not-valid-tip{margin-top:8px;color:#9C3028;font-size:.9rem}
#kontakt .wpcf7 form .wpcf7-response-output{margin:24px 0 0;padding:12px 16px;border-radius:4px;font-size:1rem}

/* Hero image: native Cover owns the image; responsive sizing extends existing hero rules. */
.ww-hero.ww-hero-image{min-height:calc(88svh - 135px);padding:48px 32px!important;display:flex;align-items:center}
.ww-hero-image .wp-block-cover__inner-container{width:100%;max-width:1200px;margin-inline:auto}
.ww-hero-image .ww-hero-inner{width:100%}
.ww-hero-image h1{font-size:clamp(38px,4.4vw,64px)!important}
.ww-hero-image .ww-intro{max-width:540px;color:#181D17}
@media(max-width:1023px){
 .ww-hero.ww-hero-image{min-height:0;padding:56px 32px calc(56.28vw + 32px)!important}
 .ww-hero-image .wp-block-cover__image-background{height:auto;top:auto;bottom:0;object-fit:contain;object-position:right bottom!important;aspect-ratio:1672/941}
 .ww-hero.ww-hero-image{background-color:#F1F1F1}
 .ww-hero-image h1{max-width:620px}
}
@media(max-width:600px){
 .ww-hero.ww-hero-image{padding:40px 20px calc(56.28vw + 32px)!important}
 .ww-hero-image h1{font-size:clamp(35px,8.8vw,50px)!important}
 .ww-hero-image .ww-intro{max-width:100%;margin-bottom:0!important}
}

/* Homepage header over Cover: fixed, transparent at the top, solid when scrolled. */
/* Haupt-CTA: native Gutenberg-Button-Vorlage „Button“. */
.wp-block-button.ww-button .wp-block-button__link{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:56px;max-width:100%;padding:16px 30px;border:2px solid #417302;border-radius:4px;background:#417302;color:#FAFAF6;font-family:inherit;font-size:1rem;font-weight:600;line-height:1.4;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.wp-block-button.ww-button .wp-block-button__link:hover{background:#345C02;border-color:#345C02}
.wp-block-button.ww-button .wp-block-button__link:active{background:#293D2B;border-color:#293D2B}
.wp-block-button.ww-button .wp-block-button__link:focus-visible{outline:3px solid #417302;outline-offset:4px}
.wp-block-button.ww-button-klassisch .wp-block-button__link{min-height:52px;padding:14px 26px;background:#293D2B;border-color:#293D2B}
.wp-block-button.ww-button-klassisch .wp-block-button__link:hover{background:#3A5435;border-color:#3A5435}
.wp-block-button.ww-button-klassisch .wp-block-button__link:active{background:#181D17;border-color:#181D17}

@media(min-width:1024px){
 body .wp-site-blocks > header:has(.ww-header){position:fixed;inset:var(--ww-admin-offset,0px) 0 auto;z-index:1000;margin:0;background:transparent}
 body.ww-header-scrolled .wp-site-blocks > header:has(.ww-header){background:var(--wp--preset--color--base,#F1F1F1)}
 body:not(.home) .wp-site-blocks{padding-top:104px}
 body .wp-block-post-content [id]{scroll-margin-top:calc(var(--ww-header-height,104px) + var(--ww-admin-offset,0px) + 24px)}
}
.ww-header .ww-header-row{display:contents}
body.home .wp-site-blocks > header .ww-header{border-bottom:0}
body.home .ww-hero.ww-hero-image{min-height:88svh;padding-top:calc(var(--ww-header-height,135px) + 48px)!important}
@media(max-width:1023px){body.home .ww-hero.ww-hero-image{min-height:0;padding-top:calc(var(--ww-header-height,135px) + 56px)!important}}
@media(max-width:600px){body.home .ww-hero.ww-hero-image{padding-top:calc(var(--ww-header-height,105px) + 40px)!important}}

/* Mobile composition: one native paragraph, two grid rows; the Cover image spans only the title row. */
@media(max-width:1023px){
   body .ww-header p{font-size:14px;line-height:1.4;max-width:none}
  body .ww-header a,body .ww-header button{min-height:44px;min-width:44px}
 body.home .ww-hero.ww-hero-image{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;align-items:stretch;min-height:0;padding:0!important;gap:0;isolation:isolate}
 body.home .ww-hero-image .wp-block-cover__inner-container,body.home .ww-hero-image .ww-hero-inner{display:contents}

 body.home .ww-hero-image .wp-block-cover__background{grid-area:1/1/2/2;inset:0}
  body.home .ww-hero-image h1{min-height:700px;grid-area:1/1/2/2;position:relative;z-index:1;box-sizing:border-box;width:100%;max-width:none;margin:0!important;padding:28px 30% 48px 32px;font-size:clamp(38px,6vw,56px)!important;line-height:1.08;letter-spacing:-.035em}
 body.home .ww-hero-image h1:after{width:72px;height:4px;margin-top:24px}
 body.home .ww-hero-image .ww-intro{grid-area:2/1/3/2;position:relative;z-index:1;box-sizing:border-box;width:100%;max-width:none;margin:0!important;padding:28px 32px 32px;background:var(--wp--preset--color--base,#F1F1F1);font-size:18px;line-height:1.6;color:var(--wp--preset--color--contrast,#181D17)}
}
@media(max-width:600px){
   body .ww-header p{max-width:none;font-size:13px;line-height:1.35;text-align:left;white-space:nowrap}
  body.home .ww-hero-image h1{min-height:600px;padding:24px 24% 48px 20px;font-size:clamp(30px,7.7vw,44px)!important}

 body.home .ww-hero-image .ww-intro{padding:28px 20px 32px}
}



/* Full-height mobile background: no detached image edge, no enlarged clipped image. */
@media(max-width:1023px){
 body.home .ww-hero-image .wp-block-cover__image-background{grid-area:1/1/2/2;position:absolute;inset:0;width:100%;max-width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:55% 50%!important;clip-path:none}
}
@media(max-width:360px){
 body.home .ww-hero-image h1{min-height:640px}
 body.home .ww-hero-image .wp-block-cover__image-background{object-position:57% 50%!important}
}
@media(min-width:601px) and (max-width:1023px){
 body.home .ww-hero-image .wp-block-cover__image-background{object-position:45% 50%!important}
}

/* Mobile art direction: full portrait composition, native WordPress navigation and search. */
.ww-header nav.ww-mobile-navigation{display:flex;flex:none;position:static;margin:0 0 0 auto;color:#181D17;font-size:1rem;order:2}
.ww-header > p{order:1}
.ww-mobile-navigation .wp-block-navigation__responsive-container-open{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:10px;color:#181D17;background:transparent;border:0}
.ww-mobile-navigation .wp-block-navigation__responsive-container-open svg{width:24px;height:24px}
.ww-mobile-navigation .wp-block-navigation__responsive-container.is-menu-open{top:var(--ww-admin-offset,0px);padding:24px;background:#F1F1F1;color:#181D17;overflow:auto;max-height:calc(100dvh - var(--ww-admin-offset,0px))}
.ww-mobile-navigation .wp-block-navigation__responsive-container-close{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;top:0;right:0}
.ww-mobile-navigation .wp-block-navigation__responsive-container-content{align-items:stretch;padding-top:60px;gap:28px}
.ww-mobile-navigation .wp-block-navigation__container{flex-direction:column;align-items:stretch;gap:8px;width:100%}
.ww-mobile-navigation .wp-block-navigation-item__content{box-sizing:border-box;display:flex;align-items:center;min-height:44px;padding:8px 0;font-size:1.375rem;line-height:1.3;white-space:normal;text-align:left}
.ww-mobile-navigation .wp-block-navigation-submenu > .wp-block-navigation-item__content{width:100%;font-weight:500;padding-right:36px}
.ww-mobile-navigation .wp-block-navigation-submenu > .wp-block-navigation__submenu-icon{position:absolute;right:8px;top:14px}
.ww-mobile-navigation .wp-block-navigation-submenu > .wp-block-navigation__submenu-container{position:static;width:100%;min-width:0;box-sizing:border-box;margin:0;padding:0 0 0 20px;border:0;border-left:2px solid #417302;background:transparent;box-shadow:none}
.ww-header .ww-mobile-navigation .wp-block-navigation-submenu > button[aria-expanded="false"] ~ .wp-block-navigation__submenu-container{display:none}
.ww-header .ww-mobile-navigation .wp-block-navigation-submenu > button[aria-expanded="true"] ~ .wp-block-navigation__submenu-container{display:flex;visibility:visible;opacity:1;height:auto;overflow:visible}
.ww-mobile-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content{font-size:1.125rem;padding:8px 0}
.ww-mobile-navigation .wp-block-navigation-item__content[aria-current]{text-decoration:underline;text-underline-offset:.25em;font-weight:600}
.ww-mobile-navigation .ww-mobile-search{width:100%;max-width:480px;margin:12px 0 0;font-size:1rem}
.ww-mobile-search .wp-block-search__label{display:block;margin-bottom:8px}
.ww-mobile-search .wp-block-search__inside-wrapper{border:1px solid #555555;padding:4px;background:#FFFFFF}
.ww-mobile-search .wp-block-search__input{min-width:0;min-height:44px;font:inherit;color:#181D17;background:#FFFFFF;border:0;padding:8px}
.ww-mobile-search .wp-block-search__button{min-width:44px;min-height:44px;padding:8px;margin:0;background:#181D17;color:#FFFFFF;border:0}
.ww-mobile-navigation :is(a,button,input):focus-visible{outline:3px solid var(--wp--preset--color--link);outline-offset:3px}
.ww-hero-mobile-picture{display:contents}
@media(max-width:1023px){
   body{--ww-mobile-admin-offset:0px}
   body.admin-bar{--ww-mobile-admin-offset:var(--wp-admin--admin-bar--height,46px)}
   body.admin-bar #wpadminbar{position:fixed}
  /* Boxless template/group wrappers let the native row stick for the whole page. */
   body .wp-site-blocks > header:has(.ww-header),body .wp-site-blocks > header .ww-header{display:contents}
   body .ww-header .ww-header-row{display:flex;position:sticky;top:var(--ww-mobile-admin-offset);z-index:1000;box-sizing:border-box;width:100%;max-width:none;height:72px;min-height:72px;margin:0;padding:8px 20px;justify-content:space-between;align-items:center;gap:16px;background:var(--wp--preset--color--base,#F1F1F1)}
   body .ww-header .wp-block-image,body .ww-header img{width:150px}
   body .ww-header .wp-block-image a{display:block;min-height:0}
   body .ww-header > p{box-sizing:border-box;margin:0;padding:8px 20px 16px;max-width:none;text-align:left;white-space:nowrap;background:var(--wp--preset--color--base,#F1F1F1)}
   body .ww-header nav.ww-mobile-navigation{margin:0}
   body .wp-block-post-content [id]{scroll-margin-top:calc(72px + var(--ww-mobile-admin-offset) + 16px)}
   .ww-mobile-navigation .wp-block-navigation__responsive-container.is-menu-open{top:var(--ww-mobile-admin-offset);max-height:calc(100dvh - var(--ww-mobile-admin-offset))}
  body.home .ww-hero-image h1{min-height:0;height:auto;aspect-ratio:9/16;padding-top:24px;padding-right:30%;padding-bottom:24px}
 body.home .ww-hero-image .wp-block-cover__image-background{inset:0;width:100%;height:100%;max-width:100%;object-fit:contain;object-position:center!important;clip-path:none;aspect-ratio:9/16}
}

/* Desktop logo row aligned with the 1200px content grid; compact scrolled header. */
@media(min-width:1024px){
 body.home:not(.ww-header-scrolled) .ww-header nav.ww-mobile-navigation{margin:0 auto 0 0}
 body.home .ww-hero.ww-hero-image{min-height:100vh;box-sizing:border-box}
 .ww-hero-image h1{max-width:calc(50% - 48px)}
 .ww-hero-image .ww-intro{max-width:min(540px,calc(50% - 48px))}
 body.home.admin-bar .ww-hero.ww-hero-image{min-height:calc(100vh - var(--wp-admin--admin-bar--height,32px))}
 body .wp-site-blocks > header .ww-header{width:calc(100% - 64px)!important;max-width:1200px!important;padding-left:0!important;padding-right:0!important;align-items:center;gap:32px}
 body .ww-header .wp-block-image,body .ww-header img{width:240px!important}
 body .ww-header img{height:auto}
 body .ww-header p{margin:0;flex:0 0 auto;line-height:1.5;white-space:nowrap}
 body.ww-header-scrolled .wp-site-blocks > header .ww-header{padding-top:10px!important;padding-bottom:10px!important}
 body.ww-header-scrolled .ww-header .wp-block-image,body.ww-header-scrolled .ww-header img{width:120px!important}
 .ww-nav-inline .ww-mobile-navigation .wp-block-navigation__responsive-container-open{display:none}
 .ww-nav-inline .ww-mobile-navigation .wp-block-navigation__responsive-container:not(.is-menu-open){display:block;position:static;width:auto;height:auto;overflow:visible;background:transparent!important}
 .ww-nav-inline .ww-mobile-navigation .wp-block-navigation__responsive-close{max-width:none}
 .ww-nav-inline .ww-mobile-navigation .wp-block-navigation__responsive-container-content{padding:0;gap:0}
 .ww-nav-inline .ww-mobile-navigation .wp-block-navigation__responsive-container-close,.ww-nav-inline .ww-mobile-search{display:none}
 .ww-nav-inline .ww-mobile-navigation .wp-block-navigation__container{flex-direction:row;flex-wrap:nowrap;width:auto;align-items:center;gap:24px}
 .ww-nav-inline .ww-mobile-navigation .wp-block-navigation-item__content{font-size:1rem;font-weight:500;padding:8px;white-space:nowrap}
 .ww-nav-inline .ww-mobile-navigation .wp-block-navigation-submenu > .wp-block-navigation-item__content{padding-right:28px}
 .ww-nav-inline .ww-mobile-navigation .wp-block-navigation-submenu > .wp-block-navigation__submenu-icon{right:6px;top:14px}
 .ww-nav-inline .ww-mobile-navigation .wp-block-navigation-submenu > button[aria-expanded="true"] ~ .wp-block-navigation__submenu-container{position:absolute;top:100%;left:0;width:max-content;min-width:280px;max-width:min(420px,calc(100vw - 64px));padding:12px;border:1px solid #EAEAEA;background:#F1F1F1;box-shadow:0 6px 18px #181D171A}
 .ww-nav-inline .ww-mobile-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content{white-space:normal;font-size:1rem}
 .ww-nav-inline .ww-mobile-navigation .ww-menu-contact > a{border:1px solid #417302;border-radius:4px;padding-inline:14px}
}

/* A 44px target plus 20px clearance fits outside the 1200px header from 1360px. */
@media(min-width:1360px){
 body.home:not(.ww-header-scrolled) .ww-header nav.ww-mobile-navigation{position:absolute;left:24px;top:calc(50% - 22px);margin:0}
}

/* The Cover leaves in normal flow; the intact paper group is revealed beneath it. */
@supports (animation-timeline:--ww-hero-exit) and (animation-range:exit 0% exit 100%){
 @media(min-width:1024px) and (prefers-reduced-motion:no-preference){
  body.home .wp-block-post-content{timeline-scope:--ww-hero-exit}
  body.home .ww-hero.ww-hero-image{position:relative;z-index:2;view-timeline-name:--ww-hero-exit;view-timeline-axis:block}
  body.home .ww-hero + .papierkanten-bg{position:relative;z-index:1;margin-block-start:48px;animation:ww-deckblatt-reveal linear both;animation-timeline:--ww-hero-exit;animation-range:exit 0% exit 100%}
 }
}
@keyframes ww-deckblatt-reveal{from{transform:translateY(-100vh)}to{transform:translateY(0)}}

/* Desktop-only header easing; reserve the expanded header space to avoid content movement. */
@media(min-width:1024px){
 body.home .wp-site-blocks > header:has(.ww-header){transition:background-color 500ms cubic-bezier(.22,1,.36,1)}
 body.home .wp-site-blocks > header .ww-header{transition:padding-top 500ms cubic-bezier(.22,1,.36,1),padding-bottom 500ms cubic-bezier(.22,1,.36,1)}
 body.home .ww-header .wp-block-image,body.home .ww-header img{transition:width 500ms cubic-bezier(.22,1,.36,1)}
 body.home .ww-hero.ww-hero-image{padding-top:calc(240px * 166 / 447 + 56px + 48px)!important}
}
@media(min-width:1024px) and (prefers-reduced-motion:reduce){
 body.home .wp-site-blocks > header:has(.ww-header),body.home .wp-site-blocks > header .ww-header,body.home .ww-header .wp-block-image,body.home .ww-header img{transition:none}
}

/* Editable everyday impulses: native blocks and bold only; decorative SVG masks. */
.ww-impulse{box-sizing:border-box;font-family:var(--wp--preset--font-family--rubik);background:transparent;color:var(--wp--preset--color--contrast,#181D17)}
.ww-impulse h2{position:relative;max-width:620px;margin:48px 0 28px!important;font-size:clamp(28px,3.4vw,46px);font-weight:800;font-style:normal;line-height:1.12;letter-spacing:-.035em;transform:rotate(0deg);transform-origin:left center}
.ww-impulse h2::after{content:"";display:block;width:100%;height:auto;aspect-ratio:1000/130;margin-top:-22px;background:var(--wp--preset--color--accent);-webkit-mask:url('brush-sweep.svg?v=9') center/contain no-repeat;mask:url('brush-sweep.svg?v=9') center/contain no-repeat;pointer-events:none; margin-left: -32px}
.ww-impulse .ww-impulse-swoosh{display:none;position:absolute;left:-32px;bottom:0;width:100%;height:auto;aspect-ratio:1000/130;pointer-events:none}
@media(prefers-reduced-motion:no-preference){
 .ww-impulse.ww-impulse-ready h2{opacity:0;transform:translateX(-20px)}
 .ww-impulse.ww-impulse-ready .ww-impulse-grid > p:not(.ww-impulse-close){opacity:0;transform:translateX(-20px);transition:opacity .8s ease,transform .8s ease}
 .ww-impulse.ww-impulse-ready h2.is-visible,.ww-impulse.ww-impulse-ready .ww-impulse-grid > p.is-visible{opacity:1;transform:translateX(0)}
 .ww-impulse.ww-impulse-ready h2.is-visible{animation:ww-impulse-heading-in .45s ease both}
 .ww-impulse.ww-impulse-ready .ww-impulse-close{opacity:0;transform:translateX(-20px)}
 .ww-impulse.ww-impulse-ready .ww-impulse-close.is-visible{opacity:1;-webkit-mask-image:linear-gradient(to right,#000 40%,transparent 50%);mask-image:linear-gradient(to right,#000 40%,transparent 50%);-webkit-mask-size:250% 100%;mask-size:250% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;animation:ww-impulse-close-in 1.4s ease both}
 .ww-impulse.ww-impulse-ready h2.is-skipped,.ww-impulse.ww-impulse-ready .ww-impulse-grid > p.is-skipped{opacity:1;transform:none;transition:none;animation:none;-webkit-mask-image:none;mask-image:none}
 .ww-impulse h2.ww-swoosh-ready::after{background:transparent}
 .ww-impulse .ww-swoosh-ready > .ww-impulse-swoosh{display:block}
 .ww-impulse .ww-swoosh-guide{stroke-dasharray:1;stroke-dashoffset:1}
 .ww-impulse .is-drawn .ww-swoosh-guide{animation:ww-swoosh-draw 1.2s ease-in-out forwards}
}
@keyframes ww-swoosh-draw{to{stroke-dashoffset:0}}
@keyframes ww-impulse-heading-in{from{opacity:0;transform:translateX(-20px)}to{opacity:1;transform:translateX(0)}}
@keyframes ww-impulse-close-in{from{-webkit-mask-position:100% 0;mask-position:100% 0;transform:translateX(-20px)}to{-webkit-mask-position:0 0;mask-position:0 0;transform:translateX(0)}}
.ww-impulse .ww-impulse-grid{column-gap:18px;row-gap:24px;margin:0!important}
.ww-impulse .ww-impulse-grid > p:not(.ww-impulse-close){min-width:0;margin:0;padding:0;border:0;background:none;color:inherit;font-size:clamp(22px,2vw,28px);line-height:2.5}
.ww-impulse .ww-impulse-grid > p:not(.ww-impulse-close) strong{position:relative;display:inline-block;white-space:nowrap;font-size:1.35em;font-weight:800;font-style:normal;line-height:1;padding-bottom:0;transform: rotate(1deg);
    transform-origin: left center}
.ww-impulse .ww-impulse-grid > p:not(.ww-impulse-close) strong::after{content:"";position:absolute;left:0;bottom:-18px;width:100%;height:22px;background:currentColor;-webkit-mask:url('brush-underline.svg') center/100% 100% no-repeat;mask:url('brush-underline.svg') center/100% 100% no-repeat;pointer-events:none}
/* Desktop placement lives in the native group settings; preserve the previous smaller-screen layout. */
@media(max-width:1023px){
 section.ww-impulse{padding-top:clamp(64px,7vw,96px)!important;background-size:cover!important;background-position:0% 0%!important;background-repeat:repeat!important}
 section.ww-impulse > .wp-block-group{padding-top:0!important}
}
@media(max-width:767px){
 section#herausforderungen{padding-top:24px!important}
 .ww-impulse .ww-impulse-swoosh{left:-15px}
 .ww-impulse h2{max-width:100%;font-size:clamp(27px,6.5vw,34px);margin-bottom:24px!important}
 .ww-impulse h2::after{height:auto;margin-top:-2px}
 .ww-impulse .ww-impulse-grid{grid-template-columns:minmax(0,1fr)!important;row-gap:0}
 .ww-impulse .ww-impulse-grid > *{grid-column:1/-1}
 /* Compact text blocks; reserve underline space within each line box. */
 .ww-impulse .ww-impulse-grid > p:not(.ww-impulse-close){font-size:1.25rem;line-height:1.5}
 .ww-impulse .ww-impulse-grid > p:not(.ww-impulse-close) + p:not(.ww-impulse-close){margin-block-start:32px}
 .ww-impulse .ww-impulse-grid > p:not(.ww-impulse-close) strong{font-size:1.3em;line-height:1;padding-bottom:.3em;white-space:nowrap;overflow-wrap:normal;word-break:normal;hyphens:none}
 .ww-impulse .ww-impulse-grid > p:not(.ww-impulse-close) strong::after{bottom:0;height:.45em}
 /* Mobile service transitions: inline Gutenberg dimensions remain intact on desktop. */
 section#herausforderungen{padding-bottom:24px!important}
 section#leistungen{margin-block-start:0;padding-top:24px!important;padding-bottom:0!important}
 #leistungen .ww-services-grid{row-gap:12px}
 #leistungen .ww-services-grid > .wp-block-group{padding-top:42px!important;padding-bottom:42px!important}
 section#arbeitsweise{margin-block-start:0;padding-top:clamp(120px,calc(208px - 20vw),144px)!important;background-position:center top}
 #arbeitsweise .ww-work-title{margin-top:0!important}
}

/* Native Gutenberg number groups: width missing from Group dimension controls. */
.ww-work .ww-work-item .ww-work-marker{box-sizing:border-box;width:94px;max-width:100%}

/* Kontaktpapier vor der Bildkante; nur die Dekoration, nicht den Inhalt, vorziehen. */
#kontakt{position:relative;z-index:1;isolation:isolate;overflow-x:clip;background-color:transparent!important;background-size:0 0!important;background-repeat:no-repeat!important}
#kontakt::before{content:"";position:absolute;inset:calc(-1 * clamp(60px,3.75vw,96px)) -3vw 0;z-index:-1;pointer-events:none;background-image:inherit;background-position:center top;background-size:cover;background-repeat:no-repeat}

/* Mobiles Papier: proportionale Kanten, Textur ausschließlich im Innenbereich. */
@media(max-width:767px){
 section#arbeitsweise.ww-work{--ww-paper-edge:calc(100vw * 125 / 768);height:auto;min-height:0;background:transparent!important;padding-top:calc(var(--ww-paper-edge) + 32px)!important;padding-bottom:calc(var(--ww-paper-edge) + 40px)!important}
 #arbeitsweise.ww-work::before{inset:var(--ww-paper-edge) 0;background:url('papier-mobil/papier-textur.webp') center top/100% auto repeat-y}
 #arbeitsweise.ww-work::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('papier-mobil/papier-oben.webp') center top/100% auto no-repeat,url('papier-mobil/papier-unten.webp') center bottom/100% auto no-repeat}
 #arbeitsweise .ww-work-grid{grid-template-columns:minmax(0,1fr);row-gap:48px}
 #arbeitsweise .ww-work-item h3{margin-top:12px!important}
 #arbeitsweise .ww-work-marker{margin-bottom:0!important}
 #arbeitsweise :is(h2,h3,p){overflow-wrap:anywhere}
}

/* Über mich mobil: Text im Inhaltsraster, Schwung nur an der vorhandenen Fotogruppe. */
@media(max-width:767px){
 #einblicke{padding-bottom:0!important}
 #einblicke > .is-layout-grid > .wp-block-group:last-child{display:flow-root}
 #einblicke > .is-layout-grid > .wp-block-group:last-child > figure{margin-bottom:0}
 section#ueber-mich{background-image:none!important;padding-top:56px!important;padding-bottom:40px!important}
 #ueber-mich > .wp-block-group{padding:0!important}
 #ueber-mich .wp-block-columns{gap:36px;margin:0}
 #ueber-mich .wp-block-column:first-child > h2{margin-top:0}
 #ueber-mich .wp-block-column:last-child > .wp-block-group{position:relative;display:block;box-sizing:border-box;width:100%;min-height:0!important;aspect-ratio:816/941;padding:0!important;background:url('ueber-mich-mobil_bg.png') center/contain no-repeat}
 #ueber-mich .wp-block-column:last-child .wp-block-image{position:absolute;top:23%;left:3%;width:73%;max-width:none;margin:0}
 #ueber-mich .wp-block-column:last-child .wp-block-image img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover}
}
