/* Shared rules, loaded after the page-specific layouts. Keep page geometry here. */
:root {
 --header-height:120px; --header-compact:80px; --logo-height:114px; --logo-compact:74px;
 --page-gap:32px; --section-gap:48px; --title-size:clamp(32px,3.3vw,42px);
 --section-title-size:clamp(26px,2.5vw,32px); --body-size:17px; --radius:8px;
}
body{padding-top:var(--header-height);font-size:var(--body-size)}
.site-header{background:var(--paper);border:0}
.site-header::after{content:"";position:absolute;top:100%;left:0;right:0;height:var(--page-gap);background:var(--paper);pointer-events:none;z-index:-1}
.header-inner{height:var(--header-height)}
.is-small .header-inner{height:var(--header-compact)}
.brand{align-self:flex-start;padding-top:3px}
.brand img{width:auto;height:var(--logo-height);max-height:none;transition:height .2s ease}
.is-small .brand img{width:auto;height:var(--logo-compact);max-height:none}
html{--admin-offset:0px;scrollbar-gutter:stable;scroll-padding-top:calc(var(--admin-offset) + var(--header-compact) + var(--page-gap))}
@supports not (scrollbar-gutter:stable){html{overflow-y:scroll}}
html:has(body.admin-bar){--admin-offset:32px}
@media(max-width:782px){html:has(body.admin-bar){--admin-offset:46px}}
#leistungen.home-offer,.service-examples{scroll-margin-top:0}
.nav>a{display:inline-flex;align-items:center;min-height:44px}
.nav>a[aria-current]{color:var(--accent)}
.home-intro,.detail-hero{padding-top:var(--page-gap)}
.about-page{padding-top:var(--page-gap)}
.home-intro h1,.detail-hero h1,.about-page h1{
 font-size:var(--title-size);font-weight:700;line-height:1.15;letter-spacing:-.03em;margin:0 0 18px;
 overflow-wrap:break-word;hyphens:auto;
}
.detail-hero{padding-bottom:32px}
.home-intro{padding-bottom:24px}
.home-intro>p:last-child,.detail-hero .lead,.detail-hero .lead p,.about-page p{
 font-size:var(--body-size);line-height:1.65;color:var(--ink);
}
.detail-hero .lead p,.about-page p{margin:0 0 18px}
.detail-hero .lead p:last-child,.about-intro p:last-child{margin-bottom:0}
.about-intro{max-width:800px;padding-bottom:32px}
.about-story{padding-bottom:var(--section-gap)}
.detail-layout h2,.service-examples h2,.about-page h2,.home-process h2,.home-about h2,.home-projects h2{
 font-size:var(--section-title-size);line-height:1.25;letter-spacing:-.025em;
}
.aside h3,.home-about .home-responsibility h3{font-size:22px;line-height:1.3}
.home-about .personal-copy p{font-size:var(--body-size);line-height:1.65;color:var(--ink)}
.home-process-step p{color:var(--muted)}
.aside,.home-responsibility,.map-shell,.topic-placeholder{border-radius:var(--radius)}
#service-examples .topic-placeholder{background:#fff;border:1px solid var(--accent)}
main .production-approval{background:#fff}
#ladekantenschutz-text{background:#fff;border:1px solid var(--accent);border-radius:var(--radius);padding:20px 24px}
.detail-layout{padding-bottom:var(--section-gap)}
.footer-columns h2{color:var(--accent)}
.footer-organized a:hover,.footer-organized a:focus-visible,.footer-social-icons a:hover,.footer-social-icons a:focus-visible{
 color:var(--accent);text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:4px;
}
.footer-organized a:focus-visible{outline-color:#fff}
@media(max-width:900px){
 :root{--header-height:104px;--header-compact:74px;--logo-height:98px;--logo-compact:66px;--page-gap:28px;--section-gap:36px}
 .nav{max-height:calc(100dvh - var(--bar) - var(--header-height));background:var(--paper)}
}
@media(max-width:650px){
 html:root{--header-height:64px;--header-compact:var(--header-height);--logo-height:52px;--logo-compact:var(--logo-height);--page-gap:18px;--section-gap:32px;--title-size:32px;--section-title-size:26px;--body-size:16px}
 .home-intro h1 span{display:inline}
 .home-intro,.detail-hero{padding-bottom:24px}
 .about-intro{padding-bottom:28px}
}
@media(max-width:650px), (orientation:landscape) and (max-width:1024px) and (max-height:500px){
 .site-header .brand{align-self:center;padding-top:0}
 .site-header .brand img{max-height:var(--logo-height)}
 .site-header::after{height:0}
 .site-header .nav{max-height:calc(100dvh - var(--bar) - var(--header-height));overscroll-behavior:contain}
}
@media(orientation:landscape) and (max-width:1024px) and (max-height:500px){
 html:root{--header-height:52px;--header-compact:var(--header-height);--logo-height:40px;--logo-compact:var(--logo-height);--page-gap:12px}
 .site-header .nav .services-menu{width:100%;align-self:stretch;flex-wrap:wrap;white-space:normal}
 .site-header .nav .services-menu-link{flex:1}
 .site-header .nav .services-menu-toggle{width:44px;margin:0;padding:10px 0}
 .site-header .nav .services-menu-panel{position:static;width:100%;max-width:none;box-shadow:none;padding:0 0 8px 12px}
}

/* Freigegebener Header: Zusatzabdeckung beim Scrollen entfernen. */
.site-header.is-small::after{height:0}

/* Freigegeben: Header wie Startseite maximal 2250px, bestehende Seitenabstaende beibehalten. */
.site-header .wrap.header-inner{max-width:2250px;margin-inline:auto}
/* Keep the consent panel's responsive height when the map is loaded. */
.contact-location .map-shell{position:relative}
.contact-location .map-consent[hidden]{display:flex!important;visibility:hidden;pointer-events:none}
.contact-location .map-frame{position:absolute;inset:0}
.contact-location .map-frame iframe{width:100%;height:100%!important;border:0;display:block}
.contact-location .map-actions [data-map-remove][hidden]{display:inline-flex!important;visibility:hidden;pointer-events:none}
