/* RuhrBau Startseite: Bausteine aus dem Aufmaß (Boards 1-4, 6-8). Stand 16.10.2026 */

ol.rbu,ul.rbu{list-style:none;margin:0;padding:0}
ol.rbu>li,ul.rbu>li{margin:0}

/* Hero: Auftritt beim Laden, langsamer Schwenk über das Titelbild */
@keyframes rbsPan{from{background-position:62% 40%}to{background-position:50% 40%}}
#rb-hero{animation:rbsPan 16s cubic-bezier(.22,.7,.3,1) 1 both}
.rb-js #rb-hero .elementor-widget{animation:rbuUp .7s cubic-bezier(.22,.7,.3,1) both}
.rb-js #rb-hero .elementor-widget:nth-child(1){animation-delay:.15s}
.rb-js #rb-hero .elementor-widget:nth-child(2){animation-delay:.3s}
.rb-js #rb-hero .elementor-widget:nth-child(3){animation-delay:.5s}
.rb-js #rb-hero .e-con .elementor-widget-button:nth-child(1){animation-delay:.7s}
.rb-js #rb-hero .e-con .elementor-widget-button:nth-child(2){animation-delay:.8s}
#rb-hero .rb-tel .elementor-button-icon svg{width:16px;height:16px}

/* Leiste mit vier Zusagen */
.rbs-trust{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.rbs-trust__i{display:flex;align-items:center;gap:16px;padding:26px 24px;border-right:1px solid rgba(255,255,255,.1)}
.rbs-trust__i:first-child{padding-left:0}
.rbs-trust__i:last-child{border-right:0}
.rbs-trust__i svg{width:30px;height:30px;flex:none;fill:none;stroke:#9FB8DE;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.rbs-trust__t{display:block;font-family:'Source Serif 4',Georgia,serif;font-weight:600;font-size:20px;line-height:1.2;color:#fff}
.rbs-trust__s{display:block;margin-top:3px;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.66)}
.rbs-trust path{stroke-dasharray:1}
.rb-js .rbs-trust__i{animation:rbuUp .6s cubic-bezier(.22,.7,.3,1) calc(var(--i) * .12s + 1s) both}
.rb-js .rbs-trust path{animation:rbuDraw .8s cubic-bezier(.22,.7,.3,1) calc(var(--i) * .12s + 1.1s) both}

/* Motion Graphic: sechs Gewerke, eine Linie */
.rbs-mg{width:100%;max-width:600px}
.rbs-mg svg{display:block;width:100%;height:auto;overflow:visible}
.rbs-mg .c,.rbs-mg .k,.rbs-mg .m{stroke-dasharray:1}
@keyframes rbsChaos{0%{stroke-dashoffset:1;opacity:1}40%{stroke-dashoffset:0;opacity:1}70%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:0}}
@keyframes rbsTrade{from{transform:translate(var(--x),var(--y))}to{transform:translate(0,0)}}
@keyframes rbsSie{from{stroke:#C9D2DF}to{stroke:#1B3A6B}}
.rbs-mg .c{opacity:0}
.rbs-mg .tr{transform-box:view-box}
.rbs-mg .rb{transform-box:fill-box;transform-origin:center}
.is-in.rbs-mg .c{animation:rbsChaos 2.4s cubic-bezier(.22,.7,.3,1) calc(var(--i) * .1s + .2s) both}
.is-in.rbs-mg .tr{animation:rbsTrade 1.1s cubic-bezier(.65,0,.35,1) 2.5s both}
.is-in.rbs-mg .rb{animation:rbuPop .5s cubic-bezier(.2,.9,.3,1.3) 3.4s both}
.is-in.rbs-mg .k{animation:rbuDraw .6s cubic-bezier(.22,.7,.3,1) calc(var(--i) * .07s + 3.8s) both}
.is-in.rbs-mg .m{animation:rbuDraw .7s cubic-bezier(.22,.7,.3,1) 4.6s both}
.is-in.rbs-mg .sie{animation:rbsSie .4s linear 5.2s both}

/* Leistungen als Bildkacheln */
.rbs-lg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.rbs-lg__k{display:flex;flex-direction:column;background:#fff;border:1px solid #E2E6EC;border-radius:2px;overflow:hidden;color:#4A5361!important;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.rbs-lg__img{display:block;width:100%;height:176px;object-fit:cover;transition:transform .5s cubic-bezier(.22,.7,.3,1)}
.rbs-lg__fig{overflow:hidden;margin:0}
.rbs-lg__b{flex:1;display:flex;flex-direction:column;padding:24px 26px 26px}
.rbs-lg__t{font-family:'Source Serif 4',Georgia,serif;font-weight:600;font-size:21px;line-height:1.25;color:#14181E;margin-bottom:10px}
.rbs-lg__x{font-size:15.5px;line-height:1.65;color:#4A5361}
.rbs-lg__go{margin-top:auto;padding-top:18px;font-size:14.4px;font-weight:600;color:#1B3A6B}
.rbs-lg__go span{display:inline-block;color:#3D6098;transition:transform .18s ease}
.rbs-lg__q{grid-column:1 / -1;flex-direction:row;align-items:center;gap:20px 36px;flex-wrap:wrap;padding:24px 28px;border-left:3px solid #1B3A6B}
.rbs-lg__q .rbs-lg__ic{width:44px;height:44px;flex:none;background:#F4F6F8;border-radius:2px;display:flex;align-items:center;justify-content:center}
.rbs-lg__q .rbs-lg__t{margin:0;width:240px;flex:none}
.rbs-lg__q .rbs-lg__x{flex:1 1 320px}
.rbs-lg__q .rbs-lg__go{margin:0;padding:0}
.rbs-lg__k:focus-visible{outline:2px solid #3D6098;outline-offset:3px}
@media (hover:hover){
  .rbs-lg__k:hover{transform:translateY(-6px);box-shadow:0 18px 32px rgba(13,31,60,.12);border-color:#C9D2DF}
  .rbs-lg__k:hover .rbs-lg__img{transform:scale(1.04)}
  .rbs-lg__k:hover .rbs-lg__go span{transform:translateX(4px)}
}
.is-in .rbs-lg__k{animation:rbuUp .5s cubic-bezier(.22,.7,.3,1) calc(var(--i) * .08s) both}

/* Leerstands-Rechner */
.rbs-calc{background:#fff;border-radius:2px;padding:32px 34px 30px;display:flex;flex-direction:column;gap:22px;color:#14181E}
.rbs-calc__t{display:block;font-family:'Source Serif 4',Georgia,serif;font-weight:600;font-size:24px;line-height:1.2}
.rbs-calc__s{display:block;font-size:14px;color:#4A5361;margin-top:4px}
.rbs-calc__row{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.rbs-calc label{font-size:14.5px;font-weight:600;color:#14181E}
.rbs-calc__v{font-size:18px;font-weight:600;color:#1B3A6B;white-space:nowrap}
.rbs-calc input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:4px;border-radius:2px;background:#E2E6EC;outline:none;margin:16px 0 6px;padding:0;border:0}
.rbs-calc input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:28px;height:28px;border-radius:50%;background:#1B3A6B;border:3px solid #fff;box-shadow:0 0 0 1px #1B3A6B;cursor:pointer}
.rbs-calc input[type=range]::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:#1B3A6B;border:3px solid #fff;box-shadow:0 0 0 1px #1B3A6B;cursor:pointer}
.rbs-calc input[type=range]:focus-visible{outline:2px solid #3D6098;outline-offset:6px}
.rbs-calc__scale{display:flex;justify-content:space-between;font-size:12px;color:#79828F}
.rbs-calc__chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.rbs-calc__chips button{font:inherit;font-size:14px;min-height:40px;padding:0 14px;border:1.5px solid #C9D2DF;border-radius:2px;background:#fff;color:#14181E;cursor:pointer}
.rbs-calc__chips button:hover,.rbs-calc__chips button[aria-pressed=true]{border-color:#1B3A6B}
.rbs-calc__chips button[aria-pressed=true]{background:#1B3A6B;color:#fff}
.rbs-calc__out{background:#F4F6F8;border-left:3px solid #1B3A6B;padding:18px 20px;display:flex;flex-direction:column;gap:6px}
.rbs-calc__out small{font-size:13px;color:#4A5361}
.rbs-calc__sum{font-family:'Source Serif 4',Georgia,serif;font-weight:600;font-size:44px;line-height:1;color:#1B3A6B;font-variant-numeric:tabular-nums}
.rbs-calc__out p{margin:0;font-size:13.5px;line-height:1.5;color:#4A5361}
.rbs-calc__out b{font-weight:600;color:#14181E}
.rbs-calc__go{display:flex;align-items:center;justify-content:center;text-align:center;min-height:54px;padding:8px 16px;background:#1B3A6B;color:#fff!important;border-radius:2px;font-weight:600;font-size:15.5px;transition:background-color .18s ease}
.rbs-calc__go:hover{background:#12294D}
.rbs-calc__note{font-size:12.5px;line-height:1.5;color:#79828F;margin:0}

/* Vertragsblatt mit Stempeln */
.rbs-vb{background:#fff;border:1px solid #E2E6EC;box-shadow:0 18px 40px rgba(13,31,60,.10);padding:36px 40px 32px;position:relative}
.rbs-vb__head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px 24px;flex-wrap:wrap;padding-bottom:18px;border-bottom:1px solid #14181E}
.rbs-vb__brand{display:flex;align-items:center;gap:16px}
.rbs-vb__brand img{height:44px;width:auto}
.rbs-vb__h{display:block;font-family:'Source Serif 4',Georgia,serif;font-weight:600;font-size:20px;color:#14181E}
.rbs-vb__m{display:block;font-size:12.5px;color:#79828F}
.rbs-vb__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 40px;margin-top:10px}
.rbs-vb__k{position:relative;display:flex;gap:14px;align-items:flex-start;padding:18px 86px 18px 0;border-bottom:1px solid #E2E6EC}
.rbs-vb__nr{font-family:'Source Serif 4',Georgia,serif;font-weight:600;font-size:16px;color:#3D6098;width:34px;flex:none;padding-top:2px}
.rbs-vb__t{display:block;font-family:'Source Serif 4',Georgia,serif;font-weight:600;font-size:18.5px;line-height:1.25;color:#14181E;margin-bottom:4px}
.rbs-vb__x{display:block;font-size:14px;line-height:1.55;color:#4A5361}
.rbs-vb__st{position:absolute;right:4px;top:12px;width:66px;height:66px;border:2.5px solid #1B3A6B;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#1B3A6B;transform:rotate(-12deg);opacity:.92;mix-blend-mode:multiply}
.rbs-vb__st svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.rbs-vb__st svg path{stroke-dasharray:1}
.rbs-vb__st span{font-size:8.5px;font-weight:700;letter-spacing:.08em;line-height:1.1;text-align:center}
.rbs-vb__sig{display:flex;gap:40px;margin-top:26px}
.rbs-vb__sig div{flex:1;border-top:1px solid #14181E;padding-top:6px;font-size:12px;color:#79828F;margin-top:24px}
.rbs-vb__hint{position:absolute;right:20px;bottom:10px;font-size:11.5px;color:#79828F}
@keyframes rbsStamp{0%{opacity:0;transform:rotate(-12deg) scale(1.9)}60%{opacity:.92;transform:rotate(-12deg) scale(1)}80%{transform:rotate(-12deg) scale(1.05)}100%{opacity:.92;transform:rotate(-12deg) scale(1)}}
@keyframes rbsInk{from{color:#79828F}to{color:#14181E}}
.is-in .rbs-vb__st{animation:rbsStamp .5s cubic-bezier(.2,.9,.3,1) calc(var(--i) * .45s + .5s) both}
.is-in .rbs-vb__st path{animation:rbuDraw .35s ease calc(var(--i) * .45s + .85s) both}
.is-in .rbs-vb__t{animation:rbsInk .3s linear calc(var(--i) * .45s + .5s) both}

/* Ablauf in fünf Schritten */
.rbs-ab{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
.rbs-ab__s{position:relative;min-width:0}
.rbs-ab__rail{position:relative;height:48px;margin-bottom:22px}
.rbs-ab__n{position:absolute;left:0;top:0;width:48px;height:48px;border-radius:50%;background:#1B3A6B;color:#fff;font-family:'Source Serif 4',Georgia,serif;font-weight:600;font-size:21px;display:flex;align-items:center;justify-content:center;z-index:2}
.rbs-ab__l{position:absolute;left:48px;right:0;top:23px;height:2px;background:#E2E6EC}
.rbs-ab__l i{position:absolute;inset:0;background:#1B3A6B;transform-origin:left center}
.rbs-ab__s:last-child .rbs-ab__l{display:none}
.rbs-ab__b{padding-right:28px}
.rbs-ab__t{display:block;font-family:'Source Serif 4',Georgia,serif;font-weight:600;font-size:21px;line-height:1.25;color:#14181E;margin-bottom:8px}
.rbs-ab__x{display:block;font-size:15.5px;line-height:1.65;color:#4A5361}
.is-in .rbs-ab__n{animation:rbuPop .45s cubic-bezier(.2,.9,.3,1.3) calc(var(--i) * .7s + .2s) both}
.is-in .rbs-ab__l i{animation:rbuX .5s cubic-bezier(.45,0,.25,1) calc(var(--i) * .7s + .6s) both}
.is-in .rbs-ab__b{animation:rbuUp .5s cubic-bezier(.22,.7,.3,1) calc(var(--i) * .7s + .35s) both}

/* Einsatzgebiet: Ortsblock */
.rbs-ort{border:1px solid rgba(255,255,255,.16);border-radius:2px;padding:28px 32px}
.rbs-ort__h{font-size:12px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:#9FB8DE;margin-bottom:10px}
.rbs-ort__g{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px}
.rbs-ort__o{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid rgba(255,255,255,.12);font-size:16px;font-weight:500;color:#fff}
.rbs-ort__o svg{width:16px;height:16px;flex:none;fill:none;stroke:#9FB8DE;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rbs-ort__o.is-sitz svg{stroke:#fff}
.rbs-ort__f{padding-top:16px;font-size:14.5px;line-height:1.6;color:#9FB8DE}
.is-in .rbs-ort__o{animation:rbuUp .45s cubic-bezier(.22,.7,.3,1) calc(var(--i) * .08s + .2s) both}

.rbs-zeiten{font-size:13px;line-height:1.5;color:rgba(255,255,255,.75);text-align:left;margin-top:2px}
.rbs-vb__st span{white-space:nowrap}

@media (max-width:1024px){
  .rbs-trust{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rbs-trust__i{padding:20px 18px;border-bottom:1px solid rgba(255,255,255,.1)}
  .rbs-trust__i:nth-child(2n){border-right:0}
  .rbs-trust__i:nth-child(2n+1){padding-left:0}
  .rbs-lg{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rbs-ab{grid-template-columns:1fr;gap:0}
  .rbs-ab__s{display:grid;grid-template-columns:48px minmax(0,1fr);column-gap:20px}
  .rbs-ab__rail{height:auto;margin:0}
  .rbs-ab__l{left:23px;right:auto;top:48px;bottom:0;width:2px;height:auto}
  .rbs-ab__l i{transform-origin:center top}
  .is-in .rbs-ab__l i{animation-name:rbuY}
  .rbs-ab__b{padding:8px 0 30px}
}
@media (min-width:768px) and (max-width:900px){
  .rbs-trust{grid-template-columns:repeat(4,minmax(0,1fr))}
  .rbs-trust__i{flex-direction:column;align-items:flex-start;gap:10px;padding:20px 14px;border-bottom:0}
  .rbs-trust__i:nth-child(2n){border-right:1px solid rgba(255,255,255,.1)}
  .rbs-trust__i:last-child{border-right:0}
  .rbs-trust__i:nth-child(n){padding-left:14px}
  .rbs-trust__i:first-child{padding-left:0}
  .rbs-trust__t{font-size:17px}
}
@media (max-width:767px){
  .rbs-trust__i{flex-direction:column;align-items:flex-start;gap:8px;padding:18px 12px 18px 14px}
  .rbs-trust__i:nth-child(2n+1){padding-left:0}
  .rbs-trust__t{font-size:18px}
  .rbs-trust__s{font-size:11px;letter-spacing:.06em}
  .rbs-lg{grid-template-columns:1fr;gap:16px}
  .rbs-lg__q{flex-direction:column;align-items:flex-start;gap:12px}
  .rbs-lg__q .rbs-lg__t{width:auto}
  .rbs-calc{padding:24px 20px 22px}
  .rbs-calc__sum{font-size:38px}
  .rbs-vb{padding:24px 20px 40px}
  .rbs-vb__grid{grid-template-columns:1fr;gap:0}
  .rbs-vb__k{padding-right:76px}
  .rbs-vb__st{width:60px;height:60px}
  .rbs-vb__st span{font-size:7.5px;letter-spacing:.03em}
  .rbs-vb__sig{flex-direction:column;gap:0}
  .rbs-ort{padding:22px 20px}
  .rbs-ort__g{grid-template-columns:1fr}
  .rbs-mg{max-width:420px;margin:0 auto}
}
@media (prefers-reduced-motion:reduce){
  #rb-hero,#rb-hero .elementor-widget,.rbs-trust__i,.rbs-trust path,.rbs-mg *,.rbs-lg__k,.rbs-vb *,.rbs-ab *,.rbs-ort *{animation:none!important}
  .rbs-mg .c{display:none}
}
/* Kachelrahmen unten (gegen .rbu a{border-bottom:0}) */
.rbu a.rbs-lg__k{border-bottom:1px solid #E2E6EC!important}
@media (hover:hover){.rbu a.rbs-lg__k:hover{border-bottom-color:#C9D2DF!important}}
/* Vertragsblatt schmal (Fold-Außendisplay 344 px) */
@media (max-width:767px){.rbs-vb__grid{grid-template-columns:minmax(0,1fr)!important}.rbs-vb__k>*{min-width:0}}
@media (max-width:400px){.rbs-vb{padding:22px 16px 32px}.rbs-vb__k{padding-right:70px}}
/* Kacheln gleichmäßig: festes Bildformat, Titel mit zwei Zeilen Platz */
.rbs-lg .rbs-lg__fig{aspect-ratio:16/9;overflow:hidden}
.rbs-lg .rbs-lg__img{width:100%!important;height:100%!important;aspect-ratio:16/9;object-fit:cover;object-position:center}
@media (min-width:601px){.rbs-lg__k:not(.rbs-lg__q) .rbs-lg__t{min-height:2.5em}}
/* Bildausschnitte je Gewerk: Motiv bleibt im 16:9-Format sichtbar */
.rbs-lg__img[src*="energetische-sanierung-fassade"]{object-position:50% 8%}
.rbs-lg__img[src*="gewerbeflaeche-rueckbau"]{object-position:50% 38%}
.rbs-lg__img[src*="neubau-baustelle"]{object-position:50% 68%}
