/* Alexandra's supplied layouts, scoped to the changed areas. */
.alex-home{--alex-space:var(--ph-space);--alex-heading:var(--ph-heading);--alex-gray:var(--paper)}
.alex-home .section{padding-top:var(--alex-space);padding-bottom:var(--alex-space)}
.alex-home h2{font-size:var(--alex-heading);line-height:1.18;letter-spacing:-.035em;font-weight:700;max-width:none;margin:0 0 24px}
.alex-home h3{font-size:24px;line-height:1.3;letter-spacing:-.02em;font-weight:700;margin:0 0 16px}
.alex-home p{font-size:var(--ph-body);line-height:1.7;color:#575756}
.alex-home .eyebrow{font-size:12px;line-height:1.5;letter-spacing:.1em;font-weight:700;color:var(--red);margin:0 0 18px;text-transform:uppercase}
.alex-home .text-link{font-size:16px;line-height:1.5;gap:18px;max-width:100%;align-items:center}
.alex-home .text-link .hofmann-ui-icon{color:var(--red);flex-shrink:0}
.alex-home .alex-hero{min-height:511px;height:min(636px,calc(100svh - 206px));max-height:none}
.alex-home .alex-hero .hero-shade{background:linear-gradient(0deg,rgba(0,0,0,.3),transparent 36%),linear-gradient(90deg,rgba(0,0,0,.82) 0%,rgba(0,0,0,.72) 30%,rgba(0,0,0,.35) 60%,rgba(0,0,0,.08) 100%)}
.alex-home .hero-image,.alex-home .hero-video{object-position:center}
.alex-home .hero-content{padding-top:64px;padding-bottom:64px}
.alex-home #hero-title{font-size:clamp(42px,5.4vw,76px);line-height:1.05;letter-spacing:-.045em;max-width:1000px;margin:0 0 28px;color:white}
.alex-home .hero-copy{color:white;font-size:clamp(16px,1.4vw,18px);line-height:1.58;max-width:700px;margin:0 0 28px}
.alex-home .hero-actions{margin-top:0}
.alex-home .hero-actions .white{color:white}
@media(max-width:640px){
 .alex-home .alex-hero .hero-content{padding-top:40px;padding-bottom:48px}
 .alex-home .alex-hero #hero-title{font-size:clamp(28px,8.5vw,36px);margin-bottom:22px}
 .alex-home .alex-hero .hero-copy{font-size:15px;margin-bottom:24px}
 .alex-home .alex-hero .hero-actions{gap:16px}
}
.alex-home .hero-bottom{justify-content:space-between;bottom:30px}
.alex-home .video-toggle{margin-right:auto}
.alex-play-state{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px}
.alex-play-state .hofmann-ui-icon{width:20px;height:20px}
.alex-play-state[data-playing=false] .hofmann-ui-icon--pause,.alex-play-state[data-playing=true] .hofmann-ui-icon--play{display:none}
.alex-home .alex-intro{max-width:900px;margin:0 0 44px}
.alex-service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:42px}
.alex-service-grid article{min-width:0;border-top:1px solid var(--line);padding-top:28px}
.alex-service-grid h3{font-size:22px;margin-bottom:18px}
.alex-service-grid h3 a{color:var(--red);display:flex;align-items:center;justify-content:space-between;gap:16px;text-decoration:none}
.alex-service-grid h3 a:hover{color:#8d0000}
.alex-service-grid h3 svg{flex:0 0 22px}
.alex-service-grid p{margin:0}
.alex-projects{background:var(--alex-gray)}
.alex-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px;margin-top:38px}
.alex-project-card{min-width:0;display:flex;flex-direction:column}
.alex-project-image{display:block;aspect-ratio:1;overflow:hidden;background:#ddd}
.alex-project-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .65s cubic-bezier(.2,.65,.3,1)}
.alex-project-image:hover img{transform:scale(1.035)}
.alex-project-copy{padding-top:24px;flex:1;display:flex;flex-direction:column}
.alex-project-copy .eyebrow{margin-bottom:12px}
.alex-project-copy h3 a{text-decoration:none;color:inherit}
.alex-project-copy h3 a:hover{color:var(--red)}
.alex-project-copy>p:not(.eyebrow){margin:0 0 24px}
.alex-project-copy .text-link{margin-top:auto}
.alex-reference-band{display:block;background:#454545;color:white;text-decoration:none;padding:42px 0;transition:background .25s ease}
.alex-reference-band:hover{background:#333}
.alex-reference-band>.wrap{display:flex;align-items:center;justify-content:space-between;gap:40px}
.alex-reference-band h2{font-size:22px;letter-spacing:-.02em;margin-bottom:10px}
.alex-reference-band p{margin:0;color:#eee}
.alex-reference-band svg{width:34px;height:34px;flex-shrink:0}
.alex-company{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:clamp(40px,6vw,88px);align-items:center}
.alex-facts{background:var(--alex-gray);padding:40px}
.alex-facts>div+div{border-top:1px solid var(--line);padding-top:28px;margin-top:28px}
.alex-facts h3{font-size:22px;margin-bottom:12px}
.alex-facts .eyebrow{margin-bottom:12px}
.alex-facts p:last-child{margin:0}
.alex-company-copy>p:not(.eyebrow){margin:0 0 22px}
.alex-company-copy .text-link{margin-top:14px}
.alex-career{display:grid;grid-template-columns:1fr 1fr;background:var(--alex-gray)}
.alex-career-photo img{width:100%;height:100%;display:block;object-fit:cover}
.alex-career-copy{padding:clamp(36px,5vw,76px);align-self:center}
.alex-career-copy h2{max-width:500px}
.alex-career-copy>p:not(.eyebrow){max-width:560px;margin:0 0 26px}
.alex-home .alex-contact .contact-top{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:64px;align-items:center}
.alex-home .contact-actions{gap:16px;display:flex;flex-direction:column;align-items:stretch}
.alex-home .contact-actions a{display:flex;align-items:center;justify-content:flex-start;gap:16px;padding:20px 24px;font-size:18px;line-height:1.4;min-height:68px;margin:0;border:0;box-sizing:border-box;white-space:normal}
.alex-home .contact-actions a>span{overflow-wrap:anywhere;min-width:0;flex:1 1 auto;width:auto;font-size:inherit;line-height:inherit}
.alex-home .contact-actions a:after{content:none}
.alex-home .contact-actions svg{flex-shrink:0;width:24px;height:24px}
.alex-home .contact-top p:not(.eyebrow){margin:16px 0 0;max-width:530px}
.alex-home .locations{margin-top:56px;padding-top:32px}
.alex-home .locations h3{font-size:26px;margin:12px 0}
.alex-home .locations p{margin:0 0 14px}
@media(max-width:1100px){.alex-service-grid{gap:26px}.alex-project-grid{gap:26px}.alex-home h3{font-size:22px}.alex-facts{padding:32px}.alex-home .alex-contact .contact-top{gap:32px}.alex-home .contact-actions a{font-size:16px;padding:20px}}
@media(min-width:641px) and (max-width:940px){.alex-project-grid{grid-template-columns:1fr}.alex-project-card{display:grid;grid-template-columns:1fr 1fr;gap:32px;padding-bottom:32px;border-bottom:1px solid #d5d5d5}.alex-project-card:last-child{padding-bottom:0;border-bottom:0}.alex-project-copy{padding-top:0;align-self:center}.alex-project-copy .text-link{margin-top:10px}.alex-service-grid{grid-template-columns:1fr}.alex-service-grid article{display:grid;grid-template-columns:.9fr 1.4fr;gap:32px}.alex-service-grid h3{margin-bottom:0}.alex-home .contact-actions a{font-size:15px}}
@media(max-width:760px){.alex-home .alex-hero{height:auto;min-height:484px}.alex-home .hero-content{padding-top:48px;padding-bottom:56px}.alex-home #hero-title{font-size:clamp(38px,7.2vw,54px);max-width:620px;overflow-wrap:normal;hyphens:none}.alex-home .hero-copy{font-size:16px}.alex-company{grid-template-columns:1fr;gap:36px}.alex-company-copy{grid-row:1}.alex-facts{padding:30px}.alex-career{grid-template-columns:1fr}.alex-career-photo{aspect-ratio:1.95}.alex-career-copy{padding:40px max(22px,4vw)}.alex-home .alex-contact .contact-top{grid-template-columns:1fr;gap:32px}.alex-home .contact-actions a{font-size:18px}.alex-reference-band>.wrap{gap:22px}.alex-reference-band h2{font-size:21px}.alex-home .locations{grid-template-columns:1fr 1fr;gap:24px}}
@media(max-width:640px){.alex-service-grid,.alex-project-grid{grid-template-columns:1fr;gap:36px}.alex-service-grid h3{font-size:24px}.alex-project-image{aspect-ratio:1.15}.alex-project-copy{padding-top:22px}.alex-project-card+.alex-project-card{padding-top:30px;border-top:1px solid #d5d5d5}.alex-home .hero-actions{align-items:flex-start;gap:24px}.alex-home .hero-actions .button{font-size:16px}.alex-home .alex-intro{margin-bottom:32px}.alex-home .locations{grid-template-columns:1fr;gap:30px}.alex-home .locations article+article{border-top:1px solid var(--line);padding-top:26px}.alex-home .contact-actions a{font-size:16px}.alex-home .video-toggle{padding:10px 14px}.alex-reference-band{padding:32px 0}.alex-reference-band svg{width:28px;height:28px}.alex-home .hero-bottom{bottom:24px}}
@media(prefers-reduced-motion:reduce){.alex-project-image img,.alex-reference-band{transition:none}.alex-project-image:hover img{transform:none}}

.alex-home .hero-actions .white .hofmann-ui-icon{color:white}

@media(max-width:380px){.alex-home #hero-title{font-size:30px}.alex-home .hero-copy{font-size:19px}.alex-home .hero-actions .button{font-size:14px;gap:14px;padding:16px}.alex-home .contact-actions a{font-size:15px;padding:18px}}

@media(max-width:600px){.pagination .nav-links{display:flex;flex-wrap:wrap;gap:8px}.pagination .page-numbers{min-width:40px;padding:10px 12px}}

/* One navigation system for services, projects and company information. */
.site-header{--alex-menu-heading-size:22px;--alex-menu-link-size:16px;--alex-menu-row-height:64px;--alex-menu-heading-height:64px;--alex-menu-column-gap:clamp(28px,4vw,64px)}
.mega-panel.alex-menu{display:block;padding:40px var(--gutter) 32px;text-align:left}
.alex-menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:var(--alex-menu-column-gap);row-gap:0}
.alex-menu-grid>.alex-menu-column{min-width:0;border:0;padding:0;margin:0;display:grid;grid-row:1 / span var(--alex-menu-rows);grid-template-rows:subgrid;gap:0;align-content:start}
.site-header .alex-menu-column>a{display:flex;align-items:center;justify-content:space-between;gap:20px;min-width:0;min-height:var(--alex-menu-row-height);padding:16px 0;margin:0;border:0;border-bottom:1px solid var(--line);font-family:inherit;font-size:var(--alex-menu-link-size);font-weight:400;line-height:1.5;letter-spacing:0;text-transform:none;text-decoration:none;color:var(--ink);box-sizing:border-box}
.site-header .alex-menu-column>a.alex-menu-heading{font-size:var(--alex-menu-heading-size);font-weight:700;line-height:1.3;min-height:var(--alex-menu-heading-height);padding:0 0 20px}
.site-header .alex-menu-text{display:block;width:auto;min-width:0;flex:1 1 auto;color:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;text-align:left;hyphens:none;overflow-wrap:normal;word-break:normal}
.site-header .alex-menu-column>a:hover .alex-menu-text,.site-header .alex-menu-footer>a:hover .alex-menu-text{transform:none}
.site-header .alex-menu a .alex-menu-text,.site-header .alex-mobile-menu a .alex-menu-text{transition:color 160ms ease-out}
.site-header .alex-menu-column>a:hover,.site-header .alex-menu-column>a:focus-visible,.site-header .alex-menu-footer>a:hover,.site-header .alex-menu-footer>a:focus-visible{color:var(--red)}
.site-header .alex-menu-column>a:focus-visible,.site-header .alex-menu-footer>a:focus-visible{outline:2px solid var(--red);outline-offset:5px}
.site-header .alex-menu-footer{margin:32px 0 0;padding:0}
.site-header .alex-menu-footer>a{display:inline-flex;align-items:center;justify-content:flex-start;gap:18px;width:auto;min-height:44px;margin:0;padding:8px 0;border:0;font-family:inherit;font-size:var(--alex-menu-link-size);font-weight:400;line-height:1.5;letter-spacing:0;text-decoration:none;color:var(--ink)}
.mega-panel.alex-menu .alex-menu-footer{opacity:0;transform:translateY(-6px);transition:opacity 180ms ease,transform 220ms cubic-bezier(.22,1,.36,1)}
.nav-group.is-open .alex-menu-footer{opacity:1;transform:none;transition-delay:100ms}
.site-header .alex-menu-footer>a .alex-menu-text{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.28em;text-decoration-color:var(--line)}
.site-header .alex-menu-footer>a:is(:hover,:focus-visible,:active) .alex-menu-text{text-decoration-color:currentColor}
@media(min-width:941px) and (max-width:1100px){.site-header{--alex-menu-heading-size:20px;--alex-menu-link-size:15px}.mega-panel.alex-menu{padding-top:32px}}
@media(max-width:940px){
  .mega-panel.alex-menu{display:none}
  .mobile-nav{max-height:calc(100dvh - var(--ph-menu-top,110px))}
  .site-header{--alex-menu-heading-size:18px;--alex-menu-link-size:16px;--alex-menu-row-height:52px;--alex-menu-heading-height:52px}
  .mobile-group>.alex-mobile-menu{padding:0 0 24px}
  .alex-mobile-menu .alex-menu-grid{display:block}
  .alex-mobile-menu .alex-menu-column{display:block;margin:0 0 24px}
  .alex-mobile-menu .alex-menu-column:last-child{margin-bottom:0}
  .site-header .alex-mobile-menu .alex-menu-column>a{padding:13px 0;opacity:1;transform:none}
  .site-header .alex-mobile-menu .alex-menu-column>a.alex-menu-heading{padding:8px 0 14px;color:var(--ink)}
  .site-header .alex-mobile-menu .alex-menu-footer{margin-top:24px}
  .site-header .alex-mobile-menu .alex-menu-footer>a{font-size:var(--alex-menu-link-size)}
  .site-header .alex-mobile-menu .alex-menu-text{overflow-wrap:break-word}
}
@media(prefers-reduced-motion:reduce){.site-header .alex-menu a .alex-menu-text,.site-header .alex-mobile-menu a .alex-menu-text,.mega-panel.alex-menu .alex-menu-footer{transition:none!important;transform:none!important}}


/* Contact panels follow the service overview. Each page supplies its own content. */
.nb-section.nb-contact {
    width:calc(100% - 2 * var(--gutter)); max-width:var(--max);
    grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:6%;
    align-items:stretch; padding-block:clamp(44px,4.6vw,68px); border:0;
    color:var(--ink); font-size:var(--ph-body);
}
.nb-contact > div:first-child { display:flex; flex-direction:column; align-items:flex-start; }
.nb-contact > div > .eyebrow {
    color:var(--red); font-size:var(--ph-label); line-height:1.35;
    font-weight:700; margin:0 0 .65rem;
}
.nb-section.nb-contact h2 {
    max-width:23ch; font-size:var(--alex-page-heading); line-height:1.14;
    letter-spacing:-.03em; margin:0;
}
.nb-contact > div:first-child > p:not(.eyebrow) {
    max-width:51ch; font-size:inherit; line-height:1.55; color:#505050; margin:1.35rem 0;
}
.nb-contact .nb-contact-person {
    padding:0; border:0; gap:clamp(16px,2.3vw,32px); align-items:center; min-width:0;
}
.nb-contact .nb-contact-person > img { width:min(42%,197px); flex:none; height:auto; }
.nb-contact .nb-contact-person > div, .leistungsindex-kontakt .leistungsindex-person > div { min-width:0; }
.nb-contact .nb-contact-person h3 { font-size:1em; line-height:1.4; margin:0; letter-spacing:normal; }
.nb-contact .nb-contact-person h3 a { color:inherit; }
.nb-contact .nb-contact-role, .nb-contact .nb-contact-availability {
    font-size:inherit; line-height:1.55; margin:0; color:inherit;
}
.nb-contact .nb-contact-availability { margin:clamp(20px,2.5vw,38px) 0 .4rem; }
.nb-contact .nb-contact-person > div > a {
    width:fit-content; max-width:100%; min-height:36px; font-size:inherit;
    line-height:1.55; gap:.55rem; color:inherit; overflow-wrap:anywhere;
}
.nb-contact .nb-contact-person > div > a[href^="mailto:"] { color:var(--red); }
.nb-contact .nb-contact-person a:hover { text-decoration:underline; text-underline-offset:.18em; }
.nb-contact .nb-contact-person .contact-icon { flex:none; width:1.05em; height:1.05em; }
:is(.nb-contact,.leistungsindex-kontakt) :is(.nb-contact-action,.leistungsindex-projekt) {
    display:inline-flex; align-items:center; justify-content:center; align-self:flex-start;
    gap:1rem; min-height:48px; margin:auto 0 0; padding:12px 22px;
    background:var(--red); color:#fff; font-size:1rem; font-weight:700; line-height:1.4; text-decoration:none;
}
:is(.nb-contact,.leistungsindex-kontakt) :is(.nb-contact-action,.leistungsindex-projekt):is(:hover,:focus-visible) {
    background:var(--red-dark,#a00000); color:#fff; text-decoration:none;
}
:is(.nb-contact,.leistungsindex-kontakt) :is(.nb-contact-action,.leistungsindex-projekt):focus-visible {
    outline:2px solid var(--red); outline-offset:3px;
}
:is(.nb-contact-action,.leistungsindex-projekt) .hofmann-ui-icon { color:inherit; width:1.1em; height:1.1em; }
.nb-contact-action .hofmann-ui-icon--arrow-up-right { rotate:45deg; }
@media screen and (max-width:930px) {
    .nb-section.nb-contact { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:5%; }
    .nb-contact .nb-contact-person { flex-wrap:wrap; align-content:flex-start; }
    .nb-contact .nb-contact-person > img { width:min(42%,145px); }
}
@media screen and (max-width:800px) {
    :is(.nb-split,.nb-related) > .nb-copy { order:-1; }
}
@media screen and (max-width:760px) {
    .nb-section.nb-contact { grid-template-columns:minmax(0,1fr); gap:1.4rem; }
    .nb-contact .nb-contact-person { flex-wrap:nowrap; }
    .nb-contact .nb-contact-availability { margin-top:1rem; }
    .nb-contact .nb-contact-person > div > a { min-height:44px; }
    .alex-career > .alex-career-copy, .career-team-card > .career-team-copy { order:-1; }
}
@media screen and (max-width:640px) {
    .alex-project-grid .alex-project-card,
    .post-type-archive-hofmann_project .archive-card:has(> .project-image img) {
        display:flex; flex-direction:column; align-items:stretch; reading-flow:flex-visual;
    }
    .alex-project-card > .alex-project-copy,
    .post-type-archive-hofmann_project .archive-card:has(> .project-image img) > .archive-card-text {
        display:contents;
    }
    .alex-project-card > .alex-project-image,
    .post-type-archive-hofmann_project .archive-card > .project-image:has(img) { order:1; }
    .alex-project-card .alex-project-copy > .text-link,
    .post-type-archive-hofmann_project .archive-card:has(> .project-image img) .archive-card-text > .text-link {
        order:2; align-self:flex-start; margin-top:20px;
    }
    .ph-related-project:has(> .ph-related-photo) { grid-template-columns:minmax(0,1fr); gap:14px; }
    .ph-related-project > .ph-related-photo { order:1; }
}
@media screen and (max-width:359px) {
    .nb-contact .nb-contact-person { align-items:flex-start; }
    .nb-contact .nb-contact-person > img { width:30%; }
}

@media screen and (max-width:760px) {
    .nb-service-pruefung-diagnostik .nb-hero > img { object-position:74% center; }
}
