/* A consistent left edge and readable line lengths at the end of the homepage. */
.marketplace-teaser{padding:64px 0!important}
.marketplace-teaser .wrap{min-width:0}
.marketplace-teaser .tag{margin:0 0 18px}
.marketplace-teaser h2{max-width:28ch;margin:0 0 24px;text-wrap:balance;overflow-wrap:break-word}
.marketplace-teaser p{max-width:62ch;margin:0 0 28px}
.contact-invitation{padding:64px 0}
.contact-invitation .contact-inner{grid-template-columns:minmax(0,1fr);gap:28px;align-items:start}
.contact-invitation .contact-inner>div{min-width:0}
.contact-invitation .eyebrow{display:block;margin:0;color:#fff}
.contact-invitation .eyebrow::before{content:none;display:none}
.contact-invitation h2{max-width:28ch;margin:18px 0 20px;text-wrap:balance}
.contact-invitation p{max-width:72ch;margin:0;text-wrap:pretty}
.contact-invitation .button{max-width:100%;white-space:normal}
@media(max-width:700px){.marketplace-teaser,.contact-invitation{padding:44px 0!important}.marketplace-teaser h2,.contact-invitation h2{max-width:100%}.contact-invitation .contact-inner{gap:24px}}

/* Shared text/action layout for all five closing homepage sections. */
.home-band .home-band-inner{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:48px;align-items:center}
.home-band .home-band-inner>div{min-width:0}
.home-band .home-band-inner>:last-child{justify-self:end;width:360px;max-width:100%}
.home-band .home-band-inner p{margin-bottom:0}
.home-band .home-band-inner .bernold-cta{margin:0;width:360px;max-width:100%;min-height:64px!important;padding:18px 22px!important;border-radius:10px!important;font-size:1rem!important;line-height:1.45!important;white-space:normal;text-align:center}
@media(max-width:900px){
 .home-band .home-band-inner{grid-template-columns:minmax(0,1fr);gap:28px}
 .home-band .home-band-inner>:last-child{justify-self:end;max-width:100%}
}

/* One reading rhythm across the five closing sections. */
.home-band{padding:64px 0!important}
.home-band .eyebrow,.home-band .tag,.home-band .hb-kicker{margin:0!important;font-family:var(--type-body)!important;font-size:.75rem!important;font-weight:700!important;line-height:1.6!important;letter-spacing:.1em!important}
.home-band h2{font-size:2rem!important;line-height:1.25!important;font-weight:500!important;max-width:30ch;margin:18px 0 20px!important;text-wrap:balance}
.home-band .home-band-inner p{font-size:1.125rem!important;line-height:1.65!important;font-weight:400!important;max-width:64ch;margin:0!important;text-wrap:pretty}
@media(max-width:700px){
 .home-band{padding:44px 0!important}
 .home-band h2{font-size:1.625rem!important;max-width:100%}
 .home-band .home-band-inner p{font-size:1rem!important}
}

/* Service cards: keep a real gap before actions, even when auto margins collapse. */
.services .service .service-symbol{display:block;flex-shrink:0}
.services .service h3{margin:20px 0 14px;hyphens:auto!important}
.services .service p{margin:0 0 24px!important;color:#40545e;line-height:1.65!important}
.services .service>.bernold-cta{margin-top:auto!important}
@media(max-width:900px){
 .services .service{padding:24px;min-height:0}
 .services .service .service-symbol{width:48px;height:48px}
 .services .service h3{margin:16px 0 12px}
 .services .service>.bernold-cta{width:100%;min-height:52px!important}
}

/* References belong to the full service section. */
.services .practice-entry{display:flex;justify-content:flex-end;margin:56px 0 0}
.services .practice-entry>.bernold-cta{width:360px;max-width:100%;min-height:64px!important;padding:18px 22px!important}

/* Keep the service introduction together in reading order. */
.services .section-head{grid-template-columns:minmax(0,1fr);gap:20px;align-items:start;margin-bottom:36px}
.services .section-head .expertise-title{margin-bottom:0}
.services .section-head .section-copy{max-width:62ch;margin:0;color:#40545e;text-align:left}
@media(max-width:700px){.services .section-head{gap:20px;margin-bottom:28px}}

/* Match the homepage entrance and expertise heading to section titles. */
.hero h1,.services .expertise-title{font-size:2rem!important;line-height:1.25!important;font-weight:500!important;letter-spacing:-.025em!important}
@media(max-width:700px){.hero h1,.services .expertise-title{font-size:1.625rem!important}}

/* A compact personal introduction supports the company's main message. */
.hero{grid-template-columns:minmax(0,1fr) 280px;gap:64px}
.hero .home-visual{width:280px;max-width:100%;justify-self:end;box-shadow:none}
.hero .home-visual img[src^="patrick-bernold-"]{height:auto;min-height:0;aspect-ratio:1101/1429;object-fit:contain;object-position:center top}
.hero .home-visual>div{padding:28px 24px;background:#f4f1eb}
.hero .home-visual>div>span{color:#805c3c;font-size:.65rem!important;letter-spacing:.08em}
.hero .home-visual p.profile-role{margin:0 0 20px}
.hero .home-visual p.profile-experience{font-size:.875rem!important;line-height:1.65!important}
.hero .home-visual a.bernold-cta{margin-top:24px}
.hero .home-visual strong{font-size:1.25rem;margin:10px 0 8px}
.hero .home-visual .bernold-cta{width:100%;padding:10px 12px!important;font-size:.875rem!important}
@media(max-width:700px){
 .hero{grid-template-columns:minmax(0,1fr);gap:28px}
 .hero .home-visual{width:100%;grid-template-columns:32% minmax(0,1fr)}
 .hero .home-visual img[src^="patrick-bernold-"]{height:auto;min-height:0;aspect-ratio:1101/1429;object-fit:contain;align-self:start;object-position:center top}
 .hero .home-visual>div{padding:18px 16px}
 .hero .home-visual strong{font-size:1.2rem;white-space:normal}
}

/* Company expertise leads; the personal introduction follows the services. */
.hero{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:center}
.network-intro{padding:32px;background:#f4f1eb;border:1px solid #ded8ce;border-radius:16px}
.network-intro h2{font-size:1.65rem!important;line-height:1.3;margin:18px 0}
.network-intro p{font-size:1rem!important;line-height:1.65!important;margin:0 0 24px;color:#40545e}
.network-intro .bernold-cta{white-space:normal}
.partner-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:48px;align-items:center}
.partner-layout>img{display:block;width:180px;height:auto;border-radius:12px}
.partner-layout h2{font-size:2rem!important;line-height:1.25;margin:18px 0 20px}
.partner-layout p{max-width:70ch;margin:0 0 20px;font-size:1.125rem;line-height:1.65}
.partner-layout .bernold-cta{margin-top:4px}
.network-about{padding:64px 0;background:#f7f5f0}
@media(max-width:900px){.hero{grid-template-columns:minmax(0,1fr);gap:28px}.network-intro{max-width:100%}.services .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.services .grid{grid-template-columns:minmax(0,1fr)}.network-intro{padding:24px}.network-intro h2,.partner-layout h2{font-size:1.625rem!important}.partner-layout{grid-template-columns:minmax(0,1fr);gap:24px}.partner-layout>img{width:120px}.network-about{padding:44px 0}.partner-layout p{font-size:1rem}.hero .actions .bernold-cta{white-space:normal;max-width:100%}}

/* Align the personal-introduction action with the other homepage actions. */
.partner-layout .bernold-cta{display:flex!important;margin-left:auto!important;width:360px;max-width:100%;min-height:64px!important;margin:28px 0 0 auto;padding:18px 22px!important;border-radius:10px!important;font-size:1rem!important;line-height:1.45!important;white-space:normal;text-align:center;align-items:center;justify-content:center;gap:12px;box-sizing:border-box}

/* One consistent logo-gold button treatment across the homepage. */
.bernold-home .bernold-cta{--cta-bg:#b8a788;--cta-fg:#162a39;border-color:#8d7956!important}
.bernold-home .bernold-cta:hover{--cta-bg:#ab9877;filter:none!important;border-color:#162a39!important}
.bernold-home .bernold-cta:focus-visible{outline:3px solid #162a39!important;outline-offset:4px!important;box-shadow:0 0 0 4px #fff!important}

/* One consistent homepage type scale across introduction, cards and closing sections. */
.bernold-home{--home-title:2rem;--home-card-title:1.5rem;--home-copy:1.125rem}
.bernold-home #top h1,.bernold-home #top h2{font-size:var(--home-title)!important;line-height:1.25!important;font-weight:500!important}
.bernold-home #top h3{font-size:var(--home-card-title)!important;line-height:1.3!important;font-weight:500!important}
.bernold-home #top p{font-size:var(--home-copy)!important;line-height:1.65!important;font-weight:400!important}
.bernold-home #top .bernold-cta{font-size:1rem!important;line-height:1.45!important}
.bernold-home #top .eyebrow,.bernold-home #top .tag,.bernold-home #top .hb-kicker{font-size:.75rem!important;line-height:1.6!important}
@media(max-width:700px){.bernold-home{--home-title:1.625rem;--home-card-title:1.375rem;--home-copy:1rem}}


/* CEO-oriented network overview: six complementary, restrained colour families. */
#team-expertise{scroll-margin-top:calc(var(--site-header-height,130px) + 24px);margin-top:64px;padding:40px;border:1px solid #ddd9d0;border-radius:22px;background:#f6f4ef}
.network-heading{max-width:850px;margin-bottom:32px}
.bernold-home #top .network-heading h2{font-size:var(--public-title,2rem)!important;line-height:1.25!important;margin:16px 0 20px;color:#183b4a}
.network-heading h2 em{font-style:normal;color:#80663e}
.network-heading p{color:#40545e;max-width:76ch}
.network-expertise-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.expertise-card{--accent:#2f596c;--tint:#edf3f6;display:flex;flex-direction:column;min-width:0;padding:26px 24px 22px;border:1px solid #dddeda;border-top:4px solid var(--accent);border-radius:14px;background:var(--tint)}
.expertise-2{--accent:#536d54;--tint:#f0f4ed}.expertise-3{--accent:#296b69;--tint:#edf5f2}.expertise-4{--accent:#765b72;--tint:#f5f0f4}.expertise-5{--accent:#95603c;--tint:#faf2ec}.expertise-6{--accent:#806b31;--tint:#f8f4e6}
.expertise-label{display:flex;align-items:flex-start;gap:12px;margin-bottom:22px;color:var(--accent)}
.expertise-label>span{font-size:.78rem;letter-spacing:.08em;line-height:1.6;padding-top:2px;font-weight:700}
.bernold-home #top .expertise-label h3{font-family:inherit;font-size:1rem!important;font-weight:700!important;line-height:1.45!important;margin:0;color:var(--accent)}
.expertise-card h4{font-family:Georgia,serif;font-weight:500;font-size:1.5rem;line-height:1.3;color:#183b4a;margin:0 0 18px;overflow-wrap:break-word}
.bernold-home #top .expertise-card p{font-size:1rem!important;line-height:1.65!important;color:#354b55;margin:0 0 24px}
.expertise-outcome{margin-top:auto;padding-top:16px;border-top:1px solid #cbd1ce;font-size:.88rem;font-weight:600;line-height:1.5;color:var(--accent)}
.network-next{display:flex;align-items:center;justify-content:space-between;gap:32px;padding-top:32px;margin-top:32px;border-top:1px solid #d5d0c5}
.network-next>div{max-width:620px}
.bernold-home #top .network-next h3{font-size:1.35rem!important;color:#183b4a;margin:0 0 10px}
.bernold-home #top .network-next p{font-size:1rem!important;margin:0;color:#40545e}
.network-next .bernold-cta{flex-shrink:0;white-space:normal;text-align:center}
@media(max-width:1050px){.network-expertise-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.network-next{align-items:flex-start;flex-direction:column}.network-next .bernold-cta{align-self:flex-end}}
@media(max-width:600px){#team-expertise{padding:24px 16px;margin-top:40px;border-radius:16px}.network-heading{margin-bottom:24px}.network-expertise-grid{grid-template-columns:minmax(0,1fr);gap:16px}.expertise-card{padding:24px 20px}.expertise-card h4{font-size:1.4rem}.network-next{gap:22px}.network-next .bernold-cta{max-width:100%}}

/* Uniform, line-free chapter gaps through to the footer. */
.bernold-home{--chapter-gap:24px;--chapter-paper:#fcfbf8}
.bernold-home #top>section{border-block-start:var(--chapter-gap) solid var(--chapter-paper)!important;border-block-end:0!important;box-shadow:none!important}
.bernold-home #top>section::before,.bernold-home #top>section::after{content:none!important}
.bernold-home>.site-footer{border-block-start:var(--chapter-gap) solid var(--chapter-paper)!important;margin-block-start:0;box-shadow:none!important}
@media(max-width:700px){.bernold-home{--chapter-gap:14px}}

/* Separate services from the people and experience behind them. */
.bernold-home #leistungen .eyebrow::before{display:none!important;content:none!important}
.bernold-home #team-expertise{padding:0;border:0;border-radius:0;background:transparent;margin-top:64px}
.bernold-home #top .network-heading h2{font-size:var(--home-title)!important;color:var(--ink)}
.bernold-home .network-heading{max-width:760px;margin-bottom:28px}
.bernold-home .network-heading p{margin-bottom:0}
.bernold-home .network-person{padding:28px;background:#f6f4ef;border-radius:16px;margin-bottom:36px;gap:32px}
.bernold-home #top .network-person h3{margin:12px 0 16px}
.bernold-home .network-person p{margin:0 0 16px}
.bernold-home .network-person .bernold-cta{margin:20px 0 0!important;width:auto;justify-self:start;min-height:48px!important}
.bernold-home #top .network-skills-title{margin:0 0 24px}
.bernold-home .expertise-card{padding:24px;border-top-width:3px}
.bernold-home .expertise-label{margin-bottom:12px}
.bernold-home #top .expertise-label h4{font:600 1.05rem/1.45 var(--type-body,Arial,sans-serif);color:var(--accent);margin:0}
.bernold-home #top .expertise-card p{margin:0}
.bernold-home .network-next{border:0;margin-top:24px;padding-top:0}
@media(max-width:600px){
 .bernold-home #team-expertise{margin-top:44px}
 .bernold-home .network-person{padding:22px;gap:20px}
 .bernold-home .network-person .bernold-cta{width:100%}
 .bernold-home .expertise-card{padding:22px}
 .bernold-home .services{padding-top:36px}
}

/* Ensure readable light text in the homepage contact section. */
.bernold-home #kontakt.contact-invitation{background:#162a39;color:#fff}
