/* R5 r5-global: wird nach site.css geladen. Gemeinsame Bausteine (Lordicon, 1-2-3-Ablauf, Hover-System). */
:root{--r5-ease:cubic-bezier(.22,.61,.36,1);--r5-dur:380ms}

/* Lordicon */
lord-icon.r5-lord{display:inline-block;flex:none;vertical-align:middle}

/* 1-2-3-Ablauf: Knoten auf einer Linie, Linie füllt sich 1 -> 3 */
.r5-flow{--r5-node:52px;--r5-gap:clamp(18px,2.4vw,32px);position:relative;display:grid;grid-template-columns:repeat(var(--r5-count),minmax(0,1fr));gap:var(--r5-gap);margin:clamp(28px,4vw,48px) auto 0;padding:0;list-style:none;max-width:1080px}
.r5-flow::before,.r5-flow::after{position:absolute;top:calc(var(--r5-node) / 2 - 1px);left:calc((100% - (var(--r5-count) - 1) * var(--r5-gap)) / var(--r5-count) / 2);right:calc((100% - (var(--r5-count) - 1) * var(--r5-gap)) / var(--r5-count) / 2);height:2px;border-radius:2px;content:"";pointer-events:none}
.r5-flow::before{background:rgba(0,150,214,.22)}
.r5-flow::after{background:linear-gradient(90deg,#00b7f4,#0077ad);transform-origin:left center;transform:scaleX(1)}
.r5-flow.is-armed::after{transform:scaleX(0);transition:transform 1.4s var(--r5-ease) .15s}
.r5-flow.is-armed.is-run::after{transform:scaleX(1)}
.r5-flow-step{position:relative;display:flex;flex-direction:column;align-items:center;gap:16px;margin:0;min-width:0}
.r5-flow-node{position:relative;z-index:1;display:grid;width:var(--r5-node);height:var(--r5-node);place-items:center;border:2px solid #00b7f4;border-radius:50%;background:#fff;color:#0077ad;font-weight:800;font-size:15px;letter-spacing:.02em;box-shadow:0 0 0 6px rgba(0,183,244,.12);transition:background-color var(--r5-dur) var(--r5-ease),color var(--r5-dur) var(--r5-ease),box-shadow var(--r5-dur) var(--r5-ease)}
.r5-flow.is-run .r5-flow-node{background:#00b7f4;color:#0b0d12;box-shadow:0 0 0 8px rgba(0,183,244,.16)}
.r5-flow.is-armed .r5-flow-node{transition-delay:calc(.25s + var(--i) * .45s)}
.r5-flow-card{display:flex;flex:1;flex-direction:column;align-items:center;width:100%;padding:clamp(20px,2.2vw,28px);border:1px solid rgba(0,150,214,.16);border-radius:20px;background:#fff;box-shadow:0 14px 36px rgba(11,13,18,.06);text-align:center;transition:transform var(--r5-dur) var(--r5-ease),box-shadow var(--r5-dur) var(--r5-ease),border-color var(--r5-dur) var(--r5-ease)}
.r5-flow-media{display:grid;margin-bottom:12px;place-items:center;color:#0077ad}
.r5-flow-media .icon{width:28px;height:28px}
.r5-flow-card h3{margin:0 0 8px}
.r5-flow-card p{margin:0}
@media(hover:hover) and (pointer:fine){.r5-flow-step:hover .r5-flow-card{border-color:rgba(0,150,214,.4);box-shadow:0 22px 48px rgba(0,119,173,.14);transform:translateY(-4px)}}
.r5-flow--dark .r5-flow-node{background:rgba(255,255,255,.08);color:#fff}
.r5-flow--dark.is-run .r5-flow-node{background:#00b7f4;color:#0b0d12}
.r5-flow--dark::before{background:rgba(255,255,255,.3)}
.r5-flow--dark::after{background:linear-gradient(90deg,#7fdcff,#00b7f4)}
.r5-flow--dark .r5-flow-card{border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#fff;box-shadow:none;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.r5-flow--dark .r5-flow-media{color:#7fdcff}
@media(max-width:760px){
  .r5-flow{--r5-node:44px;grid-template-columns:minmax(0,1fr);gap:18px}
  .r5-flow::before,.r5-flow::after{top:calc(var(--r5-node) / 2);bottom:var(--r5-flow-bottom,calc(var(--r5-node) / 2));left:calc(var(--r5-node) / 2 - 1px);right:auto;width:2px;height:auto}
  .r5-flow::after{transform-origin:center top;background:linear-gradient(180deg,#00b7f4,#0077ad)}
  .r5-flow--dark::after{background:linear-gradient(180deg,#7fdcff,#00b7f4)}
  .r5-flow.is-armed::after{transform:scaleY(0)}
  .r5-flow.is-armed.is-run::after{transform:scaleY(1)}
  .r5-flow-step{flex-direction:row;align-items:flex-start;gap:14px}
  .r5-flow-card{align-items:flex-start;text-align:left}
}
@media(prefers-reduced-motion:reduce){.r5-flow::after,.r5-flow-node,.r5-flow-card{transition:none!important}}

/* Footer-Nennung Lordicon */
.foot-bottom .footer-credit{opacity:.7;font-size:12px}

/* ===== R5 global (Bau-Agent global): sitewide Systeme ===== */

/* A Kann: Zitat-Marker auf allen drei Zitaten tiefer (70 bis 96 %), schneidet keine Unterlängen mehr. */
html body main :is(.r4h-quote,.s4-quote,.event-quote.r4ev-quote) blockquote em{background:linear-gradient(transparent 70%,rgba(0,183,244,.42) 70%,rgba(0,183,244,.42) 96%,transparent 96%)}

/* A Kann: Startseite Bildband im Raster der Seite statt bis 20 px an den Rand; Kachel 4 ohne angeschnittenes Gesicht. */
html body .r4h-band-row{width:min(1180px,calc(100% - 40px))}
html body .r4h-band figure:nth-child(4) img{object-position:28% 50%}
@media(max-width:760px){html body .r4h-band-row{width:calc(100% - 32px)}html body .r4h-road .r4h-step-icon lord-icon{width:26px!important;height:26px!important}}

/* B Zentrierung: ProvenExpert-Siegel schließen rechts bündig mit dem Raster ab (vorher mittig in ihrer Spalte, rechts 52 px mehr Rand). */
@media(min-width:761px){html body main .proven-seals{justify-content:flex-end}}

/* M Trennlinien: keine Haarlinien zwischen Sections, Übergänge nur über Fläche und Abstand. */
html body main .proven-section{border-block:0}
html body main .days-home-grid>.more-live-events{border-top:0}

/* Q Timelines: der Endknoten der Buch-Timeline leuchtet erst, wenn die Linie ihn erreicht. */
html body .try-timeline li:last-child:not(.is-reached) .try-timeline-node{border-color:#fff;background:#d9dde2;color:#fff;box-shadow:0 0 0 5px #fff,0 0 0 7px var(--line);animation:none}
html body .try-timeline li:last-child .try-timeline-node{transition:background-color var(--r5-dur) var(--r5-ease),box-shadow var(--r5-dur) var(--r5-ease),border-color var(--r5-dur) var(--r5-ease)}

/* C Academy-Stufen: Linie wird per JS geglättet (keine zweite CSS-Transition, die hinterherläuft);
   Knoten leuchten über eine eingeblendete Verlaufsebene statt hartem Hintergrund-Wechsel. */
html body main .s4-steps::after{transition:none}
html body main .s4-steps .s4-step-icon{position:relative;isolation:isolate;transition:transform var(--r5-dur) var(--r5-ease),color var(--r5-dur) var(--r5-ease),border-color var(--r5-dur) var(--r5-ease),box-shadow var(--r5-dur) var(--r5-ease)}
html body main .s4-steps .s4-step-icon::before{position:absolute;inset:-2px;z-index:-1;border-radius:50%;background:linear-gradient(135deg,#0096d6,#0077ad);content:'';opacity:0;transform:scale(.82);transition:opacity var(--r5-dur) var(--r5-ease),transform var(--r5-dur) var(--r5-ease)}
html body main .s4-steps li.is-lit .s4-step-icon{background:#fff}
html body main .s4-steps li.is-lit .s4-step-icon::before{opacity:1;transform:none}

/* K Hover-System: ruhig (300 bis 450 ms, --r5-ease), nur Zeigegeräte, nichts zuckt. Gemeinsame Karten-, Icon- und Bildklassen. */
html body main :is(.r13-icon-card,.expectation-list article,.info-grid article,.work-principles article,.recommendation-card,.contact-grid>div,.order-steps>li,.process>ol>li,.event-road>li,.event-card,.more-live-events-list li,.discover-grid article,.media-card,.benefit-card,.s4-icon-card,.s4-ko-tile,.proof-badge,.proven-seal,.quote-card,.first-talk-steps li){transition-duration:var(--r5-dur);transition-timing-function:var(--r5-ease)}
html body main :is(.r13-card-icon,.benefit-icon,.step-icon){transition-duration:var(--r5-dur);transition-timing-function:var(--r5-ease)}
html body main .hero-next-card{transition:transform var(--r5-dur) var(--r5-ease),box-shadow var(--r5-dur) var(--r5-ease),border-color var(--r5-dur) var(--r5-ease),background-color var(--r5-dur) var(--r5-ease)}
html body main :is(.round-photo,.round-copy-photo,.story-photo,.page-head-photo,.photo-row-frame,.event-card,.more-live-events-list li,.discover-grid article,.location-photos figure,.r4h-band figure,.r4h-road .rvis,.event-hero-image,.potential-grid,.potential-form-layout,.academy-gallery,.about-timeline-r14 figure) img{transition:transform 450ms var(--r5-ease)}
html body main .media-card-art img{transition-duration:450ms;transition-timing-function:var(--r5-ease)}
html body .btn,html body main .faq-item{transition-duration:var(--r5-dur);transition-timing-function:var(--r5-ease)}
html body .r4h-road .rstep:not(.rstep-book) .rvis{overflow:hidden}
html body .r4h-road .r4h-step-icon{transition:transform var(--r5-dur) var(--r5-ease),box-shadow var(--r5-dur) var(--r5-ease)}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  html body main :is(.event-card,.more-live-events-list li,.discover-grid article):is(:hover,:focus-within) img,html body main .media-card:is(:hover,:focus-visible) .media-card-art img{transform:scale(1.04)}
  html body main :is(.round-photo,.round-copy-photo,.story-photo,.photo-row-frame,.r4h-band figure):hover img{transform:scale(1.03)}
  html body .r4h-road .rstep:not(.rstep-book):hover .rvis img{transform:scale(1.03)}
  html body .r4h-road .rstep:hover .r4h-step-icon{box-shadow:0 12px 26px rgba(0,150,214,.22);transform:translateY(-3px)}
}
@media(prefers-reduced-motion:reduce){
  html body main :is(.round-photo,.round-copy-photo,.story-photo,.page-head-photo,.photo-row-frame,.event-card,.more-live-events-list li,.discover-grid article,.media-card-art,.location-photos figure,.r4h-band figure,.r4h-road .rvis,.event-hero-image,.potential-grid,.potential-form-layout,.academy-gallery,.about-timeline-r14 figure) img,html body .btn,html body main .faq-item,html body .r4h-road .r4h-step-icon,html body main .hero-next-card,html body main .s4-steps .s4-step-icon,html body main .s4-steps .s4-step-icon::before,html body .try-timeline li:last-child .try-timeline-node{transition:none!important}
}

/* R Startseite „Live erleben“: statt flachem Vollblau ein Bestandsfoto (Gäste der Days, abgedunkelt) rechts oben,
   Blau als Verlauf darüber; läuft nach links und unten in die Fläche aus, Karten bleiben weiß. */
html body main .section.days-home.r4h-live{isolation:isolate;overflow:hidden}
html body main .section.days-home.r4h-live::before{position:absolute;top:0;right:0;z-index:-1;width:min(56%,880px);height:min(78%,980px);background:linear-gradient(90deg,#00679a 0%,rgba(0,100,150,.84) 30%,rgba(0,96,145,.6) 100%),linear-gradient(0deg,#005f8f 0%,rgba(0,95,143,0) 38%),url(../img/r5gl-live-gaeste.webp) 50% 22%/cover no-repeat;content:'';pointer-events:none}
@media(max-width:760px){html body main .section.days-home.r4h-live::before{width:100%;height:min(46%,560px);background:linear-gradient(180deg,rgba(0,96,145,.7) 0%,rgba(0,100,150,.82) 55%,#00649a 100%),url(../img/r5gl-live-gaeste.webp) 50% 22%/cover no-repeat}}
