/* Hero (core/cover.spi-hero) – ersetzt die Divi-Hero-Sektion */
.wp-block-cover.spi-hero{position:relative;display:flex;align-items:flex-end;justify-content:flex-start;min-height:95vh;padding:0;margin:0;color:#fff;overflow:hidden;isolation:isolate;background:#3a3a39}
.spi-hero .wp-block-cover__image-background,.spi-hero .wp-block-cover__video-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.spi-hero .wp-block-cover__background{display:none}
.spi-hero::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(to top,rgba(0,0,0,.72) 0%,rgba(0,0,0,.34) 55%,rgba(0,0,0,.46) 100%)}
.spi-hero .wp-block-cover__inner-container{position:relative;z-index:2;flex:1 1 100%;width:100%;max-width:none;padding:0;color:#fff}
.spi-hero__inner{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:48px 72px;align-items:end;width:min(100% - 2*clamp(20px,5.5vw,80px),1280px);margin:0 auto;padding:160px 0 76px}
.spi-hero__main>*+*{margin-top:28px}
.spi-hero h1{margin:0;font-size:62px;font-weight:500;line-height:1.1;letter-spacing:-.01em;color:#fff;text-shadow:0 2px 20px rgba(0,0,0,.45)}
.spi-hero h1 span{color:#aa9173!important}
.spi-hero__side p{margin:0;max-width:640px;font-size:18px;font-weight:400;line-height:1.6;color:#fff;text-shadow:0 1px 12px rgba(0,0,0,.5)}
.spi-hero__side p span{color:#ecdcc2!important}
body.spi-sections--sub .spi-hero,body.spi-sections--bewertung .spi-hero{min-height:70vh}
body.spi-sections--sub .spi-hero__inner,body.spi-sections--bewertung .spi-hero__inner{grid-template-columns:1fr;gap:24px}
body.spi-sections--sub .spi-hero__side:empty,.spi-hero__side:empty{display:none}
@keyframes spi-rise{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
.spi-hero h1{animation:spi-rise .9s cubic-bezier(.22,.61,.36,1) .1s both}
.spi-hero__side p{animation:spi-rise .9s cubic-bezier(.22,.61,.36,1) .28s both}
@media(max-width:980px){
  .wp-block-cover.spi-hero{min-height:100vh;min-height:100svh;align-items:flex-end}
  body.spi-sections--sub .spi-hero,body.spi-sections--bewertung .spi-hero{min-height:620px}
  .spi-hero::after{background:linear-gradient(to top,rgba(0,0,0,.72) 0%,rgba(0,0,0,.46) 42%,rgba(0,0,0,.10) 68%,rgba(0,0,0,.26) 100%)}
  .spi-hero__inner{grid-template-columns:1fr;padding:110px 0 28px;gap:20px}
  .spi-hero h1,body.spi-sections--sub .spi-hero h1,body.spi-sections--bewertung .spi-hero h1{font-size:32px;line-height:1.15}
  .spi-hero__side{display:none}
}
@media(prefers-reduced-motion:reduce){.spi-hero h1,.spi-hero__side p{animation:none}}

/* Imagefilm-Dialog */
dialog.spi-film{width:min(100% - 32px,1100px);padding:0;border:0;border-radius:14px;background:#111;overflow:hidden}
dialog.spi-film::backdrop{background:rgba(0,0,0,.78)}
.spi-film__frame{position:relative;aspect-ratio:16/9}
.spi-film__frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.spi-film__close{position:absolute;top:10px;right:10px;z-index:3;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.9);color:#222;font-size:24px;line-height:1;cursor:pointer}

/* Poster fuer das Hero-Video: Bild sofort sichtbar, Video laedt nach (Ladezeit) */
.spi-hero--video{background:#2a2622 url(/wp-content/uploads/2026/06/SaarpfalzImmobilien_homburg_poster.jpg) center/cover no-repeat}
