/*
Theme Name:   Astra Child – Spruytenburg
Template:     astra
Description:  Child-Theme für spruytenburg.org. Lokale Schriften (Barlow, Barlow Condensed), Design-Tokens und Rohr-Trenner. Keine externen Ressourcen, keine Cookies.
Author:       Pixelnerds
Version:      1.0.2
Text Domain:  astra-child-spruytenburg
*/

/* Schriften (lokal, SIL Open Font License) */
@font-face{font-family:"Barlow";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/Barlow-400.woff2") format("woff2")}
@font-face{font-family:"Barlow";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/Barlow-500.woff2") format("woff2")}
@font-face{font-family:"Barlow";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/Barlow-600.woff2") format("woff2")}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/BarlowCondensed-600.woff2") format("woff2")}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/BarlowCondensed-700.woff2") format("woff2")}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:800;font-display:swap;src:url("fonts/BarlowCondensed-800.woff2") format("woff2")}

/* Design-Tokens */
:root{
  --sp-red:#f44611;
  --sp-red-dark:#c9360b;
  --sp-green:#57a639;
  --sp-green-deep:#57a639;
  --sp-green-dark:#285b1a;
  --sp-ink:#303438;
  --sp-muted:#4E625D;
  --sp-bg:#FFFFFF;
  --sp-soft:#EFF5F2;
  --sp-line:#D6E3DE;
  --sp-contact-bg:#303438;
  --sp-display:"Barlow Condensed","Arial Narrow",Arial,sans-serif;
  --sp-body:"Barlow","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --sp-radius:26px;
}

html{scroll-behavior:smooth;scroll-padding-top:96px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Rohr-Trenner – das Logo-S als Übergang zwischen Abschnitten */
.pipe-div{display:block;width:100%;height:120px;margin:-1px 0;position:relative;z-index:1}
.pipe-div svg{display:block;width:100%;height:120px}
.pipe-div .flow{stroke-dasharray:1000;stroke-dashoffset:1000;transition:stroke-dashoffset 1.6s cubic-bezier(.6,.05,.25,1)}
.pipe-div .flow.g{transition-delay:.12s}
.pipe-div.in .flow{stroke-dashoffset:0}
@media (prefers-reduced-motion:reduce){.pipe-div .flow{transition:none;stroke-dashoffset:0}}
@media (max-width:600px){.pipe-div,.pipe-div svg{height:96px}}

/* Ergänzungen zum Beaver-Builder-Layout – nur, was der Builder nicht selbst kann.
   Farben, Abstände, Rahmen und Schriften stehen in den Moduleinstellungen. */

/* Hero: dritte Zeile der Überschrift in Grün */
.fl-builder-content .fl-module-heading .sp-accent{color:var(--fl-global-gruen-dunkel,#57a639)}

/* Hero: Foto läuft bis an den rechten Bildschirmrand */
.sp-hero .sp-hero-media img{object-fit:cover;object-position:62% center;border-radius:var(--sp-radius) 0 0 var(--sp-radius)}
@media (min-width:993px){
  .sp-hero .fl-row-content-wrap{position:relative}
  .sp-hero .sp-hero-media-col,.sp-hero .sp-hero-media-col>.fl-col-content{position:static}
  .sp-hero .sp-hero-media{position:absolute;top:clamp(2rem,4vw,3rem);bottom:clamp(2rem,4vw,3rem);right:0;width:calc(50% - 1rem);margin:0}
  .sp-hero .sp-hero-media .fl-photo-content,.sp-hero .sp-hero-media img{display:block;width:100%;height:100%}
}
@media (max-width:992px){
  .sp-hero .sp-hero-media{margin:2rem -20px 2.4rem 0}
  .sp-hero .sp-hero-media .fl-photo-content{display:block}
  .sp-hero .sp-hero-media img{display:block;width:100%;height:clamp(220px,56vw,360px)}
}

/* Karten heben sich beim Überfahren leicht an */
.fl-builder-content .sp-card,.fl-builder-content .sp-tile-link{transition:transform .25s ease,border-color .2s ease}
.fl-builder-content .sp-card:hover{transform:translateY(-4px)}
.fl-builder-content .sp-tile-link:hover{transform:translateY(-3px);border-color:var(--fl-global-mint,#6FE3B9)}
@media (prefers-reduced-motion:reduce){
  .fl-builder-content .sp-card,.fl-builder-content .sp-tile-link{transition:none}
  .fl-builder-content .sp-card:hover,.fl-builder-content .sp-tile-link:hover{transform:none}
}

/* Lange E-Mail-Adressen dürfen umbrechen */
.sp-break,.sp-break a{overflow-wrap:anywhere}

/* Footer: rot-grüne Leitung als oberer Abschluss */
.site-footer{position:relative}
.site-footer::before{content:"";position:absolute;left:0;right:0;top:0;height:10px;background:linear-gradient(var(--fl-global-rot,#f44611) 0 50%,var(--fl-global-gruen,#57a639) 50% 100%)}

/* Freigegebene Bildbehandlungen: natives Layout und Typografie bleiben im Builder. */
.custom-logo{filter:none;aspect-ratio:4.125;object-fit:cover;object-position:50% 52.2%;height:auto}
.sp-service-photo,.sp-service-photo .fl-photo-content{display:block;width:100%}
.sp-service-photo img{display:block;width:100%;height:auto;aspect-ratio:8/5;object-fit:cover;border-radius:24px 24px 0 0}
.sp-service-card{overflow:hidden}
.sp-service-icon{position:relative;z-index:1;flex-shrink:0}
.sp-service-icon img{filter:url(#sp-icon-green)}
.sp-family-photo img{display:block;width:100%;height:360px;object-fit:cover;object-position:center;border-radius:26px}
.sp-access-seal-image img{filter:url(#sp-seal-dark)}
.sp-seal-frame{width:100%;min-width:0}
.sp-seal-frame .fl-photo-content{max-width:100%}
.sp-seal-frame img{max-height:112px;object-fit:contain}
.sp-hero .sp-hero-media img{object-position:28% 50%}
@media(min-width:993px){.sp-hero .sp-hero-media{top:32px;bottom:32px}.sp-hero h1{font-size:clamp(44px,4.6vw,68px)}}
@media(max-width:992px){.sp-family-photo img{height:auto;aspect-ratio:2.1}}
@media(max-width:768px){.sp-family-photo img{height:230px;aspect-ratio:auto}.sp-hero .sp-hero-media img{height:320px}.sp-seal-frame img{max-height:96px}}

/* Scroll-Logo: sichtbare Größe unabhängig von transparenten PNG-Rändern. */
.ast-sticky-active .custom-logo.ast-sticky-shrink-logo{width:300px!important;height:auto!important}
@media(max-width:992px){.ast-sticky-active .custom-logo.ast-sticky-shrink-logo{width:260px!important}}
@media(max-width:768px){.ast-sticky-active .custom-logo.ast-sticky-shrink-logo{width:250px!important}}

/* Kontakt: Marken-Grün für Symbole, Links und Hover-Rahmen. */
#kontakt .sp-deko img{filter:url(#sp-icon-green)}
#kontakt .sp-tile-link:hover{border-color:#57a639}

/* Horizontale Unternehmens-Zeitleiste: Verbindung der nativen Meilensteine. */
.sp-history-timeline{width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#b7cdaa transparent}
.sp-history-timeline>.fl-module-box{position:relative;min-width:0;scroll-snap-align:start}
.sp-history-timeline>.fl-module-box:not(:last-child)::before{content:"";position:absolute;left:8px;top:8px;width:calc(100% + 24px);height:2px;background:#c5dcb9;pointer-events:none}
.sp-history-timeline>.fl-module-box>.fl-module-box>.fl-module-box{position:relative;z-index:1;flex-shrink:0}

/* Raum für die äußere Kontur des ersten Zeitleistenpunkts. */
.sp-history-timeline{box-sizing:border-box;padding-left:2px;padding-right:2px;scroll-padding-inline:2px}

/* Marken & Partner: neutrale Logo-Platzhalter im bestehenden Farbsystem. */
.sp-partners .sp-partners-head{align-items:center}
.sp-partners-grid{min-width:0}
.sp-partner-placeholder{min-width:0}
.sp-partner-logo-label{width:100%}
.sp-partner-logo-label p{margin:0}
.sp-partner-wordmark{display:block;color:#7c8976;font:700 24px/1.2 Arial,sans-serif;letter-spacing:.1em;margin-bottom:12px}
.sp-partner-wordmark::before{content:"";display:inline-block;width:11px;height:11px;border:2px solid #57a639;border-radius:3px;transform:rotate(-12deg);margin-right:7px;vertical-align:2px}
.sp-partner-category{display:block;color:#303438;font-weight:600;font-size:14px;line-height:1.4}
.sp-partner-note{display:block;font-size:11px;line-height:1.4;color:#64725e;margin-top:3px}
@media(max-width:767px){.sp-partner-wordmark{font-size:22px}.sp-partners-grid{gap:12px}}

/* Engerer Ausschnitt ausschließlich für die Durchlauferhitzer-Kachel. */
.fl-node-sp2f7ef87963a .fl-photo-content{display:block;overflow:hidden;border-radius:24px 24px 0 0}
.fl-node-sp2f7ef87963a .fl-photo-content img{transform:scale(2.4);transform-origin:86% 12%}

/* Freigegeben: Headerfoto an derselben Inhaltskante wie die übrigen Module. */
@media (min-width:993px){
  .sp-hero .sp-hero-media{
    right:max(20px,calc((100% - 1180px)/2));
    width:min(calc(50% - 36px),574px);
  }
}
@media (max-width:992px){
  .sp-hero .sp-hero-media{margin-right:0}
}
.sp-hero .sp-hero-media img{border-radius:var(--sp-radius)}

/* Freigegebene Header-Diashow. */
.sp-hero .sp-hero-media .fl-photo-content{position:relative;overflow:hidden;border-radius:var(--sp-radius);isolation:isolate}
.sp-hero .sp-hero-media img.sp-slide{position:absolute;inset:0;width:100%;height:100%;opacity:0;transition:opacity 1s ease;object-fit:cover;pointer-events:none}
.sp-hero .sp-hero-media img.sp-slide:first-child{position:relative}
.sp-hero .sp-hero-media img.sp-slide.is-active{opacity:1}
.sp-hero .sp-hero-media img.sp-slide-meister{object-position:30% 50%}
.sp-hero .sp-hero-media img.sp-slide-kontakt{object-position:75% 50%}
.sp-slide-dots{position:absolute;z-index:2;bottom:12px;left:50%;transform:translateX(-50%);display:flex;gap:0}
.sp-slide-dots button{display:grid;place-items:center;width:28px;min-width:28px;height:28px;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer}
.sp-slide-dots button:before{content:"";width:6px;height:6px;border-radius:50%;background:#ffffff80;box-shadow:0 0 0 1px #30343845,0 1px 5px #0005;transition:background .3s,transform .3s}
.sp-slide-dots button[aria-current="true"]:before{background:#fff;transform:scale(1.35)}
.sp-slide-dots button:hover:before{background:#fff}
.sp-slide-dots button:focus-visible{outline:2px solid #fff;outline-offset:-2px}
@media(max-width:992px){.sp-hero .sp-hero-media .fl-photo-content{height:clamp(220px,56vw,360px)}}
@media(prefers-reduced-motion:reduce){.sp-hero .sp-hero-media img.sp-slide{transition:none}}

/* Marken & Partner vorübergehend ausgeblendet; alle Builder-Inhalte bleiben erhalten. */
#marken-partner{display:none!important}
/* Der Kontakt-Trenner schließt nun direkt an den hellen Karrierebereich an. */
.fl-node-spptdividerbox svg g > path:first-of-type{fill:var(--sp-soft)!important}

/* Dezenter KI-Hinweis ausschließlich am Hebeanlagenbild. */
.sp-service-photo.fl-node-sp9194ee11ccb .fl-photo-content{position:relative}
.sp-service-photo.fl-node-sp9194ee11ccb .fl-photo-content::after{content:"KI-erstellt";position:absolute;right:9px;bottom:9px;z-index:2;padding:3px 6px;border-radius:4px;background:rgba(48,52,56,.72);color:#fff;font:400 10px/1.2 Barlow,sans-serif;letter-spacing:.02em;pointer-events:none}
