/* RS24 Markenauffrischung: angelehnt an Logo, Broschüre und historischen Auftritt. */
:root{--blue:#0098d8;--deep:#4f555a;--sky:#a9c9e8;--red:#c52c30;--ink:#252a2e;--muted:#626a70;--paper:#f3f4f4;--line:#d9dde0;--radius:4px;--shadow:0 18px 45px rgba(45,58,67,.12)}
body{background:#fff;color:var(--ink)}
.site-header{height:92px;background-color:rgba(255,255,255,.97);background-image:url('assets/rs24-waves-blue.svg');background-repeat:no-repeat;background-size:280px auto;background-position:calc(100% - 25px) center;border-bottom:0;box-shadow:0 5px 22px rgba(30,47,58,.08)}
.site-header:before{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:linear-gradient(90deg,var(--blue) 0 72%,var(--red) 72%)}
.brand img{width:68px;height:68px}.brand strong{font-size:22px}.brand small{color:#565b5e;font-weight:700}
nav{font-size:13px;letter-spacing:.015em}nav a:not(.nav-cta):after{background:var(--red)}.nav-cta{background:var(--red);border-radius:2px;padding:13px 20px}
.hero{min-height:690px;background:var(--sky)}.hero:after{content:"";position:absolute;left:-70px;bottom:30px;width:510px;height:175px;background:url('assets/rs24-waves-white.svg') center/contain no-repeat;opacity:.12;transform:rotate(-4deg);pointer-events:none}.hero-media{left:49%;background-position:center;clip-path:polygon(12% 0,100% 0,100% 100%,0 100%)}.hero-shade{background:linear-gradient(90deg,#9cbfe0 0%,#a9c9e8 52%,rgba(169,201,232,.18) 72%)}.hero-content{color:#fff;padding:95px 0}.hero-content:before{content:"IHR PARTNER FÜR GEBÄUDE & LEITUNG";display:inline-block;background:var(--red);padding:8px 13px;transform:rotate(-1.2deg);font-size:12px;font-weight:800;letter-spacing:.08em;margin-bottom:25px}.hero .eyebrow{display:none}.hero h1{font-size:clamp(46px,5.5vw,76px);max-width:760px;color:#fff;text-shadow:0 1px 0 rgba(0,0,0,.05)}.hero h1 em{color:#fff;font-style:normal}.hero .lead{max-width:620px;color:#fff;font-size:20px;text-shadow:0 1px 2px rgba(20,46,64,.16)}.hero .button.primary{background:var(--red)}.hero .button.ghost{background:#fff;color:#4c555b;border-color:#fff}.trustline{color:#fff}.trustline li:before{color:#fff}.scroll{color:#fff}.brand-waves{height:28px;background:repeating-radial-gradient(ellipse at 50% 110%,transparent 0 17px,var(--blue) 18px 25px,transparent 26px 34px);opacity:.98}
.section{padding:96px 0}.eyebrow{color:var(--red);font-size:11px}.section h2{font-size:clamp(36px,4.6vw,60px);line-height:1.02;letter-spacing:-.035em}.problem{position:relative}.problem:after{content:"RS24";position:absolute;right:4vw;top:55px;font-size:180px;line-height:1;font-weight:900;color:#eef3f6;z-index:-1}.copy{font-size:18px}.text-link{color:var(--red)}
.fact-grid{border:0;background:transparent;gap:14px}.fact-grid article{border-top:5px solid var(--blue);background:#f2f4f5;padding:27px 30px}.fact-grid article:nth-child(2){border-color:var(--red)}.fact-grid strong{font-size:28px;color:#53595d}.fact-grid span{font-size:14px}
.services{background:#ebedef}.heading-row{align-items:start}.service-grid{gap:18px}.service-card{border-radius:0;box-shadow:none;border:1px solid #d8dddf}.card-image,.featured .card-image{height:300px}.featured .card-image{height:420px}.card-copy{padding:27px 30px}.card-copy>span{display:inline-block;background:var(--red);color:#fff;padding:4px 8px}.card-copy h3{font-size:27px}.card-copy a{color:var(--red)}.service-card.compact{background:var(--sky);color:#26333b}.compact .card-copy p{color:#43545f}
.about{background:#fff}.about-grid{gap:65px}.about-image img{border-radius:0;filter:saturate(.88)}.about-image:before{content:"";position:absolute;left:-18px;top:22px;width:55%;height:8px;background:var(--red);z-index:2}.about-image span{right:-12px;border-radius:0;transform:rotate(-1.5deg)}
.contact{background:#8fb8d9;position:relative}.contact:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,transparent 0 74%,rgba(255,255,255,.16) 74%)}.contact-copy{position:relative}.contact-copy .eyebrow{color:#fff}.contact form{border-radius:0;border-top:7px solid var(--red);box-shadow:var(--shadow)}
footer{background:#4e5458;border-top:4px solid var(--blue)}
.page-hero{background:var(--sky);color:#fff}.page-hero:after{content:"";position:absolute;width:620px;height:215px;right:-85px;top:44px;border:0;border-radius:0;background:url('assets/rs24-waves-white.svg') center/contain no-repeat;opacity:.34;transform:rotate(-4deg);pointer-events:none}.page-hero .wrap{position:relative;z-index:2}.page-hero .eyebrow{color:#fff}.page-hero p{color:#fff}.breadcrumbs{color:#f3f8fb}.page-hero h1{font-size:clamp(44px,6vw,72px)}.side-nav{border-radius:0;border-top:5px solid var(--red)}.feature{border-radius:0;border-top:4px solid var(--blue)}.callout{border-radius:0;border-left:7px solid var(--red)}.sub-cta{background:#8fb8d9}.page-image{border-radius:0}.career-image img{border-radius:0}.career-process,.role-grid article,.benefit-grid article{border-radius:0}.role-grid .initiative{background:#60666a}.content-open{background:#f6f6f4;padding:12px 14px;border-left:5px solid var(--red)}
@media(max-width:900px){.site-header{height:76px;background-size:190px auto;background-position:right -25px center}.brand img{width:54px;height:54px}.hero-media{left:32%;clip-path:none}.hero-shade{background:linear-gradient(90deg,rgba(119,166,201,.96),rgba(119,166,201,.72))}.hero{min-height:calc(100svh - 76px)}nav{top:76px}.problem:after{font-size:110px}.page-hero:after{width:430px;height:150px;right:-120px;top:75px;opacity:.28}}
@media(max-width:620px){.hero-content{padding:65px 0 110px}.hero h1{font-size:42px}.hero .lead{font-size:18px}.brand-waves{height:20px}.fact-grid{gap:10px}.section{padding:70px 0}.service-card,.service-card.featured{margin-bottom:14px}}

/* Qualitätsrunde: Kontrast, Lesbarkeit und weichere Formensprache */
.nav-cta{border-radius:12px}.button{border-radius:14px;min-height:52px}.button.primary{box-shadow:0 7px 20px rgba(197,44,48,.2)}
.hero-shade{background:linear-gradient(90deg,rgba(37,86,116,.97) 0%,rgba(45,102,137,.93) 43%,rgba(45,102,137,.3) 72%)}
.hero:after{width:600px;height:205px;left:-90px;bottom:42px;opacity:.13}
.brand-waves{display:none}
.fact-grid article{border-radius:14px}.service-card{border-radius:18px;overflow:hidden;box-shadow:0 10px 32px rgba(39,58,69,.07)}.service-card.compact{border-radius:18px}
.about-image img{border-radius:20px}.about-image span{border-radius:12px}
.contact{background:#315f79}.contact:before{background:linear-gradient(135deg,transparent 0 76%,rgba(255,255,255,.055) 76%)}.contact-copy>p:not(.eyebrow){color:#f2f7fa}.contact-copy .eyebrow{color:#d9eef8}.direct small{color:#d9eef8}.direct strong{color:#fff}
.contact form{border-radius:20px;border-top:0;box-shadow:0 24px 60px rgba(18,43,56,.2);position:relative;overflow:hidden}.contact form:before{content:"";position:absolute;left:0;right:0;top:0;height:7px;background:linear-gradient(90deg,var(--red) 0 34%,var(--blue) 34%)}
input,select,textarea{border-radius:12px;border-color:#bdcbd3;background:#fff;color:#18272f}input::placeholder,textarea::placeholder{color:#687981;opacity:1}input:focus,select:focus,textarea:focus{outline:3px solid rgba(0,152,216,.18);border-color:#007daf}
.page-hero{background:#356f92}.page-hero p{color:#fff}.page-hero .breadcrumbs{color:#e9f4f9}.page-hero:after{opacity:.2}
.side-nav{border-radius:16px;overflow:hidden}.feature{border-radius:16px}.callout{border-radius:18px}.page-image{border-radius:20px}.sub-cta{background:#315f79}.career-image img{border-radius:20px}.career-image div{border-radius:14px}.career-process,.role-grid article,.benefit-grid article{border-radius:16px}.role-grid .initiative{border-radius:16px}
@media(max-width:900px){.hero-shade{background:linear-gradient(90deg,rgba(37,86,116,.96),rgba(45,102,137,.8))}}
@media(max-width:620px){.button{border-radius:13px}.contact form{border-radius:16px}.service-card{border-radius:16px}}

/* Heller Seitenfuß: Das PNG-Logo ist für einen hellen Untergrund optimiert. */
footer{background:#fff;color:var(--ink);border-top:4px solid var(--blue)}
footer .footer-grid>div>strong,footer .footer-brand strong{color:#2d3337}
footer .footer-grid a,footer .footer-grid span{color:#5f6b72}
footer .footer-grid a:hover{color:var(--red)}
footer .copyright{border-top-color:var(--line);color:#737e84}

/* ProcessWire: CSS assets are relative to this assets directory. */
.site-header{background-image:url('rs24-waves-blue.svg')}
.hero:after,.page-hero:after{background-image:url('rs24-waves-white.svg')}

/* Final ProcessWire asset override: keep this after all earlier hero rules. */
.hero-media{background-image:url('img_4162.jpg')}

/* Legal pages need deliberate breathing room and a readable text measure. */
.legal{max-width:820px;padding-top:88px;padding-bottom:104px}
.legal h1{font-size:clamp(42px,6vw,72px);line-height:1.02;margin:0 0 42px}
.legal h2{font-size:25px;line-height:1.25;margin:42px 0 18px}
.legal p{margin:0 0 20px}
.legal a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
@media(max-width:620px){.legal{padding-top:56px;padding-bottom:72px}.legal h1{margin-bottom:34px}.legal h2{font-size:22px;margin-top:34px}}

/* Fax numbers are informational and intentionally not telephone links. */
.direct .direct-entry{display:flex;flex-direction:column}

/* The featured service card keeps its own natural height instead of stretching
   to the combined height of both cards in the adjacent grid column. */
.service-card.featured{align-self:start}

@media(min-width:901px){
  .service-grid.masonry-ready{grid-template-areas:none;grid-auto-rows:1px;grid-auto-flow:row dense;row-gap:0;column-gap:18px;align-items:start}
  .service-grid.masonry-ready>.service-card{grid-area:auto;grid-row:auto;grid-column:auto;align-self:start;margin-bottom:18px}
}
